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