1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 29 // =========================================================================== 30interface TableOLEObject 31[ 32 uuid ( "C04AA960-137B-11D3-B25B-006097DA68F3" ) 33] 34{ 35 SID_ACTIVE_OBJ_NAME [ StateMethod = GetObjectState; ] 36 SID_OLE_OBJECT [ StateMethod = GetObjectState; ] 37 SID_OLE_ACTIVATE [ ExecMethod = ExecuteObject; ] 38 SID_OLE_DEACTIVATE [ ExecMethod = ExecuteObject; ] 39 SID_OLE_SELECT [ ExecMethod = ExecuteObject; ] // api: 40 SID_OBJECT_LEFT [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 41 SID_OBJECT_TOP [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 42 SID_OBJECT_WIDTH [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 43 SID_OBJECT_HEIGHT [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 44} 45 46 //============================================================================ 47interface Tables 48[ 49 uuid = "5692EFC0-355B-11cf-89CB-008029E4B0B1" ; 50] 51{ 52 FID_TAB_SELECTALL [ ExecMethod = Execute; StateMethod = GetState; ] 53 FID_TAB_DESELECTALL [ ExecMethod = Execute; StateMethod = GetState; ] 54 FID_TAB_MENU_RENAME [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 55 FID_TAB_APPEND [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 56 FID_INS_TABLE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 57 FID_INS_TABLE_EXT [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 58 FID_TABLE_HIDE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 59 FID_TABLE_SHOW [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 60 SID_SELECT_TABLES [ ExecMethod = Execute; StateMethod = GetState; ] 61 FID_TAB_MENU_SET_TAB_BG_COLOR [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 62 FID_TAB_EVENTS [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 63} 64 65 // =========================================================================== 66interface BaseSelection 67[ 68 uuid = "02ABE040-137B-11D3-B25B-006097DA68F3" ; 69] 70{ 71 // Einfuegen von Objekten { 72 73 SID_INSERT_GRAPHIC [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 74 SID_INSERT_FRAME [ ExecMethod = ExecDraw; StateMethod = GetDrawState; Export = FALSE; ] 75 SID_INSERT_OBJECT [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 76 SID_INSERT_PLUGIN [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 77 SID_INSERT_SOUND [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 78 SID_INSERT_VIDEO [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 79 SID_INSERT_FLOATINGFRAME [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 80 SID_INSERT_AVMEDIA [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 81 82 SID_IMAP [ ExecMethod = ExecImageMap; StateMethod = GetImageMapState; ] 83 SID_IMAP_EXEC [ ExecMethod = ExecImageMap; StateMethod = GetImageMapState; ] 84 85 SfxVoidItem InsertObjectChart SID_INSERT_DIAGRAM 86 ( 87 SfxBoolItem ColHeaders SID_ATTR_COLHEADERS, 88 SfxBoolItem RowHeaders SID_ATTR_ROWHEADERS, 89 SfxBoolItem InNewTable FN_PARAM_4, 90 SfxStringItem RangeList FN_PARAM_5 91 ) 92 [ 93 ExecMethod = ExecDrawIns ; 94 StateMethod = GetDrawInsState ; 95 Cachable , Asynchron ; 96 ] 97 98 SID_PIVOT_CREATE [ ExecMethod = ExecuteSbx; StateMethod = GetSbxState; ] 99 SID_RANGE_OFFSET [ ExecMethod = ExecuteSbx; ] 100 SID_RANGE_REGION [ StateMethod = GetSbxState; ] 101 102 103 SID_INSERT_SMATH [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 104 SID_GALLERY_FORMATS [ ExecMethod = ExecGallery; StateMethod = GetGalleryState; ] 105 SID_GALLERY [ ExecMethod = ExecChildWin; StateMethod = GetChildWinState; ] 106 SID_AVMEDIA_PLAYER [ ExecMethod = ExecChildWin; StateMethod = GetChildWinState; ] 107 SID_DRAW_NOTEEDIT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 108 SID_OBJECTRESIZE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 109 110 //SID_CHOOSE_CONTROLS [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 111 SID_OBJECT_SELECT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 112 SID_INSERT_DRAW [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 113 SID_FONTWORK_GALLERY_FLOATER [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 114 SID_DRAWTBX_CS_BASIC [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 115 SID_DRAWTBX_CS_SYMBOL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 116 SID_DRAWTBX_CS_ARROW [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 117 SID_DRAWTBX_CS_FLOWCHART [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 118 SID_DRAWTBX_CS_CALLOUT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 119 SID_DRAWTBX_CS_STAR [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 120 SID_DRAW_CS_ID [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 121 122 SID_FM_CREATE_CONTROL [ ExecMethod = ExecDraw ; ] 123 SID_LINKS [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 124 SID_DRAW_CHART [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 125 SID_FM_CREATE_FIELDCONTROL [ ExecMethod = ExecDrawIns ; ] 126 127 // } Einfuegen von Objekten 128 129} 130 131interface TableEditView 132[ 133 uuid ( "16D7E4A0-2FB4-11CF-89CB-008029E4B0B1" ) 134] 135{ 136 SbxObject SearchSettings 137 [ 138 Readonly ; 139 ] 140 141 SbxObject Table 142 [ 143 ] 144 SbxObject Range 145 [ 146 Export = FALSE ; 147 ] 148 149 FID_TOGGLEINPUTLINE [ ExecMethod = Execute; StateMethod = GetState; ] 150 SID_DEFINE_PRINTAREA [ ExecMethod = Execute; StateMethod = GetState; ] 151 SID_ADD_PRINTAREA [ ExecMethod = Execute; StateMethod = GetState; ] 152 FID_ADJUST_PRINTZOOM [ ExecMethod = Execute; StateMethod = GetState; ] 153 154 SID_CURRENTDOC [ ExecMethod = Execute; StateMethod = GetState; ] 155 SID_WINDOW_SPLIT [ ExecMethod = Execute; StateMethod = GetState; ] 156 SID_WINDOW_FIX [ ExecMethod = Execute; StateMethod = GetState; ] 157 SID_SAVEDOC 158 [ 159 ExecMethod = ExecuteSave ; 160 StateMethod = GetSaveState ; 161 Export = FALSE ; 162 ] 163 SID_SAVEASDOC 164 [ 165 ExecMethod = ExecuteSave ; 166 StateMethod = GetSaveState ; 167 Export = FALSE ; 168 ] 169 // hat zwar ein SW im Namen, wird aber im Calc auch gebraucht 170 SID_CREATE_SW_DRAWVIEW [ ExecMethod = Execute; ] 171 SID_ATTR_ZOOM [ ExecMethod = Execute; StateMethod = GetState; ] 172 SID_ATTR_ZOOMSLIDER [ ExecMethod = Execute; StateMethod = GetState; ] 173 FID_INSERT_FILE [ ExecMethod = Execute; StateMethod = GetState; ] 174 // Save / SaveAs ueberladen, um die Eingabe abzuschliessen 175 176 FID_SCALE [ ExecMethod = Execute; StateMethod = GetState; ] 177 FID_FUNCTION_BOX [ ExecMethod = Execute; StateMethod = GetState; ] 178 FID_CHG_SHOW [ ExecMethod = Execute; StateMethod = GetState; ] 179 WID_SIMPLE_REF [ ExecMethod = Execute; StateMethod = NoState; ] 180 FID_CHG_ACCEPT [ ExecMethod = Execute; StateMethod = GetState; ] 181 FID_CHG_COMMENT [ ExecMethod = Execute; StateMethod = GetState; ] 182 183 FID_SCALESTATUS [ ExecMethod = Execute; StateMethod = GetState; ] 184 FID_TOGGLESYNTAX [ ExecMethod = Execute; StateMethod = GetState; ] 185 FID_TOGGLEHEADERS [ ExecMethod = Execute; StateMethod = GetState; ] 186 FID_TOGGLEFORMULA [ ExecMethod = Execute; StateMethod = GetState; ] 187 FID_NORMALVIEWMODE [ ExecMethod = Execute; StateMethod = GetState; ] 188 FID_PAGEBREAKMODE [ ExecMethod = Execute; StateMethod = GetState; ] 189 SID_REPAINT [ ExecMethod = Execute; StateMethod = GetState; ] 190 SID_CURRENTCELL [ ExecMethod = Execute; StateMethod = GetState; ] 191 SID_CURRENTOBJECT [ ExecMethod = Execute; StateMethod = GetState; ] 192 SID_JUMPTOMARK [ ExecMethod = Execute; StateMethod = NoState; ] // status(final|play) 193 194 SID_PRINTPREVIEW [ ExecMethod = Execute; StateMethod = GetState; ] 195 196 197 // Suchen/Eersetzen: 198 FID_SEARCH_NOW [ ExecMethod = ExecSearch; StateMethod = NoState; ] 199 SID_SEARCH_ITEM [ ExecMethod = ExecSearch; StateMethod = GetState; ] 200 SID_SEARCH_OPTIONS [ ExecMethod = NoExec; StateMethod = GetState; ] 201 // Suchen/Ersetzen von Basic aus: 202 FID_SEARCH [ ExecMethod = ExecSearch; ] 203 FID_REPLACE [ ExecMethod = ExecSearch; ] 204 FID_SEARCH_ALL [ ExecMethod = ExecSearch; ] 205 FID_REPLACE_ALL [ ExecMethod = ExecSearch; ] 206 FID_REPEAT_SEARCH [ ExecMethod = ExecSearch; ] 207 208 SID_CURRENTTAB [ ExecMethod = Execute; StateMethod = GetState; ] 209 210 // view options for drawing layer are needed here because they 211 // can be set without a drawing object selected (#75361#) 212 SID_GRID_VISIBLE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; Export = FALSE; ] 213 SID_GRID_USE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; Export = FALSE; ] 214 SID_HELPLINES_MOVE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; Export = FALSE; ] 215 216 SID_GETUNDOSTRINGS [ StateMethod = GetUndoState; ] 217 SID_GETREDOSTRINGS [ StateMethod = GetUndoState; ] 218 SID_UNDO [ ExecMethod = ExecuteUndo; StateMethod = GetUndoState; ] 219 SID_REDO [ ExecMethod = ExecuteUndo; StateMethod = GetUndoState; ] 220 221 SID_OPT_LOCALE_CHANGED [ ExecMethod = Execute; ] 222 223 SID_READONLY_MODE [ StateMethod = GetState; ] 224} 225 226 227 // 228 // Pivot-Krempel 229 // 230 231interface DataPilotTables 232[ 233 uuid ( "86DB0400-4EE6-11d1-89CB-008029E4B0B1" ) 234] 235{ 236} 237 238interface DataPilotTable 239[ 240 uuid ( "E8DBA2C1-4C5E-11d1-89CB-008029E4B0B1" ) 241] 242{ 243 SbxObject DataPilotFields SID_PIVOT_FIELDS 244 [ HelpText = "" ; ] 245} 246 247interface DataPilotFields 248[ 249 uuid ( "BA09AF20-4C70-11d1-89CB-008029E4B0B1" ) 250] 251{ 252} 253 254interface DataPilotField 255[ 256 uuid ( "D2C2C540-4C8B-11d1-89CB-008029E4B0B1" ) 257] 258{ 259 String FieldName SID_PFIELD_NAME 260 [ HelpText = "" ; ] 261 UINT16 Orientation SID_PFIELD_ORIENTATION 262 [ HelpText = "" ; ] 263 UINT16 Function SID_PFIELD_FUNCTION 264 [ HelpText = "" ; ] 265} 266 267 // =========================================================================== 268shell ScTabViewShell 269{ 270 import TableSelection "ActiveDocument.ActiveTable"; 271 import TableOLEObject "SelectedObject"; 272 import Tables "ActiveDocument.Tables"; 273 import BaseSelection; 274 import TableEditView[Automation]; 275// import SearchSettings; 276 277 278 SID_STATUS_PAGESTYLE [ ExecMethod = Execute; StateMethod = GetState; ] 279 SID_TBXCTL_INSERT [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ] 280 SID_TBXCTL_INSCELLS [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ] 281 SID_TBXCTL_INSOBJ [ ExecMethod = ExecTbx; StateMethod = GetTbxState; ] 282 283} 284 285 286