xref: /aoo41x/main/sc/sdi/formatsh.sdi (revision e07c0dce)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24 // ===========================================================================
25interface TableFont
26[
27	uuid ( "2E4AC1C0-137C-11D3-B25B-006097DA68F3" )
28]
29{
30	SID_ATTR_CHAR_FONT			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
31	SID_ATTR_CHAR_FONTHEIGHT	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
32	SID_ATTR_CHAR_COLOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
33	SID_ATTR_CHAR_WEIGHT	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
34	SID_ATTR_CHAR_POSTURE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
35	SID_ATTR_CHAR_UNDERLINE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
36	SID_ULINE_VAL_NONE		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
37	SID_ULINE_VAL_SINGLE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
38	SID_ULINE_VAL_DOUBLE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
39	SID_ULINE_VAL_DOTTED	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
40}
41
42 // ===========================================================================
43interface FormatForSelection
44[
45	uuid ( "40F448A0-137C-11D3-B25B-006097DA68F3" )
46]
47{
48	//Auch das Basic muss wieder laufen
49	SbxObject Font SID_PROP_FONT
50	[
51	]
52	SbxObject Interior SID_PROP_INTERIOR // status(Final)
53	[
54	]
55
56	// Slot's die in der DrawShell disabled werden. {
57	SID_STYLE_FAMILY2			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
58	SID_STYLE_APPLY				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
59	SID_STYLE_WATERCAN			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
60	SID_STYLE_NEW_BY_EXAMPLE	[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
61	SID_STYLE_UPDATE_BY_EXAMPLE	[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
62	SID_STYLE_NEW				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
63	SID_STYLE_FAMILY4			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
64	SID_STYLE_EDIT				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
65	SID_STYLE_DELETE			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
66	// } Slot's die in der DrawShell disabled werden.
67
68    SID_ATTR_ALIGN_HOR_JUSTIFY    [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
69    SID_ATTR_ALIGN_VER_JUSTIFY    [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
70    SID_ATTR_ALIGN_INDENT [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
71    SID_ATTR_ALIGN_HYPHENATION [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
72    SID_ATTR_ALIGN_DEGREES     [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
73    SID_ATTR_ALIGN_LOCKPOS     [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
74    SID_ATTR_ALIGN_MARGIN      [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
75
76	// pseudo slots from Format menu
77	SID_ALIGN_ANY_LEFT      [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
78    SID_ALIGN_ANY_HCENTER	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
79    SID_ALIGN_ANY_RIGHT		[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
80    SID_ALIGN_ANY_JUSTIFIED [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
81    SID_ALIGN_ANY_TOP		[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
82    SID_ALIGN_ANY_VCENTER   [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
83    SID_ALIGN_ANY_BOTTOM    [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
84	SID_ALIGN_ANY_HDEFAULT	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
85	SID_ALIGN_ANY_VDEFAULT	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
86
87    SID_SCATTR_PROTECTION [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
88    SID_BACKGROUND_COLOR    [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
89    SID_ATTR_BRUSH      [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
90	SID_ATTR_CHAR_OVERLINE	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
91    SID_ATTR_CHAR_STRIKEOUT [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
92    SID_ATTR_CHAR_CONTOUR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
93    SID_ATTR_CHAR_SHADOWED [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
94    SID_ATTR_CHAR_RELIEF [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
95	SID_ALIGNLEFT		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
96	SID_ALIGNRIGHT		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
97	SID_ALIGNTOP		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
98	SID_ALIGNBOTTOM		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
99	SID_ALIGNCENTERVER	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
100	SID_ALIGNBLOCK		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
101	SID_ALIGNCENTERHOR	[ ExecMethod = ExecuteTextAttr;	StateMethod = GetTextAttrState;	]
102
103	SID_V_ALIGNCELL			[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
104	SID_H_ALIGNCELL			[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
105
106    SID_TEXTDIRECTION_LEFT_TO_RIGHT [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
107    SID_TEXTDIRECTION_TOP_TO_BOTTOM [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
108    SID_ATTR_PARA_LEFT_TO_RIGHT     [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
109    SID_ATTR_PARA_RIGHT_TO_LEFT     [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
110	SID_VERTICALTEXT_STATE          [ StateMethod = GetTextDirectionState ; Export = FALSE; ]
111    SID_CTLFONT_STATE               [ StateMethod = GetTextDirectionState ; Export = FALSE; ]
112
113    SID_ATTR_NUMBERFORMAT_VALUE       [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState;]
114    SID_NUMBER_FORMAT       [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState;]
115	SID_NUMBER_TWODEC		[ ExecMethod = ExecuteNumFormat;]
116	SID_NUMBER_SCIENTIFIC	[ ExecMethod = ExecuteNumFormat;]
117	SID_NUMBER_DATE			[ ExecMethod = ExecuteNumFormat;]
118	SID_NUMBER_CURRENCY		[ ExecMethod = ExecuteNumFormat;]
119	SID_NUMBER_PERCENT		[ ExecMethod = ExecuteNumFormat;]
120	SID_NUMBER_TIME			[ ExecMethod = ExecuteNumFormat;]
121	SID_NUMBER_STANDARD		[ ExecMethod = ExecuteNumFormat;]
122	SID_NUMBER_INCDEC		[ ExecMethod = ExecuteNumFormat;]
123	SID_NUMBER_DECDEC		[ ExecMethod = ExecuteNumFormat;]
124
125	SID_ATTR_BORDER				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ] 	//XXX
126	SID_ATTR_BORDER_INNER		[                           StateMethod = GetBorderState; ] // status()
127    SID_ATTR_BORDER_OUTER       [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
128    SID_ATTR_BORDER_SHADOW      [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
129	SID_ATTR_ALIGN_LINEBREAK	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
130	SID_FRAME_LINESTYLE			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
131	SID_FRAME_LINECOLOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
132
133    SID_FORMATPAINTBRUSH    [ ExecMethod = ExecFormatPaintbrush; StateMethod = StateFormatPaintbrush; ]
134}
135
136
137 // ===========================================================================
138shell ScFormatShell
139{
140	import FormatForSelection[Automation];
141//	import Interior ".Interior";
142	import TableFont ".Font";
143}
144
145
146