2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 10:16:57 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _FORMAT_HXX
|
|
|
|
#define _FORMAT_HXX
|
|
|
|
|
|
|
|
#include <tools/solar.h>
|
2004-08-23 07:35:37 +00:00
|
|
|
#include "swdllapi.h"
|
2011-02-07 02:08:11 +01:00
|
|
|
#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>
|
|
|
|
|
2006-08-14 14:24:36 +00:00
|
|
|
class IDocumentSettingAccess;
|
|
|
|
class IDocumentDrawModelAccess;
|
|
|
|
class IDocumentLayoutAccess;
|
2006-10-11 07:47:22 +00:00
|
|
|
class IDocumentTimerAccess;
|
|
|
|
class IDocumentFieldsAccess;
|
2007-05-22 15:19:40 +00:00
|
|
|
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.
|
2009-01-05 14:06:42 +00:00
|
|
|
class SW_DLLPUBLIC SwFmt : public SwModify
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
String aFmtName;
|
|
|
|
SwAttrSet aSet;
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 nWhichId;
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_uInt16 nFmtId; // Format-ID for reading / writing.
|
|
|
|
sal_uInt16 nPoolFmtId; // Id for "automatically" created formats.
|
2011-02-07 02:08:11 +01:00
|
|
|
// (is not hard attribution!!!)
|
2011-03-14 16:51:14 +00:00
|
|
|
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.
|
|
|
|
sal_Bool bAutoFmt : 1; // FALSE: it is a template.
|
2011-02-07 02:08:11 +01:00
|
|
|
// default is true!
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_Bool bFmtInDTOR : 1; // TRUE: Format becomes deleted. In order to be able
|
2011-02-07 02:08:11 +01:00
|
|
|
// to recognize this in FmtChg-message!!
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_Bool bAutoUpdateFmt : 1;// TRUE: Set attributes of a whole paragraph
|
2011-02-07 02:08:11 +01:00
|
|
|
// at format (UI-side!).
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
SwFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
|
2011-01-17 15:06:54 +01:00
|
|
|
const sal_uInt16* pWhichRanges, SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
|
|
|
|
SwFmt( SwAttrPool& rPool, const String &rFmtNm, const sal_uInt16* pWhichRanges,
|
|
|
|
SwFmt *pDrvdFrm, sal_uInt16 nFmtWhich );
|
2000-09-18 16:15:01 +00:00
|
|
|
SwFmt( const SwFmt& rFmt );
|
2010-12-17 09:02:23 +01:00
|
|
|
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
2011-02-07 02:08:11 +01:00
|
|
|
TYPEINFO(); // Already in base class Client.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
virtual ~SwFmt();
|
|
|
|
SwFmt &operator=(const SwFmt&);
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// for Querying of Writer-functions.
|
2011-01-17 15:06:54 +01:00
|
|
|
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.
|
2011-01-17 15:06:54 +01:00
|
|
|
virtual sal_Bool GetInfo( SfxPoolItem& ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Copy attributes even among documents.
|
2011-01-17 15:06:54 +01:00
|
|
|
void CopyAttrs( const SwFmt&, sal_Bool bReplace=sal_True );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01: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() ); }
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// 0 is Default.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool SetDerivedFrom(SwFmt *pDerivedFrom = 0);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// If bInParents is FALSE, search only in this format for attribute.
|
2011-01-17 15:06:54 +01:00
|
|
|
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;
|
2011-01-17 15:06:54 +01:00
|
|
|
virtual sal_Bool SetFmtAttr( const SfxPoolItem& rAttr );
|
|
|
|
virtual sal_Bool SetFmtAttr( const SfxItemSet& rSet );
|
|
|
|
virtual sal_Bool ResetFmtAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Takes all hints from Delta-Array,
|
|
|
|
// returns count of deleted hints.
|
2011-01-17 15:06:54 +01:00
|
|
|
virtual sal_uInt16 ResetAllFmtAttr();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-12-17 09:02:23 +01:00
|
|
|
inline SwFmt* DerivedFrom() const { return (SwFmt*)GetRegisteredIn(); }
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_Bool IsDefault() const { return DerivedFrom() == 0; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline const String& GetName() const { return aFmtName; }
|
2002-07-24 12:14:57 +00:00
|
|
|
void SetName( const String& 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
|
|
|
|
2011-02-07 02:08:11 +01: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.
|
|
|
|
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.
|
2006-08-14 14:24:36 +00:00
|
|
|
const IDocumentSettingAccess* getIDocumentSettingAccess() const;
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
/// Provides access to the document draw model interface.
|
2006-08-14 14:24:36 +00:00
|
|
|
const IDocumentDrawModelAccess* getIDocumentDrawModelAccess() const;
|
|
|
|
IDocumentDrawModelAccess* getIDocumentDrawModelAccess();
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
/// Provides access to the document layout interface.
|
2006-08-14 14:24:36 +00:00
|
|
|
const IDocumentLayoutAccess* getIDocumentLayoutAccess() const;
|
|
|
|
IDocumentLayoutAccess* getIDocumentLayoutAccess();
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
/// Provides access to the document idle timer interface.
|
|
|
|
IDocumentTimerAccess* getIDocumentTimerAccess();
|
2006-10-11 07:47:22 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
/// Provides access to the document idle timer interface.
|
2006-10-11 07:47:22 +00:00
|
|
|
IDocumentFieldsAccess* getIDocumentFieldsAccess();
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
/// Gives access to the chart data-provider.
|
2007-05-22 15:19:40 +00:00
|
|
|
IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess();
|
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Get and set Pool style IDs.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 GetPoolFmtId() const { return nPoolFmtId; }
|
|
|
|
void SetPoolFmtId( sal_uInt16 nId ) { nPoolFmtId = nId; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Get and set Help-IDs for document templates.
|
2011-01-17 15:06:54 +01:00
|
|
|
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, String &rText ) const
|
|
|
|
{ aSet.GetPresentation( ePres, eCoreMetric, ePresMetric, rText ); }
|
2011-02-07 02:08:11 +01:00
|
|
|
|
|
|
|
// Format-ID for reading/writing:
|
2011-01-17 15:06:54 +01:00
|
|
|
void ResetWritten() { bWritten = sal_False; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Query / set AutoFmt-flag.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsAuto() const { return bAutoFmt; }
|
|
|
|
void SetAuto( sal_Bool bNew = sal_False ) { bAutoFmt = bNew; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Query / set bAutoUpdateFmt-flag.
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsAutoUpdateFmt() const { return bAutoUpdateFmt; }
|
|
|
|
void SetAutoUpdateFmt( sal_Bool bNew = sal_True ) { bAutoUpdateFmt = bNew; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsFmtInDTOR() const { return bFmtInDTOR; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// GetMethods: Bool indicates whether to search only in Set (FALSE)
|
|
|
|
// or also in Parents.
|
|
|
|
// If nothing is found the defaulted attribute is returned.
|
|
|
|
|
|
|
|
// Character-attributes - implemented in charatr.hxx
|
2011-01-17 15:06:54 +01:00
|
|
|
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 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;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Frame-attributes - implemented in frmatr.hxx.
|
2011-01-17 15:06:54 +01:00
|
|
|
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;
|
2010-11-04 01:06:10 +02:00
|
|
|
// #i18732#
|
2011-01-17 15:06:54 +01:00
|
|
|
inline const SwFmtFollowTextFlow &GetFollowTextFlow(sal_Bool = sal_True) const;
|
2010-11-04 01:06:10 +02:00
|
|
|
// #i28701#
|
2011-01-17 15:06:54 +01:00
|
|
|
inline const SwFmtWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(sal_Bool = sal_True) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Graphics-attributes - implemented in grfatr.hxx
|
2011-01-17 15:06:54 +01:00
|
|
|
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
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// Paragraph-attributes - implemented in paratr.hxx.
|
2011-01-17 15:06:54 +01:00
|
|
|
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
|
|
|
|
2011-02-07 02:08:11 +01:00
|
|
|
// TableBox attributes - implemented in cellatr.hxx.
|
2011-01-17 15:06:54 +01:00
|
|
|
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;
|
2002-08-28 10:37:25 +00:00
|
|
|
|
2010-11-15 11:59:57 +00:00
|
|
|
/** SwFmt::IsBackgroundTransparent
|
2002-08-28 10:37:25 +00:00
|
|
|
|
|
|
|
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;
|
2002-08-28 10:37:25 +00:00
|
|
|
|
2010-11-15 11:59:57 +00:00
|
|
|
/** SwFmt::IsShadowTransparent
|
2002-08-28 10:37:25 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2010-11-04 01:06:10 +02:00
|
|
|
// --------------- inline Implementations ------------------------
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01: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 );
|
|
|
|
}
|
|
|
|
|
2002-07-24 12:14:57 +00:00
|
|
|
inline void SwFmt::SetName( const sal_Char* pNewName,
|
|
|
|
sal_Bool bBroadcast )
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2012-07-02 16:02:38 +01:00
|
|
|
SetName(rtl::OUString::createFromAscii(pNewName), bBroadcast);
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2011-01-17 15:06:54 +01: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 );
|
|
|
|
}
|
|
|
|
|
2006-08-14 14:24:36 +00:00
|
|
|
#undef inline
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#endif // _FORMAT_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|