LibreOffice Module sw (master) 1
format.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SW_INC_FORMAT_HXX
20#define INCLUDED_SW_INC_FORMAT_HXX
21
22#include "swdllapi.h"
23
24#include "BorderCacheOwner.hxx"
25#include "calbck.hxx"
26#include "hintids.hxx"
27#include "swatrset.hxx"
28#include <memory>
29
36class SwDoc;
37class SfxGrabBagItem;
38class SwTextGridItem;
39
41 class SdrAllFillAttributesHelper;
42 typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
43}
44
46class SW_DLLPUBLIC SwFormat : public sw::BorderCacheOwner, public sw::BroadcastingModify
47{
48 friend class SwFrameFormat;
49
50 OUString m_aFormatName;
52
53 sal_uInt16 m_nWhichId;
54 sal_uInt16 m_nPoolFormatId;
56 sal_uInt16 m_nPoolHelpId;
58 bool m_bAutoFormat : 1;
60 bool m_bFormatInDTOR : 1;
64 bool m_bHidden : 1;
65 std::shared_ptr<SfxGrabBagItem> m_pGrabBagItem;
66 virtual void InvalidateInSwFntCache(sal_uInt16) {};
67
68protected:
69 SwFormat( SwAttrPool& rPool, const char* pFormatNm,
70 const WhichRangesContainer& pWhichRanges, SwFormat *pDrvdFrame, sal_uInt16 nFormatWhich );
71 SwFormat( SwAttrPool& rPool, OUString aFormatNm, const WhichRangesContainer& pWhichRanges,
72 SwFormat *pDrvdFrame, sal_uInt16 nFormatWhich );
73 SwFormat( const SwFormat& rFormat );
74 virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
75
76public:
77
78 virtual ~SwFormat() override;
80
82 sal_uInt16 Which() const { return m_nWhichId; };
83
85 void CopyAttrs( const SwFormat& );
86
88 void DelDiffs( const SfxItemSet& rSet );
89 void DelDiffs( const SwFormat& rFormat ) { DelDiffs( rFormat.GetAttrSet() ); }
90
92 bool SetDerivedFrom(SwFormat *pDerivedFrom = nullptr);
93
95 const SfxPoolItem& GetFormatAttr( sal_uInt16 nWhich,
96 bool bInParents = true ) const;
97 template<class T> const T& GetFormatAttr( TypedWhichId<T> nWhich, bool bInParents = true ) const
98 {
99 return static_cast<const T&>(GetFormatAttr(sal_uInt16(nWhich), bInParents));
100 }
101
102 SfxItemState GetItemState( sal_uInt16 nWhich, bool bSrchInParent = true,
103 const SfxPoolItem **ppItem = nullptr ) const;
104 template<class T>
105 SfxItemState GetItemState( TypedWhichId<T> nWhich, bool bSrchInParent = true,
106 const T **ppItem = nullptr ) const
107 { return GetItemState(sal_uInt16(nWhich), bSrchInParent, reinterpret_cast<const SfxPoolItem **>(ppItem)); }
108
110 template<class T>
111 const T * GetItemIfSet( TypedWhichId<T> nWhich,
112 bool bSrchInParent = true ) const
113 {
114 const SfxPoolItem * pItem = nullptr;
115 if( SfxItemState::SET == GetItemState(sal_uInt16(nWhich), bSrchInParent, &pItem) )
116 return static_cast<const T*>(pItem);
117 return nullptr;
118 }
119 SfxItemState GetBackgroundState(std::unique_ptr<SvxBrushItem>& rItem) const;
120 virtual bool SetFormatAttr( const SfxPoolItem& rAttr );
121 virtual bool SetFormatAttr( const SfxItemSet& rSet );
122 virtual bool ResetFormatAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
123
126 virtual sal_uInt16 ResetAllFormatAttr();
127
128 SwFormat* DerivedFrom() const { return const_cast<SwFormat*>(static_cast<const SwFormat*>(GetRegisteredIn())); }
129 bool IsDefault() const { return DerivedFrom() == nullptr; }
130
131 const OUString& GetName() const { return m_aFormatName; }
132 bool HasName(std::u16string_view rName) const { return m_aFormatName == rName; }
133 virtual void SetFormatName( const OUString& rNewName, bool bBroadcast=false );
134
136 const SwAttrSet& GetAttrSet() const { return m_aSet; }
137
139 const SwDoc *GetDoc() const { return m_aSet.GetDoc(); }
140 SwDoc *GetDoc() { return m_aSet.GetDoc(); }
141
144
148
152
155
158
161
163 sal_uInt16 GetPoolFormatId() const { return m_nPoolFormatId; }
164 void SetPoolFormatId( sal_uInt16 nId ) { m_nPoolFormatId = nId; }
165
167 sal_uInt16 GetPoolHelpId() const { return m_nPoolHelpId; }
168 void SetPoolHelpId( sal_uInt16 nId ) { m_nPoolHelpId = nId; }
171
174 MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText ) const
175 { m_aSet.GetPresentation( ePres, eCoreMetric, ePresMetric, rText ); }
176
178 bool IsAuto() const { return m_bAutoFormat; }
179 void SetAuto( bool bNew ) { m_bAutoFormat = bNew; }
180
181 bool IsHidden() const { return m_bHidden; }
182 void SetHidden( bool bValue ) { m_bHidden = bValue; }
183
184 void GetGrabBagItem(css::uno::Any& rVal) const;
185 void SetGrabBagItem(const css::uno::Any& rVal);
186
189 void SetAutoUpdateOnDirectFormat( bool bNew = true ) { m_bAutoUpdateOnDirectFormat = bNew; }
190
191 bool IsFormatInDTOR() const { return m_bFormatInDTOR; }
192
198 inline const SvxUnderlineItem &GetUnderline( bool = true ) const;
199 inline const SvxFontHeightItem &GetSize( bool = true ) const;
200 inline const SvxFontItem &GetFont( bool = true ) const;
201 inline const SvxColorItem &GetColor( bool = true ) const;
202 inline const SvxFontItem &GetCJKFont( bool = true ) const;
203 inline const SvxFontItem &GetCTLFont( bool = true ) const;
204
206 inline const SwFormatFillOrder &GetFillOrder( bool = true ) const;
207 inline const SwFormatFrameSize &GetFrameSize( bool = true ) const;
208 inline const SwFormatHeader &GetHeader( bool = true ) const;
209 inline const SwFormatFooter &GetFooter( bool = true ) const;
210 inline const SwFormatSurround &GetSurround( bool = true ) const;
211 inline const SwFormatHoriOrient &GetHoriOrient( bool = true ) const;
212 inline const SwFormatAnchor &GetAnchor( bool = true ) const;
213 inline const SwFormatCol &GetCol( bool = true ) const;
214 inline const SvxPaperBinItem &GetPaperBin( bool = true ) const;
215 inline const SvxLeftMarginItem & GetLeftMargin(bool = true) const;
216 inline const SvxTextLeftMarginItem &GetTextLeftMargin(bool = true) const;
217 inline const SvxFirstLineIndentItem &GetFirstLineIndent(bool = true) const;
218 inline const SvxRightMarginItem & GetRightMargin(bool = true) const;
219 inline const SvxGutterLeftMarginItem &GetGutterLeftMargin(bool = true) const;
220 inline const SvxGutterRightMarginItem &GetGutterRightMargin(bool = true) const;
221 inline const SvxLRSpaceItem &GetLRSpace( bool = true ) const;
222 inline const SvxULSpaceItem &GetULSpace( bool = true ) const;
223 inline const SwFormatContent &GetContent( bool = true ) const;
224 inline const SvxPrintItem &GetPrint( bool = true ) const;
225 inline const SvxOpaqueItem &GetOpaque( bool = true ) const;
226 inline const SvxProtectItem &GetProtect( bool = true ) const;
227 inline const SwFormatVertOrient &GetVertOrient( bool = true ) const;
228 inline const SvxBoxItem &GetBox( bool = true ) const;
229 inline const SvxFormatKeepItem &GetKeep( bool = true ) const;
230
231 // Create SvxBrushItem for Background fill (partially for backwards compatibility)
232 std::unique_ptr<SvxBrushItem> makeBackgroundBrushItem( bool = true ) const;
233
234 inline const SvxShadowItem &GetShadow( bool = true ) const;
235 inline const SwFormatPageDesc &GetPageDesc( bool = true ) const;
236 inline const SvxFormatBreakItem &GetBreak( bool = true ) const;
237 inline const SvxMacroItem &GetMacro( bool = true ) const;
238 inline const SwFormatURL &GetURL( bool = true ) const;
239 inline const SwFormatEditInReadonly &GetEditInReadonly( bool = true ) const;
240 inline const SwFormatLayoutSplit &GetLayoutSplit( bool = true ) const;
241 inline const SwFormatRowSplit &GetRowSplit( bool = true ) const;
242 inline const SwFormatFlySplit &GetFlySplit( bool = true ) const;
243 inline const SwFormatChain &GetChain( bool = true ) const;
244 inline const SwFormatFootnoteAtTextEnd &GetFootnoteAtTextEnd( bool = true ) const;
245 inline const SwFormatEndAtTextEnd &GetEndAtTextEnd( bool = true ) const;
246 inline const SwFormatNoBalancedColumns &GetBalancedColumns( bool = true ) const;
247 inline const SvxFrameDirectionItem &GetFrameDir( bool = true ) const;
248 inline const SwTextGridItem &GetTextGrid( bool = true ) const;
249 inline const SwHeaderAndFooterEatSpacingItem &GetHeaderAndFooterEatSpacing( bool = true ) const;
250 // #i18732#
251 inline const SwFormatFollowTextFlow &GetFollowTextFlow(bool = true) const;
252 // #i28701#
253 inline const SwFormatWrapInfluenceOnObjPos& GetWrapInfluenceOnObjPos(bool = true) const;
254 inline const SdrTextVertAdjustItem& GetTextVertAdjust(bool = true) const;
255
257 inline const SvxLineSpacingItem &GetLineSpacing( bool = true ) const;
258 inline const SwNumRuleItem &GetNumRule( bool = true ) const;
259 inline const SvxTabStopItem &GetTabStops( bool = true ) const;
260 inline const SwFormatDrop &GetDrop( bool = true ) const;
261
263 inline const SwTableBoxNumFormat &GetTableBoxNumFormat( bool = true ) const;
264 inline const SwTableBoxFormula &GetTableBoxFormula( bool = true ) const;
265 inline const SwTableBoxValue &GetTableBoxValue( bool = true ) const;
266
268
277 virtual bool IsBackgroundTransparent() const;
278
279 // Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
281 virtual bool supportsFullDrawingLayerFillAttributeSet() const;
282 void RemoveAllUnos();
283};
284
285#endif // INCLUDED_SW_INC_FORMAT_HXX
286
287/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Give access to the data-provider for chart.
Document fields related interfaces.
Provides access to the layout of a document.
Provides access to settings of a document.
Handle the background jobs of a Writer document.
const SwDoc * GetDoc() const
Definition: swatrset.hxx:204
void GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText) const
Definition: attrdesc.cxx:63
Definition: doc.hxx:197
FlyAnchors.
Definition: fmtanchr.hxx:37
Connection (text flow) between two FlyFrames.
Definition: fmtcnct.hxx:32
Content, content of frame (header, footer, fly).
Definition: fmtcntnt.hxx:32
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps.
Definition: paratr.hxx:72
Determines if a fly frame can be split across multiple pages.
Footer, for pageformats Client of FrameFormat describing the footer.
Definition: fmthdft.hxx:65
Header, for PageFormats Client of FrameFormat describing the header.
Definition: fmthdft.hxx:34
Defines the horizontal position of a fly frame.
Definition: fmtornt.hxx:73
If text in multi-column sections should be evenly distributed.
Definition: fmtclbl.hxx:29
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:36
Controls if a table row is allowed to split or not.
Definition: fmtrowsplt.hxx:32
SfxPoolItem subclass that wraps a URL.
Definition: fmturl.hxx:33
Defines the vertical position of a fly frame.
Definition: fmtornt.hxx:37
Allows positioning of floating screen objects without considering their own wrapping type and the wra...
Base class for various Writer styles.
Definition: format.hxx:47
bool IsDefault() const
Definition: format.hxx:129
IDocumentTimerAccess & getIDocumentTimerAccess()
Provides access to the document idle timer interface.
Definition: format.cxx:716
const SvxFrameDirectionItem & GetFrameDir(bool=true) const
Definition: frmatr.hxx:118
const SvxPaperBinItem & GetPaperBin(bool=true) const
Definition: frmatr.hxx:84
const SvxUnderlineItem & GetUnderline(bool=true) const
GetMethods: Bool indicates whether to search only in Set (FALSE) or also in Parents.
Definition: charatr.hxx:118
const SvxGutterLeftMarginItem & GetGutterLeftMargin(bool=true) const
Definition: frmatr.hxx:94
const SvxTabStopItem & GetTabStops(bool=true) const
Definition: paratr.hxx:237
const SwTableBoxNumFormat & GetTableBoxNumFormat(bool=true) const
TableBox attributes - implemented in cellatr.hxx.
Definition: cellatr.hxx:122
const SwTextGridItem & GetTextGrid(bool=true) const
Definition: tgrditem.hxx:112
void SetGrabBagItem(const css::uno::Any &rVal)
Definition: format.cxx:728
const SvxBoxItem & GetBox(bool=true) const
Definition: frmatr.hxx:108
const SwDoc * GetDoc() const
The document is set in SwAttrPool now, therefore you always can access it.
Definition: format.hxx:139
const SvxFormatKeepItem & GetKeep(bool=true) const
Definition: frmatr.hxx:110
virtual ~SwFormat() override
Definition: format.cxx:203
const SwFormatChain & GetChain(bool=true) const
Definition: fmtcnct.hxx:70
const SwFormatWrapInfluenceOnObjPos & GetWrapInfluenceOnObjPos(bool=true) const
sal_uInt16 GetPoolFormatId() const
Get and set Pool style IDs.
Definition: format.hxx:163
const SvxOpaqueItem & GetOpaque(bool=true) const
Definition: frmatr.hxx:104
bool IsHidden() const
Definition: format.hxx:181
const SvxFontItem & GetCTLFont(bool=true) const
Definition: charatr.hxx:126
const SwFormatFrameSize & GetFrameSize(bool=true) const
Definition: fmtfsize.hxx:104
void SetPoolHelpId(sal_uInt16 nId)
Definition: format.hxx:168
const SvxFontItem & GetCJKFont(bool=true) const
Definition: charatr.hxx:124
void SetPoolFormatId(sal_uInt16 nId)
Definition: format.hxx:164
const SwFormatRowSplit & GetRowSplit(bool=true) const
Definition: fmtrowsplt.hxx:48
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:98
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess() const
Provides access to the document draw model interface.
Definition: format.cxx:712
sal_uInt16 m_nPoolFormatId
Id for "automatically" created formats.
Definition: format.hxx:54
bool IsFormatInDTOR() const
Definition: format.hxx:191
virtual bool ResetFormatAttr(sal_uInt16 nWhich1, sal_uInt16 nWhich2=0)
Definition: format.cxx:618
const SvxLineSpacingItem & GetLineSpacing(bool=true) const
Paragraph-attributes - implemented in paratr.hxx.
Definition: paratr.hxx:235
void SetAutoUpdateOnDirectFormat(bool bNew=true)
Definition: format.hxx:189
const T & GetFormatAttr(TypedWhichId< T > nWhich, bool bInParents=true) const
Definition: format.hxx:97
const SwFormatFooter & GetFooter(bool=true) const
Definition: fmthdft.hxx:99
const SwFormatFlySplit & GetFlySplit(bool=true) const
sal_uInt16 Which() const
for Querying of Writer-functions.
Definition: format.hxx:82
const OUString & GetName() const
Definition: format.hxx:131
const SwFormatVertOrient & GetVertOrient(bool=true) const
Definition: fmtornt.hxx:113
sal_uInt16 GetPoolHelpId() const
Get and set Help-IDs for document templates.
Definition: format.hxx:167
const SvxPrintItem & GetPrint(bool=true) const
Definition: frmatr.hxx:102
const SvxProtectItem & GetProtect(bool=true) const
Definition: frmatr.hxx:106
const SwTableBoxFormula & GetTableBoxFormula(bool=true) const
Definition: cellatr.hxx:124
const SvxShadowItem & GetShadow(bool=true) const
Definition: frmatr.hxx:112
IDocumentFieldsAccess & getIDocumentFieldsAccess()
Provides access to the document idle timer interface.
Definition: format.cxx:717
void SetAuto(bool bNew)
Definition: format.hxx:179
const SwFormatEditInReadonly & GetEditInReadonly(bool=true) const
Definition: fmteiro.hxx:48
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
Definition: format.cxx:385
const SwFormatLayoutSplit & GetLayoutSplit(bool=true) const
Definition: fmtlsplt.hxx:46
const SvxRightMarginItem & GetRightMargin(bool=true) const
Definition: frmatr.hxx:92
bool HasName(std::u16string_view rName) const
Definition: format.hxx:132
const SwFormatFollowTextFlow & GetFollowTextFlow(bool=true) const
const SwFormatHeader & GetHeader(bool=true) const
Definition: fmthdft.hxx:97
const SvxTextLeftMarginItem & GetTextLeftMargin(bool=true) const
Definition: frmatr.hxx:88
const SvxFirstLineIndentItem & GetFirstLineIndent(bool=true) const
Definition: frmatr.hxx:90
sal_uInt8 GetPoolHlpFileId() const
Definition: format.hxx:169
const SwFormatFillOrder & GetFillOrder(bool=true) const
Frame-attributes - implemented in frmatr.hxx.
Definition: fmtfordr.hxx:49
const SwTableBoxValue & GetTableBoxValue(bool=true) const
Definition: cellatr.hxx:126
const SvxFontItem & GetFont(bool=true) const
Definition: charatr.hxx:122
const SwFormatFootnoteAtTextEnd & GetFootnoteAtTextEnd(bool=true) const
Definition: fmtftntx.hxx:116
bool m_bHidden
Definition: format.hxx:64
void SetPoolHlpFileId(sal_uInt8 nId)
Definition: format.hxx:170
const SvxFontHeightItem & GetSize(bool=true) const
Definition: charatr.hxx:120
const SwFormatAnchor & GetAnchor(bool=true) const
Definition: fmtanchr.hxx:88
virtual void InvalidateInSwFntCache(sal_uInt16)
Definition: format.hxx:66
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:136
const SvxFormatBreakItem & GetBreak(bool=true) const
Definition: frmatr.hxx:114
bool SetDerivedFrom(SwFormat *pDerivedFrom=nullptr)
0 is Default.
Definition: format.cxx:318
const SwFormatSurround & GetSurround(bool=true) const
Definition: fmtsrnd.hxx:66
void SetPageFormatToDefault()
Definition: format.cxx:688
const SwFormatEndAtTextEnd & GetEndAtTextEnd(bool=true) const
Definition: fmtftntx.hxx:118
void GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText) const
Get attribute-description. Returns passed string.
Definition: format.hxx:173
const SwFormatPageDesc & GetPageDesc(bool=true) const
Definition: fmtpdsc.hxx:78
SwFormat * DerivedFrom() const
Definition: format.hxx:128
void DelDiffs(const SwFormat &rFormat)
Definition: format.hxx:89
SwAttrSet m_aSet
Definition: format.hxx:51
void CopyAttrs(const SwFormat &)
Copy attributes even among documents.
Definition: format.cxx:171
std::shared_ptr< SfxGrabBagItem > m_pGrabBagItem
Style InteropGrabBag.
Definition: format.hxx:65
const SwFormatHoriOrient & GetHoriOrient(bool=true) const
Definition: fmtornt.hxx:115
const SfxPoolItem & GetFormatAttr(sal_uInt16 nWhich, bool bInParents=true) const
If bInParents is FALSE, search only in this format for attribute.
Definition: format.cxx:366
const SwFormatCol & GetCol(bool=true) const
Definition: fmtclds.hxx:168
bool m_bAutoFormat
FALSE: it is a template.
Definition: format.hxx:58
virtual bool SetFormatAttr(const SfxPoolItem &rAttr)
Definition: format.cxx:447
virtual bool IsBackgroundTransparent() const
SwFormat::IsBackgroundTransparent.
Definition: format.cxx:703
SwDoc * GetDoc()
Definition: format.hxx:140
sal_uInt8 m_nPoolHlpFileId
FilePos to Doc to these style helps.
Definition: format.hxx:57
const SwFormatURL & GetURL(bool=true) const
Definition: fmturl.hxx:77
bool m_bFormatInDTOR
TRUE: Format becomes deleted.
Definition: format.hxx:60
bool m_bAutoUpdateOnDirectFormat
TRUE: Set attributes of a whole paragraph at format (UI-side!).
Definition: format.hxx:62
bool IsAuto() const
Query / set AutoFormat-flag.
Definition: format.hxx:178
void DelDiffs(const SfxItemSet &rSet)
Delete all attributes that are not in rFormat.
Definition: format.cxx:666
const IDocumentLayoutAccess & getIDocumentLayoutAccess() const
Provides access to the document layout interface.
Definition: format.cxx:714
SfxItemState GetBackgroundState(std::unique_ptr< SvxBrushItem > &rItem) const
Definition: format.cxx:419
const SdrTextVertAdjustItem & GetTextVertAdjust(bool=true) const
Definition: frmatr.hxx:120
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:100
sal_uInt16 m_nWhichId
Definition: format.hxx:53
sal_uInt16 m_nPoolHelpId
HelpId for this Pool-style.
Definition: format.hxx:56
const SwFormatContent & GetContent(bool=true) const
Definition: fmtcntnt.hxx:55
OUString m_aFormatName
Definition: format.hxx:50
virtual sal_uInt16 ResetAllFormatAttr()
Takes all hints from Delta-Array,.
Definition: format.cxx:646
const IDocumentSettingAccess & getIDocumentSettingAccess() const
Provides access to the document settings interface.
Definition: format.cxx:711
SwFormat(SwAttrPool &rPool, const char *pFormatNm, const WhichRangesContainer &pWhichRanges, SwFormat *pDrvdFrame, sal_uInt16 nFormatWhich)
Definition: format.cxx:39
const SwFormatNoBalancedColumns & GetBalancedColumns(bool=true) const
Definition: fmtclbl.hxx:42
const SwFormatDrop & GetDrop(bool=true) const
Definition: paratr.hxx:239
const SwHeaderAndFooterEatSpacingItem & GetHeaderAndFooterEatSpacing(bool=true) const
void GetGrabBagItem(css::uno::Any &rVal) const
Definition: format.cxx:720
void SetHidden(bool bValue)
Definition: format.hxx:182
IDocumentChartDataProviderAccess & getIDocumentChartDataProviderAccess()
Gives access to the chart data-provider.
Definition: format.cxx:718
std::unique_ptr< SvxBrushItem > makeBackgroundBrushItem(bool=true) const
Definition: format.cxx:736
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
Templatized version of GetItemState() to directly return the correct type.
Definition: format.hxx:111
SfxItemState GetItemState(TypedWhichId< T > nWhich, bool bSrchInParent=true, const T **ppItem=nullptr) const
Definition: format.hxx:105
const SvxMacroItem & GetMacro(bool=true) const
Definition: frmatr.hxx:116
bool IsAutoUpdateOnDirectFormat() const
Query / set m_bAutoUpdateOnDirectFormat-flag.
Definition: format.hxx:188
const SvxColorItem & GetColor(bool=true) const
Definition: charatr.hxx:128
void RemoveAllUnos()
Definition: format.cxx:757
const SvxGutterRightMarginItem & GetGutterRightMargin(bool=true) const
Definition: frmatr.hxx:96
Style of a layout element.
Definition: frmfmt.hxx:72
virtual bool supportsFullDrawingLayerFillAttributeSet() const override
Definition: atrfrm.cxx:2622
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
Definition: atrfrm.cxx:2627
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const override
Definition: atrfrm.cxx:3600
virtual void SetFormatName(const OUString &rNewName, bool bBroadcast=false) override
Definition: atrfrm.cxx:2608
Bookkeeping helper for SwCache caching writer borders.
BorderCacheOwner & operator=(const BorderCacheOwner &)
MapUnit
SwNumRule * GetNumRule(SwTextFormatColl &rTextFormatColl)
determines the list style, which directly set at the given paragraph style
Definition: fmtcol.cxx:74
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:41
sal_Int16 nId
SfxItemPresentation
SfxItemState
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
unsigned char sal_uInt8
static tools::Long GetLeftMargin(SwView const &rView)
Definition: viewport.cxx:66