LibreOffice Module sw (master)  1
pagedesc.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_PAGEDESC_HXX
20 #define INCLUDED_SW_INC_PAGEDESC_HXX
21 
22 #include <tools/fract.hxx>
23 #include <tools/color.hxx>
24 #include "swdllapi.h"
25 #include "swtypes.hxx"
26 #include "frmfmt.hxx"
27 #include <editeng/numitem.hxx>
28 #include <editeng/borderline.hxx>
29 #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
30 #include <com/sun/star/text/HorizontalAdjust.hpp>
31 #include <o3tl/typed_flags_set.hxx>
32 
33 #include <boost/multi_index_container.hpp>
34 #include <boost/multi_index/identity.hpp>
35 #include <boost/multi_index/ordered_index.hpp>
36 #include <boost/multi_index/random_access_index.hpp>
37 
38 using namespace ::com::sun::star;
39 
40 
41 class SfxPoolItem;
42 class SwTextFormatColl;
43 class SwNode;
44 class SwPageDescs;
45 
48 {
49 private:
55  css::text::HorizontalAdjust m_eAdjust;
58 
59 public:
60  SwTwips GetHeight() const { return m_nMaxHeight; }
61  sal_uLong GetLineWidth() const { return m_nLineWidth; }
62  const Color& GetLineColor() const { return m_LineColor;}
63  SvxBorderLineStyle GetLineStyle() const { return m_eLineStyle; }
64  const Fraction& GetWidth() const { return m_Width; }
65  css::text::HorizontalAdjust GetAdj() const { return m_eAdjust; }
66  SwTwips GetTopDist() const { return m_nTopDist; }
67  SwTwips GetBottomDist() const { return m_nBottomDist; }
68 
69  void SetHeight(SwTwips const nNew) { m_nMaxHeight = nNew; }
70  void SetLineWidth(sal_uLong const nSet) { m_nLineWidth = nSet; }
71  void SetLineStyle(SvxBorderLineStyle const eSet) {m_eLineStyle = eSet;}
72  void SetLineColor(const Color& rCol) { m_LineColor = rCol;}
73  void SetWidth(const Fraction & rNew) { m_Width = rNew; }
74  void SetAdj(css::text::HorizontalAdjust const eNew) { m_eAdjust = eNew; }
75  void SetTopDist (SwTwips const nNew) { m_nTopDist = nNew; }
76  void SetBottomDist(SwTwips const nNew) { m_nBottomDist = nNew; }
77 
80  SwPageFootnoteInfo& operator=( const SwPageFootnoteInfo& );
81 
82  bool operator ==( const SwPageFootnoteInfo& ) const;
83 };
84 
85 /*
86  * Use of UseOnPage (m_eUse) and of FrameFormats
87  *
88  * RIGHT - m_Master only for right hand (odd) pages, left hand (even) pages
89  * always empty.
90  * LEFT - m_Left for left-hand pages, right-hand pages always empty.
91  * m_Left is a copy of master.
92  * ALL - m_Master for right hand pages, m_Left for left hand pages.
93  * - m_Left is a copy of master.
94  * MIRROR - m_Master for right hand pages, m_Left for left hand pagers.
95  * m_Left is a copy of master, margins are mirrored.
96  *
97  * UI works exclusively on master! m_Left is adjusted on Chg at document
98  * according to m_eUse.
99  *
100  * In order to simplify the work of the filters some more values are placed
101  * into m_eUse:
102  *
103  * HEADERSHARE - Content of header is equal on left and right hand pages.
104  * FOOTERSHARE - Content of footer is equal on left and right hand pages.
105  *
106  * The values are masked out in the respective getter and setter methods.
107  * Access to complete m_eUse including the information on header and footer
108  * via ReadUseOn(), WriteUseOn() (for Filter and CopyCTor)!
109  *
110  * The Frameformats for header/footer are adjusted by the UI according to
111  * the attributes for header and footer at master (height, margin, back-
112  * ground ...)
113  * Header/footer for left hand pages are copied or mirrored (Chg at
114  * document).
115  * The respective attribute for content is cared for automatically on Chg at
116  * document (contents are created or removed according to SHARE-information).
117  */
118 
119 enum class UseOnPage : sal_uInt16
120 {
121  NONE = 0x0000,
122  Left = 0x0001,
123  Right = 0x0002,
124  All = 0x0003,
125  Mirror = 0x0007,
126  HeaderShare = 0x0040,
127  FooterShare = 0x0080,
128  FirstShare = 0x0100,
129  NoHeaderShare = 0xFFBF,
130  NoFooterShare = 0xFF7F,
131  NoFirstShare = 0xFEFF
132 };
133 namespace o3tl {
134  template<> struct typed_flags<UseOnPage> : is_typed_flags<UseOnPage, 0xffff> {};
135 }
136 
138  : public SwModify
139  , public sw::BroadcasterMixin
140 {
141  friend class SwDoc;
142  friend class SwPageDescs;
143 
144  OUString m_StyleName;
148  // FIXME epicycles growing here - page margins need to be stored differently
154  sal_uInt16 m_nRegHeight;
155  sal_uInt16 m_nRegAscent;
156  drawing::TextVerticalAdjust m_nVerticalAdjustment; // doc/docx: vertically center / justify / bottom
160 
163 
166 
169  SAL_DLLPRIVATE void Mirror();
170 
171  SAL_DLLPRIVATE void ResetAllAttr();
172 
173  SAL_DLLPRIVATE SwPageDesc(const OUString&, SwFrameFormat*, SwDoc *pDc );
174 
175  struct change_name
176  {
177  change_name(const OUString &rName) : mName(rName) {}
178  void operator()(SwPageDesc *pPageDesc) { pPageDesc->m_StyleName = mName; }
179  const OUString &mName;
180  };
181 
182 protected:
183  virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
184 
185 public:
186  const OUString& GetName() const { return m_StyleName; }
187  bool SetName(const OUString& rNewName);
188 
189  bool GetLandscape() const { return m_IsLandscape; }
190  void SetLandscape( bool bNew ) { m_IsLandscape = bNew; }
191 
192  const SvxNumberType &GetNumType() const { return m_NumType; }
193  void SetNumType(const SvxNumberType& rNew) { m_NumType = rNew; }
194 
195  const SwPageFootnoteInfo &GetFootnoteInfo() const { return m_IsFootnoteInfo; }
196  SwPageFootnoteInfo &GetFootnoteInfo() { return m_IsFootnoteInfo; }
197  void SetFootnoteInfo(const SwPageFootnoteInfo &rNew) { m_IsFootnoteInfo = rNew; }
198 
199  inline bool IsHeaderShared() const;
200  inline bool IsFooterShared() const;
201  inline void ChgHeaderShare( bool bNew );
202  inline void ChgFooterShare( bool bNew );
203  bool IsFirstShared() const;
204  void ChgFirstShare( bool bNew );
205 
206  bool IsHidden() const { return m_IsHidden; }
207  void SetHidden(bool const bValue) { m_IsHidden = bValue; }
208 
210  inline void SetUseOn( UseOnPage eNew );
211  inline UseOnPage GetUseOn() const;
212 
213  void WriteUseOn(UseOnPage const eNew) { m_eUse = eNew; }
214  UseOnPage ReadUseOn() const { return m_eUse; }
215 
216  SwFrameFormat &GetMaster() { return m_Master; }
217  SwFrameFormat &GetLeft() { return m_Left; }
218  SwFrameFormat &GetFirstMaster() { return m_FirstMaster; }
219  SwFrameFormat &GetFirstLeft() { return m_FirstLeft; }
220  const SwFrameFormat &GetMaster() const { return m_Master; }
221  const SwFrameFormat &GetLeft() const { return m_Left; }
222  const SwFrameFormat &GetFirstMaster() const { return m_FirstMaster; }
223  const SwFrameFormat &GetFirstLeft() const { return m_FirstLeft; }
224 
227  inline void ResetAllMasterAttr();
228 
231  SwFrameFormat *GetRightFormat(bool const bFirst = false);
232  inline const SwFrameFormat *GetRightFormat(bool const bFirst = false) const;
233  SwFrameFormat *GetLeftFormat(bool const bFirst = false);
234  inline const SwFrameFormat *GetLeftFormat(bool const bFirst = false) const;
235 
236  sal_uInt16 GetRegHeight() const { return m_nRegHeight; }
237  sal_uInt16 GetRegAscent() const { return m_nRegAscent; }
238  void SetRegHeight(sal_uInt16 const nNew) { m_nRegHeight = nNew; }
239  void SetRegAscent(sal_uInt16 const nNew) { m_nRegAscent = nNew; }
240 
241  drawing::TextVerticalAdjust GetVerticalAdjustment () const {return m_nVerticalAdjustment; }
242  void SetVerticalAdjustment (const drawing::TextVerticalAdjust nVA) {m_nVerticalAdjustment = nVA; }
243 
244  inline void SetFollow( const SwPageDesc* pNew );
245  const SwPageDesc* GetFollow() const { return m_pFollow; }
246  SwPageDesc* GetFollow() { return m_pFollow; }
247 
248  void SetRegisterFormatColl( const SwTextFormatColl* rFormat );
249  const SwTextFormatColl* GetRegisterFormatColl() const;
250  void RegisterChange();
251 
253  sal_uInt16 GetPoolFormatId() const { return m_Master.GetPoolFormatId(); }
254  void SetPoolFormatId(sal_uInt16 const nId) { m_Master.SetPoolFormatId(nId); }
255  sal_uInt16 GetPoolHelpId() const { return m_Master.GetPoolHelpId(); }
256  void SetPoolHelpId(sal_uInt16 const nId){ m_Master.SetPoolHelpId(nId); }
257  sal_uInt8 GetPoolHlpFileId() const { return m_Master.GetPoolHlpFileId(); }
258  void SetPoolHlpFileId(sal_uInt8 const nId) { m_Master.SetPoolHlpFileId(nId); }
259 
261  virtual bool GetInfo( SfxPoolItem& ) const override;
262 
263  const SwFrameFormat* GetPageFormatOfNode( const SwNode& rNd,
264  bool bCheckForThisPgDc = true ) const;
265  bool IsFollowNextPageOfNode( const SwNode& rNd ) const;
266 
268  static const SwPageDesc* GetPageDescOfNode(const SwNode& rNd);
269 
270  static SwPageDesc* GetByName(SwDoc& rDoc, const OUString& rName);
271 
272  SwPageDesc& operator=( const SwPageDesc& );
273 
274  SwPageDesc( const SwPageDesc& );
275  virtual ~SwPageDesc() override;
276 };
277 
278 namespace std {
279  template<>
280  struct less<SwPageDesc*> {
281  bool operator()(const SwPageDesc *pPageDesc, const OUString &rName) const
282  { return pPageDesc->GetName() < rName; }
283  bool operator()(const OUString &rName, const SwPageDesc *pPageDesc) const
284  { return rName < pPageDesc->GetName(); }
285  bool operator()(const SwPageDesc *lhs, const SwPageDesc *rhs) const
286  { return lhs->GetName() < rhs->GetName(); }
287  };
288 }
289 
290 inline void SwPageDesc::SetFollow( const SwPageDesc* pNew )
291 {
292  m_pFollow = pNew ? const_cast<SwPageDesc*>(pNew) : this;
293 }
294 
295 inline bool SwPageDesc::IsHeaderShared() const
296 {
297  return bool(m_eUse & UseOnPage::HeaderShare);
298 }
299 inline bool SwPageDesc::IsFooterShared() const
300 {
301  return bool(m_eUse & UseOnPage::FooterShare);
302 }
303 inline void SwPageDesc::ChgHeaderShare( bool bNew )
304 {
305  if ( bNew )
307  else
309 }
310 inline void SwPageDesc::ChgFooterShare( bool bNew )
311 {
312  if ( bNew )
314  else
316 }
317 inline void SwPageDesc::SetUseOn( UseOnPage eNew )
318 {
319  UseOnPage eTmp = UseOnPage::NONE;
321  eTmp = UseOnPage::HeaderShare;
323  eTmp |= UseOnPage::FooterShare;
325  eTmp |= UseOnPage::FirstShare;
326  m_eUse = eTmp | eNew;
327 
328 }
330 {
331  UseOnPage eRet = m_eUse;
332  eRet &= UseOnPage::NoHeaderShare;
333  eRet &= UseOnPage::NoFooterShare;
334  eRet &= UseOnPage::NoFirstShare;
335  return eRet;
336 }
337 
339 {
340  ResetAllAttr();
341 }
342 
343 inline const SwFrameFormat *SwPageDesc::GetRightFormat(bool const bFirst) const
344 {
345  return const_cast<SwPageDesc*>(this)->GetRightFormat(bFirst);
346 }
347 inline const SwFrameFormat *SwPageDesc::GetLeftFormat(bool const bFirst) const
348 {
349  return const_cast<SwPageDesc*>(this)->GetLeftFormat(bFirst);
350 }
351 
353 {
354 public:
356 private:
357  SwDoc * const m_pDoc;
358  OUString m_sFollow;
359 
360  void SetPageDesc(const SwPageDesc & rPageDesc);
361 
362 public:
363  SwPageDescExt(const SwPageDesc & rPageDesc, SwDoc * pDoc);
364  SwPageDescExt(const SwPageDescExt & rSrc);
365  ~SwPageDescExt();
366 
367  SwPageDescExt & operator = (const SwPageDescExt & rSrc);
368  SwPageDescExt & operator = (const SwPageDesc & rSrc);
369 
370  OUString const & GetName() const;
371 
372  operator SwPageDesc() const; // #i7983#
373 };
374 
375 namespace sw {
376  class PageFootnoteHint final : public SfxHint {};
377 }
378 
379 typedef boost::multi_index_container<
380  SwPageDesc*,
381  boost::multi_index::indexed_by<
382  boost::multi_index::random_access<>,
383  boost::multi_index::ordered_unique<
384  boost::multi_index::identity<SwPageDesc*> >
385  >
386  >
388 
389 class SwPageDescs final
390 {
391  // function updating ByName index via modify
392  friend bool SwPageDesc::SetName( const OUString& rNewName );
393 
394  typedef SwPageDescsBase::nth_index<0>::type ByPos;
395  typedef SwPageDescsBase::nth_index<1>::type ByName;
396  typedef ByPos::iterator iterator;
397 
398  iterator find_( const OUString &name ) const;
399 
401  ByPos &m_PosIndex;
402  ByName &m_NameIndex;
403 
404 public:
405  typedef ByPos::const_iterator const_iterator;
406  typedef SwPageDescsBase::size_type size_type;
407  typedef SwPageDescsBase::value_type value_type;
408 
409  SwPageDescs();
410 
411  // frees all SwPageDesc!
412  ~SwPageDescs();
413 
414  void clear() { return m_Array.clear(); }
415  bool empty() const { return m_Array.empty(); }
416  size_t size() const { return m_Array.size(); }
417 
418  std::pair<const_iterator,bool> push_back( const value_type& x );
419  void erase( const value_type& x );
420  void erase( size_type index );
421  void erase( const_iterator const& position );
422 
423  const_iterator find( const OUString &name ) const
424  { return find_( name ); }
425  const value_type& operator[]( size_t index_ ) const
426  { return m_PosIndex.operator[]( index_ ); }
427  const value_type& front() const { return m_PosIndex.front(); }
428  const value_type& back() const { return m_PosIndex.back(); }
429  const_iterator begin() const { return m_PosIndex.begin(); }
430  const_iterator end() const { return m_PosIndex.end(); }
431 
432  bool contains( const value_type& x ) const
433  { return x->m_pdList == this; }
434 };
435 
436 #endif // INCLUDED_SW_INC_PAGEDESC_HXX
437 
438 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool operator()(const SwPageDesc *pPageDesc, const OUString &rName) const
Definition: pagedesc.hxx:281
void SetTopDist(SwTwips const nNew)
Definition: pagedesc.hxx:75
void SetUseOn(UseOnPage eNew)
Same as WriteUseOn(), but the >= HeaderShare part of the bitfield is not modified.
Definition: pagedesc.hxx:317
const SwFrameFormat & GetLeft() const
Definition: pagedesc.hxx:221
bool operator()(const OUString &rName, const SwPageDesc *pPageDesc) const
Definition: pagedesc.hxx:283
Represents the style of a paragraph.
Definition: fmtcol.hxx:55
const_iterator end() const
Definition: pagedesc.hxx:430
SwPageFootnoteInfo & GetFootnoteInfo()
Definition: pagedesc.hxx:196
SwTwips m_nBottomDist
distance between separator and first footnote
Definition: pagedesc.hxx:57
const_iterator begin() const
Definition: pagedesc.hxx:429
SwFrameFormat & GetLeft()
Definition: pagedesc.hxx:217
void SetLineStyle(SvxBorderLineStyle const eSet)
Definition: pagedesc.hxx:71
const value_type & back() const
Definition: pagedesc.hxx:428
size_t size() const
Definition: pagedesc.hxx:416
void SetPoolHelpId(sal_uInt16 nId)
Definition: format.hxx:148
void ChgHeaderShare(bool bNew)
Definition: pagedesc.hxx:303
const_iterator find(const OUString &name) const
Definition: pagedesc.hxx:423
sal_uInt16 GetRegHeight() const
Definition: pagedesc.hxx:236
void SetPoolHelpId(sal_uInt16 const nId)
Definition: pagedesc.hxx:256
SwPageDescsBase::value_type value_type
Definition: pagedesc.hxx:407
iterator find_(const OUString &name) const
Definition: pagedesc.cxx:546
ByName & m_NameIndex
Definition: pagedesc.hxx:402
void clear()
Definition: pagedesc.hxx:414
sal_uIntPtr sal_uLong
void SetBottomDist(SwTwips const nNew)
Definition: pagedesc.hxx:76
SwTwips GetBottomDist() const
Definition: pagedesc.hxx:67
SwFrameFormat & GetFirstMaster()
Definition: pagedesc.hxx:218
For internal use only.
Definition: doc.hxx:185
SwPageDescExt(const SwPageDesc &rPageDesc, SwDoc *pDoc)
Definition: pagedesc.cxx:478
sal_uInt16 m_nRegAscent
For grid alignment (Registerhaltigkeit).
Definition: pagedesc.hxx:155
long SwTwips
Definition: swtypes.hxx:49
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:108
const SwFrameFormat & GetMaster() const
Definition: pagedesc.hxx:220
void SetHeight(SwTwips const nNew)
Definition: pagedesc.hxx:69
virtual bool GetInfo(SfxPoolItem &) const override
Definition: calbck.cxx:206
change_name(const OUString &rName)
Definition: pagedesc.hxx:177
SwPageDescExt & operator=(const SwPageDescExt &rSrc)
Definition: pagedesc.cxx:516
UseOnPage GetUseOn() const
Definition: pagedesc.hxx:329
void SetFollow(const SwPageDesc *pNew)
Definition: pagedesc.hxx:290
SwTwips GetTopDist() const
Definition: pagedesc.hxx:66
const OUString & GetName() const
Definition: pagedesc.hxx:186
UseOnPage
Definition: pagedesc.hxx:119
SvxBorderLineStyle
ByPos::iterator iterator
Definition: pagedesc.hxx:396
const SwPageFootnoteInfo & GetFootnoteInfo() const
Definition: pagedesc.hxx:195
For internal use only.
void SetFootnoteInfo(const SwPageFootnoteInfo &rNew)
Definition: pagedesc.hxx:197
std::pair< const_iterator, bool > push_back(const value_type &x)
Definition: pagedesc.cxx:552
void SetPoolFormatId(sal_uInt16 nId)
Definition: format.hxx:144
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat-Id.
Definition: pagedesc.hxx:253
ByPos::const_iterator const_iterator
Definition: pagedesc.hxx:405
void SetLandscape(bool bNew)
Definition: pagedesc.hxx:190
sw::WriterMultiListener m_aDepends
Because of grid alignment (Registerhaltigkeit).
Definition: pagedesc.hxx:151
void SetPoolHlpFileId(sal_uInt8 nId)
Definition: format.hxx:150
For internal use only.
SwTwips GetHeight() const
Definition: pagedesc.hxx:60
drawing::TextVerticalAdjust m_nVerticalAdjustment
Definition: pagedesc.hxx:156
void SetPoolHlpFileId(sal_uInt8 const nId)
Definition: pagedesc.hxx:258
sal_uInt16 GetPoolFormatId() const
Get and set Pool style IDs.
Definition: format.hxx:143
SwFrameFormat m_FirstMaster
Definition: pagedesc.hxx:149
SwPageDesc m_PageDesc
Definition: pagedesc.hxx:355
bool IsHeaderShared() const
Definition: pagedesc.hxx:295
void SetPageDesc(const SwPageDesc &rPageDesc)
Definition: pagedesc.cxx:501
void SetRegHeight(sal_uInt16 const nNew)
Definition: pagedesc.hxx:238
Style of a layout element.
Definition: frmfmt.hxx:57
void erase(const value_type &x)
Definition: pagedesc.cxx:563
void SetNumType(const SvxNumberType &rNew)
Definition: pagedesc.hxx:193
const SwFrameFormat & GetFirstLeft() const
Definition: pagedesc.hxx:223
Color m_LineColor
color of the separator line
Definition: pagedesc.hxx:53
SvxNumberType m_NumType
Definition: pagedesc.hxx:145
sal_uInt16 m_nRegHeight
Sentence spacing and fontascent of style.
Definition: pagedesc.hxx:154
void SetAdj(css::text::HorizontalAdjust const eNew)
Definition: pagedesc.hxx:74
void SetWidth(const Fraction &rNew)
Definition: pagedesc.hxx:73
bool GetLandscape() const
Definition: pagedesc.hxx:189
SwFrameFormat * GetLeftFormat(bool const bFirst=false)
Definition: pagedesc.cxx:361
void ChgFooterShare(bool bNew)
Definition: pagedesc.hxx:310
UseOnPage ReadUseOn() const
Definition: pagedesc.hxx:214
sal_uInt8 GetPoolHlpFileId() const
Definition: format.hxx:149
const OUString & mName
Definition: pagedesc.hxx:179
SwPageDescsBase m_Array
Definition: pagedesc.hxx:400
ByPos & m_PosIndex
Definition: pagedesc.hxx:401
void SetVerticalAdjustment(const drawing::TextVerticalAdjust nVA)
Definition: pagedesc.hxx:242
UseOnPage m_eUse
Definition: pagedesc.hxx:157
SwPageDescsBase::size_type size_type
Definition: pagedesc.hxx:406
bool IsFooterShared() const
Definition: pagedesc.hxx:299
bool IsHidden() const
Definition: pagedesc.hxx:206
SwDoc *const m_pDoc
Definition: pagedesc.hxx:357
void SetHidden(bool const bValue)
Definition: pagedesc.hxx:207
bool m_IsLandscape
Definition: pagedesc.hxx:158
SwModify & operator=(const SwModify &)=delete
void SetPoolFormatId(sal_uInt16 const nId)
Definition: pagedesc.hxx:254
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwFrameFormat m_Left
Definition: pagedesc.hxx:147
const SwPageDesc * GetFollow() const
Definition: pagedesc.hxx:245
sal_uInt16 GetRegAscent() const
Definition: pagedesc.hxx:237
const value_type & front() const
Definition: pagedesc.hxx:427
SwFrameFormat & GetMaster()
Definition: pagedesc.hxx:216
SwPageDescsBase::nth_index< 1 >::type ByName
Definition: pagedesc.hxx:395
Footnote information.
Definition: pagedesc.hxx:47
drawing::TextVerticalAdjust GetVerticalAdjustment() const
Definition: pagedesc.hxx:241
const Fraction & GetWidth() const
Definition: pagedesc.hxx:64
sal_uInt16 GetPoolHelpId() const
Get and set Help-IDs for document templates.
Definition: format.hxx:147
unsigned char sal_uInt8
OUString m_StyleName
Definition: pagedesc.hxx:144
void SetLineColor(const Color &rCol)
Definition: pagedesc.hxx:72
OUString const & GetName() const
Definition: pagedesc.cxx:496
OUString m_sFollow
Definition: pagedesc.hxx:358
SwFrameFormat & GetFirstLeft()
Definition: pagedesc.hxx:219
css::text::HorizontalAdjust GetAdj() const
Definition: pagedesc.hxx:65
void WriteUseOn(UseOnPage const eNew)
Definition: pagedesc.hxx:213
SwFrameFormat * GetRightFormat(bool const bFirst=false)
Layout uses the following methods to obtain a format in order to be able to create a page...
Definition: pagedesc.cxx:368
SwPageFootnoteInfo m_IsFootnoteInfo
Footnote information.
Definition: pagedesc.hxx:162
SwPageDesc * m_pFollow
Definition: pagedesc.hxx:153
sal_uLong GetLineWidth() const
Definition: pagedesc.hxx:61
void ResetAllMasterAttr()
Reset all attrs of the format but keep the ones a pagedesc cannot live without.
Definition: pagedesc.hxx:338
sal_uInt16 GetPoolHelpId() const
Definition: pagedesc.hxx:255
SwFrameFormat m_Master
Definition: pagedesc.hxx:146
bool SetName(const OUString &rNewName)
Definition: pagedesc.cxx:128
Fraction m_Width
percentage width of the separator line.
Definition: pagedesc.hxx:54
const SwTextFormatColl * m_pTextFormatColl
Definition: pagedesc.hxx:152
bool contains(const value_type &x) const
Definition: pagedesc.hxx:432
SwPageDescsBase::nth_index< 0 >::type ByPos
Definition: pagedesc.hxx:394
void SetLineWidth(sal_uLong const nSet)
Definition: pagedesc.hxx:70
const SwFrameFormat & GetFirstMaster() const
Definition: pagedesc.hxx:222
sal_uInt8 GetPoolHlpFileId() const
Definition: pagedesc.hxx:257
boost::multi_index_container< SwPageDesc *, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< boost::multi_index::identity< SwPageDesc * > > > > SwPageDescsBase
Definition: pagedesc.hxx:387
SwFrameFormat m_FirstLeft
Definition: pagedesc.hxx:150
bool empty() const
Definition: pagedesc.hxx:415
SvxBorderLineStyle m_eLineStyle
Style of the separator line.
Definition: pagedesc.hxx:52
SAL_DLLPRIVATE void ResetAllAttr()
Definition: pagedesc.cxx:169
SwPageDesc * GetFollow()
Definition: pagedesc.hxx:246
bool operator()(const SwPageDesc *lhs, const SwPageDesc *rhs) const
Definition: pagedesc.hxx:285
SvxBorderLineStyle GetLineStyle() const
Definition: pagedesc.hxx:63
sal_uLong m_nLineWidth
width of separator line
Definition: pagedesc.hxx:51
const value_type & operator[](size_t index_) const
Definition: pagedesc.hxx:425
SwPageDescs * m_pdList
Backref to the assigned SwPageDescs list to handle renames.
Definition: pagedesc.hxx:165
bool m_IsHidden
Definition: pagedesc.hxx:159
void operator()(SwPageDesc *pPageDesc)
Definition: pagedesc.hxx:178
SwTwips m_nTopDist
distance between body and separator.
Definition: pagedesc.hxx:56
css::text::HorizontalAdjust m_eAdjust
line adjustment.
Definition: pagedesc.hxx:55
const Color & GetLineColor() const
Definition: pagedesc.hxx:62
void SetRegAscent(sal_uInt16 const nNew)
Definition: pagedesc.hxx:239
SwTwips m_nMaxHeight
maximum height of the footnote area.
Definition: pagedesc.hxx:50
Base class of the Writer document model elements.
Definition: node.hxx:79
const SvxNumberType & GetNumType() const
Definition: pagedesc.hxx:192