Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

OO_PageStyle Class Reference

List of all members.

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

Detailed Description

Class representing OOo page setup properties. Imported values are separated for use within Abi's <pagesize> and <section> tags.


Constructor & Destructor Documentation

OO_PageStyle::OO_PageStyle (  )  [inline]
OO_PageStyle::~OO_PageStyle (  )  [inline]

Member Function Documentation

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.

References gchar, and m_name.

Referenced by OpenWriter_StylesStream_Listener::getSectionProps().

void OO_PageStyle::parse ( const gchar **  props  )  [inline, private]

Member Data Documentation

Referenced by parse().

std::string OO_PageStyle::m_height [private]

Referenced by parse().

Referenced by parse().

Referenced by parse().

Referenced by parse().

Referenced by parse().

std::string OO_PageStyle::m_name [private]
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().

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]

The documentation for this class was generated from the following file: