xref: /aoo41x/main/sc/sdi/formatsh.sdi (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir // ===========================================================================
29*cdf0e10cSrcweirinterface TableFont
30*cdf0e10cSrcweir[
31*cdf0e10cSrcweir	uuid ( "2E4AC1C0-137C-11D3-B25B-006097DA68F3" )
32*cdf0e10cSrcweir]
33*cdf0e10cSrcweir{
34*cdf0e10cSrcweir	SID_ATTR_CHAR_FONT			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
35*cdf0e10cSrcweir	SID_ATTR_CHAR_FONTHEIGHT	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
36*cdf0e10cSrcweir	SID_ATTR_CHAR_COLOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
37*cdf0e10cSrcweir	SID_ATTR_CHAR_WEIGHT	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
38*cdf0e10cSrcweir	SID_ATTR_CHAR_POSTURE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
39*cdf0e10cSrcweir	SID_ATTR_CHAR_UNDERLINE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
40*cdf0e10cSrcweir	SID_ULINE_VAL_NONE		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
41*cdf0e10cSrcweir	SID_ULINE_VAL_SINGLE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
42*cdf0e10cSrcweir	SID_ULINE_VAL_DOUBLE	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
43*cdf0e10cSrcweir	SID_ULINE_VAL_DOTTED	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
44*cdf0e10cSrcweir}
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir // ===========================================================================
47*cdf0e10cSrcweirinterface FormatForSelection
48*cdf0e10cSrcweir[
49*cdf0e10cSrcweir	uuid ( "40F448A0-137C-11D3-B25B-006097DA68F3" )
50*cdf0e10cSrcweir]
51*cdf0e10cSrcweir{
52*cdf0e10cSrcweir	//Auch das Basic muss wieder laufen
53*cdf0e10cSrcweir	SbxObject Font SID_PROP_FONT
54*cdf0e10cSrcweir	[
55*cdf0e10cSrcweir	]
56*cdf0e10cSrcweir	SbxObject Interior SID_PROP_INTERIOR // status(Final)
57*cdf0e10cSrcweir	[
58*cdf0e10cSrcweir	]
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir	// Slot's die in der DrawShell disabled werden. {
61*cdf0e10cSrcweir	SID_STYLE_FAMILY2			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
62*cdf0e10cSrcweir	SID_STYLE_APPLY				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
63*cdf0e10cSrcweir	SID_STYLE_WATERCAN			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
64*cdf0e10cSrcweir	SID_STYLE_NEW_BY_EXAMPLE	[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
65*cdf0e10cSrcweir	SID_STYLE_UPDATE_BY_EXAMPLE	[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
66*cdf0e10cSrcweir	SID_STYLE_NEW				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
67*cdf0e10cSrcweir	SID_STYLE_FAMILY4			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
68*cdf0e10cSrcweir	SID_STYLE_EDIT				[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
69*cdf0e10cSrcweir	SID_STYLE_DELETE			[ ExecMethod = ExecuteStyle; StateMethod = GetStyleState; ]
70*cdf0e10cSrcweir	// } Slot's die in der DrawShell disabled werden.
71*cdf0e10cSrcweir
72*cdf0e10cSrcweir    SID_ATTR_ALIGN_HOR_JUSTIFY    [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
73*cdf0e10cSrcweir    SID_ATTR_ALIGN_VER_JUSTIFY    [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
74*cdf0e10cSrcweir    SID_ATTR_ALIGN_INDENT [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
75*cdf0e10cSrcweir    SID_ATTR_ALIGN_HYPHENATION [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
76*cdf0e10cSrcweir    SID_ATTR_ALIGN_DEGREES     [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
77*cdf0e10cSrcweir    SID_ATTR_ALIGN_LOCKPOS     [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
78*cdf0e10cSrcweir    SID_ATTR_ALIGN_MARGIN      [ ExecMethod = ExecuteAlignment; StateMethod = GetAttrState; ]
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir	// pseudo slots from Format menu
81*cdf0e10cSrcweir	SID_ALIGN_ANY_LEFT      [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
82*cdf0e10cSrcweir    SID_ALIGN_ANY_HCENTER	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
83*cdf0e10cSrcweir    SID_ALIGN_ANY_RIGHT		[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
84*cdf0e10cSrcweir    SID_ALIGN_ANY_JUSTIFIED [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
85*cdf0e10cSrcweir    SID_ALIGN_ANY_TOP		[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
86*cdf0e10cSrcweir    SID_ALIGN_ANY_VCENTER   [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
87*cdf0e10cSrcweir    SID_ALIGN_ANY_BOTTOM    [ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
88*cdf0e10cSrcweir	SID_ALIGN_ANY_HDEFAULT	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
89*cdf0e10cSrcweir	SID_ALIGN_ANY_VDEFAULT	[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
90*cdf0e10cSrcweir
91*cdf0e10cSrcweir    SID_SCATTR_PROTECTION [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
92*cdf0e10cSrcweir    SID_BACKGROUND_COLOR    [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
93*cdf0e10cSrcweir    SID_ATTR_BRUSH      [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
94*cdf0e10cSrcweir	SID_ATTR_CHAR_OVERLINE	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
95*cdf0e10cSrcweir    SID_ATTR_CHAR_STRIKEOUT [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
96*cdf0e10cSrcweir    SID_ATTR_CHAR_CONTOUR [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
97*cdf0e10cSrcweir    SID_ATTR_CHAR_SHADOWED [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
98*cdf0e10cSrcweir    SID_ATTR_CHAR_RELIEF [ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
99*cdf0e10cSrcweir	SID_ALIGNLEFT		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
100*cdf0e10cSrcweir	SID_ALIGNRIGHT		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
101*cdf0e10cSrcweir	SID_ALIGNTOP		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
102*cdf0e10cSrcweir	SID_ALIGNBOTTOM		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
103*cdf0e10cSrcweir	SID_ALIGNCENTERVER	[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
104*cdf0e10cSrcweir	SID_ALIGNBLOCK		[ ExecMethod = ExecuteTextAttr; StateMethod = GetTextAttrState; ]
105*cdf0e10cSrcweir	SID_ALIGNCENTERHOR	[ ExecMethod = ExecuteTextAttr;	StateMethod = GetTextAttrState;	]
106*cdf0e10cSrcweir
107*cdf0e10cSrcweir	SID_V_ALIGNCELL			[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
108*cdf0e10cSrcweir	SID_H_ALIGNCELL			[ ExecMethod = ExecuteAlignment; StateMethod = GetAlignState; ]
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir    SID_TEXTDIRECTION_LEFT_TO_RIGHT [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
111*cdf0e10cSrcweir    SID_TEXTDIRECTION_TOP_TO_BOTTOM [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
112*cdf0e10cSrcweir    SID_ATTR_PARA_LEFT_TO_RIGHT     [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
113*cdf0e10cSrcweir    SID_ATTR_PARA_RIGHT_TO_LEFT     [ ExecMethod = ExecuteTextDirection; StateMethod = GetTextDirectionState; ]
114*cdf0e10cSrcweir	SID_VERTICALTEXT_STATE          [ StateMethod = GetTextDirectionState ; Export = FALSE; ]
115*cdf0e10cSrcweir    SID_CTLFONT_STATE               [ StateMethod = GetTextDirectionState ; Export = FALSE; ]
116*cdf0e10cSrcweir
117*cdf0e10cSrcweir    SID_ATTR_NUMBERFORMAT_VALUE       [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState;]
118*cdf0e10cSrcweir    SID_NUMBER_FORMAT       [ ExecMethod = ExecuteNumFormat; StateMethod = GetNumFormatState;]
119*cdf0e10cSrcweir	SID_NUMBER_TWODEC		[ ExecMethod = ExecuteNumFormat;]
120*cdf0e10cSrcweir	SID_NUMBER_SCIENTIFIC	[ ExecMethod = ExecuteNumFormat;]
121*cdf0e10cSrcweir	SID_NUMBER_DATE			[ ExecMethod = ExecuteNumFormat;]
122*cdf0e10cSrcweir	SID_NUMBER_CURRENCY		[ ExecMethod = ExecuteNumFormat;]
123*cdf0e10cSrcweir	SID_NUMBER_PERCENT		[ ExecMethod = ExecuteNumFormat;]
124*cdf0e10cSrcweir	SID_NUMBER_TIME			[ ExecMethod = ExecuteNumFormat;]
125*cdf0e10cSrcweir	SID_NUMBER_STANDARD		[ ExecMethod = ExecuteNumFormat;]
126*cdf0e10cSrcweir	SID_NUMBER_INCDEC		[ ExecMethod = ExecuteNumFormat;]
127*cdf0e10cSrcweir	SID_NUMBER_DECDEC		[ ExecMethod = ExecuteNumFormat;]
128*cdf0e10cSrcweir
129*cdf0e10cSrcweir	SID_ATTR_BORDER				[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ] 	//XXX
130*cdf0e10cSrcweir	SID_ATTR_BORDER_INNER		[                           StateMethod = GetBorderState; ] // status()
131*cdf0e10cSrcweir    SID_ATTR_BORDER_OUTER       [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
132*cdf0e10cSrcweir    SID_ATTR_BORDER_SHADOW      [ ExecMethod = ExecuteAttr; StateMethod = GetBorderState; ]
133*cdf0e10cSrcweir	SID_ATTR_ALIGN_LINEBREAK	[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
134*cdf0e10cSrcweir	SID_FRAME_LINESTYLE			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
135*cdf0e10cSrcweir	SID_FRAME_LINECOLOR			[ ExecMethod = ExecuteAttr; StateMethod = GetAttrState; ]
136*cdf0e10cSrcweir
137*cdf0e10cSrcweir    SID_FORMATPAINTBRUSH    [ ExecMethod = ExecFormatPaintbrush; StateMethod = StateFormatPaintbrush; ]
138*cdf0e10cSrcweir}
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir // ===========================================================================
142*cdf0e10cSrcweirshell ScFormatShell
143*cdf0e10cSrcweir{
144*cdf0e10cSrcweir	import FormatForSelection[Automation];
145*cdf0e10cSrcweir//	import Interior ".Interior";
146*cdf0e10cSrcweir	import TableFont ".Font";
147*cdf0e10cSrcweir}
148*cdf0e10cSrcweir
149*cdf0e10cSrcweir
150