Public Member Functions | |
| OO_PageStyle () | |
| ~OO_PageStyle () | |
| void | appendPageMaster (const std::string &name, const gchar **atts) |
| const gchar * | getName () const |
| const gchar ** | getAbiPageAtts (const gchar *masterName) |
| const gchar * | getAbiSectionProps () const |
Private Member Functions | |
| void | parse (const gchar **props) |
Private Attributes | |
| std::string | m_name |
| std::string | m_width |
| std::string | m_height |
| std::string | m_orientation |
| UT_String | m_marginLeft |
| UT_String | m_marginTop |
| UT_String | m_marginRight |
| UT_String | m_marginBottom |
| UT_String | m_backgroundColor |
| const gchar * | m_pageAtts [MAX_PAGE_ATTS] |
| UT_String | m_sectionProps |
Static Private Attributes | |
| static const int | MAX_PAGE_ATTS = 13 |
Class representing OOo page setup properties. Imported values are separated for use within Abi's <pagesize> and <section> tags.
| OO_PageStyle::OO_PageStyle | ( | ) | [inline] |
| OO_PageStyle::~OO_PageStyle | ( | ) | [inline] |
| void OO_PageStyle::appendPageMaster | ( | const std::string & | name, | |
| const gchar ** | atts | |||
| ) | [inline] |
Parse attributes array and map keys and values to Abi's.
References m_name, parse(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by OpenWriter_StylesStream_Listener::startElement().
| const gchar** OO_PageStyle::getAbiPageAtts | ( | const gchar * | masterName | ) | [inline] |
Returns attribute array for the <pagesize> tag.
References gchar, m_name, m_pageAtts, UT_ASSERT, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by OpenWriter_StylesStream_Listener::startElement().
| const gchar* OO_PageStyle::getAbiSectionProps | ( | ) | const [inline] |
Returns props string for the <section> tag.
References UT_String::c_str(), gchar, and m_sectionProps.
Referenced by OpenWriter_StylesStream_Listener::getSectionProps().
| const gchar* OO_PageStyle::getName | ( | ) | const [inline] |
Returns the name of the current page setup style.
Referenced by OpenWriter_StylesStream_Listener::getSectionProps().
| void OO_PageStyle::parse | ( | const gchar ** | props | ) | [inline, private] |
References APPEND_STYLE, DIM_MM, gchar, fp_PageSize::getPredefinedName(), m_backgroundColor, m_height, m_marginBottom, m_marginLeft, m_marginRight, m_marginTop, m_orientation, m_pageAtts, m_sectionProps, m_width, UT_String::size(), UT_convertToDimension(), UT_getAttribute(), UT_std_string_sprintf(), and UT_String_sprintf().
Referenced by appendPageMaster().
UT_String OO_PageStyle::m_backgroundColor [private] |
Referenced by parse().
std::string OO_PageStyle::m_height [private] |
Referenced by parse().
UT_String OO_PageStyle::m_marginBottom [private] |
Referenced by parse().
UT_String OO_PageStyle::m_marginLeft [private] |
Referenced by parse().
UT_String OO_PageStyle::m_marginRight [private] |
Referenced by parse().
UT_String OO_PageStyle::m_marginTop [private] |
Referenced by parse().
std::string OO_PageStyle::m_name [private] |
Referenced by appendPageMaster(), getAbiPageAtts(), and getName().
std::string OO_PageStyle::m_orientation [private] |
Referenced by parse().
const gchar* OO_PageStyle::m_pageAtts[MAX_PAGE_ATTS] [private] |
Referenced by getAbiPageAtts(), and parse().
UT_String OO_PageStyle::m_sectionProps [private] |
Referenced by getAbiSectionProps(), and parse().
std::string OO_PageStyle::m_width [private] |
Referenced by parse().
const int OO_PageStyle::MAX_PAGE_ATTS = 13 [static, private] |
1.7.1