34 #ifndef MWAWPAGESPAN_H
35 #define MWAWPAGESPAN_H
43 class WPXPropertyList;
195 if (margin <= 0.0) margin = 0.01;
220 bool operator==(shared_ptr<MWAWPageSpan>
const &pageSpan)
const;
222 bool operator!=(shared_ptr<MWAWPageSpan>
const &pageSpan)
const {
double m_formWidth
the form width
Definition: MWAWPageSpan.hxx:240
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
Definition: MSK4Zone.hxx:47
NumberingType
Definition: libmwaw_internal.hxx:154
int getPageSpan() const
Definition: MWAWPageSpan.hxx:159
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:190
Definition: MWAWPageSpan.hxx:108
Definition: libmwaw_internal.hxx:152
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:216
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:100
int m_pageNumber
the page number ( or -1)
Definition: MWAWPageSpan.hxx:248
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:186
int getPageNumber() const
Definition: MWAWPageSpan.hxx:156
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:179
Definition: MWAWPageSpan.hxx:108
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:129
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:107
Definition: libmwaw_internal.hxx:150
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:105
Definition: libmwaw_internal.hxx:150
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:182
Definition: libmwaw_internal.hxx:150
the class to store a color
Definition: libmwaw_internal.hxx:161
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:194
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWPageSpan.hxx:153
Definition: libmwaw_internal.hxx:150
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:145
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:133
Class to store font.
Definition: MWAWFont.hxx:47
FormOrientation getFormOrientation() const
returns the page orientation
Definition: MWAWPageSpan.hxx:125
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:121
Definition: MWAWPageSpan.hxx:107
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:170
bool operator==(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator==
Definition: MWAWPageSpan.cxx:301
MWAWPageSpan()
constructor
Definition: MWAWPageSpan.cxx:202
Definition: MWAWPageSpan.hxx:105
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:49
Definition: MWAWPageSpan.hxx:107
int getHeaderFooterPosition(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurence occurence)
return the header footer positions in m_headerFooterList
Definition: MWAWPageSpan.cxx:355
Definition: libmwaw_internal.hxx:152
shared_ptr< MWAWHeaderFooter > MWAWHeaderFooterPtr
Definition: MWAWPageSpan.hxx:97
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:117
Definition: MWAWPageSpan.hxx:105
bool operator!=(shared_ptr< MWAWPageSpan > const &pageSpan) const
operator!=
Definition: MWAWPageSpan.hxx:222
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:174
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:137
Definition: libmwaw_internal.hxx:152
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:107
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:178
double m_formLength
the form length
Definition: MWAWPageSpan.hxx:240
std::vector< MWAWHeaderFooter > m_headerFooterList
the list of header
Definition: MWAWPageSpan.hxx:250
double m_margins[4]
the margins: libmwaw::Left, ...
Definition: MWAWPageSpan.hxx:244
MWAWColor m_backgroundColor
the page background color: default white
Definition: MWAWPageSpan.hxx:246
Definition: MWAWPageSpan.hxx:107
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:149
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:212
FormOrientation m_formOrientation
the form orientation
Definition: MWAWPageSpan.hxx:242
int m_pageSpan
the number of page
Definition: MWAWPageSpan.hxx:252
void removeHeaderFooter(MWAWHeaderFooter::Type type, MWAWHeaderFooter::Occurence occurence)
remove a header footer
Definition: MWAWPageSpan.cxx:341
Definition: MWAWContentListener.hxx:68
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:166
Definition: libmwaw_internal.hxx:152
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:141
Definition: MWAWPageSpan.hxx:108
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:208