#include <OXML_Style.h>
Public Member Functions | |
| OXML_Style (const std::string &id, const std::string &name) | |
| virtual | ~OXML_Style () |
| void | setId (const std::string &id) |
| const std::string & | getId () const |
| void | setName (const std::string &name) |
| const std::string & | getName () const |
| void | setBasedOn (const std::string &basedOn) |
| void | setFollowedBy (const std::string &followedBy) |
| UT_Error | serialize (IE_Exp_OpenXML *exporter) |
| UT_Error | addToPT (PD_Document *pDocument) |
Private Attributes | |
| std::string | m_id |
| std::string | m_name |
| std::string | m_basedon |
| std::string | m_followedby |
| OXML_Style::OXML_Style | ( | const std::string & | id, | |
| const std::string & | name | |||
| ) |
| id | The unique identifier for a valid OpenXML style. | |
| name | The unique identifier for a style in the AbiWord piecetable. |
References PT_NAME_ATTRIBUTE_NAME, and OXML_ObjectWithAttrProp::setAttribute().
| OXML_Style::~OXML_Style | ( | ) | [virtual] |
| UT_Error OXML_Style::addToPT | ( | PD_Document * | pDocument | ) |
References PD_Document::appendStyle(), gchar, OXML_ObjectWithAttrProp::getAttribute(), OXML_ObjectWithAttrProp::getAttributesWithProps(), OXML_Document::getInstance(), OXML_Document::getStyleById(), PT_BASEDON_ATTRIBUTE_NAME, PT_FOLLOWEDBY_ATTRIBUTE_NAME, OXML_ObjectWithAttrProp::setAttribute(), UT_ASSERT_HARMLESS, UT_ERROR, UT_OK, and UT_return_val_if_fail.
| const std::string& OXML_Style::getId | ( | ) | const [inline] |
References m_id.
| const std::string& OXML_Style::getName | ( | ) | const [inline] |
References m_name.
| UT_Error OXML_Style::serialize | ( | IE_Exp_OpenXML * | exporter | ) |
References IE_Exp_OpenXML::finishDocumentDefaultProperties(), IE_Exp_OpenXML::finishParagraphDefaultProperties(), IE_Exp_OpenXML::finishParagraphProperties(), IE_Exp_OpenXML::finishRunDefaultProperties(), IE_Exp_OpenXML::finishRunProperties(), IE_Exp_OpenXML::finishStyle(), gchar, OXML_ObjectWithAttrProp::getAttribute(), OXML_ObjectWithAttrProp::getProperty(), m_basedon, m_followedby, m_name, IE_Exp_OpenXML::setBackgroundColor(), IE_Exp_OpenXML::setBold(), IE_Exp_OpenXML::setFontFamily(), IE_Exp_OpenXML::setFontSize(), IE_Exp_OpenXML::setItalic(), IE_Exp_OpenXML::setLineHeight(), IE_Exp_OpenXML::setLineThrough(), IE_Exp_OpenXML::setOverline(), IE_Exp_OpenXML::setParagraphBottomMargin(), IE_Exp_OpenXML::setParagraphLeftMargin(), IE_Exp_OpenXML::setParagraphRightMargin(), IE_Exp_OpenXML::setParagraphTopMargin(), IE_Exp_OpenXML::setSubscript(), IE_Exp_OpenXML::setSuperscript(), IE_Exp_OpenXML::setTextAlignment(), IE_Exp_OpenXML::setTextColor(), IE_Exp_OpenXML::setTextIndentation(), IE_Exp_OpenXML::setUnderline(), IE_Exp_OpenXML::setWidows(), IE_Exp_OpenXML::startDocumentDefaultProperties(), IE_Exp_OpenXML::startParagraphDefaultProperties(), IE_Exp_OpenXML::startParagraphProperties(), IE_Exp_OpenXML::startRunDefaultProperties(), IE_Exp_OpenXML::startRunProperties(), IE_Exp_OpenXML::startStyle(), TARGET_STYLES, type, and UT_OK.
| void OXML_Style::setBasedOn | ( | const std::string & | basedOn | ) | [inline] |
References m_basedon.
Referenced by IE_Exp_OpenXML_Listener::addDocumentStyles().
| void OXML_Style::setFollowedBy | ( | const std::string & | followedBy | ) | [inline] |
References m_followedby.
Referenced by IE_Exp_OpenXML_Listener::addDocumentStyles().
| void OXML_Style::setId | ( | const std::string & | id | ) | [inline] |
References m_id.
| void OXML_Style::setName | ( | const std::string & | name | ) | [inline] |
References m_name, PT_NAME_ATTRIBUTE_NAME, and OXML_ObjectWithAttrProp::setAttribute().
Referenced by OXMLi_ListenerState_Styles::startElement().
std::string OXML_Style::m_basedon [private] |
Referenced by serialize(), and setBasedOn().
std::string OXML_Style::m_followedby [private] |
Referenced by serialize(), and setFollowedBy().
std::string OXML_Style::m_id [private] |
std::string OXML_Style::m_name [private] |
Referenced by getName(), serialize(), and setName().
1.7.1