summaryrefslogtreecommitdiffstats
path: root/sc/sdi/drawsh.sdi
blob: 668608c549abd0d25334fc207d06c71f29a8ca55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */
interface TableDraw
{
    // support assign macro for shape objects
    SID_ASSIGNMACRO             [ ExecMethod = ExecDrawAttr; StateMethod = NoState; ]


    FID_DEFINE_NAME             [ StateMethod = StateDisableItems; ]
    FID_ADD_NAME                [ StateMethod = StateDisableItems; ]
    SID_DEFINE_COLROWNAMERANGES [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_SOLVE           [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_OPTSOLVER       [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_PIVOTTABLE      [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_TABOP           [ StateMethod = StateDisableItems; ]
    SID_FILTER                  [ StateMethod = StateDisableItems; ]
    SID_SPECIAL_FILTER          [ StateMethod = StateDisableItems; ]
    SID_DEFINE_DBNAME           [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_CONSOLIDATE     [ StateMethod = StateDisableItems; ]
    SID_OPENDLG_EDIT_PRINTAREA  [ StateMethod = StateDisableItems; ]
    // others:
    SID_DRAW_CHART              [ StateMethod = StateDisableItems; ]

    SID_TEXT_STANDARD       [ ExecMethod = ExecDrawAttr; StateMethod = NoState; ]
    SID_CELL_FORMAT_RESET   [ ExecMethod = ExecDrawAttr; StateMethod = NoState; ]
    SID_DRAWTEXT_ATTR_DLG   [ ExecMethod = ExecDrawAttr; StateMethod = NoState; ]

    // ---- Slot-IDs for Objectbar:
    SID_COLOR_TABLE         [ StateMethod = GetDrawAttrState; ]
    SID_GRADIENT_LIST       [ StateMethod = GetDrawAttrState; ]
    SID_HATCH_LIST          [ StateMethod = GetDrawAttrState; ]
    SID_BITMAP_LIST         [ StateMethod = GetDrawAttrState; ]
    SID_PATTERN_LIST        [ StateMethod = GetDrawAttrState; ]
    SID_DASH_LIST           [ StateMethod = GetDrawAttrState; ]
    SID_LINEEND_LIST        [ StateMethod = GetDrawAttrState; ]

    // area attributes
    SID_ATTR_FILL_STYLE     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]

    // #i25616#
    SID_ATTR_FILL_SHADOW
    [
        ExecMethod = ExecDrawAttr;
        StateMethod = GetDrawAttrState;
    ]
    SID_ATTR_SHADOW_COLOR
    [   ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_SHADOW_TRANSPARENCE
    [   ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_SHADOW_BLUR
    [   ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_SHADOW_XDISTANCE
    [   ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_SHADOW_YDISTANCE
    [   ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]

    SID_ATTR_FILL_COLOR     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_FILL_GRADIENT  [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_FILL_HATCH     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_FILL_BITMAP    [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_FILL_TRANSPARENCE [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_FILL_FLOATTRANSPARENCE [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]

    // lines attributes:
    SID_ATTR_LINE_STYLE     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINEEND_STYLE  [ ExecMethod = ExecDrawAttr; StateMethod = GetAttrFuncState; ]
    SID_ATTR_LINE_START [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_END [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_DASH      [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_WIDTH     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_COLOR     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_TRANSPARENCE [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_JOINT [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_LINE_CAP [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTRIBUTES_AREA     [ ExecMethod = ExecDrawAttr; StateMethod = GetAttrFuncState; ]
    SID_ATTRIBUTES_LINE     [ ExecMethod = ExecDrawAttr; StateMethod = GetAttrFuncState; ]
    SID_MEASURE_DLG         [ ExecMethod = ExecDrawAttr; StateMethod = GetAttrFuncState; ]
    SID_ATTR_TRANSFORM      [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawFuncState; ]

    // For the sidebar
    SID_ATTR_TRANSFORM_WIDTH    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_HEIGHT   [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_POS_X    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_POS_Y    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_ANGLE    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_ROT_X    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_ROT_Y    [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_PROTECT_POS  [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_PROTECT_SIZE [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_AUTOWIDTH [ StateMethod = GetDrawAttrStateForIFBX; ]
    SID_ATTR_TRANSFORM_AUTOHEIGHT [ StateMethod = GetDrawAttrStateForIFBX; ]

    // alignment functions:
    SID_OBJECT_ALIGN        [ StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_LEFT   [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_CENTER [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_RIGHT  [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_UP     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_MIDDLE [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ALIGN_DOWN   [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]

    // pseudo slots from Format menu
    SID_ALIGN_ANY_LEFT      [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ALIGN_ANY_HCENTER   [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ALIGN_ANY_RIGHT     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ALIGN_ANY_TOP       [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ALIGN_ANY_VCENTER   [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ALIGN_ANY_BOTTOM    [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]

    // other functions:
    SID_OBJECT_HEAVEN   [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_HELL     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FRAME_TO_TOP    [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FRAME_TO_BOTTOM [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FRAME_UP        [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FRAME_DOWN      [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_GROUP           [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_UNGROUP         [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ENTER_GROUP     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_LEAVE_GROUP     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_REGENERATE_DIAGRAM [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState ]
    SID_EDIT_DIAGRAM    [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState ]
    // !!! special
    SID_DELETE          [ExecMethod = ExecDrawFunc ;StateMethod = GetDrawFuncState; ]

    SID_DELETE_CONTENTS [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_CUT             [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_COPY            [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_PASTE           [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_SELECTALL       [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_OBJECT_ROTATE   [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_OBJECT_MIRROR   [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_BEZIER_EDIT     [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_MIRROR_HORIZONTAL[ ExecMethod = ExecDrawFunc;StateMethod = GetDrawFuncState; ]
    SID_MIRROR_VERTICAL     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FLIP_HORIZONTAL     [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FLIP_VERTICAL       [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ANCHOR_MENU         [ StateMethod = GetDrawFuncState; ]
    SID_ANCHOR_PAGE         [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_ANCHOR_TOGGLE       [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_ANCHOR_CELL         [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_ANCHOR_CELL_RESIZE  [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    // FontWork:
    SID_FONTWORK            [ ExecMethod = ExecDrawFunc; StateMethod = GetState; ]
    SID_FORMTEXT_STYLE      [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_ADJUST     [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_DISTANCE   [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_START      [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_MIRROR     [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_HIDEFORM   [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_OUTLINE    [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_SHADOW     [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_SHDWCOLOR  [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_SHDWXVAL   [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_FORMTEXT_SHDWYVAL   [ ExecMethod = ExecFormText; StateMethod = GetFormTextState; ]
    SID_ATTR_POSITION       [ StateMethod = GetDrawAttrState; ]
    SID_ATTR_SIZE           [ StateMethod = GetDrawAttrState; ]
    SID_TABLE_CELL          [ StateMethod = GetDrawAttrState; ]
    SID_ORIGINALSIZE        [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_FITCELLSIZE         [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_HYPERLINK_SETLINK   [ ExecMethod = ExecuteHLink; ]
    SID_HYPERLINK_GETLINK   [ StateMethod = GetHLinkState; ]
    SID_ENABLE_HYPHENATION  [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]

    // #i68101#
    SID_TITLE_DESCRIPTION_OBJECT [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]
    SID_RENAME_OBJECT       [ ExecMethod = ExecDrawFunc; StateMethod = GetDrawFuncState; ]

    SID_FORMATPAINTBRUSH    [ ExecMethod = ExecFormatPaintbrush; StateMethod = StateFormatPaintbrush; ]

    SID_OPEN_XML_FILTERSETTINGS     [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_TOGGLE            [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_TILT_DOWN         [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_TILT_UP           [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_TILT_LEFT         [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_TILT_RIGHT        [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_DEPTH_FLOATER     [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_DEPTH_DIALOG      [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_DIRECTION_FLOATER [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_LIGHTING_FLOATER  [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_SURFACE_FLOATER   [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_3D_COLOR          [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_DEPTH             [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_DIRECTION         [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_PROJECTION        [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_LIGHTING_DIRECTION[ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_LIGHTING_INTENSITY[ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_EXTRUSION_SURFACE           [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]

    SID_FONTWORK_SHAPE                      [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_SHAPE_TYPE                 [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_ALIGNMENT_FLOATER          [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_CHARACTER_SPACING_FLOATER  [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_ALIGNMENT                  [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_SAME_LETTER_HEIGHTS        [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_CHARACTER_SPACING          [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_KERN_CHARACTER_PAIRS       [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]
    SID_FONTWORK_CHARACTER_SPACING_DIALOG   [ ExecMethod = ExecDrawFunc ; StateMethod = GetDrawFuncState ; ]

    SID_EDIT_HYPERLINK              [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawFuncState; ]
    SID_REMOVE_HYPERLINK            [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawFuncState; ]
    SID_OPEN_HYPERLINK              [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawFuncState; ]
    SID_COPY_HYPERLINK_LOCATION     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawFuncState; ]

    SID_ATTR_GLOW_COLOR             [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_GLOW_RADIUS            [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_GLOW_TRANSPARENCY      [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]

    SID_ATTR_SOFTEDGE_RADIUS        [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_MOVE_SHAPE_HANDLE           [ ExecMethod = ExecDrawAttr; ]
    SID_ATTR_TEXTCOLUMNS_NUMBER     [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
    SID_ATTR_TEXTCOLUMNS_SPACING    [ ExecMethod = ExecDrawAttr; StateMethod = GetDrawAttrState; ]
}



shell ScDrawShell
{
    import TableDraw;
}