2 * This file is part of the LibreOffice project.
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/.
8 * This file incorporates work covered by the following license notice:
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 .
22 SID_ATTR_CHAR_FONT [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
23 SID_ATTR_CHAR_PREVIEW_FONT [ ExecMethod = ExecuteAttr; ]
24 SID_ATTR_CHAR_ENDPREVIEW_FONT [ ExecMethod = ExecuteAttr; ]
25 SID_ATTR_CHAR_FONTHEIGHT [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
26 SID_GROW_FONT_SIZE [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
27 SID_SHRINK_FONT_SIZE [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
28 SID_ATTR_CHAR_COLOR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
29 SID_ATTR_CHAR_WEIGHT [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
30 SID_ATTR_CHAR_POSTURE [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
31 SID_ATTR_CHAR_UNDERLINE [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
32 SID_ULINE_VAL_NONE [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
33 SID_ULINE_VAL_SINGLE [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
34 SID_ULINE_VAL_DOUBLE [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
35 SID_ULINE_VAL_DOTTED [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
39 interface FormatForSelection
41 // slots which are disabled in the DrawShell {{
42 SID_STYLE_PREVIEW [ ExecMethod = ExecuteStyle; ]
43 SID_STYLE_END_PREVIEW [ ExecMethod = ExecuteStyle; ]
44 SID_CLASSIFICATION_APPLY [ ExecMethod = ExecuteStyle; ]
45 // } slots which are disabled in the DrawShell {{
47 SID_ATTR_ALIGN_HOR_JUSTIFY [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
48 SID_ATTR_ALIGN_VER_JUSTIFY [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
49 SID_ATTR_ALIGN_INDENT [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
50 SID_ATTR_ALIGN_HYPHENATION [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
51 SID_ATTR_ALIGN_DEGREES [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
52 SID_ATTR_ALIGN_STACKED [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
53 SID_ATTR_ALIGN_LOCKPOS [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
54 SID_ATTR_ALIGN_MARGIN [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
56 // pseudo slots from Format menu
57 SID_ALIGN_ANY_LEFT [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
58 SID_ALIGN_ANY_HCENTER [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
59 SID_ALIGN_ANY_RIGHT [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
60 SID_ALIGN_ANY_JUSTIFIED [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
61 SID_ALIGN_ANY_TOP [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
62 SID_ALIGN_ANY_VCENTER [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
63 SID_ALIGN_ANY_BOTTOM [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
64 SID_ALIGN_ANY_HDEFAULT [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
65 SID_ALIGN_ANY_VDEFAULT [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
67 SID_SCATTR_PROTECTION [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
68 SID_SCATTR_CELLPROTECTION [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
69 SID_BACKGROUND_COLOR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
70 SID_ATTR_BRUSH [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
71 SID_ATTR_CHAR_OVERLINE [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
72 SID_ATTR_CHAR_STRIKEOUT [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
73 SID_ATTR_CHAR_CONTOUR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
74 SID_ATTR_CHAR_SHADOWED [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
75 SID_ATTR_CHAR_RELIEF [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
76 SID_ALIGNLEFT [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
77 SID_ALIGNRIGHT [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
78 SID_ALIGNTOP [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
79 SID_ALIGNBOTTOM [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
80 SID_ALIGNCENTERVER [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
81 SID_ALIGNBLOCK [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
82 SID_ALIGNCENTERHOR [ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
84 SID_V_ALIGNCELL [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
85 SID_H_ALIGNCELL [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
87 SID_TEXTDIRECTION_LEFT_TO_RIGHT [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
88 SID_TEXTDIRECTION_TOP_TO_BOTTOM [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
89 SID_ATTR_PARA_LEFT_TO_RIGHT [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
90 SID_ATTR_PARA_RIGHT_TO_LEFT [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
91 SID_VERTICALTEXT_STATE [ StateMethod = GetTextDirectionState ; ]
92 SID_CTLFONT_STATE [ StateMethod = GetTextDirectionState ; ]
94 SID_ATTR_NUMBERFORMAT_VALUE [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState;]
95 SID_NUMBER_FORMAT [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
96 SID_NUMBER_TWODEC [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
97 SID_NUMBER_SCIENTIFIC [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
98 SID_NUMBER_DATE [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
99 SID_NUMBER_CURRENCY [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
100 SID_NUMBER_PERCENT [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
101 SID_NUMBER_TIME [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
102 SID_NUMBER_STANDARD [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
103 SID_NUMBER_INCDEC [ ExecMethod = ExecuteNumFormat;]
104 SID_NUMBER_DECDEC [ ExecMethod = ExecuteNumFormat;]
105 SID_NUMBER_THOUSANDS [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState; ]
107 SID_NUMBER_TYPE_FORMAT [ ExecMethod = ExecuteNumFormat;StateMethod = GetNumFormatState; ]
109 SID_ATTR_BORDER [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ] //XXX
110 SID_ATTR_BORDER_INNER [ StateMethod = GetBorderState; ] // status()
111 SID_ATTR_BORDER_OUTER [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
112 SID_ATTR_BORDER_SHADOW [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
113 SID_ATTR_ALIGN_LINEBREAK [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
114 SID_FRAME_LINESTYLE [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
115 SID_FRAME_LINECOLOR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
116 SID_ATTR_BORDER_DIAG_TLBR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
117 SID_ATTR_BORDER_DIAG_BLTR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
119 SID_FORMATPAINTBRUSH [ ExecMethod = ExecFormatPaintbrush; StateMethod = StateFormatPaintbrush; ]
126 import FormatForSelection;
127 // import Interior ".Interior";
128 import TableFont ".Font";