xref: /trunk/main/sw/inc/format.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
11d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
22cdf0e10cSrcweir #ifndef _FORMAT_HXX
23cdf0e10cSrcweir #define _FORMAT_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #include <tools/solar.h>
26cdf0e10cSrcweir #include "swdllapi.h"
27cdf0e10cSrcweir #include <errhdl.hxx>       // fuer ASSERT
28cdf0e10cSrcweir #include <swatrset.hxx>     // fuer SfxItemPool/-Set, Attr forward decl.
29cdf0e10cSrcweir #include <calbck.hxx>       // fuer SwModify
30cdf0e10cSrcweir #include <hintids.hxx>
3156b35d86SArmin Le Grand #include <boost/shared_ptr.hpp>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class IDocumentSettingAccess;
34cdf0e10cSrcweir class IDocumentDrawModelAccess;
35cdf0e10cSrcweir class IDocumentLayoutAccess;
36cdf0e10cSrcweir class IDocumentTimerAccess;
37cdf0e10cSrcweir class IDocumentFieldsAccess;
38cdf0e10cSrcweir class IDocumentChartDataProviderAccess;
39cdf0e10cSrcweir class SwDoc;
40cdf0e10cSrcweir 
4156b35d86SArmin Le Grand namespace drawinglayer { namespace attribute {
4256b35d86SArmin Le Grand     class SdrAllFillAttributesHelper;
4356b35d86SArmin Le Grand     typedef boost::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
4456b35d86SArmin Le Grand }}
4556b35d86SArmin Le Grand 
46cdf0e10cSrcweir class SW_DLLPUBLIC SwFmt : public SwModify
47cdf0e10cSrcweir {
48cdf0e10cSrcweir     String aFmtName;
49cdf0e10cSrcweir     SwAttrSet aSet;
50cdf0e10cSrcweir 
51cdf0e10cSrcweir     sal_uInt16 nWhichId;
52cdf0e10cSrcweir     sal_uInt16 nFmtId;          // Format-ID fuer Lesen/Schreiben
53cdf0e10cSrcweir     sal_uInt16 nPoolFmtId;      // Id-fuer "automatich" erzeugte Formate
54cdf0e10cSrcweir                             // (ist keine harte Attributierung !!)
55cdf0e10cSrcweir     sal_uInt16 nPoolHelpId;     // HelpId fuer diese Pool-Vorlage
56cdf0e10cSrcweir     sal_uInt8 nPoolHlpFileId;   // FilePos ans Doc auf die Vorlagen-Hilfen
57cdf0e10cSrcweir     sal_Bool   bWritten : 1;    // sal_True: bereits geschrieben
58cdf0e10cSrcweir     sal_Bool   bAutoFmt : 1;    // sal_False: es handelt sich um eine Vorlage
59cdf0e10cSrcweir                             // ist dflt immer auf sal_True !
60cdf0e10cSrcweir     sal_Bool   bFmtInDTOR : 1;  // sal_True: das Format wird geloscht. Damit man in
61cdf0e10cSrcweir                             // der FmtChg-Message das erkennen kann!!!
62cdf0e10cSrcweir     sal_Bool   bAutoUpdateFmt : 1;  // sal_True: am Format werden die Attribute
63cdf0e10cSrcweir                             // eines kompletten Absatzes gesetzt (UI-seitig!)
64cdf0e10cSrcweir 
65cdf0e10cSrcweir protected:
66cdf0e10cSrcweir     SwFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
67cdf0e10cSrcweir             const sal_uInt16* pWhichRanges, SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
68cdf0e10cSrcweir     SwFmt( SwAttrPool& rPool, const String &rFmtNm, const sal_uInt16* pWhichRanges,
69cdf0e10cSrcweir             SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
70cdf0e10cSrcweir     SwFmt( const SwFmt& rFmt );
71cdf0e10cSrcweir    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir public:
74cdf0e10cSrcweir     TYPEINFO();     //Bereits in Basisklasse Client drin.
75cdf0e10cSrcweir 
76cdf0e10cSrcweir     virtual ~SwFmt();
77cdf0e10cSrcweir     SwFmt &operator=(const SwFmt&);
78cdf0e10cSrcweir 
79cdf0e10cSrcweir     // fuer die Abfrage der Writer-Funktionen
Which() const80cdf0e10cSrcweir     sal_uInt16 Which() const { return nWhichId; }
81cdf0e10cSrcweir 
82cdf0e10cSrcweir         // erfrage vom Format Informationen
83cdf0e10cSrcweir     virtual sal_Bool GetInfo( SfxPoolItem& ) const;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir     // kopiere Attribute; auch ueber Dokumentgrenzen hinweg
86cdf0e10cSrcweir     void CopyAttrs( const SwFmt&, sal_Bool bReplace=sal_True );
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     // loesche alle Attribute, die nicht in rFmt stehen
89cdf0e10cSrcweir     void DelDiffs( const SfxItemSet& rSet );
DelDiffs(const SwFmt & rFmt)90cdf0e10cSrcweir     void DelDiffs( const SwFmt& rFmt ) { DelDiffs( rFmt.GetAttrSet() ); }
91cdf0e10cSrcweir 
92cdf0e10cSrcweir     // Umhaengen des Formats (0 = Default)
93cdf0e10cSrcweir     sal_Bool SetDerivedFrom(SwFmt *pDerivedFrom = 0);
94cdf0e10cSrcweir 
95cdf0e10cSrcweir     // Ist bInParents sal_False,
96cdf0e10cSrcweir     // wird nur in diesem Format nach dem Attribut gesucht.
977624f10dSArmin Le Grand     //UUUUinline
987624f10dSArmin Le Grand     const SfxPoolItem& GetFmtAttr( sal_uInt16 nWhich, sal_Bool bInParents = sal_True ) const;
997624f10dSArmin Le Grand     //UUUUinline
1007624f10dSArmin Le Grand     SfxItemState GetItemState( sal_uInt16 nWhich, sal_Bool bSrchInParent = sal_True, const SfxPoolItem **ppItem = 0 ) const;
1017624f10dSArmin Le Grand 
102cdf0e10cSrcweir     // --> OD 2008-03-03 #refactorlists#
103cdf0e10cSrcweir     // methods renamed and made virtual
104cdf0e10cSrcweir     virtual sal_Bool SetFmtAttr( const SfxPoolItem& rAttr );
105cdf0e10cSrcweir     virtual sal_Bool SetFmtAttr( const SfxItemSet& rSet );
106cdf0e10cSrcweir     virtual sal_Bool ResetFmtAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
107cdf0e10cSrcweir     // <--
108cdf0e10cSrcweir 
109cdf0e10cSrcweir     // --> OD 2007-01-24 #i73790#
110cdf0e10cSrcweir     // Method renamed and made virtual
111cdf0e10cSrcweir     // Nimmt alle Hints aus dem Delta-Array,
112cdf0e10cSrcweir     // liefert die Anzahl der geloeschten Hints
113cdf0e10cSrcweir     virtual sal_uInt16 ResetAllFmtAttr();
114cdf0e10cSrcweir     // <--
115cdf0e10cSrcweir 
DerivedFrom() const116cdf0e10cSrcweir     inline SwFmt* DerivedFrom() const { return (SwFmt*)GetRegisteredIn(); }
IsDefault() const117cdf0e10cSrcweir     inline sal_Bool IsDefault() const { return DerivedFrom() == 0; }
118cdf0e10cSrcweir 
GetName() const119cdf0e10cSrcweir     inline const String& GetName() const        { return aFmtName; }
120cdf0e10cSrcweir     void SetName( const String& rNewName, sal_Bool bBroadcast=sal_False );
121cdf0e10cSrcweir     inline void SetName( const sal_Char* pNewName,
122cdf0e10cSrcweir                          sal_Bool bBroadcast=sal_False);
123cdf0e10cSrcweir 
124cdf0e10cSrcweir     // zur Abfrage des Attribute Arrays
GetAttrSet() const125cdf0e10cSrcweir     inline const SwAttrSet& GetAttrSet() const { return aSet; }
126cdf0e10cSrcweir 
127cdf0e10cSrcweir     // Das Doc wird jetzt am SwAttrPool gesetzt. Dadurch hat man es immer
128cdf0e10cSrcweir     // im Zugriff.
GetDoc() const129cdf0e10cSrcweir     const SwDoc *GetDoc() const         { return aSet.GetDoc(); }
GetDoc()130cdf0e10cSrcweir           SwDoc *GetDoc()               { return aSet.GetDoc(); }
131cdf0e10cSrcweir 
132cdf0e10cSrcweir     /** Provides access to the document settings interface
133cdf0e10cSrcweir      */
134cdf0e10cSrcweir     const IDocumentSettingAccess* getIDocumentSettingAccess() const;
135cdf0e10cSrcweir 
136cdf0e10cSrcweir     /** Provides access to the document draw model interface
137cdf0e10cSrcweir      */
138cdf0e10cSrcweir     const IDocumentDrawModelAccess* getIDocumentDrawModelAccess() const;
139cdf0e10cSrcweir           IDocumentDrawModelAccess* getIDocumentDrawModelAccess();
140cdf0e10cSrcweir 
141cdf0e10cSrcweir     /** Provides access to the document layout interface
142cdf0e10cSrcweir      */
143cdf0e10cSrcweir     const IDocumentLayoutAccess* getIDocumentLayoutAccess() const;
144cdf0e10cSrcweir           IDocumentLayoutAccess* getIDocumentLayoutAccess();
145cdf0e10cSrcweir 
146cdf0e10cSrcweir      /** Provides access to the document idle timer interface
147cdf0e10cSrcweir      */
148cdf0e10cSrcweir     IDocumentTimerAccess* getIDocumentTimerAccess();
149cdf0e10cSrcweir 
150cdf0e10cSrcweir      /** Provides access to the document idle timer interface
151cdf0e10cSrcweir      */
152cdf0e10cSrcweir     IDocumentFieldsAccess* getIDocumentFieldsAccess();
153cdf0e10cSrcweir 
154cdf0e10cSrcweir      /** gives access to the chart data-provider
155cdf0e10cSrcweir      */
156cdf0e10cSrcweir     IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess();
157cdf0e10cSrcweir 
158cdf0e10cSrcweir     // erfragen und setzen der Poolvorlagen-Id's
GetPoolFmtId() const159cdf0e10cSrcweir     sal_uInt16 GetPoolFmtId() const { return nPoolFmtId; }
SetPoolFmtId(sal_uInt16 nId)160cdf0e10cSrcweir     void SetPoolFmtId( sal_uInt16 nId ) { nPoolFmtId = nId; }
161cdf0e10cSrcweir 
162cdf0e10cSrcweir     // erfragen und setzen der Hilfe-Id's fuer die Document-Vorlagen
GetPoolHelpId() const163cdf0e10cSrcweir     sal_uInt16 GetPoolHelpId() const { return nPoolHelpId; }
SetPoolHelpId(sal_uInt16 nId)164cdf0e10cSrcweir     void SetPoolHelpId( sal_uInt16 nId ) { nPoolHelpId = nId; }
GetPoolHlpFileId() const165cdf0e10cSrcweir     sal_uInt8 GetPoolHlpFileId() const { return nPoolHlpFileId; }
SetPoolHlpFileId(sal_uInt8 nId)166cdf0e10cSrcweir     void SetPoolHlpFileId( sal_uInt8 nId ) { nPoolHlpFileId = nId; }
167cdf0e10cSrcweir     // erfrage die Attribut-Beschreibung, returnt den reingereichten String
GetPresentation(SfxItemPresentation ePres,SfxMapUnit eCoreMetric,SfxMapUnit ePresMetric,String & rText) const168cdf0e10cSrcweir     void GetPresentation( SfxItemPresentation ePres,
169cdf0e10cSrcweir         SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String &rText ) const
170cdf0e10cSrcweir         { aSet.GetPresentation( ePres, eCoreMetric, ePresMetric, rText ); }
171cdf0e10cSrcweir     // Das Format-ID fuer Lesen/Schreiben:
ResetWritten()172cdf0e10cSrcweir     void   ResetWritten()    { bWritten = sal_False; }
173cdf0e10cSrcweir 
174cdf0e10cSrcweir     // Abfragen/Setzen vom AutoFmt-Flag
IsAuto() const175cdf0e10cSrcweir     sal_Bool IsAuto() const                 { return bAutoFmt; }
SetAuto(sal_Bool bNew=sal_False)176cdf0e10cSrcweir     void SetAuto( sal_Bool bNew = sal_False )   { bAutoFmt = bNew; }
177cdf0e10cSrcweir 
178cdf0e10cSrcweir     // Abfragen/Setzen vom bAutoUpdateFmt-Flag
IsAutoUpdateFmt() const179cdf0e10cSrcweir     sal_Bool IsAutoUpdateFmt() const                { return bAutoUpdateFmt; }
SetAutoUpdateFmt(sal_Bool bNew=sal_True)180cdf0e10cSrcweir     void SetAutoUpdateFmt( sal_Bool bNew = sal_True )   { bAutoUpdateFmt = bNew; }
181cdf0e10cSrcweir 
IsFmtInDTOR() const182cdf0e10cSrcweir     sal_Bool IsFmtInDTOR() const { return bFmtInDTOR; }
183cdf0e10cSrcweir 
184cdf0e10cSrcweir     // GetMethoden: das Bool gibt an, ob nur im Set (sal_False) oder auch in
185cdf0e10cSrcweir     //              den Parents gesucht werden soll. Wird nichts gefunden,
186cdf0e10cSrcweir     //              wird das deflt. Attribut returnt.
187cdf0e10cSrcweir     // Charakter-Attribute  - impl. steht im charatr.hxx
188cdf0e10cSrcweir     // AMA 12.10.94: Umstellung von SwFmt... auf Svx...
189cdf0e10cSrcweir     inline const SvxPostureItem      &GetPosture( sal_Bool = sal_True ) const;
190cdf0e10cSrcweir     inline const SvxWeightItem       &GetWeight( sal_Bool = sal_True ) const;
191cdf0e10cSrcweir     inline const SvxShadowedItem     &GetShadowed( sal_Bool = sal_True ) const;
192cdf0e10cSrcweir     inline const SvxAutoKernItem     &GetAutoKern( sal_Bool = sal_True ) const;
193cdf0e10cSrcweir     inline const SvxWordLineModeItem &GetWordLineMode( sal_Bool = sal_True ) const;
194cdf0e10cSrcweir     inline const SvxContourItem      &GetContour( sal_Bool = sal_True ) const;
195cdf0e10cSrcweir     inline const SvxKerningItem      &GetKerning( sal_Bool = sal_True ) const;
196cdf0e10cSrcweir     inline const SvxUnderlineItem    &GetUnderline( sal_Bool = sal_True ) const;
197cdf0e10cSrcweir     inline const SvxOverlineItem     &GetOverline( sal_Bool = sal_True ) const;
198cdf0e10cSrcweir     inline const SvxCrossedOutItem   &GetCrossedOut( sal_Bool = sal_True ) const;
199cdf0e10cSrcweir     inline const SvxFontHeightItem   &GetSize( sal_Bool = sal_True ) const;
200cdf0e10cSrcweir     inline const SvxPropSizeItem     &GetPropSize( sal_Bool = sal_True ) const;
201cdf0e10cSrcweir     inline const SvxFontItem         &GetFont( sal_Bool = sal_True ) const;
202cdf0e10cSrcweir     inline const SvxColorItem        &GetColor( sal_Bool = sal_True ) const;
203cdf0e10cSrcweir     inline const SvxCharSetColorItem &GetCharSetColor( sal_Bool = sal_True ) const;
204cdf0e10cSrcweir     inline const SvxLanguageItem     &GetLanguage( sal_Bool = sal_True ) const;
205cdf0e10cSrcweir     inline const SvxEscapementItem   &GetEscapement( sal_Bool = sal_True ) const;
206cdf0e10cSrcweir     inline const SvxCaseMapItem      &GetCaseMap( sal_Bool = sal_True ) const;
207cdf0e10cSrcweir     inline const SvxNoHyphenItem     &GetNoHyphenHere( sal_Bool = sal_True ) const;
208cdf0e10cSrcweir     inline const SvxBlinkItem        &GetBlink( sal_Bool = sal_True ) const;
209cdf0e10cSrcweir     inline const SvxBrushItem        &GetChrBackground( sal_Bool = sal_True ) const;
210cdf0e10cSrcweir 
211cdf0e10cSrcweir     inline const SvxFontItem         &GetCJKFont( sal_Bool = sal_True ) const;
212cdf0e10cSrcweir     inline const SvxFontHeightItem   &GetCJKSize( sal_Bool = sal_True ) const;
213cdf0e10cSrcweir     inline const SvxLanguageItem     &GetCJKLanguage( sal_Bool = sal_True ) const;
214cdf0e10cSrcweir     inline const SvxPostureItem      &GetCJKPosture( sal_Bool = sal_True ) const;
215cdf0e10cSrcweir     inline const SvxWeightItem       &GetCJKWeight( sal_Bool = sal_True ) const;
216cdf0e10cSrcweir     inline const SvxFontItem         &GetCTLFont( sal_Bool = sal_True ) const;
217cdf0e10cSrcweir     inline const SvxFontHeightItem   &GetCTLSize( sal_Bool = sal_True ) const;
218cdf0e10cSrcweir     inline const SvxLanguageItem     &GetCTLLanguage( sal_Bool = sal_True ) const;
219cdf0e10cSrcweir     inline const SvxPostureItem      &GetCTLPosture( sal_Bool = sal_True ) const;
220cdf0e10cSrcweir     inline const SvxWeightItem       &GetCTLWeight( sal_Bool = sal_True ) const;
221cdf0e10cSrcweir     inline const SfxBoolItem           &GetWritingDirection( sal_Bool = sal_True ) const;
222cdf0e10cSrcweir     inline const SvxEmphasisMarkItem &GetEmphasisMark( sal_Bool = sal_True ) const;
223cdf0e10cSrcweir     inline const SvxTwoLinesItem   &Get2Lines( sal_Bool = sal_True ) const;
224cdf0e10cSrcweir     inline const SvxCharScaleWidthItem &GetCharScaleW( sal_Bool = sal_True ) const;
225cdf0e10cSrcweir     inline const SvxCharRotateItem     &GetCharRotate( sal_Bool = sal_True ) const;
226cdf0e10cSrcweir     inline const SvxCharReliefItem     &GetCharRelief( sal_Bool = sal_True ) const;
227cdf0e10cSrcweir     inline const SvxCharHiddenItem   &GetCharHidden( sal_Bool = sal_True ) const;
228cdf0e10cSrcweir 
229cdf0e10cSrcweir     // Frame-Attribute  - impl. steht im frmatr.hxx,
230cdf0e10cSrcweir     inline const SwFmtFillOrder           &GetFillOrder( sal_Bool = sal_True ) const;
231cdf0e10cSrcweir     inline const SwFmtFrmSize             &GetFrmSize( sal_Bool = sal_True ) const;
232cdf0e10cSrcweir     inline const SwFmtHeader          &GetHeader( sal_Bool = sal_True ) const;
233cdf0e10cSrcweir     inline const SwFmtFooter          &GetFooter( sal_Bool = sal_True ) const;
234cdf0e10cSrcweir     inline const SwFmtSurround            &GetSurround( sal_Bool = sal_True ) const;
235cdf0e10cSrcweir     inline const SwFmtHoriOrient      &GetHoriOrient( sal_Bool = sal_True ) const;
236cdf0e10cSrcweir     inline const SwFmtAnchor          &GetAnchor( sal_Bool = sal_True ) const;
237cdf0e10cSrcweir     inline const SwFmtCol                 &GetCol( sal_Bool = sal_True ) const;
238cdf0e10cSrcweir     inline const SvxPaperBinItem      &GetPaperBin( sal_Bool = sal_True ) const;
239cdf0e10cSrcweir     inline const SvxLRSpaceItem           &GetLRSpace( sal_Bool = sal_True ) const;
240cdf0e10cSrcweir     inline const SvxULSpaceItem           &GetULSpace( sal_Bool = sal_True ) const;
241cdf0e10cSrcweir     inline const SwFmtCntnt           &GetCntnt( sal_Bool = sal_True ) const;
242cdf0e10cSrcweir     inline const SvxPrintItem             &GetPrint( sal_Bool = sal_True ) const;
243cdf0e10cSrcweir     inline const SvxOpaqueItem            &GetOpaque( sal_Bool = sal_True ) const;
244cdf0e10cSrcweir     inline const SvxProtectItem           &GetProtect( sal_Bool = sal_True ) const;
245cdf0e10cSrcweir     inline const SwFmtVertOrient      &GetVertOrient( sal_Bool = sal_True ) const;
246cdf0e10cSrcweir     inline const SvxBoxItem               &GetBox( sal_Bool = sal_True ) const;
247cdf0e10cSrcweir     inline const SvxFmtKeepItem         &GetKeep( sal_Bool = sal_True ) const;
2487624f10dSArmin Le Grand 
24956b35d86SArmin Le Grand     //UUUU Get SvxBrushItem for Background fill (partially for backwards compatibility)
2507624f10dSArmin Le Grand     const SvxBrushItem& GetBackground( sal_Bool = sal_True ) const;
2517624f10dSArmin Le Grand 
252cdf0e10cSrcweir     inline const SvxShadowItem            &GetShadow( sal_Bool = sal_True ) const;
253cdf0e10cSrcweir     inline const SwFmtPageDesc            &GetPageDesc( sal_Bool = sal_True ) const;
254cdf0e10cSrcweir     inline const SvxFmtBreakItem      &GetBreak( sal_Bool = sal_True ) const;
255cdf0e10cSrcweir     inline const SvxMacroItem             &GetMacro( sal_Bool = sal_True ) const;
256cdf0e10cSrcweir     inline const SwFmtURL             &GetURL( sal_Bool = sal_True ) const;
257cdf0e10cSrcweir     inline const SwFmtEditInReadonly  &GetEditInReadonly( sal_Bool = sal_True ) const;
258cdf0e10cSrcweir     inline const SwFmtLayoutSplit     &GetLayoutSplit( sal_Bool = sal_True ) const;
259cdf0e10cSrcweir     inline const SwFmtRowSplit          &GetRowSplit( sal_Bool = sal_True ) const;
260cdf0e10cSrcweir     inline const SwFmtChain               &GetChain( sal_Bool = sal_True ) const;
261cdf0e10cSrcweir     inline const SwFmtLineNumber      &GetLineNumber( sal_Bool = sal_True ) const;
262cdf0e10cSrcweir     inline const SwFmtFtnAtTxtEnd     &GetFtnAtTxtEnd( sal_Bool = sal_True ) const;
263cdf0e10cSrcweir     inline const SwFmtEndAtTxtEnd     &GetEndAtTxtEnd( sal_Bool = sal_True ) const;
264cdf0e10cSrcweir     inline const SwFmtNoBalancedColumns &GetBalancedColumns( sal_Bool = sal_True ) const;
265cdf0e10cSrcweir     inline const SvxFrameDirectionItem    &GetFrmDir( sal_Bool = sal_True ) const;
266cdf0e10cSrcweir     inline const SwTextGridItem         &GetTextGrid( sal_Bool = sal_True ) const;
267cdf0e10cSrcweir     inline const SwHeaderAndFooterEatSpacingItem &GetHeaderAndFooterEatSpacing( sal_Bool = sal_True ) const;
268cdf0e10cSrcweir     // OD 18.09.2003 #i18732#
269cdf0e10cSrcweir     inline const SwFmtFollowTextFlow    &GetFollowTextFlow(sal_Bool = sal_True) const;
270cdf0e10cSrcweir     // OD 2004-05-05 #i28701#
271cdf0e10cSrcweir     inline const SwFmtWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(sal_Bool = sal_True) const;
272cdf0e10cSrcweir 
273cdf0e10cSrcweir     // Grafik-Attribute - impl. steht im grfatr.hxx
274cdf0e10cSrcweir     inline const SwMirrorGrf          &GetMirrorGrf( sal_Bool = sal_True ) const;
275cdf0e10cSrcweir     inline const SwCropGrf            &GetCropGrf( sal_Bool = sal_True ) const;
276cdf0e10cSrcweir     inline const SwRotationGrf            &GetRotationGrf(sal_Bool = sal_True ) const;
277cdf0e10cSrcweir     inline const SwLuminanceGrf       &GetLuminanceGrf(sal_Bool = sal_True ) const;
278cdf0e10cSrcweir     inline const SwContrastGrf            &GetContrastGrf(sal_Bool = sal_True ) const;
279cdf0e10cSrcweir     inline const SwChannelRGrf            &GetChannelRGrf(sal_Bool = sal_True ) const;
280cdf0e10cSrcweir     inline const SwChannelGGrf            &GetChannelGGrf(sal_Bool = sal_True ) const;
281cdf0e10cSrcweir     inline const SwChannelBGrf            &GetChannelBGrf(sal_Bool = sal_True ) const;
282cdf0e10cSrcweir     inline const SwGammaGrf           &GetGammaGrf(sal_Bool = sal_True ) const;
283cdf0e10cSrcweir     inline const SwInvertGrf          &GetInvertGrf(sal_Bool = sal_True ) const;
284cdf0e10cSrcweir     inline const SwTransparencyGrf        &GetTransparencyGrf(sal_Bool = sal_True ) const;
285cdf0e10cSrcweir     inline const SwDrawModeGrf            &GetDrawModeGrf(sal_Bool = sal_True ) const;
286cdf0e10cSrcweir 
287cdf0e10cSrcweir     // Paragraph-Attribute  - impl. steht im paratr.hxx
288cdf0e10cSrcweir     inline const SvxLineSpacingItem       &GetLineSpacing( sal_Bool = sal_True ) const;
289cdf0e10cSrcweir     inline const SvxAdjustItem            &GetAdjust( sal_Bool = sal_True ) const;
290cdf0e10cSrcweir     inline const SvxFmtSplitItem      &GetSplit( sal_Bool = sal_True ) const;
291cdf0e10cSrcweir     inline const SwRegisterItem           &GetRegister( sal_Bool = sal_True ) const;
292cdf0e10cSrcweir     inline const SwNumRuleItem            &GetNumRule( sal_Bool = sal_True ) const;
293cdf0e10cSrcweir     inline const SvxWidowsItem            &GetWidows( sal_Bool = sal_True ) const;
294cdf0e10cSrcweir     inline const SvxOrphansItem           &GetOrphans( sal_Bool = sal_True ) const;
295cdf0e10cSrcweir     inline const SvxTabStopItem           &GetTabStops( sal_Bool = sal_True ) const;
296cdf0e10cSrcweir     inline const SvxHyphenZoneItem        &GetHyphenZone( sal_Bool = sal_True ) const;
297cdf0e10cSrcweir     inline const SwFmtDrop                &GetDrop( sal_Bool = sal_True ) const;
298cdf0e10cSrcweir     inline const SvxScriptSpaceItem       &GetScriptSpace(sal_Bool = sal_True) const;
299cdf0e10cSrcweir     inline const SvxHangingPunctuationItem &GetHangingPunctuation(sal_Bool = sal_True) const;
300cdf0e10cSrcweir     inline const SvxForbiddenRuleItem     &GetForbiddenRule(sal_Bool = sal_True) const;
301cdf0e10cSrcweir     inline const SvxParaVertAlignItem &GetParaVertAlign(sal_Bool = sal_True) const;
302cdf0e10cSrcweir     inline const SvxParaGridItem        &GetParaGrid(sal_Bool = sal_True) const;
303cdf0e10cSrcweir     inline const SwParaConnectBorderItem &GetParaConnectBorder(sal_Bool = sal_True ) const;
304cdf0e10cSrcweir 
305cdf0e10cSrcweir     // TabellenBox-Attribute    - impl. steht im cellatr.hxx
306cdf0e10cSrcweir     inline  const SwTblBoxNumFormat     &GetTblBoxNumFmt( sal_Bool = sal_True ) const;
307cdf0e10cSrcweir     inline  const SwTblBoxFormula       &GetTblBoxFormula( sal_Bool = sal_True ) const;
308cdf0e10cSrcweir     inline  const SwTblBoxValue         &GetTblBoxValue( sal_Bool = sal_True ) const;
309cdf0e10cSrcweir 
310cdf0e10cSrcweir     /** SwFmt::IsBackgroundTransparent - for feature #99657#
311cdf0e10cSrcweir 
312cdf0e10cSrcweir         OD 22.08.2002
313cdf0e10cSrcweir         Virtual method to determine, if background of format is transparent.
314cdf0e10cSrcweir         Default implementation returns false. Thus, subclasses have to overload
315cdf0e10cSrcweir         method, if the specific subclass can have a transparent background.
316cdf0e10cSrcweir 
317cdf0e10cSrcweir         @author OD
318cdf0e10cSrcweir 
319cdf0e10cSrcweir         @return false, default implementation
320cdf0e10cSrcweir     */
321cdf0e10cSrcweir     virtual sal_Bool IsBackgroundTransparent() const;
322cdf0e10cSrcweir 
323cdf0e10cSrcweir     /** SwFmt::IsShadowTransparent - for feature #99657#
324cdf0e10cSrcweir 
325cdf0e10cSrcweir         OD 22.08.2002
326cdf0e10cSrcweir         Virtual method to determine, if shadow of format is transparent.
327cdf0e10cSrcweir         Default implementation returns false. Thus, subclasses have to overload
328cdf0e10cSrcweir         method, if the specific subclass can have a transparent shadow.
329cdf0e10cSrcweir 
330cdf0e10cSrcweir         @author OD
331cdf0e10cSrcweir 
332cdf0e10cSrcweir         @return false, default implementation
333cdf0e10cSrcweir     */
334cdf0e10cSrcweir     virtual sal_Bool IsShadowTransparent() const;
3357624f10dSArmin Le Grand 
336*28160478SArmin Le Grand     //UUUU decide if DrawingLayer FillAttributes are supported. If answering this with yes
337*28160478SArmin Le Grand     // the full FillStyle ItemSet will be used to handle/visualize the element
338*28160478SArmin Le Grand     virtual bool supportsFullDrawingLayerFillAttributeSet() const;
339*28160478SArmin Le Grand 
34056b35d86SArmin Le Grand     //UUUU Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
34156b35d86SArmin Le Grand     virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
342cdf0e10cSrcweir };
343cdf0e10cSrcweir 
344cdf0e10cSrcweir // --------------- inline Implementierungen ------------------------
345cdf0e10cSrcweir 
SetName(const sal_Char * pNewName,sal_Bool bBroadcast)346cdf0e10cSrcweir inline void SwFmt::SetName( const sal_Char* pNewName,
347cdf0e10cSrcweir                             sal_Bool bBroadcast )
348cdf0e10cSrcweir {
349cdf0e10cSrcweir     String aTmp( String::CreateFromAscii( pNewName ) );
350cdf0e10cSrcweir     SetName( aTmp, bBroadcast );
351cdf0e10cSrcweir }
352cdf0e10cSrcweir 
353cdf0e10cSrcweir #undef inline
354cdf0e10cSrcweir 
355cdf0e10cSrcweir #endif // _FORMAT_HXX
356