xref: /trunk/main/sc/sdi/drtxtob.sdi (revision 1e9c32af)
1*e07c0dceSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*e07c0dceSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*e07c0dceSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*e07c0dceSAndrew Rist * distributed with this work for additional information
6*e07c0dceSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*e07c0dceSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*e07c0dceSAndrew Rist * "License"); you may not use this file except in compliance
9*e07c0dceSAndrew Rist * with the License.  You may obtain a copy of the License at
10*e07c0dceSAndrew Rist *
11*e07c0dceSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*e07c0dceSAndrew Rist *
13*e07c0dceSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*e07c0dceSAndrew Rist * software distributed under the License is distributed on an
15*e07c0dceSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e07c0dceSAndrew Rist * KIND, either express or implied.  See the License for the
17*e07c0dceSAndrew Rist * specific language governing permissions and limitations
18*e07c0dceSAndrew Rist * under the License.
19*e07c0dceSAndrew Rist *
20*e07c0dceSAndrew Rist *************************************************************/
21*e07c0dceSAndrew Rist
22*e07c0dceSAndrew Rist
23cdf0e10cSrcweirinterface TableDrawText
24cdf0e10cSrcweir{
25cdf0e10cSrcweir	//	Drawing geht von Basic aus gar nicht, darum alles mit Export = FALSE
26cdf0e10cSrcweir
27cdf0e10cSrcweir	// alle Referenz-Eingabe-Dialoge:
28cdf0e10cSrcweir	FID_DEFINE_NAME				[ StateMethod = StateDisableItems; Export = FALSE; ]
29cdf0e10cSrcweir	SID_DEFINE_COLROWNAMERANGES	[ StateMethod = StateDisableItems; Export = FALSE; ]
30cdf0e10cSrcweir	SID_OPENDLG_SOLVE			[ StateMethod = StateDisableItems; Export = FALSE; ]
31cdf0e10cSrcweir    SID_OPENDLG_OPTSOLVER       [ StateMethod = StateDisableItems; Export = FALSE; ]
32cdf0e10cSrcweir	SID_OPENDLG_PIVOTTABLE		[ StateMethod = StateDisableItems; Export = FALSE; ]
33cdf0e10cSrcweir	SID_OPENDLG_TABOP			[ StateMethod = StateDisableItems; Export = FALSE; ]
34cdf0e10cSrcweir	SID_FILTER					[ StateMethod = StateDisableItems; Export = FALSE; ]
35cdf0e10cSrcweir	SID_SPECIAL_FILTER			[ StateMethod = StateDisableItems; Export = FALSE; ]
36cdf0e10cSrcweir	SID_DEFINE_DBNAME			[ StateMethod = StateDisableItems; Export = FALSE; ]
37cdf0e10cSrcweir	SID_OPENDLG_CONSOLIDATE		[ StateMethod = StateDisableItems; Export = FALSE; ]
38cdf0e10cSrcweir	SID_OPENDLG_EDIT_PRINTAREA	[ StateMethod = StateDisableItems; Export = FALSE; ]
39cdf0e10cSrcweir	 //	andere:
40cdf0e10cSrcweir	SID_DRAW_CHART				[ StateMethod = StateDisableItems; Export = FALSE; ]
41cdf0e10cSrcweir	SID_STYLE_CATALOG			[ StateMethod = StateDisableItems; Export = FALSE; ]
42cdf0e10cSrcweir	SID_OPENDLG_FUNCTION		[ StateMethod = StateDisableItems; Export = FALSE; ]
43cdf0e10cSrcweir	SID_STYLE_FAMILY2			[ StateMethod = StateDisableItems; Export = FALSE; ]
44cdf0e10cSrcweir	SID_STYLE_FAMILY4			[ StateMethod = StateDisableItems; Export = FALSE; ]
45cdf0e10cSrcweir	SID_STYLE_APPLY 			[ StateMethod = StateDisableItems; Export = FALSE; ]
46cdf0e10cSrcweir	SID_STYLE_WATERCAN 			[ StateMethod = StateDisableItems; Export = FALSE; ]
47cdf0e10cSrcweir	SID_STYLE_NEW_BY_EXAMPLE	[ StateMethod = StateDisableItems; Export = FALSE; ]
48cdf0e10cSrcweir	SID_STYLE_UPDATE_BY_EXAMPLE [ StateMethod = StateDisableItems; Export = FALSE; ]
49cdf0e10cSrcweir	SID_STYLE_NEW				[ StateMethod = StateDisableItems; Export = FALSE; ]
50cdf0e10cSrcweir	SID_STYLE_EDIT  			[ StateMethod = StateDisableItems; Export = FALSE; ]
51cdf0e10cSrcweir	SID_STYLE_DELETE			[ StateMethod = StateDisableItems; Export = FALSE; ]
52cdf0e10cSrcweir
53cdf0e10cSrcweir	 //----------------------------------------------------------------------------
54cdf0e10cSrcweir	SID_CUT				[ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
55cdf0e10cSrcweir	SID_COPY			[ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
56cdf0e10cSrcweir	SID_PASTE			[ ExecMethod = Execute; StateMethod = GetClipState; Export = FALSE; ]
57cdf0e10cSrcweir    SID_PASTE_SPECIAL   [ ExecMethod = Execute; StateMethod = GetClipState; Export = FALSE; ]
58cdf0e10cSrcweir	SID_CLIPBOARD_FORMAT_ITEMS [ ExecMethod = Execute; StateMethod = GetClipState; Export = FALSE; ]
59cdf0e10cSrcweir	SID_SELECTALL		[ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
60cdf0e10cSrcweir	SID_CHARMAP			[ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
61cdf0e10cSrcweir    SID_THES            [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
62cdf0e10cSrcweir    SID_THESAURUS       [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
63cdf0e10cSrcweir	 // Attribute: --------------------------------------------------
64cdf0e10cSrcweir	SID_TEXT_STANDARD			[ ExecMethod = ExecuteAttr; StateMethod = GetState; Export = FALSE; ]
65cdf0e10cSrcweir	SID_DRAWTEXT_ATTR_DLG		[ ExecMethod = ExecuteAttr; StateMethod = GetState; Export = FALSE; ]
66cdf0e10cSrcweir	SID_ATTR_CHAR_FONT			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
67cdf0e10cSrcweir	SID_ATTR_CHAR_FONTHEIGHT	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
68cdf0e10cSrcweir	SID_ATTR_CHAR_COLOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
69cdf0e10cSrcweir	SID_ATTR_CHAR_WEIGHT		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
70cdf0e10cSrcweir	SID_ATTR_CHAR_POSTURE		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
71cdf0e10cSrcweir	SID_ATTR_CHAR_UNDERLINE		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
72cdf0e10cSrcweir
73cdf0e10cSrcweir	SID_ULINE_VAL_NONE			[ ExecMethod = ExecuteToggle; StateMethod = GetAttrState; Export = FALSE; ]
74cdf0e10cSrcweir	SID_ULINE_VAL_SINGLE		[ ExecMethod = ExecuteToggle; StateMethod = GetAttrState; Export = FALSE; ]
75cdf0e10cSrcweir	SID_ULINE_VAL_DOUBLE		[ ExecMethod = ExecuteToggle; StateMethod = GetAttrState; Export = FALSE; ]
76cdf0e10cSrcweir	SID_ULINE_VAL_DOTTED		[ ExecMethod = ExecuteToggle; StateMethod = GetAttrState; Export = FALSE; ]
77cdf0e10cSrcweir
78cdf0e10cSrcweir	SID_ATTR_CHAR_OVERLINE		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
79cdf0e10cSrcweir	SID_ATTR_CHAR_CONTOUR		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
80cdf0e10cSrcweir	SID_ATTR_CHAR_SHADOWED		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
81cdf0e10cSrcweir	SID_ATTR_CHAR_STRIKEOUT		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
82cdf0e10cSrcweir	SID_ALIGNLEFT				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
83cdf0e10cSrcweir	SID_ALIGNCENTERHOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
84cdf0e10cSrcweir	SID_ALIGNRIGHT				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
85cdf0e10cSrcweir	SID_ALIGNBLOCK				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
86cdf0e10cSrcweir
87cdf0e10cSrcweir	SID_ATTR_PARA_ADJUST_LEFT				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
88cdf0e10cSrcweir	SID_ATTR_PARA_ADJUST_CENTER			    [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
89cdf0e10cSrcweir	SID_ATTR_PARA_ADJUST_RIGHT				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
90cdf0e10cSrcweir	SID_ATTR_PARA_ADJUST_BLOCK				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
91cdf0e10cSrcweir	SID_ATTR_PARA_LRSPACE                   [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
92cdf0e10cSrcweir	SID_ATTR_PARA_LINESPACE                 [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
93cdf0e10cSrcweir	SID_ATTR_PARA_ULSPACE                   [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
94cdf0e10cSrcweir
95cdf0e10cSrcweir	SID_ATTR_PARA_LINESPACE_10	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
96cdf0e10cSrcweir	SID_ATTR_PARA_LINESPACE_15	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
97cdf0e10cSrcweir	SID_ATTR_PARA_LINESPACE_20	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
98cdf0e10cSrcweir	SID_SET_SUPER_SCRIPT		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
99cdf0e10cSrcweir	SID_SET_SUB_SCRIPT			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
100cdf0e10cSrcweir	SID_ATTR_CHAR_KERNING		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
101cdf0e10cSrcweir	SID_CHAR_DLG				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
102cdf0e10cSrcweir	SID_CHAR_DLG_EFFECT			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
103cdf0e10cSrcweir	SID_PARA_DLG				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
104cdf0e10cSrcweir	 // ---- FontWork:
105cdf0e10cSrcweir	SID_FONTWORK	[ ExecMethod = ExecuteExtra; StateMethod = GetState; Export = FALSE; ]
106cdf0e10cSrcweir
107cdf0e10cSrcweir	// pseudo slots from Format menu
108cdf0e10cSrcweir	SID_ALIGN_ANY_LEFT      [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
109cdf0e10cSrcweir    SID_ALIGN_ANY_HCENTER	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
110cdf0e10cSrcweir    SID_ALIGN_ANY_RIGHT		[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
111cdf0e10cSrcweir    SID_ALIGN_ANY_JUSTIFIED [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; Export = FALSE; ]
112cdf0e10cSrcweir
113cdf0e10cSrcweir	SID_FORMTEXT_STYLE		[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
114cdf0e10cSrcweir	SID_FORMTEXT_ADJUST		[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
115cdf0e10cSrcweir	SID_FORMTEXT_DISTANCE	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
116cdf0e10cSrcweir	SID_FORMTEXT_START		[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
117cdf0e10cSrcweir	SID_FORMTEXT_MIRROR		[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
118cdf0e10cSrcweir	SID_FORMTEXT_HIDEFORM	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
119cdf0e10cSrcweir	SID_FORMTEXT_OUTLINE	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
120cdf0e10cSrcweir	SID_FORMTEXT_SHADOW		[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
121cdf0e10cSrcweir	SID_FORMTEXT_SHDWCOLOR	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
122cdf0e10cSrcweir	SID_FORMTEXT_SHDWXVAL	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
123cdf0e10cSrcweir	SID_FORMTEXT_SHDWYVAL	[ ExecMethod = ExecFormText; StateMethod = GetFormTextState; Export = FALSE; ]
124cdf0e10cSrcweir
125cdf0e10cSrcweir	SID_HYPERLINK_SETLINK	[ ExecMethod = Execute; Export = FALSE; ]
126cdf0e10cSrcweir	SID_HYPERLINK_GETLINK	[ StateMethod = GetState; Export = FALSE; ]
127cdf0e10cSrcweir        SID_OPEN_HYPERLINK      [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
128cdf0e10cSrcweir	SID_ENABLE_HYPHENATION	[ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
129cdf0e10cSrcweir
130cdf0e10cSrcweir	SID_TEXTDIRECTION_LEFT_TO_RIGHT		[ ExecMethod = Execute; StateMethod = GetAttrState; Export = FALSE; ]
131cdf0e10cSrcweir	SID_TEXTDIRECTION_TOP_TO_BOTTOM		[ ExecMethod = Execute; StateMethod = GetAttrState; Export = FALSE; ]
132cdf0e10cSrcweir	SID_ATTR_PARA_LEFT_TO_RIGHT			[ ExecMethod = ExecuteExtra; StateMethod = GetAttrState; Export = FALSE; ]
133cdf0e10cSrcweir	SID_ATTR_PARA_RIGHT_TO_LEFT			[ ExecMethod = ExecuteExtra; StateMethod = GetAttrState; Export = FALSE; ]
134cdf0e10cSrcweir	SID_VERTICALTEXT_STATE              [ StateMethod = GetAttrState ; Export = FALSE; ]
135cdf0e10cSrcweir    SID_CTLFONT_STATE                   [ StateMethod = GetAttrState ; Export = FALSE; ]
136cdf0e10cSrcweir
137cdf0e10cSrcweir    SID_TRANSLITERATE_SENTENCE_CASE [ ExecMethod = ExecuteTrans; StateMethod = GetState;  Export = FALSE; ]
138cdf0e10cSrcweir    SID_TRANSLITERATE_TITLE_CASE    [ ExecMethod = ExecuteTrans; StateMethod = GetState;  Export = FALSE; ]
139cdf0e10cSrcweir    SID_TRANSLITERATE_TOGGLE_CASE   [ ExecMethod = ExecuteTrans; StateMethod = GetState;  Export = FALSE; ]
140cdf0e10cSrcweir	SID_TRANSLITERATE_UPPER		[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
141cdf0e10cSrcweir	SID_TRANSLITERATE_LOWER		[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
142cdf0e10cSrcweir	SID_TRANSLITERATE_HALFWIDTH	[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
143cdf0e10cSrcweir	SID_TRANSLITERATE_FULLWIDTH	[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
144	SID_TRANSLITERATE_HIRAGANA	[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
145	SID_TRANSLITERATE_KATAGANA	[ ExecMethod = ExecuteTrans; StateMethod = GetState; Export = FALSE; ]
146
147	SID_TABLE_VERT_NONE [ExecMethod = ExecuteAttr ;StateMethod = GetStatePropPanelAttr ;]
148	SID_TABLE_VERT_CENTER [ExecMethod = ExecuteAttr ;StateMethod = GetStatePropPanelAttr ;]
149	SID_TABLE_VERT_BOTTOM [ExecMethod = ExecuteAttr ;StateMethod = GetStatePropPanelAttr ;]
150}
151
152
153
154 // ===========================================================================
155shell ScDrawTextObjectBar
156{
157	import TableDrawText;
158}
159