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