1/* 2 * This file is part of the LibreOffice project. 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 * 8 * This file incorporates work covered by the following license notice: 9 * 10 * Licensed to the Apache Software Foundation (ASF) under one or more 11 * contributor license agreements. See the NOTICE file distributed 12 * with this work for additional information regarding copyright 13 * ownership. The ASF licenses this file to you under the Apache 14 * License, Version 2.0 (the "License"); you may not use this file 15 * except in compliance with the License. You may obtain a copy of 16 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 17 */ 18 19 20 21interface TableOLEObject 22{ 23 SID_ACTIVE_OBJ_NAME [ StateMethod = GetObjectState; ] 24 SID_OLE_ACTIVATE [ ExecMethod = ExecuteObject; ] 25 SID_OLE_DEACTIVATE [ ExecMethod = ExecuteObject; ] 26 SID_OLE_SELECT [ ExecMethod = ExecuteObject; ] // api: 27 SID_OBJECT_LEFT [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 28 SID_OBJECT_TOP [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 29 SID_OBJECT_WIDTH [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 30 SID_OBJECT_HEIGHT [ ExecMethod = ExecuteObject; StateMethod = GetObjectState; ] 31} 32 33 34interface Tables 35{ 36 FID_TAB_SELECTALL [ ExecMethod = Execute; StateMethod = GetState; ] 37 FID_TAB_DESELECTALL [ ExecMethod = Execute; StateMethod = GetState; ] 38 FID_TAB_MENU_RENAME [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 39 FID_TAB_APPEND [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 40 FID_INS_TABLE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 41 FID_INS_TABLE_EXT [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 42 FID_TABLE_HIDE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 43 FID_TABLE_SHOW [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 44 SID_SELECT_TABLES [ ExecMethod = Execute; StateMethod = GetState; ] 45 FID_TAB_MENU_SET_TAB_BG_COLOR [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 46 FID_TAB_EVENTS [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] 47} 48 49 50interface BaseSelection 51{ 52 // insert objects { 53 54 SID_INSERT_GRAPHIC [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 55 SID_INSERT_FRAME [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 56 SID_INSERT_OBJECT [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 57 SID_INSERT_FLOATINGFRAME [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 58 SID_INSERT_AVMEDIA [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 59 SID_INSERT_SIGNATURELINE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 60 SID_EDIT_SIGNATURELINE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 61 SID_SIGN_SIGNATURELINE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 62 63 SID_INSERT_QRCODE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 64 SID_EDIT_QRCODE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 65 SID_ADDITIONS_DIALOG [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 66 67 SID_IMAP [ ExecMethod = ExecImageMap; StateMethod = GetImageMapState; ] 68 SID_IMAP_EXEC [ ExecMethod = ExecImageMap; StateMethod = GetImageMapState; ] 69 70 SfxVoidItem InsertObjectChart SID_INSERT_DIAGRAM 71 ( 72 SfxBoolItem InNewTable FN_PARAM_4, 73 SfxStringItem RangeList FN_PARAM_5 74 ) 75 [ 76 ExecMethod = ExecDrawIns ; 77 StateMethod = GetDrawInsState ; 78 Asynchron ; 79 ] 80 81 SID_INSERT_SMATH [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 82 SID_GALLERY_FORMATS [ ExecMethod = ExecGallery; ] 83 SID_GALLERY [ ExecMethod = ExecChildWin; ] 84 SID_AVMEDIA_PLAYER [ ExecMethod = ExecChildWin; ] 85 SID_DRAW_NOTEEDIT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 86 SID_OBJECTRESIZE [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 87 88 SID_OBJECT_SELECT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 89 SID_DRAW_LINE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 90 SID_DRAW_XLINE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 91 SID_LINE_ARROW_END [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 92 SID_LINE_ARROW_CIRCLE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 93 SID_LINE_ARROW_SQUARE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 94 SID_LINE_ARROW_START [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 95 SID_LINE_CIRCLE_ARROW [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 96 SID_LINE_SQUARE_ARROW [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 97 SID_LINE_ARROWS [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 98 SID_DRAW_MEASURELINE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 99 SID_DRAWTBX_ARROWS [ StateMethod = GetDrawState; ] 100 SID_DRAW_RECT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 101 SID_DRAW_ELLIPSE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 102 SID_DRAWTBX_LINES [ StateMethod = GetDrawState; ] 103 SID_DRAW_POLYGON [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 104 SID_DRAW_POLYGON_NOFILL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 105 SID_DRAW_BEZIER_FILL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 106 SID_DRAW_BEZIER_NOFILL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 107 SID_DRAW_FREELINE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 108 SID_DRAW_FREELINE_NOFILL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 109 SID_DRAW_XPOLYGON [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 110 SID_DRAW_XPOLYGON_NOFILL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 111 SID_DRAW_ARC [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 112 SID_DRAW_PIE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 113 SID_DRAW_CIRCLECUT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 114 SID_DRAW_TEXT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 115 SID_DRAW_TEXT_VERTICAL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 116 SID_DRAW_TEXT_MARQUEE [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 117 SID_DRAW_CAPTION [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 118 SID_DRAW_CAPTION_VERTICAL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 119 SID_INSERT_DRAW [] 120 SID_FONTWORK_GALLERY_FLOATER [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 121 SID_DRAWTBX_CS_BASIC [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 122 SID_DRAWTBX_CS_SYMBOL [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 123 SID_DRAWTBX_CS_ARROW [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 124 SID_DRAWTBX_CS_FLOWCHART [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 125 SID_DRAWTBX_CS_CALLOUT [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 126 SID_DRAWTBX_CS_STAR [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 127 SID_DRAW_CS_ID [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 128 129 SID_FM_CREATE_CONTROL [ ExecMethod = ExecDraw ; ] 130 SID_LINKS [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] 131 SID_DRAW_CHART [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ] 132 SID_FM_CREATE_FIELDCONTROL [ ExecMethod = ExecDrawIns ; ] 133 134 // } insert objects 135 136} 137 138interface TableEditView 139{ 140 FID_TOGGLEINPUTLINE [ ExecMethod = Execute; StateMethod = GetState; ] 141 SID_DEFINE_PRINTAREA [ ExecMethod = Execute; StateMethod = GetState; ] 142 SID_ADD_PRINTAREA [ ExecMethod = Execute; StateMethod = GetState; ] 143 FID_ADJUST_PRINTZOOM [ ExecMethod = Execute; StateMethod = GetState; ] 144 145 SID_CURRENTDOC [ ExecMethod = Execute; StateMethod = GetState; ] 146 SID_WINDOW_SPLIT [ ExecMethod = Execute; StateMethod = GetState; ] 147 SID_WINDOW_FIX [ ExecMethod = Execute; StateMethod = GetState; ] 148 SID_WINDOW_FIX_ROW [ ExecMethod = Execute; StateMethod = GetState; ] 149 SID_WINDOW_FIX_COL [ ExecMethod = Execute; StateMethod = GetState; ] 150 SID_SAVEDOC 151 [ 152 ExecMethod = ExecuteSave ; 153 StateMethod = GetSaveState ; 154 ] 155 SID_SAVEASDOC 156 [ 157 ExecMethod = ExecuteSave ; 158 StateMethod = GetSaveState ; 159 ] 160 // has indeed a SW in his name but is also used in Calc 161 SID_CREATE_SW_DRAWVIEW [ ExecMethod = Execute; ] 162 SID_ATTR_ZOOM [ ExecMethod = Execute; StateMethod = GetState; ] 163 SID_ATTR_ZOOMSLIDER [ ExecMethod = Execute; StateMethod = GetState; ] 164 SID_ZOOM_IN [ ExecMethod = Execute; StateMethod = GetState; ] 165 SID_ZOOM_OUT [ ExecMethod = Execute; StateMethod = GetState; ] 166 FID_INSERT_FILE [ ExecMethod = Execute; StateMethod = GetState; ] 167 168 FID_SCALE [ ExecMethod = Execute; StateMethod = GetState; ] 169 FID_FUNCTION_BOX [ ExecMethod = Execute; StateMethod = GetState; ] 170 FID_CHG_SHOW [ ExecMethod = Execute; StateMethod = GetState; ] 171 WID_SIMPLE_REF [ ExecMethod = Execute; StateMethod = NoState; ] 172 FID_CHG_ACCEPT [ ExecMethod = Execute; StateMethod = GetState; ] 173 FID_CHG_COMMENT [ ExecMethod = Execute; StateMethod = GetState; ] 174 175 FID_SCALESTATUS [ ExecMethod = Execute; StateMethod = GetState; ] 176 FID_TOGGLESYNTAX [ ExecMethod = Execute; StateMethod = GetState; ] 177 FID_TOGGLEHEADERS [ ExecMethod = Execute; StateMethod = GetState; ] 178 FID_TOGGLEFORMULA [ ExecMethod = Execute; StateMethod = GetState; ] 179 FID_NORMALVIEWMODE [ ExecMethod = Execute; StateMethod = GetState; ] 180 FID_PAGEBREAKMODE [ ExecMethod = Execute; StateMethod = GetState; ] 181 SID_REPAINT [ ExecMethod = Execute; StateMethod = GetState; ] 182 SID_CURRENTCELL [ ExecMethod = Execute; StateMethod = GetState; ] 183 SID_CURRENTOBJECT [ ExecMethod = Execute; StateMethod = GetState; ] 184 SID_JUMPTOMARK [ ExecMethod = Execute; StateMethod = NoState; ] // status(final|play) 185 186 SID_PRINTPREVIEW [ ExecMethod = Execute; StateMethod = GetState; ] 187 188 189 // search/replace 190 FID_SEARCH_NOW [ ExecMethod = ExecSearch; StateMethod = NoState; ] 191 SID_SEARCH_ITEM [ ExecMethod = ExecSearch; StateMethod = GetState; ] 192 SID_SEARCH_OPTIONS [ ExecMethod = NoExec; StateMethod = GetState; ] 193 // search/replace from Basic: 194 FID_SEARCH [ ExecMethod = ExecSearch; ] 195 FID_REPLACE [ ExecMethod = ExecSearch; ] 196 FID_SEARCH_ALL [ ExecMethod = ExecSearch; ] 197 FID_REPLACE_ALL [ ExecMethod = ExecSearch; ] 198 FID_REPEAT_SEARCH [ ExecMethod = ExecSearch; ] 199 200 SID_CURRENTTAB [ ExecMethod = Execute; StateMethod = GetState; ] 201 202 // view options for drawing layer are needed here because they 203 // can be set without a drawing object selected (#75361#) 204 SID_GRID_VISIBLE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; ] 205 SID_GRID_USE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; ] 206 SID_HELPLINES_MOVE [ ExecMethod = ExecDrawOpt; StateMethod = GetDrawOptState; ] 207 208 SID_GETUNDOSTRINGS [ StateMethod = GetUndoState; ] 209 SID_GETREDOSTRINGS [ StateMethod = GetUndoState; ] 210 SID_UNDO [ ExecMethod = ExecuteUndo; StateMethod = GetUndoState; ] 211 SID_REDO [ ExecMethod = ExecuteUndo; StateMethod = GetUndoState; ] 212 213 SID_OPT_LOCALE_CHANGED [ ExecMethod = Execute; ] 214 215 SID_READONLY_MODE [ StateMethod = GetState; ] 216} 217 218 219 220shell ScTabViewShell 221{ 222 import TableSelection "ActiveDocument.ActiveTable"; 223 import TableOLEObject "SelectedObject"; 224 import Tables "ActiveDocument.Tables"; 225 import BaseSelection; 226 import TableEditView; 227 228 229 SID_STATUS_PAGESTYLE [ ExecMethod = Execute; StateMethod = GetState; ] 230 SID_TBXCTL_INSERT [] 231 SID_TBXCTL_INSCELLS [] 232 233} 234 235 236