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