#include <ie_exp_OpenWriter.h>
Static Public Member Functions | |
static bool | writeStyles (PD_Document *pDoc, GsfOutfile *oo, OO_StylesContainer &stylesContainer) |
static void | addFontDecls (UT_UTF8String &buffer, OO_StylesContainer &stylesContainer) |
static void | map (const PP_AttrProp *pAP, UT_UTF8String &styleAtts, UT_UTF8String &propAtts, UT_UTF8String &font) |
Private Member Functions | |
OO_StylesWriter () |
OO_StylesWriter: This class writes the "styles.xml" portion of the .sxw file. It can also be used to convert Abi's attributes and properties.
OO_StylesWriter::OO_StylesWriter | ( | ) | [private] |
void OO_StylesWriter::addFontDecls | ( | UT_UTF8String & | buffer, | |
OO_StylesContainer & | stylesContainer | |||
) | [static] |
References UT_String::c_str(), DELETEP, gchar, OO_StylesContainer::getFontsKeys(), UT_GenericVector< T >::getNthItem(), UT_GenericVector< T >::size(), and UT_UTF8String_sprintf().
Referenced by OO_WriterImpl::OO_WriterImpl(), and writeStyles().
void OO_StylesWriter::map | ( | const PP_AttrProp * | pAP, | |
UT_UTF8String & | styleAtts, | |||
UT_UTF8String & | propAtts, | |||
UT_UTF8String & | font | |||
) | [static] |
Convert attributes and properties.
References UT_UTF8String::clear(), DIM_CM, DIM_none, UT_UTF8String::escapeXML(), gchar, PP_AttrProp::getAttribute(), PP_AttrProp::getProperty(), UT_convertToDimension(), UT_convertToPoints(), UT_determineDimension(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by OO_Listener::_openBlock(), OO_Listener::_openSpan(), and writeStyles().
bool OO_StylesWriter::writeStyles | ( | PD_Document * | pDoc, | |
GsfOutfile * | oo, | |||
OO_StylesContainer & | stylesContainer | |||
) | [static] |
Write the styles stream.
References OO_StylesContainer::addFont(), addFontDecls(), UT_UTF8String::clear(), PD_Document::getAllUsedStyles(), PD_Document::getAttrProp(), PD_Style::getIndexAP(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), map(), oo_gsf_output_close(), UT_UTF8String::size(), UT_UTF8String::utf8_str(), writeToStream(), and writeUTF8String().
Referenced by IE_Exp_OpenWriter::_writeDocument().