#include <ut_svg.h>
Public Types | |
enum | ParseMode { pm_recognizeContent, pm_getDimensions, pm_parse } |
Public Member Functions | |
void | startElement (const gchar *name, const gchar **atts) |
void | endElement (const gchar *name) |
void | charData (const gchar *buffer, int length) |
UT_svg (GR_Graphics *pG, ParseMode ePM=pm_parse) | |
~UT_svg () | |
bool | parse (const UT_ConstByteBufPtr &pBB) |
const char * | getAttribute (const char *name, const char **atts) |
Public Attributes | |
const ParseMode | m_ePM |
bool | m_bSVG |
bool | m_bContinue |
GR_Graphics * | m_pG |
UT_sint32 | m_iDisplayWidth |
UT_sint32 | m_iDisplayHeight |
UT_sint32 | m_iLayoutWidth |
UT_sint32 | m_iLayoutHeight |
bool | m_bIsText |
bool | m_bIsTSpan |
bool | m_bHasTSpan |
UT_ByteBufPtr | m_pBB |
void * | cb_userdata |
void(* | cb_start )(void *userdata, const char *name, const char **atts) |
void(* | cb_end )(void *userdata, const char *name) |
void(* | cb_text )(void *userdata, const UT_ConstByteBufPtr &text) |
enum UT_svg::ParseMode |
UT_svg::UT_svg | ( | GR_Graphics * | pG, | |
ParseMode | ePM = pm_parse | |||
) |
UT_svg::~UT_svg | ( | ) |
void UT_svg::charData | ( | const gchar * | buffer, | |
int | length | |||
) | [virtual] |
Implements UT_XML::Listener.
References cb_text, m_bContinue, m_bHasTSpan, m_bIsText, m_bIsTSpan, m_bSVG, m_ePM, m_pBB, pm_parse, and UT_DEBUGMSG.
void UT_svg::endElement | ( | const gchar * | name | ) | [virtual] |
Implements UT_XML::Listener.
References cb_end, cb_text, cb_userdata, m_bContinue, m_bHasTSpan, m_bIsText, m_bIsTSpan, m_bSVG, m_ePM, m_pBB, pm_parse, and UT_DEBUGMSG.
const char * UT_svg::getAttribute | ( | const char * | name, | |
const char ** | atts | |||
) |
References UT_ASSERT, and UT_DEBUGMSG.
bool UT_svg::parse | ( | const UT_ConstByteBufPtr & | pBB | ) |
References _recognizeContent().
void UT_svg::startElement | ( | const gchar * | name, | |
const gchar ** | atts | |||
) | [virtual] |
Implements UT_XML::Listener.
References _css_length(), cb_start, cb_userdata, gchar, m_bContinue, m_bHasTSpan, m_bIsText, m_bIsTSpan, m_bSVG, m_ePM, m_iDisplayHeight, m_iDisplayWidth, m_iLayoutHeight, m_iLayoutWidth, m_pBB, m_pG, pm_parse, pm_recognizeContent, and UT_DEBUGMSG.
void(* UT_svg::cb_end)(void *userdata, const char *name) |
Referenced by endElement().
void(* UT_svg::cb_start)(void *userdata, const char *name, const char **atts) |
Referenced by startElement().
void(* UT_svg::cb_text)(void *userdata, const UT_ConstByteBufPtr &text) |
Referenced by charData(), and endElement().
void* UT_svg::cb_userdata |
Referenced by endElement(), and startElement().
bool UT_svg::m_bContinue |
Referenced by _recognizeContent(), charData(), endElement(), and startElement().
bool UT_svg::m_bHasTSpan |
Referenced by _recognizeContent(), charData(), endElement(), and startElement().
bool UT_svg::m_bIsText |
Referenced by _recognizeContent(), charData(), endElement(), and startElement().
bool UT_svg::m_bIsTSpan |
Referenced by _recognizeContent(), charData(), endElement(), and startElement().
bool UT_svg::m_bSVG |
Referenced by _recognizeContent(), charData(), endElement(), and startElement().
const ParseMode UT_svg::m_ePM |
Referenced by charData(), endElement(), and startElement().
Referenced by startElement(), and UT_SVG_getDimensions().
Referenced by startElement(), and UT_SVG_getDimensions().
Referenced by startElement(), and UT_SVG_getDimensions().
Referenced by startElement(), and UT_SVG_getDimensions().
Referenced by charData(), endElement(), and startElement().
Referenced by startElement().