34 #ifndef MWAWPAGESPAN_H 35 #define MWAWPAGESPAN_H 215 if (margin < 0.0) margin = 0.01;
273 bool operator==(std::shared_ptr<MWAWPageSpan>
const &pageSpan)
const;
275 bool operator!=(std::shared_ptr<MWAWPageSpan>
const &pageSpan)
const 282 void getPageProperty(librevenge::RVNGPropertyList &pList,
bool isPresentation=
false)
const;
void sendHeaderFooters(MWAWListener *listener) const
send the page's headers/footers if some exists
Definition: MWAWPageSpan.cxx:283
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:152
double m_formWidth
the form width
Definition: MWAWPageSpan.hxx:296
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:117
FormOrientation getFormOrientation() const
returns the page orientation
Definition: MWAWPageSpan.hxx:127
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:122
NumberingType
Definition: libmwaw_internal.hxx:180
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
Definition: MWAWPageSpan.hxx:105
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:147
Definition: libmwaw_internal.hxx:178
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
int m_pageNumber
the page number ( or -1)
Definition: MWAWPageSpan.hxx:310
void removeHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
remove a header footer
Definition: MWAWPageSpan.cxx:380
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
int getHeaderFooterPosition(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
return the header footer positions in m_headerFooterList
Definition: MWAWPageSpan.cxx:394
bool containsHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurrence occurrence)
return true if we have a header footer in this position
Definition: MWAWPageSpan.cxx:387
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:157
librevenge::RVNGString const & getPageName() const
return the page name
Definition: MWAWPageSpan.hxx:238
Definition: MWAWPageSpan.hxx:105
librevenge::RVNGString m_masterName
the page master name
Definition: MWAWPageSpan.hxx:302
int getPageSpan() const
Definition: MWAWPageSpan.hxx:170
PageNumberPosition
a fixed page number position
Definition: MWAWPageSpan.hxx:104
Definition: libmwaw_internal.hxx:176
void checkMargins()
check if the page margins are consistent with the page dimension, if not update them ...
Definition: MWAWPageSpan.cxx:271
FormOrientation
the page orientation
Definition: MWAWPageSpan.hxx:102
bool operator!=(std::shared_ptr< MWAWPageSpan > const &pageSpan) const
operator!=
Definition: MWAWPageSpan.hxx:275
Definition: libmwaw_internal.hxx:176
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
Definition: libmwaw_internal.hxx:176
the class to store a color
Definition: libmwaw_internal.hxx:192
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
Definition: libmwaw_internal.hxx:176
bool hasMasterPageName() const
return true if the masterPage has a name
Definition: MWAWPageSpan.hxx:248
Class to store font.
Definition: MWAWFont.hxx:43
MWAWPageSpan & operator=(MWAWPageSpan const &)=default
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWPageSpan.hxx:162
std::shared_ptr< MWAWHeaderFooter > MWAWHeaderFooterPtr
Definition: MWAWPageSpan.hxx:95
Definition: MWAWPageSpan.hxx:104
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPageSpan()
constructor
Definition: MWAWPageSpan.cxx:209
Definition: MWAWPageSpan.hxx:102
librevenge::RVNGString const & getMasterPageName() const
return the page master name
Definition: MWAWPageSpan.hxx:253
void setPageName(librevenge::RVNGString const &name)
set the page name
Definition: MWAWPageSpan.hxx:228
Definition: MWAWPageSpan.hxx:104
Definition: libmwaw_internal.hxx:178
Definition: MWAWPageSpan.hxx:102
int getPageNumber() const
Definition: MWAWPageSpan.hxx:166
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:188
Definition: libmwaw_internal.hxx:178
~MWAWPageSpan()
destructor
Definition: MWAWPageSpan.cxx:223
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
bool operator==(std::shared_ptr< MWAWPageSpan > const &pageSpan) const
operator==
Definition: MWAWPageSpan.cxx:339
Definition: MWAWPageSpan.hxx:104
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
double m_formLength
the form length
Definition: MWAWPageSpan.hxx:296
std::vector< MWAWHeaderFooter > m_headerFooterList
the list of header
Definition: MWAWPageSpan.hxx:308
double m_margins[4]
the margins: libmwaw::Left, ...
Definition: MWAWPageSpan.hxx:298
MWAWColor m_backgroundColor
the page background color: default white
Definition: MWAWPageSpan.hxx:306
void getPageProperty(librevenge::RVNGPropertyList &pList, bool isPresentation=false) const
add the page properties in pList
Definition: MWAWPageSpan.cxx:310
Definition: MWAWPageSpan.hxx:104
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:263
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
FormOrientation m_formOrientation
the form orientation
Definition: MWAWPageSpan.hxx:304
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:312
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:132
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
Definition: libmwaw_internal.hxx:178
double getMarginTop() const
returns the top margin
Definition: MWAWPageSpan.hxx:142
bool hasPageName() const
return true if the page has a name
Definition: MWAWPageSpan.hxx:233
Definition: MWAWPageSpan.hxx:105
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:258
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:137
librevenge::RVNGString m_name
the page name
Definition: MWAWPageSpan.hxx:300