Public Types | Public Member Functions | Public Attributes

UT_svg Class Reference

#include <ut_svg.h>

Inheritance diagram for UT_svg:
UT_XML::Listener

List of all members.

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

Member Enumeration Documentation

Enumerator:
pm_recognizeContent 
pm_getDimensions 
pm_parse 

Constructor & Destructor Documentation

UT_svg::UT_svg ( GR_Graphics pG,
ParseMode  ePM = pm_parse 
)
UT_svg::~UT_svg (  ) 

Member Function Documentation

void UT_svg::charData ( const gchar *  buffer,
int  length 
) [virtual]
void UT_svg::endElement ( const gchar *  name  )  [virtual]
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]

Member Data Documentation

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

Referenced by endElement(), and startElement().


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