1*81d089aeSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*81d089aeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*81d089aeSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*81d089aeSAndrew Rist * distributed with this work for additional information 6*81d089aeSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*81d089aeSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*81d089aeSAndrew Rist * "License"); you may not use this file except in compliance 9*81d089aeSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*81d089aeSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*81d089aeSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*81d089aeSAndrew Rist * software distributed under the License is distributed on an 15*81d089aeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*81d089aeSAndrew Rist * KIND, either express or implied. See the License for the 17*81d089aeSAndrew Rist * specific language governing permissions and limitations 18*81d089aeSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*81d089aeSAndrew Rist *************************************************************/ 21*81d089aeSAndrew Rist 22*81d089aeSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_ 25cdf0e10cSrcweir#include "dbu_dlg.hrc" 26cdf0e10cSrcweir#endif 27cdf0e10cSrcweir#ifndef _DBAUI_INDEXDIALOG_HRC_ 28cdf0e10cSrcweir#include "indexdialog.hrc" 29cdf0e10cSrcweir#endif 30cdf0e10cSrcweir#ifndef DBACCESS_UI_BROWSER_ID_HXX 31cdf0e10cSrcweir#include "browserids.hxx" 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir#ifndef _DBA_DBACCESS_HELPID_HRC_ 34cdf0e10cSrcweir#include "dbaccess_helpid.hrc" 35cdf0e10cSrcweir#endif 36cdf0e10cSrcweir 37cdf0e10cSrcweir#define DIALOG_SIZE_X 220 38cdf0e10cSrcweir#define DIALOG_SIZE_Y 140 39cdf0e10cSrcweir#define BUTTON_SIZE_X 50 40cdf0e10cSrcweir#define BUTTON_SIZE_Y 14 41cdf0e10cSrcweir 42cdf0e10cSrcweir#define LIST_WIDTH 70 43cdf0e10cSrcweir 44cdf0e10cSrcweirModalDialog DLG_INDEXDESIGN 45cdf0e10cSrcweir{ 46cdf0e10cSrcweir HelpID = "dbaccess:ModalDialog:DLG_INDEXDESIGN"; 47cdf0e10cSrcweir OutputSize = TRUE ; 48cdf0e10cSrcweir SVLook = TRUE ; 49cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ; 50cdf0e10cSrcweir Text [ en-US ] = "Indexes" ; 51cdf0e10cSrcweir Moveable = TRUE ; 52cdf0e10cSrcweir Closeable = TRUE ; 53cdf0e10cSrcweir 54cdf0e10cSrcweir ToolBox TLB_ACTIONS 55cdf0e10cSrcweir { 56cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 6 ) ; 57cdf0e10cSrcweir // Size = MAP_APPFONT ( DIALOG_SIZE_X - 14 , 14 ) ; 58cdf0e10cSrcweir ButtonType = BUTTON_SYMBOL; 59cdf0e10cSrcweir Align = BOXALIGN_TOP; 60cdf0e10cSrcweir HelpId = HID_INDEX_DIALOG_ACTION_TB; 61cdf0e10cSrcweir Customize = FALSE; 62cdf0e10cSrcweir ItemImageList = IMG_INDEX_DLG_SC ; 63cdf0e10cSrcweir 64cdf0e10cSrcweir ItemList = 65cdf0e10cSrcweir { 66cdf0e10cSrcweir ToolBoxItem 67cdf0e10cSrcweir { 68cdf0e10cSrcweir Identifier = ID_INDEX_NEW; 69cdf0e10cSrcweir HelpId = HID_DLGIDX_NEWINDEX; 70cdf0e10cSrcweir Command = ".index:createNew"; 71cdf0e10cSrcweir Text [ en-US ] = "New Index" ; 72cdf0e10cSrcweir }; 73cdf0e10cSrcweir ToolBoxItem 74cdf0e10cSrcweir { 75cdf0e10cSrcweir Identifier = ID_INDEX_DROP; 76cdf0e10cSrcweir HelpId = HID_DLGIDX_DROPINDEX; 77cdf0e10cSrcweir Command = ".index:dropCurrent"; 78cdf0e10cSrcweir Text [ en-US ] = "Delete Current Index" ; 79cdf0e10cSrcweir }; 80cdf0e10cSrcweir ToolBoxItem 81cdf0e10cSrcweir { 82cdf0e10cSrcweir Identifier = ID_INDEX_RENAME; 83cdf0e10cSrcweir HelpId = HID_DLGIDX_RENAMEINDEX; 84cdf0e10cSrcweir Command = ".index:renameCurrent"; 85cdf0e10cSrcweir Text [ en-US ] = "Rename Current Index" ; 86cdf0e10cSrcweir }; 87cdf0e10cSrcweir ToolBoxItem 88cdf0e10cSrcweir { 89cdf0e10cSrcweir Identifier = ID_INDEX_SAVE; 90cdf0e10cSrcweir HelpId = HID_DLGIDX_SAVEINDEX; 91cdf0e10cSrcweir Command = ".index:saveCurrent"; 92cdf0e10cSrcweir Text [ en-US ] = "Save Current Index" ; 93cdf0e10cSrcweir }; 94cdf0e10cSrcweir ToolBoxItem 95cdf0e10cSrcweir { 96cdf0e10cSrcweir Identifier = ID_INDEX_RESET; 97cdf0e10cSrcweir HelpId = HID_DLGIDX_RESETINDEX; 98cdf0e10cSrcweir Command = ".index:resetCurrent"; 99cdf0e10cSrcweir Text [ en-US ] = "Reset Current Index" ; 100cdf0e10cSrcweir }; 101cdf0e10cSrcweir }; 102cdf0e10cSrcweir }; 103cdf0e10cSrcweir Control CTR_INDEXLIST 104cdf0e10cSrcweir { 105cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 23 ) ; 106cdf0e10cSrcweir Size = MAP_APPFONT ( LIST_WIDTH , DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ; 107cdf0e10cSrcweir SVLook = TRUE; 108cdf0e10cSrcweir Border = TRUE; 109cdf0e10cSrcweir 110cdf0e10cSrcweir HelpId = HID_DLGIDX_INDEXLIST; 111cdf0e10cSrcweir TabStop = TRUE ; 112cdf0e10cSrcweir }; 113cdf0e10cSrcweir FixedLine FL_INDEXDETAILS 114cdf0e10cSrcweir { 115cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ; 116cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 117cdf0e10cSrcweir Text [ en-US ] = "Index details"; 118cdf0e10cSrcweir }; 119cdf0e10cSrcweir FixedText FT_DESC_LABEL 120cdf0e10cSrcweir { 121cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ; 122cdf0e10cSrcweir Size = MAP_APPFONT ( 50, 8 ) ; 123cdf0e10cSrcweir Text [ en-US ] = "Index identifier:"; 124cdf0e10cSrcweir }; 125cdf0e10cSrcweir FixedText FT_DESCRIPTION 126cdf0e10cSrcweir { 127cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ; 128cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ; 129cdf0e10cSrcweir }; 130cdf0e10cSrcweir CheckBox CB_UNIQUE 131cdf0e10cSrcweir { 132cdf0e10cSrcweir HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE"; 133cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ; 134cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 135cdf0e10cSrcweir SVLook = TRUE; 136cdf0e10cSrcweir Text [ en-US ] = "~Unique"; 137cdf0e10cSrcweir }; 138cdf0e10cSrcweir FixedText FT_FIELDS 139cdf0e10cSrcweir { 140cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ; 141cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 142cdf0e10cSrcweir SVLook = TRUE; 143cdf0e10cSrcweir Text [ en-US ] = "Fields"; 144cdf0e10cSrcweir }; 145cdf0e10cSrcweir Control CTR_FIELDS 146cdf0e10cSrcweir { 147cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ; 148cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ; 149cdf0e10cSrcweir SVLook = TRUE; 150cdf0e10cSrcweir Border = TRUE; 151cdf0e10cSrcweir TabStop = TRUE ; 152cdf0e10cSrcweir }; 153cdf0e10cSrcweir PushButton PB_CLOSE 154cdf0e10cSrcweir { 155cdf0e10cSrcweir HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE"; 156cdf0e10cSrcweir Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ; 157cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ); 158cdf0e10cSrcweir SVLook = TRUE; 159cdf0e10cSrcweir DefButton = TRUE; 160cdf0e10cSrcweir Text [ en-US ] = "~Close"; 161cdf0e10cSrcweir }; 162cdf0e10cSrcweir HelpButton HB_HELP 163cdf0e10cSrcweir { 164cdf0e10cSrcweir Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ; 165cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ); 166cdf0e10cSrcweir }; 167cdf0e10cSrcweir}; 168cdf0e10cSrcweir 169cdf0e10cSrcweirString STR_TAB_INDEX_SORTORDER 170cdf0e10cSrcweir{ 171cdf0e10cSrcweir Text [ en-US ] = "Sort order" ; 172cdf0e10cSrcweir}; 173cdf0e10cSrcweirString STR_TAB_INDEX_FIELD 174cdf0e10cSrcweir{ 175cdf0e10cSrcweir Text [ en-US ] = "Index field" ; 176cdf0e10cSrcweir}; 177cdf0e10cSrcweirString STR_ORDER_ASCENDING 178cdf0e10cSrcweir{ 179cdf0e10cSrcweir Text [ en-US ] = "Ascending" ; 180cdf0e10cSrcweir}; 181cdf0e10cSrcweirString STR_ORDER_DESCENDING 182cdf0e10cSrcweir{ 183cdf0e10cSrcweir Text [ en-US ] = "Descending" ; 184cdf0e10cSrcweir}; 185cdf0e10cSrcweir 186cdf0e10cSrcweirString STR_CONFIRM_DROP_INDEX 187cdf0e10cSrcweir{ 188cdf0e10cSrcweir Text [ en-US ] = "Do you really want to delete the index '$name$'?"; 189cdf0e10cSrcweir}; 190cdf0e10cSrcweir 191cdf0e10cSrcweirString STR_LOGICAL_INDEX_NAME 192cdf0e10cSrcweir{ 193cdf0e10cSrcweir Text [ en-US ] = "index"; 194cdf0e10cSrcweir}; 195cdf0e10cSrcweir 196cdf0e10cSrcweirImage IMG_PKEYICON 197cdf0e10cSrcweir{ 198cdf0e10cSrcweir ImageBitmap = Bitmap { File = "pkey.bmp"; }; 199cdf0e10cSrcweir MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 200cdf0e10cSrcweir}; 201cdf0e10cSrcweirImage IMG_PKEYICON_SCH 202cdf0e10cSrcweir{ 203cdf0e10cSrcweir ImageBitmap = Bitmap { File = "pkey_sch.bmp"; }; 204cdf0e10cSrcweir MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 205cdf0e10cSrcweir}; 206cdf0e10cSrcweir 207cdf0e10cSrcweirErrorBox ERR_NEED_INDEX_FIELDS 208cdf0e10cSrcweir{ 209cdf0e10cSrcweir Title [ en-US ] = "Save Index"; 210cdf0e10cSrcweir 211cdf0e10cSrcweir Message [ en-US ] = "The index must contain at least one field."; 212cdf0e10cSrcweir 213cdf0e10cSrcweir Buttons = WB_OK; 214cdf0e10cSrcweir}; 215cdf0e10cSrcweir 216cdf0e10cSrcweirQueryBox QUERY_SAVE_CURRENT_INDEX 217cdf0e10cSrcweir{ 218cdf0e10cSrcweir Title [ en-US ] = "Exit Index Design"; 219cdf0e10cSrcweir 220cdf0e10cSrcweir Message [ en-US ] = "Do you want to save the changes made to the current index?"; 221cdf0e10cSrcweir 222cdf0e10cSrcweir Buttons = WB_YES_NO_CANCEL; 223cdf0e10cSrcweir DefButton = WB_DEF_YES; 224cdf0e10cSrcweir}; 225cdf0e10cSrcweir 226cdf0e10cSrcweirString STR_INDEX_NAME_ALREADY_USED 227cdf0e10cSrcweir{ 228cdf0e10cSrcweir Text [ en-US ] = "There is already another index named \"$name$\"."; 229cdf0e10cSrcweir}; 230cdf0e10cSrcweir 231cdf0e10cSrcweirString STR_INDEXDESIGN_DOUBLE_COLUMN_NAME 232cdf0e10cSrcweir{ 233cdf0e10cSrcweir Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice."; 234cdf0e10cSrcweir}; 235cdf0e10cSrcweir 236