34 #ifndef MWAWPAGESPAN_H
35 #define MWAWPAGESPAN_H
41 #include "MWAWFont.hxx"
43 class WPXPropertyList;
190 if (margin <= 0.0) margin = 0.01;
215 bool operator==(shared_ptr<MWAWPageSpan>
const &pageSpan)
const;
217 bool operator!=(shared_ptr<MWAWPageSpan>
const &pageSpan)
const {
double m_formWidth
the form width
Definition: MWAWPageSpan.hxx:235
NumberingType
Definition: libmwaw_internal.hxx:159
int getPageSpan() const
Definition: MWAWPageSpan.hxx:154
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:185
Definition: MWAWPageSpan.hxx:103
Definition: libmwaw_internal.hxx:157
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:211
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
int m_pageNumber
the page number ( or -1)
Definition: MWAWPageSpan.hxx:243
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:181
int getPageNumber() const
Definition: MWAWPageSpan.hxx:151
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:184
Definition: MWAWPageSpan.hxx:103
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:124
bool containsHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurence occurence)
return true if we have a header footer in this position
Definition: MWAWPageSpan.cxx:348
PageNumberPosition
a fixed page number position
Definition: MWAWPageSpan.hxx:102
Definition: libmwaw_internal.hxx:155
void checkMargins()
check if the page margins are consistent with the page dimension, if not update them ...
Definition: MWAWPageSpan.cxx:256
FormOrientation
the page orientation
Definition: MWAWPageSpan.hxx:100
Definition: libmwaw_internal.hxx:155
void sendHeaderFooters(MWAWContentListener *listener) const
send the page's headers/footers if some exists
Definition: MWAWPageSpan.cxx:268
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:177
Definition: libmwaw_internal.hxx:155
the class to store a color
Definition: libmwaw_internal.hxx:166
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:358
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:189
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWPageSpan.hxx:148
Definition: libmwaw_internal.hxx:155
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:140
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:128
FormOrientation getFormOrientation() const
returns the page orientation
Definition: MWAWPageSpan.hxx:120
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:116
Definition: MWAWPageSpan.hxx:102
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:165
bool operator==(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator==
Definition: MWAWPageSpan.cxx:301
MWAWPageSpan()
constructor
Definition: MWAWPageSpan.cxx:202
Definition: MWAWPageSpan.hxx:100
Definition: MWAWPageSpan.hxx:102
int getHeaderFooterPosition(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurence occurence)
return the header footer positions in m_headerFooterList
Definition: MWAWPageSpan.cxx:355
Definition: libmwaw_internal.hxx:157
shared_ptr< MWAWHeaderFooter > MWAWHeaderFooterPtr
Definition: MWAWPageSpan.hxx:92
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:112
Definition: MWAWPageSpan.hxx:100
bool operator!=(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator!=
Definition: MWAWPageSpan.hxx:217
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:169
void getPageProperty(WPXPropertyList &pList) const
add the page properties in pList
Definition: MWAWPageSpan.cxx:282
double getMarginTop() const
returns the top margin
Definition: MWAWPageSpan.hxx:132
Definition: libmwaw_internal.hxx:157
virtual ~MWAWPageSpan()
destructor
Definition: MWAWPageSpan.cxx:212
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:216
Definition: MWAWPageSpan.hxx:102
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:173
double m_formLength
the form length
Definition: MWAWPageSpan.hxx:235
std::vector< MWAWHeaderFooter > m_headerFooterList
the list of header
Definition: MWAWPageSpan.hxx:245
double m_margins[4]
the margins: libmwaw::Left, ...
Definition: MWAWPageSpan.hxx:239
MWAWColor m_backgroundColor
the page background color: default white
Definition: MWAWPageSpan.hxx:241
Definition: MWAWPageSpan.hxx:102
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:144
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:207
FormOrientation m_formOrientation
the form orientation
Definition: MWAWPageSpan.hxx:237
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:247
void removeHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurence occurence)
remove a header footer
Definition: MWAWPageSpan.cxx:341
This class contents the main functions needed to create a Writer Document.
Definition: MWAWContentListener.hxx:57
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:161
Definition: libmwaw_internal.hxx:157
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:136
Definition: MWAWPageSpan.hxx:103
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:203