Files
libreoffice/sw/inc/format.hxx

343 lines
18 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 16:15:01 +00:00
#ifndef _FORMAT_HXX
#define _FORMAT_HXX
#include <tools/solar.h>
#include "swdllapi.h"
#include <swatrset.hxx> ///< For SfxItemPool/-Set, Attr forward decl.
#include <calbck.hxx> ///< For SwModify.
2000-09-18 16:15:01 +00:00
#include <hintids.hxx>
class IDocumentSettingAccess;
class IDocumentDrawModelAccess;
class IDocumentLayoutAccess;
class IDocumentTimerAccess;
class IDocumentFieldsAccess;
class IDocumentChartDataProviderAccess;
2000-09-18 16:15:01 +00:00
class SwDoc;
2012-02-17 10:47:49 +01:00
/// Base class for various Writer styles.
CWS-TOOLING: integrate CWS libmsword 2008-12-18 12:33:19 +0100 kendy r265681 : Export less symbols. 2008-12-17 19:26:56 +0100 kendy r265655 : Move libmsword to the -writer package. 2008-12-15 17:46:16 +0100 kendy r265516 : Enable exceptions for iodetect.cxx. 2008-12-15 15:17:53 +0100 kendy r265504 : Deliver the msword.dll. 2008-12-09 19:38:17 +0100 kendy r265138 : Remove accidentally added method. 2008-12-09 19:33:57 +0100 kendy r265137 : Fix linking on Win32. 2008-12-09 18:37:16 +0100 kendy r265135 : Move SwFltControlStack::Delete() to ww1/fltshell.cxx to fix linking. 2008-12-09 18:01:56 +0100 kendy r265127 : Visibility fixes. 2008-12-09 15:51:52 +0100 kendy r265109 : Fix ambiguous usage of class Color. 2008-12-09 14:54:27 +0100 kendy r265091 : Add #include "precompiled_sw.hxx" to fix --enable-pch build. 2008-12-09 14:44:59 +0100 kendy r265088 : Add #include "precompiled_sw.hxx" to fix --enable-pch build. 2008-12-08 19:14:49 +0100 kendy r265015 : #i96313# Get rid of inc/iodetect.cxx, it's a really bad idea to share code by #ifdefing parts of it, and #including a .cxx file ;-) This change moves it to iodetect.cxx, which is compiled to a .o/.obj that is used where needed. 2008-11-20 17:45:08 +0100 kendy r264083 : #i96313# Make the destruction of Readers consistent. 2008-11-20 17:18:11 +0100 kendy r264070 : #i96313# Added missing SW_DLLPUBLIC for (Import|Export)(DOC|RTF). 2008-11-18 19:21:07 +0100 kendy r263797 : #i96313# Remove accidentally added file. 2008-11-18 17:14:31 +0100 kendy r263790 : #i96313# Split doc and rtf filters into a separate library From: Radek Doulik <rodo@novell.com> fix SwFieldBookmark class visibility (suggested by kendy) 2008-11-18 17:14:01 +0100 kendy r263789 : #i96313# Split doc and rtf filters into a separate library From: Fridrich Strba <fstrba@novell.com> add visibility markup to allow linking 2008-11-18 17:13:29 +0100 kendy r263788 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Visibility markup for libmsword. This is the most trivial approach, every class that had a symbol that needed to be visible was marked with SW_DLLPUBLIC; the correct (but more time consuming) way would be to mark just the exact methods that were needed. To be done later if generally shows that the separate libmsword makes sense; and also now we have the upper limit of symbols that needed to be added, and we can only make it better [decrease the number] ;-) 2008-11-18 17:12:58 +0100 kendy r263787 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Added the missing msword.map. 2008-11-18 17:12:25 +0100 kendy r263786 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> scp2 change for libmsword. 2008-11-18 17:11:55 +0100 kendy r263785 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Convert the binary .doc and .rtf filters into a separate library. It is called 'libmsword' and loaded on demand when either of the formats (.doc, .rtf) is loaded or saved.
2009-01-05 14:06:42 +00:00
class SW_DLLPUBLIC SwFmt : public SwModify
2000-09-18 16:15:01 +00:00
{
OUString aFmtName;
2000-09-18 16:15:01 +00:00
SwAttrSet aSet;
sal_uInt16 nWhichId;
sal_uInt16 nPoolFmtId; /**< Id for "automatically" created formats.
(is not hard attribution!!!) */
sal_uInt16 nPoolHelpId; ///< HelpId for this Pool-style.
sal_uInt8 nPoolHlpFileId; ///< FilePos to Doc to these style helps.
sal_Bool bWritten : 1; ///< TRUE: already written.
bool bAutoFmt : 1; /**< FALSE: it is a template.
default is true! */
sal_Bool bFmtInDTOR : 1; /**< TRUE: Format becomes deleted. In order to be able
to recognize this in FmtChg-message!! */
sal_Bool bAutoUpdateFmt : 1;/**< TRUE: Set attributes of a whole paragraph
at format (UI-side!). */
bool bHidden : 1;
2000-09-18 16:15:01 +00:00
protected:
SwFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
const sal_uInt16* pWhichRanges, SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
SwFmt( SwAttrPool& rPool, const OUString &rFmtNm, const sal_uInt16* pWhichRanges,
SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
2000-09-18 16:15:01 +00:00
SwFmt( const SwFmt& rFmt );
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue );
2000-09-18 16:15:01 +00:00
public:
TYPEINFO(); ///< Already in base class Client.
2000-09-18 16:15:01 +00:00
virtual ~SwFmt();
SwFmt &operator=(const SwFmt&);
/// for Querying of Writer-functions.
sal_uInt16 Which() const { return nWhichId; }
2000-09-18 16:15:01 +00:00
2011-02-07 02:08:11 +01:00
/// Query format information.
virtual bool GetInfo( SfxPoolItem& ) const;
2000-09-18 16:15:01 +00:00
/// Copy attributes even among documents.
void CopyAttrs( const SwFmt&, sal_Bool bReplace=sal_True );
2000-09-18 16:15:01 +00:00
/// Delete all attributes that are not in rFmt.
2000-09-18 16:15:01 +00:00
void DelDiffs( const SfxItemSet& rSet );
void DelDiffs( const SwFmt& rFmt ) { DelDiffs( rFmt.GetAttrSet() ); }
/// 0 is Default.
sal_Bool SetDerivedFrom(SwFmt *pDerivedFrom = 0);
2000-09-18 16:15:01 +00:00
/// If bInParents is FALSE, search only in this format for attribute.
inline const SfxPoolItem& GetFmtAttr( sal_uInt16 nWhich,
sal_Bool bInParents = sal_True ) const;
inline SfxItemState GetItemState( sal_uInt16 nWhich, sal_Bool bSrchInParent = sal_True,
2000-09-18 16:15:01 +00:00
const SfxPoolItem **ppItem = 0 ) const;
virtual bool SetFmtAttr( const SfxPoolItem& rAttr );
virtual bool SetFmtAttr( const SfxItemSet& rSet );
virtual bool ResetFmtAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
2000-09-18 16:15:01 +00:00
/** Takes all hints from Delta-Array,
@return count of deleted hints. */
virtual sal_uInt16 ResetAllFmtAttr();
2000-09-18 16:15:01 +00:00
inline SwFmt* DerivedFrom() const { return (SwFmt*)GetRegisteredIn(); }
inline sal_Bool IsDefault() const { return DerivedFrom() == 0; }
2000-09-18 16:15:01 +00:00
inline OUString GetName() const { return aFmtName; }
void SetName( const OUString& rNewName, sal_Bool bBroadcast=sal_False );
inline void SetName( const sal_Char* pNewName,
sal_Bool bBroadcast=sal_False);
2000-09-18 16:15:01 +00:00
/// For querying the attribute array.
2000-09-18 16:15:01 +00:00
inline const SwAttrSet& GetAttrSet() const { return aSet; }
/** Das Doc wird jetzt am SwAttrPool gesetzt. Dadurch hat man es immer
im Zugriff. */
2000-09-18 16:15:01 +00:00
const SwDoc *GetDoc() const { return aSet.GetDoc(); }
SwDoc *GetDoc() { return aSet.GetDoc(); }
2011-02-07 02:08:11 +01:00
/// Provides access to the document settings interface.
const IDocumentSettingAccess* getIDocumentSettingAccess() const;
2011-02-07 02:08:11 +01:00
/// Provides access to the document draw model interface.
const IDocumentDrawModelAccess* getIDocumentDrawModelAccess() const;
IDocumentDrawModelAccess* getIDocumentDrawModelAccess();
2011-02-07 02:08:11 +01:00
/// Provides access to the document layout interface.
const IDocumentLayoutAccess* getIDocumentLayoutAccess() const;
IDocumentLayoutAccess* getIDocumentLayoutAccess();
2011-02-07 02:08:11 +01:00
/// Provides access to the document idle timer interface.
IDocumentTimerAccess* getIDocumentTimerAccess();
2011-02-07 02:08:11 +01:00
/// Provides access to the document idle timer interface.
IDocumentFieldsAccess* getIDocumentFieldsAccess();
2011-02-07 02:08:11 +01:00
/// Gives access to the chart data-provider.
IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess();
/// Get and set Pool style IDs.
sal_uInt16 GetPoolFmtId() const { return nPoolFmtId; }
void SetPoolFmtId( sal_uInt16 nId ) { nPoolFmtId = nId; }
2000-09-18 16:15:01 +00:00
/// Get and set Help-IDs for document templates.
sal_uInt16 GetPoolHelpId() const { return nPoolHelpId; }
void SetPoolHelpId( sal_uInt16 nId ) { nPoolHelpId = nId; }
sal_uInt8 GetPoolHlpFileId() const { return nPoolHlpFileId; }
void SetPoolHlpFileId( sal_uInt8 nId ) { nPoolHlpFileId = nId; }
2011-02-07 02:08:11 +01:00
/// Get attribute-description. Returns passed string.
2000-09-18 16:15:01 +00:00
void GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText ) const
2000-09-18 16:15:01 +00:00
{ aSet.GetPresentation( ePres, eCoreMetric, ePresMetric, rText ); }
2011-02-07 02:08:11 +01:00
/// Format-ID for reading/writing:
void ResetWritten() { bWritten = sal_False; }
2000-09-18 16:15:01 +00:00
/// Query / set AutoFmt-flag.
bool IsAuto() const { return bAutoFmt; }
void SetAuto( bool bNew = false ) { bAutoFmt = bNew; }
2000-09-18 16:15:01 +00:00
bool IsHidden() const { return bHidden; }
void SetHidden( bool bValue = false ) { bHidden = bValue; }
/// Query / set bAutoUpdateFmt-flag.
sal_Bool IsAutoUpdateFmt() const { return bAutoUpdateFmt; }
void SetAutoUpdateFmt( sal_Bool bNew = sal_True ) { bAutoUpdateFmt = bNew; }
2000-09-18 16:15:01 +00:00
sal_Bool IsFmtInDTOR() const { return bFmtInDTOR; }
2000-09-18 16:15:01 +00:00
/** GetMethods: Bool indicates whether to search only in Set (FALSE)
or also in Parents.
If nothing is found the defaulted attribute is returned. */
2011-02-07 02:08:11 +01:00
/// Character-attributes - implemented in charatr.hxx
inline const SvxPostureItem &GetPosture( sal_Bool = sal_True ) const;
inline const SvxWeightItem &GetWeight( sal_Bool = sal_True ) const;
inline const SvxShadowedItem &GetShadowed( sal_Bool = sal_True ) const;
inline const SvxAutoKernItem &GetAutoKern( sal_Bool = sal_True ) const;
inline const SvxWordLineModeItem &GetWordLineMode( sal_Bool = sal_True ) const;
inline const SvxContourItem &GetContour( sal_Bool = sal_True ) const;
inline const SvxKerningItem &GetKerning( sal_Bool = sal_True ) const;
inline const SvxUnderlineItem &GetUnderline( sal_Bool = sal_True ) const;
inline const SvxOverlineItem &GetOverline( sal_Bool = sal_True ) const;
inline const SvxCrossedOutItem &GetCrossedOut( sal_Bool = sal_True ) const;
inline const SvxFontHeightItem &GetSize( sal_Bool = sal_True ) const;
inline const SvxPropSizeItem &GetPropSize( sal_Bool = sal_True ) const;
inline const SvxFontItem &GetFont( sal_Bool = sal_True ) const;
inline const SvxColorItem &GetColor( sal_Bool = sal_True ) const;
inline const SvxCharSetColorItem &GetCharSetColor( sal_Bool = sal_True ) const;
inline const SvxLanguageItem &GetLanguage( sal_Bool = sal_True ) const;
inline const SvxEscapementItem &GetEscapement( sal_Bool = sal_True ) const;
inline const SvxCaseMapItem &GetCaseMap( sal_Bool = sal_True ) const;
inline const SvxNoHyphenItem &GetNoHyphenHere( sal_Bool = sal_True ) const;
inline const SvxBlinkItem &GetBlink( sal_Bool = sal_True ) const;
inline const SvxBrushItem &GetChrBackground( sal_Bool = sal_True ) const;
inline const SvxBrushItem &GetChrHighlight( sal_Bool = sal_True ) const;
inline const SvxFontItem &GetCJKFont( sal_Bool = sal_True ) const;
inline const SvxFontHeightItem &GetCJKSize( sal_Bool = sal_True ) const;
inline const SvxLanguageItem &GetCJKLanguage( sal_Bool = sal_True ) const;
inline const SvxPostureItem &GetCJKPosture( sal_Bool = sal_True ) const;
inline const SvxWeightItem &GetCJKWeight( sal_Bool = sal_True ) const;
inline const SvxFontItem &GetCTLFont( sal_Bool = sal_True ) const;
inline const SvxFontHeightItem &GetCTLSize( sal_Bool = sal_True ) const;
inline const SvxLanguageItem &GetCTLLanguage( sal_Bool = sal_True ) const;
inline const SvxPostureItem &GetCTLPosture( sal_Bool = sal_True ) const;
inline const SvxWeightItem &GetCTLWeight( sal_Bool = sal_True ) const;
inline const SfxBoolItem &GetWritingDirection( sal_Bool = sal_True ) const;
inline const SvxEmphasisMarkItem &GetEmphasisMark( sal_Bool = sal_True ) const;
inline const SvxTwoLinesItem &Get2Lines( sal_Bool = sal_True ) const;
inline const SvxCharScaleWidthItem &GetCharScaleW( sal_Bool = sal_True ) const;
inline const SvxCharRotateItem &GetCharRotate( sal_Bool = sal_True ) const;
inline const SvxCharReliefItem &GetCharRelief( sal_Bool = sal_True ) const;
inline const SvxCharHiddenItem &GetCharHidden( sal_Bool = sal_True ) const;
inline const SvxBoxItem &GetCharBorder( sal_Bool = sal_True ) const;
inline const SvxShadowItem &GetCharShadow( sal_Bool = sal_True ) const;
2000-09-18 16:15:01 +00:00
/// Frame-attributes - implemented in frmatr.hxx.
inline const SwFmtFillOrder &GetFillOrder( sal_Bool = sal_True ) const;
inline const SwFmtFrmSize &GetFrmSize( sal_Bool = sal_True ) const;
inline const SwFmtHeader &GetHeader( sal_Bool = sal_True ) const;
inline const SwFmtFooter &GetFooter( sal_Bool = sal_True ) const;
inline const SwFmtSurround &GetSurround( sal_Bool = sal_True ) const;
inline const SwFmtHoriOrient &GetHoriOrient( sal_Bool = sal_True ) const;
inline const SwFmtAnchor &GetAnchor( sal_Bool = sal_True ) const;
inline const SwFmtCol &GetCol( sal_Bool = sal_True ) const;
inline const SvxPaperBinItem &GetPaperBin( sal_Bool = sal_True ) const;
inline const SvxLRSpaceItem &GetLRSpace( sal_Bool = sal_True ) const;
inline const SvxULSpaceItem &GetULSpace( sal_Bool = sal_True ) const;
inline const SwFmtCntnt &GetCntnt( sal_Bool = sal_True ) const;
inline const SvxPrintItem &GetPrint( sal_Bool = sal_True ) const;
inline const SvxOpaqueItem &GetOpaque( sal_Bool = sal_True ) const;
inline const SvxProtectItem &GetProtect( sal_Bool = sal_True ) const;
inline const SwFmtVertOrient &GetVertOrient( sal_Bool = sal_True ) const;
inline const SvxBoxItem &GetBox( sal_Bool = sal_True ) const;
inline const SvxFmtKeepItem &GetKeep( sal_Bool = sal_True ) const;
inline const SvxBrushItem &GetBackground( sal_Bool = sal_True ) const;
inline const SvxShadowItem &GetShadow( sal_Bool = sal_True ) const;
inline const SwFmtPageDesc &GetPageDesc( sal_Bool = sal_True ) const;
inline const SvxFmtBreakItem &GetBreak( sal_Bool = sal_True ) const;
inline const SvxMacroItem &GetMacro( sal_Bool = sal_True ) const;
inline const SwFmtURL &GetURL( sal_Bool = sal_True ) const;
inline const SwFmtEditInReadonly &GetEditInReadonly( sal_Bool = sal_True ) const;
inline const SwFmtLayoutSplit &GetLayoutSplit( sal_Bool = sal_True ) const;
inline const SwFmtRowSplit &GetRowSplit( sal_Bool = sal_True ) const;
inline const SwFmtChain &GetChain( sal_Bool = sal_True ) const;
inline const SwFmtLineNumber &GetLineNumber( sal_Bool = sal_True ) const;
inline const SwFmtFtnAtTxtEnd &GetFtnAtTxtEnd( sal_Bool = sal_True ) const;
inline const SwFmtEndAtTxtEnd &GetEndAtTxtEnd( sal_Bool = sal_True ) const;
inline const SwFmtNoBalancedColumns &GetBalancedColumns( sal_Bool = sal_True ) const;
inline const SvxFrameDirectionItem &GetFrmDir( sal_Bool = sal_True ) const;
inline const SwTextGridItem &GetTextGrid( sal_Bool = sal_True ) const;
inline const SwHeaderAndFooterEatSpacingItem &GetHeaderAndFooterEatSpacing( sal_Bool = sal_True ) const;
// #i18732#
inline const SwFmtFollowTextFlow &GetFollowTextFlow(sal_Bool = sal_True) const;
// #i28701#
inline const SwFmtWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(sal_Bool = sal_True) const;
2000-09-18 16:15:01 +00:00
/// Graphics-attributes - implemented in grfatr.hxx
inline const SwMirrorGrf &GetMirrorGrf( sal_Bool = sal_True ) const;
inline const SwCropGrf &GetCropGrf( sal_Bool = sal_True ) const;
inline const SwRotationGrf &GetRotationGrf(sal_Bool = sal_True ) const;
inline const SwLuminanceGrf &GetLuminanceGrf(sal_Bool = sal_True ) const;
inline const SwContrastGrf &GetContrastGrf(sal_Bool = sal_True ) const;
inline const SwChannelRGrf &GetChannelRGrf(sal_Bool = sal_True ) const;
inline const SwChannelGGrf &GetChannelGGrf(sal_Bool = sal_True ) const;
inline const SwChannelBGrf &GetChannelBGrf(sal_Bool = sal_True ) const;
inline const SwGammaGrf &GetGammaGrf(sal_Bool = sal_True ) const;
inline const SwInvertGrf &GetInvertGrf(sal_Bool = sal_True ) const;
inline const SwTransparencyGrf &GetTransparencyGrf(sal_Bool = sal_True ) const;
inline const SwDrawModeGrf &GetDrawModeGrf(sal_Bool = sal_True ) const;
2000-09-18 16:15:01 +00:00
/// Paragraph-attributes - implemented in paratr.hxx.
inline const SvxLineSpacingItem &GetLineSpacing( sal_Bool = sal_True ) const;
inline const SvxAdjustItem &GetAdjust( sal_Bool = sal_True ) const;
inline const SvxFmtSplitItem &GetSplit( sal_Bool = sal_True ) const;
inline const SwRegisterItem &GetRegister( sal_Bool = sal_True ) const;
inline const SwNumRuleItem &GetNumRule( sal_Bool = sal_True ) const;
inline const SvxWidowsItem &GetWidows( sal_Bool = sal_True ) const;
inline const SvxOrphansItem &GetOrphans( sal_Bool = sal_True ) const;
inline const SvxTabStopItem &GetTabStops( sal_Bool = sal_True ) const;
inline const SvxHyphenZoneItem &GetHyphenZone( sal_Bool = sal_True ) const;
inline const SwFmtDrop &GetDrop( sal_Bool = sal_True ) const;
inline const SvxScriptSpaceItem &GetScriptSpace(sal_Bool = sal_True) const;
inline const SvxHangingPunctuationItem &GetHangingPunctuation(sal_Bool = sal_True) const;
inline const SvxForbiddenRuleItem &GetForbiddenRule(sal_Bool = sal_True) const;
inline const SvxParaVertAlignItem &GetParaVertAlign(sal_Bool = sal_True) const;
inline const SvxParaGridItem &GetParaGrid(sal_Bool = sal_True) const;
inline const SwParaConnectBorderItem &GetParaConnectBorder(sal_Bool = sal_True ) const;
2000-09-18 16:15:01 +00:00
/// TableBox attributes - implemented in cellatr.hxx.
inline const SwTblBoxNumFormat &GetTblBoxNumFmt( sal_Bool = sal_True ) const;
inline const SwTblBoxFormula &GetTblBoxFormula( sal_Bool = sal_True ) const;
inline const SwTblBoxValue &GetTblBoxValue( sal_Bool = sal_True ) const;
/** SwFmt::IsBackgroundTransparent
Virtual method to determine, if background of format is transparent.
Default implementation returns false. Thus, subclasses have to overload
method, if the specific subclass can have a transparent background.
@author OD
@return false, default implementation
*/
2008-10-10 13:02:43 +00:00
virtual sal_Bool IsBackgroundTransparent() const;
/** SwFmt::IsShadowTransparent
Virtual method to determine, if shadow of format is transparent.
Default implementation returns false. Thus, subclasses have to overload
method, if the specific subclass can have a transparent shadow.
@author OD
@return false, default implementation
*/
2008-10-10 13:02:43 +00:00
virtual sal_Bool IsShadowTransparent() const;
2000-09-18 16:15:01 +00:00
};
// --------------- inline Implementations ------------------------
2000-09-18 16:15:01 +00:00
inline const SfxPoolItem& SwFmt::GetFmtAttr( sal_uInt16 nWhich,
sal_Bool bInParents ) const
2000-09-18 16:15:01 +00:00
{
return aSet.Get( nWhich, bInParents );
}
inline void SwFmt::SetName( const sal_Char* pNewName,
sal_Bool bBroadcast )
2000-09-18 16:15:01 +00:00
{
SetName(OUString::createFromAscii(pNewName), bBroadcast);
2000-09-18 16:15:01 +00:00
}
inline SfxItemState SwFmt::GetItemState( sal_uInt16 nWhich, sal_Bool bSrchInParent,
2000-09-18 16:15:01 +00:00
const SfxPoolItem **ppItem ) const
{
return aSet.GetItemState( nWhich, bSrchInParent, ppItem );
}
#undef inline
2000-09-18 16:15:01 +00:00
#endif // _FORMAT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */