19#ifndef INCLUDED_SW_INC_PAGEDESC_HXX
20#define INCLUDED_SW_INC_PAGEDESC_HXX
29#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
30#include <com/sun/star/text/HorizontalAdjust.hpp>
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>
66 css::text::HorizontalAdjust
GetAdj()
const {
return m_eAdjust; }
75 void SetAdj(css::text::HorizontalAdjust
const eNew) { m_eAdjust = eNew; }
139 :
public sw::BroadcastingModify
180 SAL_DLLPRIVATE
void Mirror();
182 SAL_DLLPRIVATE
void ResetAllAttr();
196 const OUString&
GetName()
const {
return m_StyleName; }
197 bool SetName(
const OUString& rNewName);
209 inline bool IsHeaderShared()
const;
210 inline bool IsFooterShared()
const;
211 inline void ChgHeaderShare(
bool bNew );
212 inline void ChgFooterShare(
bool bNew );
213 bool IsFirstShared()
const;
214 void ChgFirstShare(
bool bNew );
217 void SetHidden(
bool const bValue) { m_IsHidden = bValue; }
220 void StashFrameFormat(
const SwFrameFormat& rFormat,
bool bHeader,
bool bLeft,
bool bFirst);
223 const SwFrameFormat* GetStashedFrameFormat(
bool bHeader,
bool bLeft,
bool bFirst)
const;
226 bool HasStashedFormat(
bool bHeader,
bool bLeft,
bool bFirst);
229 void RemoveStashedFormat(
bool bHeader,
bool bLeft,
bool bFirst);
249 inline void ResetAllMasterAttr();
254 inline const SwFrameFormat *GetRightFormat(
bool const bFirst =
false)
const;
256 inline const SwFrameFormat *GetLeftFormat(
bool const bFirst =
false)
const;
266 inline void SetFollow(
const SwPageDesc* pNew );
272 void RegisterChange();
286 bool bCheckForThisPgDc =
true )
const;
287 bool IsFollowNextPageOfNode(
const SwNode& rNd )
const;
306 {
return pPageDesc->
GetName() < rName; }
308 {
return rName < pPageDesc->
GetName(); }
394 OUString
const &
GetName()
const;
405typedef boost::multi_index_container<
407 boost::multi_index::indexed_by<
408 boost::multi_index::random_access<>,
409 boost::multi_index::ordered_unique<
410 boost::multi_index::identity<SwPageDesc*> >
420 typedef SwPageDescsBase::nth_index<0>::type
ByPos;
421 typedef SwPageDescsBase::nth_index<1>::type
ByName;
459 {
return x->m_pdList ==
this; }
Base class of the Writer document model elements.
OUString const & GetName() const
void SetPageDesc(const SwPageDesc &rPageDesc)
SwPageDescExt & operator=(const SwPageDescExt &rSrc)
SwPageDescExt(const SwPageDesc &rPageDesc, SwDoc *pDoc)
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat-Id.
sal_uInt16 GetPoolHelpId() const
SwPageDescs * m_pdList
Backref to the assigned SwPageDescs list to handle renames.
void ChgFooterShare(bool bNew)
const OUString & GetName() const
sal_uInt16 m_nRegAscent
For grid alignment (Registerhaltigkeit).
drawing::TextVerticalAdjust m_nVerticalAdjustment
void SetPoolHlpFileId(sal_uInt8 const nId)
void SetFollow(const SwPageDesc *pNew)
SwFrameFormat m_FirstMaster
const SwFrameFormat & GetMaster() const
void ResetAllMasterAttr()
Reset all attrs of the format but keep the ones a pagedesc cannot live without.
const SwFrameFormat & GetFirstMaster() const
void SetVerticalAdjustment(const drawing::TextVerticalAdjust nVA)
SwPageFootnoteInfo m_FootnoteInfo
Footnote information.
sal_uInt16 GetRegHeight() const
SwFrameFormat & GetMaster()
bool IsHeaderShared() const
SwFrameFormat m_FirstLeft
const SvxNumberType & GetNumType() const
void ChgHeaderShare(bool bNew)
void SetRegAscent(sal_uInt16 const nNew)
bool IsFooterShared() const
const SwFrameFormat & GetFirstLeft() const
sal_uInt8 GetPoolHlpFileId() const
SwFrameFormat & GetFirstLeft()
SwFrameFormat & GetFirstMaster()
void SetPoolFormatId(sal_uInt16 const nId)
void SetPoolHelpId(sal_uInt16 const nId)
bool GetLandscape() const
UseOnPage GetUseOn() const
void SetNumType(const SvxNumberType &rNew)
bool SetName(const OUString &rNewName)
SwFrameFormat * GetRightFormat(bool const bFirst=false)
Layout uses the following methods to obtain a format in order to be able to create a page.
void SetFootnoteInfo(const SwPageFootnoteInfo &rNew)
SwFrameFormat & GetLeft()
const SwPageDesc * GetFollow() const
const SwFrameFormat & GetLeft() const
void WriteUseOn(UseOnPage const eNew)
sw::WriterMultiListener m_aDepends
Because of grid alignment (Registerhaltigkeit).
const SwPageFootnoteInfo & GetFootnoteInfo() const
sal_uInt16 m_nRegHeight
Sentence spacing and fontascent of style.
SAL_DLLPRIVATE void ResetAllAttr()
void SetHidden(bool const bValue)
drawing::TextVerticalAdjust GetVerticalAdjustment() const
void SetRegHeight(sal_uInt16 const nNew)
UseOnPage ReadUseOn() const
const SwTextFormatColl * m_pTextFormatColl
SwFrameFormat * GetLeftFormat(bool const bFirst=false)
void SetUseOn(UseOnPage eNew)
Same as WriteUseOn(), but the >= HeaderShare part of the bitfield is not modified.
SwPageFootnoteInfo & GetFootnoteInfo()
StashedPageDesc m_aStashedFooter
void SetLandscape(bool bNew)
sal_uInt16 GetRegAscent() const
StashedPageDesc m_aStashedHeader
SwPageDescsBase::value_type value_type
SwPageDescsBase::size_type size_type
std::pair< const_iterator, bool > push_back(const value_type &x)
const_iterator begin() const
void erase(const value_type &x)
const value_type & operator[](size_t index_) const
SwPageDescsBase::nth_index< 0 >::type ByPos
SwPageDescsBase::nth_index< 1 >::type ByName
void dumpAsXml(xmlTextWriterPtr pWriter) const
iterator find_(const OUString &name) const
const_iterator end() const
ByPos::const_iterator const_iterator
const value_type & front() const
const_iterator find(const OUString &name) const
const value_type & back() const
bool contains(const value_type &x) const
Represents the style of a paragraph.
struct _xmlTextWriter * xmlTextWriterPtr
Dialog to specify the properties of date form field.
SwTwips FootnoteSeparatorHeight(SwPageFootnoteInfo const &rInf)
@ NoFooterShare
For internal use only.
@ NONE
For internal use only.
@ NoHeaderShare
For internal use only.
struct _xmlTextWriter * xmlTextWriterPtr
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
std::shared_ptr< SwFrameFormat > m_pStashedFirst
std::shared_ptr< SwFrameFormat > m_pStashedFirstLeft
std::shared_ptr< SwFrameFormat > m_pStashedLeft
change_name(const OUString &rName)
void operator()(SwPageDesc *pPageDesc)
bool operator()(const SwPageDesc *lhs, const SwPageDesc *rhs) const
bool operator()(const SwPageDesc *pPageDesc, std::u16string_view rName) const
bool operator()(std::u16string_view rName, const SwPageDesc *pPageDesc) const