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; }
169 SAL_DLLPRIVATE
void Mirror();
171 SAL_DLLPRIVATE
void ResetAllAttr();
186 const OUString&
GetName()
const {
return m_StyleName; }
187 bool SetName(
const OUString& rNewName);
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 );
207 void SetHidden(
bool const bValue) { m_IsHidden = bValue; }
227 inline void ResetAllMasterAttr();
232 inline const SwFrameFormat *GetRightFormat(
bool const bFirst =
false)
const;
234 inline const SwFrameFormat *GetLeftFormat(
bool const bFirst =
false)
const;
244 inline void SetFollow(
const SwPageDesc* pNew );
250 void RegisterChange();
264 bool bCheckForThisPgDc =
true )
const;
265 bool IsFollowNextPageOfNode(
const SwNode& rNd )
const;
284 {
return pPageDesc->
GetName() < rName; }
286 {
return rName < pPageDesc->
GetName(); }
372 OUString
const &
GetName()
const;
383 typedef boost::multi_index_container<
385 boost::multi_index::indexed_by<
386 boost::multi_index::random_access<>,
387 boost::multi_index::ordered_unique<
388 boost::multi_index::identity<SwPageDesc*> >
398 typedef SwPageDescsBase::nth_index<0>::type
ByPos;
399 typedef SwPageDescsBase::nth_index<1>::type
ByName;
402 iterator
find_(
const OUString &name )
const;
418 void clear() {
return m_Array.clear(); }
419 bool empty()
const {
return m_Array.empty(); }
420 size_t size()
const {
return m_Array.size(); }
422 std::pair<const_iterator,bool>
push_back(
const value_type& x );
423 void erase(
const value_type& x );
424 void erase( size_type index );
425 void erase( const_iterator
const& position );
427 const_iterator
find(
const OUString &name )
const
428 {
return find_( name ); }
430 {
return m_PosIndex.operator[]( index_ ); }
431 const value_type&
front()
const {
return m_PosIndex.front(); }
432 const value_type&
back()
const {
return m_PosIndex.back(); }
433 const_iterator
begin()
const {
return m_PosIndex.begin(); }
434 const_iterator
end()
const {
return m_PosIndex.end(); }
437 {
return x->m_pdList ==
this; }
442 #endif // INCLUDED_SW_INC_PAGEDESC_HXX
BroadcasterMixin & operator=(const BroadcasterMixin &)
void SetUseOn(UseOnPage eNew)
Same as WriteUseOn(), but the >= HeaderShare part of the bitfield is not modified.
const SwFrameFormat & GetLeft() const
Represents the style of a paragraph.
const_iterator end() const
SwPageFootnoteInfo & GetFootnoteInfo()
const_iterator begin() const
SwFrameFormat & GetLeft()
const value_type & back() const
void ChgHeaderShare(bool bNew)
const_iterator find(const OUString &name) const
sal_uInt16 GetRegHeight() const
void SetPoolHelpId(sal_uInt16 const nId)
SwPageDescsBase::value_type value_type
iterator find_(const OUString &name) const
SwFrameFormat & GetFirstMaster()
SwPageDescExt(const SwPageDesc &rPageDesc, SwDoc *pDoc)
sal_uInt16 m_nRegAscent
For grid alignment (Registerhaltigkeit).
bool operator()(std::u16string_view rName, const SwPageDesc *pPageDesc) const
Dialog to specify the properties of date form field.
const SwFrameFormat & GetMaster() const
virtual bool GetInfo(SfxPoolItem &) const override
change_name(const OUString &rName)
SwPageDescExt & operator=(const SwPageDescExt &rSrc)
UseOnPage GetUseOn() const
void SetFollow(const SwPageDesc *pNew)
const OUString & GetName() const
const SwPageFootnoteInfo & GetFootnoteInfo() const
void SetFootnoteInfo(const SwPageFootnoteInfo &rNew)
std::pair< const_iterator, bool > push_back(const value_type &x)
sal_uInt16 GetPoolFormatId() const
Query and set PoolFormat-Id.
ByPos::const_iterator const_iterator
void SetLandscape(bool bNew)
sw::WriterMultiListener m_aDepends
Because of grid alignment (Registerhaltigkeit).
struct _xmlTextWriter * xmlTextWriterPtr
drawing::TextVerticalAdjust m_nVerticalAdjustment
void SetPoolHlpFileId(sal_uInt8 const nId)
SwFrameFormat m_FirstMaster
bool operator()(const SwPageDesc *pPageDesc, std::u16string_view rName) const
bool IsHeaderShared() const
void SetPageDesc(const SwPageDesc &rPageDesc)
struct _xmlTextWriter * xmlTextWriterPtr
void SetRegHeight(sal_uInt16 const nNew)
void erase(const value_type &x)
void SetNumType(const SvxNumberType &rNew)
const SwFrameFormat & GetFirstLeft() const
sal_uInt16 m_nRegHeight
Sentence spacing and fontascent of style.
bool GetLandscape() const
SwFrameFormat * GetLeftFormat(bool const bFirst=false)
void ChgFooterShare(bool bNew)
UseOnPage ReadUseOn() const
void dumpAsXml(xmlTextWriterPtr pWriter) const
void SetVerticalAdjustment(const drawing::TextVerticalAdjust nVA)
SwPageDescsBase::size_type size_type
bool IsFooterShared() const
void SetHidden(bool const bValue)
void SetPoolFormatId(sal_uInt16 const nId)
const SwPageDesc * GetFollow() const
sal_uInt16 GetRegAscent() const
const value_type & front() const
SwPageFootnoteInfo m_FootnoteInfo
Footnote information.
SwFrameFormat & GetMaster()
SwPageDescsBase::nth_index< 1 >::type ByName
drawing::TextVerticalAdjust GetVerticalAdjustment() const
OUString const & GetName() const
SwFrameFormat & GetFirstLeft()
void WriteUseOn(UseOnPage const eNew)
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 ResetAllMasterAttr()
Reset all attrs of the format but keep the ones a pagedesc cannot live without.
sal_uInt16 GetPoolHelpId() const
bool SetName(const OUString &rNewName)
const SwTextFormatColl * m_pTextFormatColl
bool contains(const value_type &x) const
SwPageDescsBase::nth_index< 0 >::type ByPos
const SwFrameFormat & GetFirstMaster() const
sal_uInt8 GetPoolHlpFileId() const
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
SwFrameFormat m_FirstLeft
SAL_DLLPRIVATE void ResetAllAttr()
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
bool operator()(const SwPageDesc *lhs, const SwPageDesc *rhs) const
SwTwips FootnoteSeparatorHeight(SwPageFootnoteInfo const &rInf)
const value_type & operator[](size_t index_) const
SwPageDescs * m_pdList
Backref to the assigned SwPageDescs list to handle renames.
void operator()(SwPageDesc *pPageDesc)
void SetRegAscent(sal_uInt16 const nNew)
Base class of the Writer document model elements.
const SvxNumberType & GetNumType() const