1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package testlib.gui; 25 import java.io.File; 26 27 import org.openoffice.test.OpenOffice; 28 import org.openoffice.test.vcl.IDList; 29 import org.openoffice.test.vcl.client.Constant; 30 import org.openoffice.test.vcl.widgets.VclApp; 31 import org.openoffice.test.vcl.widgets.VclButton; 32 import org.openoffice.test.vcl.widgets.VclComboBox; 33 import org.openoffice.test.vcl.widgets.VclControl; 34 import org.openoffice.test.vcl.widgets.VclDialog; 35 import org.openoffice.test.vcl.widgets.VclDockingWin; 36 import org.openoffice.test.vcl.widgets.VclEditBox; 37 import org.openoffice.test.vcl.widgets.VclField; 38 import org.openoffice.test.vcl.widgets.VclListBox; 39 import org.openoffice.test.vcl.widgets.VclMenuItem; 40 import org.openoffice.test.vcl.widgets.VclMessageBox; 41 import org.openoffice.test.vcl.widgets.VclStatusBar; 42 import org.openoffice.test.vcl.widgets.VclTabControl; 43 import org.openoffice.test.vcl.widgets.VclTabPage; 44 import org.openoffice.test.vcl.widgets.VclToolBox; 45 import org.openoffice.test.vcl.widgets.VclWindow; 46 import org.openoffice.test.vcl.widgets.VclTreeListBox; 47 48 /** 49 * Define all UI controls in the class. 50 * One control should be defined once and only once. 51 * 52 */ 53 public class UIMap { 54 private static IDList idList = new IDList(new File("./hid")); 55 public static final VclMessageBox ActiveMsgBox = new VclMessageBox(Constant.UID_ACTIVE); 56 public static final VclMessageBox MsgBox_AdditionalRowsNotSaved = new VclMessageBox(Constant.UID_ACTIVE, "Additional rows were not saved."); 57 public static final VclTabControl ActiveTabControl = new VclTabControl(Constant.UID_ACTIVE); 58 59 public static VclEditBox editbox(String id) { 60 return new VclEditBox(idList.getId(id)); 61 } 62 63 public static VclControl control(String id) { 64 return new VclControl(idList.getId(id)); 65 } 66 67 public static VclWindow window(String id) { 68 return new VclWindow(idList.getId(id)); 69 } 70 71 public static VclDialog dialog(String id) { 72 return new VclDialog(idList.getId(id)); 73 } 74 75 public static VclTabPage tabpage(String id) { 76 return new VclTabPage(idList.getId(id)); 77 } 78 79 public static VclListBox listbox(String id) { 80 return new VclListBox(idList.getId(id)); 81 } 82 83 public static VclComboBox combobox(String id) { 84 return new VclComboBox(idList.getId(id)); 85 } 86 87 public static VclToolBox toolbox(String id) { 88 return new VclToolBox(idList.getId(id)); 89 } 90 91 public static VclButton button(String id) { 92 return new VclButton(idList.getId(id)); 93 } 94 95 public static VclMessageBox msgbox(String text) { 96 return new VclMessageBox(idList.getId("UID_ACTIVE"), text); 97 } 98 99 public static VclMenuItem menuItem(String text) { 100 return new VclMenuItem(text); 101 } 102 103 public static VclStatusBar statusbar(String id) { 104 return new VclStatusBar(idList.getId(id)); 105 } 106 107 public static VclField field(String id){ 108 return new VclField(idList.getId(id)); 109 } 110 111 public static VclDockingWin dockingwin(String id){ 112 return new VclDockingWin(idList.getId(id)); 113 } 114 115 public static VclTreeListBox tree(String id) { 116 return new VclTreeListBox(idList.getId(id)); 117 } 118 119 public static final OpenOffice oo = new OpenOffice(null); 120 public static final VclApp app = VclApp.getDefault(); 121 public static final VclWindow writer = window("SW_HID_EDIT_WIN"); 122 public static final VclWindow startcenter = window("FWK_HID_BACKINGWINDOW"); 123 public static final VclWindow calc = window("SC_HID_SC_WIN_GRIDWIN"); 124 public static final VclWindow impress = window("SD_HID_SDDRAWVIEWSHELL"); 125 public static final VclDialog FilePicker = dialog("SVT_HID_EXPLORERDLG_FILE"); 126 public static final VclListBox FilePicker_FileType = listbox("fpicker:ListBox:DLG_SVT_EXPLORERFILE:LB_EXPLORERFILE_FILETYPE"); 127 public static final VclButton FilePicker_Open = button("fpicker:PushButton:DLG_SVT_EXPLORERFILE:BTN_EXPLORERFILE_OPEN"); 128 public static final VclComboBox FilePicker_Path = combobox("SVT_HID_FILEDLG_AUTOCOMPLETEBOX"); 129 public static final VclDialog FileSave = dialog("SVT_HID_FILESAVE_DIALOG"); 130 public static final VclListBox FileSave_FileType = listbox("SVT_HID_FILESAVE_FILETYPE"); 131 public static final VclButton FileSave_Save = button("SVT_HID_FILESAVE_DOSAVE"); 132 public static final VclComboBox FileSave_Path = combobox("SVT_HID_FILESAVE_FILEURL"); 133 public static final VclButton SC_InputBar_FunctionWizard = button("SC_HID_INSWIN_CALC"); 134 public static final VclButton SC_InputBar_Sum = button("SC_HID_INSWIN_SUMME"); 135 public static final VclButton SC_InputBar_Function = button("SC_HID_INSWIN_FUNC"); 136 public static final VclToolBox SC_InputBar = toolbox("SC_HID_SC_INPUTWIN"); 137 public static final VclComboBox SC_InputBar_Position = combobox("SC_HID_INSWIN_POS"); 138 public static final VclWindow SC_InputBar_Input = window("SC_HID_INSWIN_INPUT"); 139 public static final VclTabPage EffectsPage = tabpage("CUI_HID_SVXPAGE_CHAR_EFFECTS"); 140 public static final VclListBox EffectsPage_Color = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_FONTCOLOR"); 141 public static final VclDialog AlienFormatDlg = dialog("SFX2_HID_WARNING_ALIENFORMAT"); 142 public static final VclWindow draw = window("SD_HID_SDGRAPHICVIEWSHELL"); 143 public static final VclTabPage SortPage = tabpage("SC_HID_SCPAGE_SORT_FIELDS"); 144 public static final VclListBox SortPage_By1 = listbox("sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT1"); 145 public static final VclButton SortPage_Ascending1 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP1"); 146 public static final VclButton SortPage_Descending1 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN1"); 147 public static final VclListBox SortPage_By2 = listbox("sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT2"); 148 public static final VclButton SortPage_Ascending2 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP2"); 149 public static final VclButton SortPage_Descending2 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN2"); 150 public static final VclListBox SortPage_By3 = listbox("sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT3"); 151 public static final VclButton SortPage_Ascending3 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP3"); 152 public static final VclButton SortPage_Descending3 = button("sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN3"); 153 public static final VclTabPage PDFGeneralPage = tabpage("HID_FILTER_PDF_OPTIONS"); 154 public static final VclButton StartCenter_CalcButton = button(".HelpId:StartCenter:CalcButton"); 155 public static final VclButton StartCenter_ImpressButton = button(".HelpId:StartCenter:ImpressButton"); 156 public static final VclButton StartCenter_WriterButton = button(".HelpId:StartCenter:WriterButton"); 157 public static final VclButton StartCenter_OpenButton = button(".HelpId:StartCenter:OpenButton"); 158 public static final VclButton StartCenter_DrawButton = button(".HelpId:StartCenter:DrawButton"); 159 public static final VclButton StartCenter_DBButton = button(".HelpId:StartCenter:DBButton"); 160 public static final VclButton StartCenter_MathButton = button(".HelpId:StartCenter:MathButton"); 161 public static final VclButton StartCenter_TemplateButton = button(".HelpId:StartCenter:TemplateButton"); 162 public static final VclButton StartCenter_TemplateRepository = button(".HelpId:StartCenter:TemplateRepository"); 163 public static final VclButton StartCenter_Extensions = button(".HelpId:StartCenter:Extensions"); 164 public static final VclButton StartCenter_Info = button(".HelpId:StartCenter:Info"); 165 public static final VclWindow SlideShow = window("SD_HID_SD_WIN_PRESENTATION"); 166 public static final VclDialog FindDlg = dialog(".uno:SearchDialog"); 167 public static final VclComboBox FindDlg_For = combobox("svx:ComboBox:RID_SVXDLG_SEARCH:ED_SEARCH"); 168 public static final VclComboBox FindDlg_ReplaceWith = combobox("svx:ComboBox:RID_SVXDLG_SEARCH:ED_REPLACE"); 169 public static final VclButton FindDlg_Find = button("svx:PushButton:RID_SVXDLG_SEARCH:BTN_SEARCH"); 170 public static final VclButton FindDlg_FindAll = button("svx:PushButton:RID_SVXDLG_SEARCH:BTN_SEARCH_ALL"); 171 public static final VclButton FindDlg_Replace = button("svx:PushButton:RID_SVXDLG_SEARCH:BTN_REPLACE"); 172 public static final VclButton FindDlg_ReplaceAll = button("svx:PushButton:RID_SVXDLG_SEARCH:BTN_REPLACE_ALL"); 173 public static final VclButton FindDlg_MatchCase = button("svx:CheckBox:RID_SVXDLG_SEARCH:CB_MATCH_CASE"); 174 public static final VclButton FindDlg_WholeWord = button("svx:CheckBox:RID_SVXDLG_SEARCH:CB_WHOLE_WORDS"); 175 public static final VclButton FindDlg_More = button("svx:MoreButton:RID_SVXDLG_SEARCH:BTN_MORE"); 176 public static final VclWindow chart = window("CHART2_HID_SCH_WIN_DOCUMENT"); 177 public static final VclDialog Chart_Wizard = dialog("CHART2_HID_SCH_CHART_AUTO_FORMAT"); 178 public static final VclDialog File_PrintDlg = dialog(".HelpID:vcl:PrintDialog:Dialog"); 179 public static final VclWindow ImpressOutline = window("SD_HID_SDOUTLINEVIEWSHELL"); 180 public static final VclWindow ImpressSlideSorter = window("SD_HID_SD_WIN_DOCUMENT"); 181 public static final VclWindow ImpressHandout = window(".uno:HandoutMode"); 182 public static final VclDialog InsertTable = dialog("cui:ModalDialog:RID_SVX_NEWTABLE_DLG"); 183 public static final VclToolBox Table_Toolbar = toolbox(".HelpId:tableobjectbar"); 184 public static final VclStatusBar StatusBar = statusbar("FWK_HID_STATUSBAR"); 185 public static final VclDialog writer_InsertTable = dialog(".uno:InsertTable"); 186 public static final VclWindow math_PreviewWindow = window("STARMATH_HID_SMA_WIN_DOCUMENT"); 187 public static final VclWindow math_EditWindow = window("STARMATH_HID_SMA_COMMAND_WIN_EDIT"); 188 public static final VclControl math_ElementsWindow = control("STARMATH_HID_SMA_OPERATOR_WIN"); 189 public static final VclEditBox SC_FunctionWizardDlg_MultiLineEdit = editbox("FORMULA_HID_FORMULA_FAP_FORMULA"); 190 public static final VclDialog SC_FunctionWizardDlg = dialog("FORMULA_HID_FORMULADLG_FORMULA"); 191 public static final VclListBox SC_FunctionWizardDlg_FunctionList = listbox("FORMULA_HID_FORMULA_LB_FUNCTION"); 192 public static final VclEditBox SC_FunctionWizardDlg_Edit1 = editbox("FORMULA_HID_FORMULA_FAP_EDIT1"); 193 public static final VclButton math_CatalogButton = button(".uno:SymbolCatalogue"); 194 public static final VclDialog math_SymbolsDlg = dialog("starmath:ModalDialog:RID_SYMBOLDIALOG"); 195 public static final VclListBox math_SymbolsDlgListbox = listbox("starmath:ListBox:RID_SYMBOLDIALOG:1"); 196 public static final VclButton math_SymbolsDlgEditButton = button("starmath:PushButton:RID_SYMBOLDIALOG:1"); 197 public static final VclButton math_SymbolsDlgInsertButton = button("starmath:PushButton:RID_SYMBOLDIALOG:2"); 198 public static final VclButton math_SymbolsDlgCloseButton = button("starmath:PushButton:RID_SYMBOLDIALOG:3"); 199 public static final VclDialog math_EditSymbolsDlg = dialog("starmath:ModalDialog:RID_SYMDEFINEDIALOG"); 200 public static final VclButton math_EditSymbolsDlgAdd = button("starmath:PushButton:RID_SYMDEFINEDIALOG:1"); 201 public static final VclButton math_EditSymbolsDlgModify = button("starmath:PushButton:RID_SYMDEFINEDIALOG:2"); 202 public static final VclButton math_EditSymbolsDlgDelete = button("starmath:PushButton:RID_SYMDEFINEDIALOG:3"); 203 public static final VclControl math_EditSymbolsDlgViewControl = control("STARMATH_HID_SMA_CONTROL_FONTCHAR_VIEW"); 204 public static final VclComboBox math_EditSymbolsDlgSymbol = combobox("starmath:ComboBox:RID_SYMDEFINEDIALOG:4"); 205 public static final VclListBox math_EditSymbolsDlgFont = listbox("starmath:ListBox:RID_SYMDEFINEDIALOG:1"); 206 public static final VclComboBox math_EditSymbolsDlgTypeface = combobox("starmath:ComboBox:RID_SYMDEFINEDIALOG:3"); 207 public static final VclDialog Wizards_AgendaDialog = dialog("WIZARDS_HID_AGWIZ"); 208 public static final VclButton Wizards_AgendaDialog_FinishButton = button("WIZARDS_HID_AGWIZ_CREATE"); 209 public static final VclTabPage MacroDialogsPage = tabpage("basctl:TabPage:RID_TP_DLGS"); 210 public static final VclDialog AboutDialog = dialog(".uno:About"); 211 public static final VclButton math_ElementsRelations = button("STARMATH_HID_SMA_RELATIONS_CAT"); 212 public static final VclButton math_ElementsRelationsNotEqual = button("STARMATH_HID_SMA_XNEQY"); 213 public static final VclButton math_ElementsUnaryBinary = button("STARMATH_HID_SMA_UNBINOPS_CAT"); 214 public static final VclButton math_ElementsUnaryBinaryPlus = button("STARMATH_HID_SMA_PLUSX"); 215 public static final VclControl MacroWarningOK = control("Ok"); 216 public static final VclTreeListBox OptionsDlgList = tree("CUI_HID_OFADLG_TREELISTBOX"); 217 // public static final VclListBox OptionsDlgList = listbox("CUI_HID_OFADLG_TREELISTBOX"); 218 public static final VclDialog OptionsDlg = dialog("CUI_HID_OFADLG_OPTIONS_TREE"); 219 public static final VclButton OptionsDlg_MacroSecurityButton = button("cui:PushButton:RID_SVXPAGE_INET_SECURITY:PB_SEC_MACROSEC"); 220 public static final VclControl MacroSecurityDlg = control("XMLSECURITY_HID_XMLSEC_TP_SECLEVEL"); 221 public static final VclButton MacroSecurityDlg_Low = button("xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_LOW"); 222 public static final VclWindow Basic_EditWindow = window("BASCTL_HID_BASICIDE_EDITORWINDOW"); 223 public static final VclDialog writer_ConvertTableToTextDlg = dialog(".uno:ConvertTableText"); 224 public static final VclWindow writer_Navigator = window("SW_HID_NAVIGATION_PI"); 225 public static final VclListBox writer_NavigatorList = listbox("SW_HID_NAVIGATOR_TREELIST"); 226 // public static final VclControl writer_FrameDlg = control("SW_HID_FRM_STD"); 227 public static final VclDialog writer_FrameDlg = dialog("SW_HID_FRM_STD"); 228 public static final VclField SC_NumberOfColumnsRowsToInsert = field("1502452023"); 229 public static final VclDialog SC_InsertColumnsRowsdialog = dialog("26166"); 230 public static final VclButton SC_InsertColumnsRowsAfterSelectColumn = button("1502446395"); 231 public static final VclButton WizardNextButton = button("SVT_HID_WIZARD_NEXT"); 232 public static final VclTabPage ChartRangeChooseTabPage = tabpage("chart2:TabPage:TP_RANGECHOOSER"); 233 public static final VclButton WizardBackButton = button("SVT_HID_WIZARD_PREVIOUS"); 234 public static final VclTabPage ChartTypeChooseTabPage = tabpage("CHART2_HID_DIAGRAM_TYPE"); 235 public static final VclControl ChartWizardRoadMap = control("CHART2_HID_SCH_WIZARD_ROADMAP"); 236 public static final VclButton DataPilotTableToExistPlaceRadioButton = button("2569093658"); 237 public static final VclEditBox DataPilotTableToExistPlaceEditBox = editbox("2569095195"); 238 public static final VclDialog CreateDataPilotTableDialog = dialog("26151"); 239 public static final VclControl DataPilotFieldSelect = control("59030"); 240 public static final VclButton DataPilotAutomaticallyUpdateCheckBox = button("3643262003"); 241 public static final VclButton DataPilotTableUpdateButton = button("3643265586"); 242 public static final VclButton SD_DateAndTimeFooterOnSlide = button("sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME"); 243 public static final VclButton SD_FixedDateAndTimeFooterOnSlide = button("sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_FIXED"); 244 public static final VclEditBox SD_FixedDateAndTimeOnSlideInput = editbox("sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_DATETIME_FIXED"); 245 public static final VclButton SD_FooterTextOnSlide = button("sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_FOOTER"); 246 public static final VclEditBox SD_FooterTextOnSlideInput = editbox("sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_FOOTER_FIXED"); 247 public static final VclButton SD_SlideNumAsFooterOnSlide = button("sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_SLIDENUMBER"); 248 public static final VclButton SD_ApplyToAllButtonOnSlideFooter = button("sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLYTOALL"); 249 public static final VclControl SD_SlidelistInNaviagtor = control("HID_SD_NAVIGATOR_TLB"); 250 public static final VclControl SD_HeaderAndFooterDialog = control("HID_SD_TABPAGE_HEADERFOOTER_SLIDE"); 251 public static final VclButton SD_ApplyButtonOnSlideFooter = button("sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLY"); 252 public static final VclButton SD_InsertPageButtonOnToolbar = button(".uno:InsertPage"); 253 public static final VclControl DataPilotPaneRowArea = control("59036"); 254 public static final VclEditBox DataPilotFieldDisplayNameEditBox = editbox("971868166"); 255 public static final VclButton DataPilotFieldShowItemWithoutDataCheckBox = button("971867238"); 256 public static final VclTabPage DataPilotFieldOptionFieldTabPageDialog = tabpage("26550"); 257 public static final VclTabPage DataPilotFieldOptionSubTotalsTabPageDialog = tabpage("25760"); 258 public static final VclTabPage DataPilotFieldOptionSortTabPageDialog = tabpage("25763"); 259 public static final VclButton DataPilotFieldOptionSubTotalsManuallyRadioButton = button("958956137"); 260 public static final VclButton DataPilotFieldOptionSortDescendingRadioButton = button("958972620"); 261 public static final VclControl DataPiloPaneDataArea = control("59038"); 262 public static final VclControl DataPilotColumnArea = control("59034"); 263 public static final VclButton SD_HeaderTextOnNotes = button("sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_HEADER"); 264 public static final VclEditBox SD_HeaderTextOnNotesInput = editbox("sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_HEADER_FIXED"); 265 public static final VclTabPage SD_HeaderAndFooterOnNotesTabPage = tabpage("SD_HID_SD_TABPAGE_HEADERFOOTER_NOTESHANDOUT"); 266 public static final VclButton SD_FooterNotShowOn1stSlide = button("sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_NOTONTITLE"); 267 public static final VclTabPage SortOptionsPage = tabpage("SC_HID_SCPAGE_SORT_OPTIONS"); 268 public static final VclButton SortOptionsPage_CaseSensitive = button("sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_CASESENSITIVE"); 269 public static final VclButton SortOptionsPage_CopyResultTo = button("sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_COPYRESULT"); 270 public static final VclEditBox SortOptionsPage_CopyResultToEdit = editbox("sc:Edit:RID_SCPAGE_SORT_OPTIONS:ED_OUTAREA"); 271 public static final VclDialog DefineNamesDlg = dialog(".uno:DefineName"); 272 public static final VclEditBox DefineNamesDlg_NameEdit = editbox("sc:Edit:RID_SCDLG_NAMES:ED_ASSIGN"); 273 public static final VclListBox SortOptionsPage_CopyResultToCellRange = listbox("sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_OUTAREA"); 274 public static final VclWindow SpreadSheetCells = window("58818"); 275 public static final VclButton DataPilotFieldOptionSubTotalsNeverRadioButton = button("958956135"); 276 public static final VclButton DataPilotFieldOptionSortAscendingRadioButton = button("958972619"); 277 public static final VclControl DataPilotPanePageArea = control("59032"); 278 public static final VclButton OnlyDisplayTopNItemCheckBox = button("1495745540"); 279 public static final VclField NumberOfItemShowInTopNEditBox = field("1495750661"); 280 public static final VclDialog FieldTopNSettingDialog = dialog("59039"); 281 public static final VclButton SD_AutoUpdateTimeFooter = button("sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_AUTOMATIC"); 282 public static final VclListBox SD_AutoUpdateTimeFooterType = listbox("sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_FORMAT"); 283 public static final VclButton DataPilotButton = button("59270"); 284 public static final VclDockingWin DataPilotPanel = dockingwin("3643260928"); 285 public static final VclListBox SCSubTotalsGroupByListBox = listbox("SC_HID_SC_SUBT_GROUP"); 286 public static final VclTreeListBox SCCalcSubTotalForColumns = tree("SC_HID_SC_SUBT_COLS"); 287 public static final VclTabPage SCSubTotalsGroup1Dialog = tabpage("SC_HID_SCPAGE_SUBT_GROUP1"); 288 public static final VclButton SCSubtotalsInsertPageBreakCheckBox = button("sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_PAGEBREAK"); 289 public static final VclButton SCSubtotalsCaseSensitiveCheckBox = button("sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_CASE"); 290 public static final VclButton SCSubtotalsPreSortToGroupCheckBox = button("sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_SORT"); 291 public static final VclButton SCSubtotalSortAscendingRadioButton = button("sc:RadioButton:RID_SCPAGE_SUBT_OPTIONS:BTN_ASCENDING"); 292 public static final VclButton SCSubtotalSortDescendingRadioButton = button("sc:RadioButton:RID_SCPAGE_SUBT_OPTIONS:BTN_DESCENDING"); 293 public static final VclButton SCSubtotalsIncludeFormatsCheckBox = button("sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_FORMATS"); 294 public static final VclButton SCSubtotalsCustomSortOrderCheckBox = button("sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_USERDEF"); 295 public static final VclListBox SCSubtotalsCustomSortListBox = listbox("sc:ListBox:RID_SCPAGE_SUBT_OPTIONS:LB_USERDEF"); 296 public static final VclListBox SC_ValidityCriteriaAllowList = listbox("sc:ListBox:TP_VALIDATION_VALUES:LB_ALLOW"); 297 public static final VclTabPage SC_ValidityCriteriaTabpage = tabpage("sc:TabPage:TP_VALIDATION_VALUES"); 298 public static final VclButton SC_ValidityAllowBlankCells = button("sc:CheckBox:TP_VALIDATION_VALUES:TSB_ALLOW_BLANKS"); 299 public static final VclButton SC_ValidityShowSelectionList = button("sc:CheckBox:TP_VALIDATION_VALUES:CB_SHOWLIST"); 300 public static final VclButton SC_ValiditySortEntriesAscending = button("sc:CheckBox:TP_VALIDATION_VALUES:CB_SORTLIST"); 301 public static final VclButton SC_ValiditySourcePicker = button("sc:ImageButton:TP_VALIDATION_VALUES:RB_VALIDITY_REF"); 302 public static final VclTabPage SC_ValidityErrorAlertTabPage = tabpage("sc:TabPage:TP_VALIDATION_ERROR"); 303 public static final VclButton SC_ValidityShowErrorMessage = button("sc:TriStateBox:TP_VALIDATION_ERROR:TSB_SHOW"); 304 public static final VclListBox SC_ValidityErrorAlertActionList = listbox("sc:ListBox:TP_VALIDATION_ERROR:LB_ACTION"); 305 public static final VclEditBox SC_ValidityErrorMessageTitle = editbox("sc:Edit:TP_VALIDATION_ERROR:EDT_TITLE"); 306 public static final VclEditBox SC_ValidityErrorMessage = editbox("sc:MultiLineEdit:TP_VALIDATION_ERROR:EDT_ERROR"); 307 public static final VclButton SC_ValidityErrorBrowseButton = button("sc:PushButton:TP_VALIDATION_ERROR:BTN_SEARCH"); 308 public static final VclTabPage SCSubTotalsOptionsTabPage = tabpage("SC_HID_SCPAGE_SUBT_OPTIONS"); 309 public static final VclButton SCDeleteCellsDeleteRowsRadioButton = button("sc:RadioButton:RID_SCDLG_DELCELL:BTN_DELROWS"); 310 public static final VclDialog SCDeleteCellsDialog = dialog(".uno:DeleteCell"); 311 public static final VclTabPage SCSubTotalsGroup2Dialog = tabpage("SC_HID_SCPAGE_SUBT_GROUP2"); 312 public static final VclTabPage SCSubTotalsGroup3Dialog = tabpage("SC_HID_SCPAGE_SUBT_GROUP3"); 313 public static final VclListBox SCCalcSubTotolsFuncionList = listbox("SC_HID_SC_SUBT_FUNC"); 314 public static final VclEditBox SC_ValiditySourceInput = editbox("sc:Edit:TP_VALIDATION_VALUES:EDT_MIN"); 315 public static final VclListBox SC_ValidityDecimalCompareOperator = listbox("sc:ListBox:TP_VALIDATION_VALUES:LB_VALUE"); 316 public static final VclEditBox SC_ValidityMaxValueInput = editbox("sc:Edit:TP_VALIDATION_VALUES:EDT_MAX"); 317 public static final VclEditBox SC_ValidityEntries = editbox("sc:MultiLineEdit:TP_VALIDATION_VALUES:EDT_LIST"); 318 public static final VclTabPage SC_ValidityInputHelpTabPage = tabpage("sc:TabPage:TP_VALIDATION_INPUTHELP"); 319 public static final VclButton SC_ValidityInputHelpCheckbox = button("sc:TriStateBox:TP_VALIDATION_INPUTHELP:TSB_HELP"); 320 public static final VclEditBox SC_ValidityInputHelpTitle = editbox("sc:Edit:TP_VALIDATION_INPUTHELP:EDT_TITLE"); 321 public static final VclEditBox SC_ValidityHelpMessage = editbox("sc:MultiLineEdit:TP_VALIDATION_INPUTHELP:EDT_INPUTHELP"); 322 public static final VclButton OptionsDlg_SortListsTabCopy = button("sc:PushButton:RID_SCPAGE_USERLISTS:BTN_COPY"); 323 public static final VclButton SortOptionsPage_RangeContainsColumnLabels = button("sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_LABEL"); 324 public static final VclButton SortOptionsPage_CustomSortOrder = button("sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_SORT_USER"); 325 public static final VclButton SortOptionsPage_IncludeFormats = button("sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_FORMATS"); 326 public static final VclListBox SortOptionsPage_CustomSortOrderList = listbox("sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_SORT_USER"); 327 public static final VclButton SortOptionsPage_TopToBottom = button("sc:RadioButton:RID_SCPAGE_SORT_OPTIONS:BTN_TOP_DOWN"); 328 public static final VclButton SortOptionsPage_LeftToRight = button("sc:RadioButton:RID_SCPAGE_SORT_OPTIONS:BTN_LEFT_RIGHT"); 329 public static final VclButton OptionsDlg_SortListsTabNew = button("sc:PushButton:RID_SCPAGE_USERLISTS:BTN_NEW"); 330 public static final VclButton OptionsDlg_SortListsTabAdd = button("sc:PushButton:RID_SCPAGE_USERLISTS:BTN_ADD"); 331 public static final VclTabPage FormatCellsDlg_NumbersPage = tabpage("CUI_HID_NUMBERFORMAT"); 332 public static final VclListBox FormatCellsDlg_NumbersPageCategory = listbox("cui:ListBox:RID_SVXPAGE_NUMBERFORMAT:LB_CATEGORY"); 333 public static final VclListBox FormatCellsDlg_NumbersPageCurrencyFormat = listbox("cui:ListBox:RID_SVXPAGE_NUMBERFORMAT:LB_CURRENCY"); 334 public static final VclTabPage DataPilotFieldOptionFiledSubtotalsPage = tabpage("25762"); 335 public static final VclControl SC_DataPilotOptionSubtotalFunctionList = control("59029"); 336 public static final VclDialog PresentationWizard = dialog("SD_HID_SD_AUTOPILOT_PAGE1"); 337 public static final VclDialog FillSeriesDlg = dialog(".uno:FillSeries"); 338 public static final VclDialog SortWarningDlg = dialog("sc:ModalDialog:RID_SCDLG_SORT_WARNING"); 339 public static final VclButton SortWarningDlg_Extend = button("sc:PushButton:RID_SCDLG_SORT_WARNING:BTN_EXTSORT"); 340 public static final VclButton SortWarningDlg_Current = button("sc:PushButton:RID_SCDLG_SORT_WARNING:BTN_CURSORT"); 341 // Spreadsheet: "Sheet" dialog 342 public static final VclDialog SCInsertSheetDlg = dialog("sc:ModalDialog:RID_SCDLG_INSERT_TABLE"); 343 public static final VclButton SCBeforeCurrentSheet = button("sc:RadioButton:RID_SCDLG_INSERT_TABLE:RB_BEFORE"); 344 public static final VclButton SCAfterCurrentSheet = button("sc:RadioButton:RID_SCDLG_INSERT_TABLE:RB_BEHIND"); 345 public static final VclButton SCNewSheet = button("sc:RadioButton:RID_SCDLG_INSERT_TABLE:RB_NEW"); 346 public static final VclButton SCNewSheetFromFile = button("sc:RadioButton:RID_SCDLG_INSERT_TABLE:RB_FROMFILE"); 347 public static final VclEditBox SCNewSheetName = editbox("sc:Edit:RID_SCDLG_INSERT_TABLE:ED_TABNAME"); 348 public static final VclField SCSheetNumber = field("sc:NumericField:RID_SCDLG_INSERT_TABLE:NF_COUNT"); 349 public static final VclListBox SCFromFileSheetList = listbox("sc:MultiListBox:RID_SCDLG_INSERT_TABLE:LB_TABLES"); 350 public static final VclButton SCFromFileBrowse = button("sc:PushButton:RID_SCDLG_INSERT_TABLE:BTN_BROWSE"); 351 public static final VclButton SCFromFileLink = button("sc:CheckBox:RID_SCDLG_INSERT_TABLE:CB_LINK"); 352 // Spreadsheet: "Select Sheets" dialog 353 public static final VclDialog SCSelectSheetsDlg = dialog(".uno:SelectTables"); 354 public static final VclListBox SCSheetsList = listbox("SC_HID_SELECTTABLES"); 355 public static final VclWindow SD_NavigatorDlg = window("SD_HID_SD_NAVIGATOR"); 356 public static final VclTabPage SD_HeaderAndFooterDlgSlideTab = tabpage("SD_HID_SD_TABPAGE_HEADERFOOTER_SLIDE"); 357 public static final VclButton SC_FunctionWizardDlg_Next = button("formula:PushButton:RID_FORMULADLG_FORMULA:BTN_FORWARD"); 358 public static final VclTreeListBox OptionsDlg_PathTabTree = tree("CUI_HID_OPTPATH_CTL_PATH"); 359 public static final VclTreeListBox OptionsDlg_MicorOfficeTree = tree("CUI_HID_OFAPAGE_MSFLTR2_CLB"); 360 public static final VclTabPage Bullet = tabpage("CUI_HID_SVXPAGE_PICK_BULLET"); 361 // Writer: "Spell check" dialog 362 public static final VclDialog spellcheck = dialog("CUI_HID_SPELLCHECK"); 363 public static final VclListBox LanguageList = listbox("cui:ListBox:RID_SVXDLG_SPELLCHECK:LB_LANGUAGE"); 364 public static final VclEditBox MisspelledWords = editbox("cui:MultiLineEdit:RID_SVXDLG_SPELLCHECK:ED_NEWWORD"); 365 public static final VclListBox SuggestionList = listbox("cui:ListBox:RID_SVXDLG_SPELLCHECK:LB_SUGGESTION"); 366 public static final VclButton IgnoreOnce = button("CUI_HID_SPLDLG_BUTTON_IGNORE"); 367 public static final VclButton IgnoreAll = button("CUI_HID_SPLDLG_BUTTON_IGNOREALL"); 368 public static final VclButton Add = button("cui:MenuButton:RID_SVXDLG_SPELLCHECK:MB_ADDTODICT"); 369 public static final VclButton Change = button("CUI_HID_SPLDLG_BUTTON_CHANGE"); 370 public static final VclButton ChangeAll = button("CUI_HID_SPLDLG_BUTTON_CHANGEALL"); 371 public static final VclButton AutoCorrect = button("cui:PushButton:RID_SVXDLG_SPELLCHECK:PB_AUTOCORR"); 372 public static final VclButton Close = button("CUI_HID_SPLDLG_BUTTON_CLOSE"); 373 374 // Presentation:"Table Property" dialog 375 public static final VclButton impress_WizardDlg_Next = button("sd:PushButton:DLG_ASS:BUT_NEXT"); 376 public static final VclListBox Area_Fill_Color = listbox("cui:ListBox:RID_SVXPAGE_AREA:LB_COLOR"); 377 public static final VclTabPage Area_Area_page = tabpage("CUI_HID_AREA_AREA"); 378 public static final VclListBox Area_Fill_Type = listbox("cui:ListBox:RID_SVXPAGE_AREA:LB_AREA_TYPE"); 379 public static final VclListBox Area_Fill_Gradient = listbox("cui:ListBox:RID_SVXPAGE_AREA:LB_GRADIENT"); 380 public static final VclListBox Area_Fill_Hatching = listbox("cui:ListBox:RID_SVXPAGE_AREA:LB_HATCHING"); 381 public static final VclListBox Area_Fill_Bitmap = listbox("cui:ListBox:RID_SVXPAGE_AREA:LB_BITMAP"); 382 public static final VclTabPage Area_Border_page = tabpage("CUI_HID_BORDER"); 383 public static final VclTabPage Area_Font_page = tabpage("CUI_HID_SVXPAGE_CHAR_NAME"); 384 public static final VclComboBox Area_Font_Western_Font_Name = combobox("cui:ComboBox:RID_SVXPAGE_CHAR_NAME:LB_WEST_NAME"); 385 public static final VclComboBox Area_Font_Western_Style = combobox("cui:ComboBox:RID_SVXPAGE_CHAR_NAME:LB_WEST_STYLE"); 386 public static final VclListBox Area_Font_Western_Size = listbox("cui:MetricBox:RID_SVXPAGE_CHAR_NAME:LB_WEST_SIZE"); 387 public static final VclListBox Area_Font_Western_Lang = listbox("cui:ListBox:RID_SVXPAGE_CHAR_NAME:LB_WEST_LANG"); 388 public static final VclComboBox Area_Font_Eastern_Font_Name = combobox("cui:ComboBox:RID_SVXPAGE_CHAR_NAME:LB_EAST_NAME"); 389 public static final VclComboBox Area_Font_Eastern_Style = combobox("cui:ComboBox:RID_SVXPAGE_CHAR_NAME:LB_EAST_STYLE"); 390 public static final VclListBox Area_Font_Eastern_Size = listbox("cui:MetricBox:RID_SVXPAGE_CHAR_NAME:LB_EAST_SIZE"); 391 public static final VclListBox Area_Font_Eastern_Lang = listbox("cui:ListBox:RID_SVXPAGE_CHAR_NAME:LB_EAST_LANG"); 392 public static final VclListBox EffectsPage_Relief = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_RELIEF"); 393 public static final VclButton EffectsPage_Outline = button("cui:TriStateBox:RID_SVXPAGE_CHAR_EFFECTS:CB_OUTLINE"); 394 public static final VclButton EffectsPage_Shadow = button("cui:TriStateBox:RID_SVXPAGE_CHAR_EFFECTS:CB_SHADOW"); 395 public static final VclListBox EffectsPage_Overline = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_OVERLINE"); 396 public static final VclListBox EffectsPage_Overline_Color = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_OVERLINE_COLOR"); 397 public static final VclListBox EffectsPage_Strikeout = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_STRIKEOUT"); 398 public static final VclListBox EffectsPage_Underline = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_UNDERLINE"); 399 public static final VclListBox EffectsPage_Underline_Color = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_UNDERLINE_COLOR"); 400 public static final VclButton EffectsPage_InvidiualWords = button("cui:CheckBox:RID_SVXPAGE_CHAR_EFFECTS:CB_INDIVIDUALWORDS"); 401 public static final VclListBox EffectsPage_Emphasis = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_EMPHASIS"); 402 public static final VclListBox EffectsPage_Position = listbox("cui:ListBox:RID_SVXPAGE_CHAR_EFFECTS:LB_POSITION"); 403 public static final VclControl Area_Border_Presets = control("CUI_HID_BORDER_CTL_PRESETS"); 404 public static final VclListBox Area_Border_LineStyle = listbox("cui:ListBox:RID_SVXPAGE_BORDER:LB_LINESTYLE"); 405 public static final VclListBox Area_Border_LineColor = listbox("cui:ListBox:RID_SVXPAGE_BORDER:LB_LINECOLOR"); 406 public static final VclField Area_Border_Mf_Left = field("cui:MetricField:RID_SVXPAGE_BORDER:MF_LEFT"); 407 public static final VclField Area_Border_Mf_Right = field("cui:MetricField:RID_SVXPAGE_BORDER:MF_RIGHT"); 408 public static final VclField Area_Border_Mf_Top = field("cui:MetricField:RID_SVXPAGE_BORDER:MF_TOP"); 409 public static final VclField Area_Border_Mf_Bottom = field("cui:MetricField:RID_SVXPAGE_BORDER:MF_BOTTOM"); 410 public static final VclButton Area_Border_Sync = button("cui:CheckBox:RID_SVXPAGE_BORDER:CB_SYNC"); 411 // Presentation:"Textbox Property" dialog 412 public static final VclToolBox Textbox_Toolbar = toolbox(".HelpId:textbar"); 413 public static final VclButton SD_InsertTextboxButtonOnToolbar = button(".uno:Text"); 414 public static final VclButton SD_FormatArea = button(".uno:FormatArea"); 415 416 //Writer:Style and Formatting List 417 public static final VclControl StyleAndFormattingList = control("SFX2_HID_TEMPLATE_FMT"); 418 public static final VclListBox StyleFilterList = listbox("SFX2_HID_TEMPLATE_FILTER"); 419 public static final VclDockingWin StyleAndFormattingDlg = dockingwin(".uno:DesignerDialog"); 420 421 //Writer:Insert Index and Table Dialog 422 public static final VclDialog InsertIndexDlg = dialog("SW_HID_TP_TOX_SELECT"); 423 424 //Writer:Split Cell Dialog 425 public static final VclDialog Writer_SplitCellDlg = dialog("cui:ModalDialog:RID_SVX_SPLITCELLDLG"); 426 427 //Writer:Insert Rows/Columns Dialog 428 public static final VclDialog Writer_InsertRowsDlg = dialog(".uno:InsertRowDialog"); 429 public static final VclField Writer_InsertNum = field("cui:NumericField:DLG_INS_ROW_COL:ED_COUNT"); 430 public static final VclButton Writer_InsertBefore = button("cui:RadioButton:DLG_INS_ROW_COL:CB_POS_BEFORE"); 431 public static final VclButton Writer_InsertAfter = button("cui:RadioButton:DLG_INS_ROW_COL:CB_POS_AFTER"); 432 public static final VclDialog Writer_InsertColumnsDlg = dialog(".uno:InsertColumnDialog"); 433 434 //Writer:Alignment TabPage of Paragraph format 435 public static final VclTabPage AlignmentTabPage = tabpage("CUI_HID_FORMAT_PARAGRAPH_ALIGN"); 436 public static final VclButton Left = button("cui:RadioButton:RID_SVXPAGE_ALIGN_PARAGRAPH:BTN_LEFTALIGN"); 437 public static final VclButton Right = button("cui:RadioButton:RID_SVXPAGE_ALIGN_PARAGRAPH:BTN_RIGHTALIGN"); 438 public static final VclButton Center = button("cui:RadioButton:RID_SVXPAGE_ALIGN_PARAGRAPH:BTN_CENTERALIGN"); 439 public static final VclButton Justified = button("cui:RadioButton:RID_SVXPAGE_ALIGN_PARAGRAPH:BTN_JUSTIFYALIGN"); 440 public static final VclListBox Lastline = listbox("cui:ListBox:RID_SVXPAGE_ALIGN_PARAGRAPH:LB_LASTLINE"); 441 public static final VclButton ExpandSingleWord = button("cui:CheckBox:RID_SVXPAGE_ALIGN_PARAGRAPH:CB_EXPAND"); 442 public static final VclButton SnapToTextGrid = button("cui:CheckBox:RID_SVXPAGE_ALIGN_PARAGRAPH:CB_SNAP"); 443 public static final VclListBox VerticalAlignment = listbox("cui:ListBox:RID_SVXPAGE_ALIGN_PARAGRAPH:LB_VERTALIGN"); 444 445 //Writer: Insert Object Dialog 446 public static final VclDialog InsertObject = dialog(".uno:InsertObject"); 447 public static final VclButton NewObject = button("cui:RadioButton:MD_INSERT_OLEOBJECT:RB_NEW_OBJECT"); 448 public static final VclButton ObjectFromFile = button("cui:RadioButton:MD_INSERT_OLEOBJECT:RB_OBJECT_FROMFILE"); 449 public static final VclListBox ObjectType = listbox("cui:ListBox:MD_INSERT_OLEOBJECT:LB_OBJECTTYPE"); 450 public static final VclEditBox ObjectFilePath = editbox("cui:Edit:MD_INSERT_OLEOBJECT:ED_FILEPATH"); 451 public static final VclButton ObjectFileSearch = button("cui:PushButton:MD_INSERT_OLEOBJECT:BTN_FILEPATH"); 452 public static final VclButton ObjectFileLink = button("cui:CheckBox:MD_INSERT_OLEOBJECT:CB_FILELINK"); 453 public static final VclField NumberofCol = field("cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_COLUMNS"); 454 455 //Presentation: Insert Table 456 public static final VclField NumberofRow = field("cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_ROWS"); 457 public static final VclDialog InsertSlideObjects = dialog("SD_HID_DLG_INSERT_PAGES_OBJS"); 458 459 //Presentation: Slide Transition Settings 460 public static final VclListBox ImpressSlideTransitions = listbox("SD_HID_SD_SLIDETRANSITIONPANE_LB_SLIDE_TRANSITIONS"); 461 public static final VclListBox SlideShowSpeed = listbox("SD_HID_SD_SLIDETRANSITIONPANE_LB_SPEED"); 462 public static final VclButton SlideAutoAfter = button("SD_HID_SD_SLIDETRANSITIONPANE_RB_ADVANCE_AUTO"); 463 public static final VclButton ApplyToAllSlides = button("SD_HID_SD_SLIDETRANSITIONPANE_PB_APPLY_TO_ALL"); 464 465 466 467 468 } 469