181d089aeSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 381d089aeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 481d089aeSAndrew Rist * or more contributor license agreements. See the NOTICE file 581d089aeSAndrew Rist * distributed with this work for additional information 681d089aeSAndrew Rist * regarding copyright ownership. The ASF licenses this file 781d089aeSAndrew Rist * to you under the Apache License, Version 2.0 (the 881d089aeSAndrew Rist * "License"); you may not use this file except in compliance 981d089aeSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 1181d089aeSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 1381d089aeSAndrew Rist * Unless required by applicable law or agreed to in writing, 1481d089aeSAndrew Rist * software distributed under the License is distributed on an 1581d089aeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1681d089aeSAndrew Rist * KIND, either express or implied. See the License for the 1781d089aeSAndrew Rist * specific language governing permissions and limitations 1881d089aeSAndrew Rist * under the License. 19cdf0e10cSrcweir * 2081d089aeSAndrew Rist *************************************************************/ 2181d089aeSAndrew Rist 2281d089aeSAndrew 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 HelpId = HID_DLGIDX_INDEXLIST ; 110cdf0e10cSrcweir TabStop = TRUE ; 111cdf0e10cSrcweir }; 112cdf0e10cSrcweir FixedLine FL_INDEXDETAILS 113cdf0e10cSrcweir { 114cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ; 115cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 116cdf0e10cSrcweir Text [ en-US ] = "Index details" ; 117cdf0e10cSrcweir }; 118cdf0e10cSrcweir FixedText FT_DESC_LABEL 119cdf0e10cSrcweir { 120cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ; 121cdf0e10cSrcweir Size = MAP_APPFONT ( 50, 8 ) ; 122cdf0e10cSrcweir Text [ en-US ] = "Index identifier:" ; 123cdf0e10cSrcweir }; 124cdf0e10cSrcweir FixedText FT_DESCRIPTION 125cdf0e10cSrcweir { 126cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ; 127cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ; 128cdf0e10cSrcweir }; 129cdf0e10cSrcweir CheckBox CB_UNIQUE 130cdf0e10cSrcweir { 131cdf0e10cSrcweir HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE" ; 132cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ; 133cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 134cdf0e10cSrcweir SVLook = TRUE ; 135cdf0e10cSrcweir Text [ en-US ] = "~Unique" ; 136cdf0e10cSrcweir }; 137cdf0e10cSrcweir FixedText FT_FIELDS 138cdf0e10cSrcweir { 139cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ; 140cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ; 141cdf0e10cSrcweir SVLook = TRUE ; 142cdf0e10cSrcweir Text [ en-US ] = "Fields" ; 143cdf0e10cSrcweir }; 144cdf0e10cSrcweir Control CTR_FIELDS 145cdf0e10cSrcweir { 146cdf0e10cSrcweir Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ; 147cdf0e10cSrcweir Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ; 148cdf0e10cSrcweir SVLook = TRUE ; 149cdf0e10cSrcweir Border = TRUE ; 150cdf0e10cSrcweir TabStop = TRUE ; 151cdf0e10cSrcweir }; 152cdf0e10cSrcweir PushButton PB_CLOSE 153cdf0e10cSrcweir { 154cdf0e10cSrcweir HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE" ; 155cdf0e10cSrcweir Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ; 156cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ; 157cdf0e10cSrcweir SVLook = TRUE ; 158cdf0e10cSrcweir DefButton = TRUE ; 159cdf0e10cSrcweir Text [ en-US ] = "~Close" ; 160cdf0e10cSrcweir }; 161cdf0e10cSrcweir HelpButton HB_HELP 162cdf0e10cSrcweir { 163cdf0e10cSrcweir Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ; 164cdf0e10cSrcweir Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ; 165cdf0e10cSrcweir }; 166cdf0e10cSrcweir}; 167cdf0e10cSrcweir 168cdf0e10cSrcweirString STR_TAB_INDEX_SORTORDER 169cdf0e10cSrcweir{ 170cdf0e10cSrcweir Text [ en-US ] = "Sort order" ; 171cdf0e10cSrcweir}; 172cdf0e10cSrcweirString STR_TAB_INDEX_FIELD 173cdf0e10cSrcweir{ 174cdf0e10cSrcweir Text [ en-US ] = "Index field" ; 175cdf0e10cSrcweir}; 176cdf0e10cSrcweirString STR_ORDER_ASCENDING 177cdf0e10cSrcweir{ 178cdf0e10cSrcweir Text [ en-US ] = "Ascending" ; 179cdf0e10cSrcweir}; 180cdf0e10cSrcweirString STR_ORDER_DESCENDING 181cdf0e10cSrcweir{ 182cdf0e10cSrcweir Text [ en-US ] = "Descending" ; 183cdf0e10cSrcweir}; 184cdf0e10cSrcweir 185cdf0e10cSrcweirString STR_CONFIRM_DROP_INDEX 186cdf0e10cSrcweir{ 187cdf0e10cSrcweir Text [ en-US ] = "Do you really want to delete the index '$name$'?" ; 188cdf0e10cSrcweir}; 189cdf0e10cSrcweir 190cdf0e10cSrcweirString STR_LOGICAL_INDEX_NAME 191cdf0e10cSrcweir{ 192cdf0e10cSrcweir Text [ en-US ] = "index" ; 193cdf0e10cSrcweir}; 194cdf0e10cSrcweir 195cdf0e10cSrcweirImage IMG_PKEYICON 196cdf0e10cSrcweir{ 197787035a6Smseidel ImageBitmap = Bitmap {File = "pkey.png" ;} ; 198cdf0e10cSrcweir}; 199cdf0e10cSrcweirImage IMG_PKEYICON_SCH 200cdf0e10cSrcweir{ 201787035a6Smseidel ImageBitmap = Bitmap {File = "pkey_sch.png" ;} ; 202cdf0e10cSrcweir}; 203cdf0e10cSrcweir 204cdf0e10cSrcweirErrorBox ERR_NEED_INDEX_FIELDS 205cdf0e10cSrcweir{ 206cdf0e10cSrcweir Title [ en-US ] = "Save Index" ; 207cdf0e10cSrcweir Message [ en-US ] = "The index must contain at least one field." ; 208cdf0e10cSrcweir Buttons = WB_OK ; 209cdf0e10cSrcweir}; 210cdf0e10cSrcweir 211cdf0e10cSrcweirQueryBox QUERY_SAVE_CURRENT_INDEX 212cdf0e10cSrcweir{ 213cdf0e10cSrcweir Title [ en-US ] = "Exit Index Design" ; 214cdf0e10cSrcweir Message [ en-US ] = "Do you want to save the changes made to the current index?" ; 215cdf0e10cSrcweir Buttons = WB_YES_NO_CANCEL ; 216cdf0e10cSrcweir DefButton = WB_DEF_YES ; 217cdf0e10cSrcweir}; 218cdf0e10cSrcweir 219cdf0e10cSrcweirString STR_INDEX_NAME_ALREADY_USED 220cdf0e10cSrcweir{ 221cdf0e10cSrcweir Text [ en-US ] = "There is already another index named \"$name$\"." ; 222cdf0e10cSrcweir}; 223cdf0e10cSrcweir 224cdf0e10cSrcweirString STR_INDEXDESIGN_DOUBLE_COLUMN_NAME 225cdf0e10cSrcweir{ 226cdf0e10cSrcweir Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice." ; 227cdf0e10cSrcweir}; 228cdf0e10cSrcweir 229*f7259798Smseidel// ********************************************************************** EOF 230