#include <WPSPageSpan.h>
Public Member Functions | |
WPSPageSpan () | |
WPSPageSpan (const WPSPageSpan &page, float paragraphMarginLeft, float paragraphMarginRight) | |
WPSPageSpan (const WPSPageSpan &page) | |
virtual | ~WPSPageSpan () |
const bool | getHeaderFooterSuppression (const uint8_t headerFooterType) const |
const float | getFormLength () const |
const float | getFormWidth () const |
const WPSFormOrientation | getFormOrientation () const |
const float | getMarginLeft () const |
const float | getMarginRight () const |
const float | getMarginTop () const |
const float | getMarginBottom () const |
const int | getPageSpan () const |
const std::vector < WPSHeaderFooter > & | getHeaderFooterList () const |
void | setHeaderFooter (const WPSHeaderFooterType type, const uint8_t headerFooterType, const WPSHeaderFooterOccurence occurence) |
void | setHeadFooterSuppression (const uint8_t headerFooterType, const bool suppress) |
void | setFormLength (const float formLength) |
void | setFormWidth (const float formWidth) |
void | setFormOrientation (const WPSFormOrientation formOrientation) |
void | setMarginLeft (const float marginLeft) |
void | setMarginRight (const float marginRight) |
void | setMarginTop (const float marginTop) |
void | setMarginBottom (const float marginBottom) |
void | setPageSpan (const int pageSpan) |
void | makeConsistent (int startingPageNumber) |
Protected Member Functions | |
void | _removeHeaderFooter (WPSHeaderFooterType type, WPSHeaderFooterOccurence occurence) |
bool | _containsHeaderFooter (WPSHeaderFooterType type, WPSHeaderFooterOccurence occurence) |
Private Attributes | |
bool | m_isHeaderFooterSuppressed [WPS_NUM_HEADER_FOOTER_TYPES] |
float | m_formLength |
float | m_formWidth |
WPSFormOrientation | m_formOrientation |
float | m_marginLeft |
float | m_marginRight |
float | m_marginTop |
float | m_marginBottom |
std::vector< WPSHeaderFooter > | m_headerFooterList |
int | m_pageSpan |
WPSPageSpan::WPSPageSpan | ( | ) |
WPSPageSpan::WPSPageSpan | ( | const WPSPageSpan & | page, | |
float | paragraphMarginLeft, | |||
float | paragraphMarginRight | |||
) |
WPSPageSpan::WPSPageSpan | ( | const WPSPageSpan & | page | ) |
WPSPageSpan::~WPSPageSpan | ( | ) | [virtual] |
bool WPSPageSpan::_containsHeaderFooter | ( | WPSHeaderFooterType | type, | |
WPSHeaderFooterOccurence | occurence | |||
) | [protected] |
Referenced by setHeaderFooter().
void WPSPageSpan::_removeHeaderFooter | ( | WPSHeaderFooterType | type, | |
WPSHeaderFooterOccurence | occurence | |||
) | [protected] |
Referenced by setHeaderFooter().
const float WPSPageSpan::getFormLength | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan().
const WPSFormOrientation WPSPageSpan::getFormOrientation | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan().
const float WPSPageSpan::getFormWidth | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan().
const std::vector<WPSHeaderFooter>& WPSPageSpan::getHeaderFooterList | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), and operator==().
const bool WPSPageSpan::getHeaderFooterSuppression | ( | const uint8_t | headerFooterType | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), operator==(), and WPSPageSpan().
const float WPSPageSpan::getMarginBottom | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), and operator==().
const float WPSPageSpan::getMarginLeft | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), and operator==().
const float WPSPageSpan::getMarginRight | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), and operator==().
const float WPSPageSpan::getMarginTop | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan(), and operator==().
const int WPSPageSpan::getPageSpan | ( | ) | const [inline] |
Referenced by WPSContentListener::_openPageSpan().
void WPSPageSpan::makeConsistent | ( | int | startingPageNumber | ) |
Referenced by WPSContentListener::_openPageSpan().
void WPSPageSpan::setFormLength | ( | const float | formLength | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setFormOrientation | ( | const WPSFormOrientation | formOrientation | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setFormWidth | ( | const float | formWidth | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setHeaderFooter | ( | const WPSHeaderFooterType | type, | |
const uint8_t | headerFooterType, | |||
const WPSHeaderFooterOccurence | occurence | |||
) |
void WPSPageSpan::setHeadFooterSuppression | ( | const uint8_t | headerFooterType, | |
const bool | suppress | |||
) | [inline] |
void WPSPageSpan::setMarginBottom | ( | const float | marginBottom | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setMarginLeft | ( | const float | marginLeft | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setMarginRight | ( | const float | marginRight | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setMarginTop | ( | const float | marginTop | ) | [inline] |
Referenced by WPS4Parser::parsePages().
void WPSPageSpan::setPageSpan | ( | const int | pageSpan | ) | [inline] |
float WPSPageSpan::m_formLength [private] |
Referenced by getFormLength(), and setFormLength().
Referenced by getFormOrientation(), and setFormOrientation().
float WPSPageSpan::m_formWidth [private] |
Referenced by getFormWidth(), and setFormWidth().
std::vector<WPSHeaderFooter> WPSPageSpan::m_headerFooterList [private] |
Referenced by _containsHeaderFooter(), _removeHeaderFooter(), getHeaderFooterList(), and setHeaderFooter().
bool WPSPageSpan::m_isHeaderFooterSuppressed[WPS_NUM_HEADER_FOOTER_TYPES] [private] |
Referenced by getHeaderFooterSuppression(), setHeadFooterSuppression(), and WPSPageSpan().
float WPSPageSpan::m_marginBottom [private] |
Referenced by getMarginBottom(), and setMarginBottom().
float WPSPageSpan::m_marginLeft [private] |
Referenced by getMarginLeft(), and setMarginLeft().
float WPSPageSpan::m_marginRight [private] |
Referenced by getMarginRight(), and setMarginRight().
float WPSPageSpan::m_marginTop [private] |
Referenced by getMarginTop(), and setMarginTop().
int WPSPageSpan::m_pageSpan [private] |
Referenced by getPageSpan(), and setPageSpan().