2013-03-08 19:49:43 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2001-03-16 15:23:31 +00:00
|
|
|
|
2002-08-19 07:01:32 +00:00
|
|
|
#include "dbu_dlg.hrc"
|
2001-03-16 15:23:31 +00:00
|
|
|
#include "indexdialog.hrc"
|
2002-04-29 07:27:33 +00:00
|
|
|
#include "browserids.hxx"
|
2001-08-06 06:44:01 +00:00
|
|
|
#include "dbaccess_helpid.hrc"
|
2001-03-16 15:23:31 +00:00
|
|
|
|
|
|
|
#define DIALOG_SIZE_X 220
|
|
|
|
#define DIALOG_SIZE_Y 140
|
|
|
|
#define BUTTON_SIZE_X 50
|
|
|
|
#define BUTTON_SIZE_Y 14
|
|
|
|
|
|
|
|
#define LIST_WIDTH 70
|
|
|
|
|
|
|
|
ModalDialog DLG_INDEXDESIGN
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:ModalDialog:DLG_INDEXDESIGN";
|
2001-03-16 15:23:31 +00:00
|
|
|
OutputSize = TRUE ;
|
|
|
|
SVLook = TRUE ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Indexes" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
Moveable = TRUE ;
|
|
|
|
Closeable = TRUE ;
|
|
|
|
|
|
|
|
ToolBox TLB_ACTIONS
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( 6 , 6 ) ;
|
|
|
|
ButtonType = BUTTON_SYMBOL;
|
|
|
|
Align = BOXALIGN_TOP;
|
2005-03-23 09:53:31 +00:00
|
|
|
HelpId = HID_INDEX_DIALOG_ACTION_TB;
|
2001-03-16 15:23:31 +00:00
|
|
|
Customize = FALSE;
|
2002-04-29 07:27:33 +00:00
|
|
|
ItemImageList = IMG_INDEX_DLG_SC ;
|
2001-03-16 15:23:31 +00:00
|
|
|
|
|
|
|
ItemList =
|
|
|
|
{
|
|
|
|
ToolBoxItem
|
|
|
|
{
|
|
|
|
Identifier = ID_INDEX_NEW;
|
2001-08-06 06:44:01 +00:00
|
|
|
HelpId = HID_DLGIDX_NEWINDEX;
|
2001-03-16 15:23:31 +00:00
|
|
|
Command = ".index:createNew";
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "New Index" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
ToolBoxItem
|
|
|
|
{
|
|
|
|
Identifier = ID_INDEX_DROP;
|
2001-08-06 06:44:01 +00:00
|
|
|
HelpId = HID_DLGIDX_DROPINDEX;
|
2001-03-16 15:23:31 +00:00
|
|
|
Command = ".index:dropCurrent";
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Delete Current Index" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
ToolBoxItem
|
|
|
|
{
|
|
|
|
Identifier = ID_INDEX_RENAME;
|
2001-08-06 06:44:01 +00:00
|
|
|
HelpId = HID_DLGIDX_RENAMEINDEX;
|
2001-03-16 15:23:31 +00:00
|
|
|
Command = ".index:renameCurrent";
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Rename Current Index" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
ToolBoxItem
|
|
|
|
{
|
|
|
|
Identifier = ID_INDEX_SAVE;
|
2001-08-06 06:44:01 +00:00
|
|
|
HelpId = HID_DLGIDX_SAVEINDEX;
|
2001-03-16 15:23:31 +00:00
|
|
|
Command = ".index:saveCurrent";
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Save Current Index" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
ToolBoxItem
|
|
|
|
{
|
|
|
|
Identifier = ID_INDEX_RESET;
|
2001-08-06 06:44:01 +00:00
|
|
|
HelpId = HID_DLGIDX_RESETINDEX;
|
2001-03-16 15:23:31 +00:00
|
|
|
Command = ".index:resetCurrent";
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Reset Current Index" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Control CTR_INDEXLIST
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( 6 , 23 ) ;
|
|
|
|
Size = MAP_APPFONT ( LIST_WIDTH , DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ;
|
|
|
|
SVLook = TRUE;
|
|
|
|
Border = TRUE;
|
2001-08-06 06:44:01 +00:00
|
|
|
|
|
|
|
HelpId = HID_DLGIDX_INDEXLIST;
|
2002-03-19 06:24:06 +00:00
|
|
|
TabStop = TRUE ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
FixedLine FL_INDEXDETAILS
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Index details";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
FixedText FT_DESC_LABEL
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
|
|
|
|
Size = MAP_APPFONT ( 50, 8 ) ;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Index identifier:";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
FixedText FT_DESCRIPTION
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
|
|
|
|
};
|
|
|
|
CheckBox CB_UNIQUE
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE";
|
2001-03-16 15:23:31 +00:00
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
|
|
|
|
SVLook = TRUE;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "~Unique";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
FixedText FT_FIELDS
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
|
|
|
|
SVLook = TRUE;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Fields";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
Control CTR_FIELDS
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
|
|
|
|
Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
|
|
|
|
SVLook = TRUE;
|
|
|
|
Border = TRUE;
|
2002-03-19 06:24:06 +00:00
|
|
|
TabStop = TRUE ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
PushButton PB_CLOSE
|
|
|
|
{
|
2010-10-11 17:56:12 +02:00
|
|
|
HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE";
|
2001-04-02 11:05:06 +00:00
|
|
|
Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
|
2001-03-16 15:23:31 +00:00
|
|
|
Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
|
|
|
|
SVLook = TRUE;
|
|
|
|
DefButton = TRUE;
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "~Close";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
2001-04-02 11:05:06 +00:00
|
|
|
HelpButton HB_HELP
|
|
|
|
{
|
|
|
|
Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
|
|
|
|
Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
|
|
|
|
};
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
String STR_TAB_INDEX_SORTORDER
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Sort order" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
2010-11-23 21:07:47 -08:00
|
|
|
|
2001-03-16 15:23:31 +00:00
|
|
|
String STR_TAB_INDEX_FIELD
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Index field" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
2010-11-23 21:07:47 -08:00
|
|
|
|
2001-03-16 15:23:31 +00:00
|
|
|
String STR_ORDER_ASCENDING
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Ascending" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
2010-11-23 21:07:47 -08:00
|
|
|
|
2001-03-16 15:23:31 +00:00
|
|
|
String STR_ORDER_DESCENDING
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Descending" ;
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
String STR_CONFIRM_DROP_INDEX
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "Do you really want to delete the index '$name$'?";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
String STR_LOGICAL_INDEX_NAME
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "index";
|
2001-03-16 15:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Image IMG_PKEYICON
|
|
|
|
{
|
2010-11-23 21:07:47 -08:00
|
|
|
ImageBitmap = Bitmap { File = "pkey.png"; };
|
2001-03-16 15:23:31 +00:00
|
|
|
MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
|
|
|
|
};
|
|
|
|
|
|
|
|
ErrorBox ERR_NEED_INDEX_FIELDS
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Title [ en-US ] = "Save Index";
|
2001-03-16 15:23:31 +00:00
|
|
|
|
2004-06-26 16:30:45 +00:00
|
|
|
Message [ en-US ] = "The index must contain at least one field.";
|
2001-03-16 15:23:31 +00:00
|
|
|
|
|
|
|
Buttons = WB_OK;
|
|
|
|
};
|
|
|
|
|
|
|
|
QueryBox QUERY_SAVE_CURRENT_INDEX
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Title [ en-US ] = "Exit Index Design";
|
2001-03-16 15:23:31 +00:00
|
|
|
|
2004-06-26 16:30:45 +00:00
|
|
|
Message [ en-US ] = "Do you want to save the changes made to the current index?";
|
2001-03-16 15:23:31 +00:00
|
|
|
|
|
|
|
Buttons = WB_YES_NO_CANCEL;
|
|
|
|
DefButton = WB_DEF_YES;
|
|
|
|
};
|
|
|
|
|
2001-05-02 10:45:20 +00:00
|
|
|
String STR_INDEX_NAME_ALREADY_USED
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "There is already another index named \"$name$\".";
|
2001-05-02 10:45:20 +00:00
|
|
|
};
|
|
|
|
|
2001-03-19 05:00:00 +00:00
|
|
|
String STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
|
|
|
|
{
|
2004-06-26 16:30:45 +00:00
|
|
|
Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice.";
|
2001-03-19 05:00:00 +00:00
|
|
|
};
|
2013-03-08 19:49:43 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|