Holds all relevant info contained in the <office:font-face-decls> More...
#include <ODi_FontFaceDecls.h>
Public Member Functions | |
ODi_FontFaceDecls (ODi_ElementStack &rElementStack) | |
Constructor. | |
void | startElement (const gchar *pName, const gchar **ppAtts, ODi_ListenerStateAction &rAction) |
void | endElement (const gchar *pName, ODi_ListenerStateAction &rAction) |
void | charData (const gchar *, int) |
const std::string & | getFontFamily (const std::string &rStyleName) |
Returns the font family of a font face given its style name. | |
void | clear () |
Private Attributes | |
std::map< std::string, std::string > | m_fontFamilies |
Holds all relevant info contained in the <office:font-face-decls>
For now it's used just to map a given font face style name (style:font-name) into the name of its font face family (svg:font-family).
ODi_FontFaceDecls::ODi_FontFaceDecls | ( | ODi_ElementStack & | rElementStack | ) |
Constructor.
void ODi_FontFaceDecls::charData | ( | const gchar * | , | |
int | ||||
) | [inline, virtual] |
Implements ODi_ListenerState.
void ODi_FontFaceDecls::clear | ( | void | ) | [inline] |
References m_fontFamilies.
Referenced by ODi_StreamListener::clearFontFaceDecls().
void ODi_FontFaceDecls::endElement | ( | const gchar * | pName, | |
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References ODi_ListenerStateAction::popState().
const std::string & ODi_FontFaceDecls::getFontFamily | ( | const std::string & | rStyleName | ) |
Returns the font family of a font face given its style name.
References m_fontFamilies.
Referenced by ODi_Style_Style::buildAbiPropsAttrString().
void ODi_FontFaceDecls::startElement | ( | const gchar * | pName, | |
const gchar ** | ppAtts, | |||
ODi_ListenerStateAction & | rAction | |||
) | [virtual] |
Implements ODi_ListenerState.
References gchar, m_fontFamilies, UT_ASSERT, and UT_getAttribute().
std::map<std::string, std::string> ODi_FontFaceDecls::m_fontFamilies [private] |
Referenced by clear(), getFontFamily(), and startElement().