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