Public Member Functions | Private Attributes

ODi_FontFaceDecls Class Reference

Holds all relevant info contained in the <office:font-face-decls> More...

#include <ODi_FontFaceDecls.h>

Inheritance diagram for ODi_FontFaceDecls:
ODi_ListenerState

List of all members.

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

Detailed Description

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).


Constructor & Destructor Documentation

ODi_FontFaceDecls::ODi_FontFaceDecls ( ODi_ElementStack rElementStack  ) 

Constructor.


Member Function Documentation

void ODi_FontFaceDecls::charData ( const gchar *  ,
int   
) [inline, virtual]

Implements ODi_ListenerState.

void ODi_FontFaceDecls::clear ( void   )  [inline]
void ODi_FontFaceDecls::endElement ( const gchar *  pName,
ODi_ListenerStateAction rAction 
) [virtual]
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]

Member Data Documentation

std::map<std::string, std::string> ODi_FontFaceDecls::m_fontFamilies [private]

Referenced by clear(), getFontFamily(), and startElement().


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