#include <string.h>
#include <ctype.h>
#include "ut_math.h"
#include "ut_units.h"
#include "ut_string.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_svg.h"
Functions | |
static bool | _recognizeContent (const char *buffer, UT_uint32 buflen, UT_svg *data) |
static void | _css_length (const char *str, GR_Graphics *pG, UT_sint32 *iDisplayLength, UT_sint32 *iLayoutLength) |
bool | UT_SVG_getDimensions (const UT_ConstByteBufPtr &pBB, GR_Graphics *pG, UT_sint32 &iDisplayWidth, UT_sint32 &iDisplayHeight, UT_sint32 &iLayoutWidth, UT_sint32 &iLayoutHeight) |
bool | UT_SVG_recognizeContent (const char *szBuf, UT_uint32 iNumbytes) |
static bool | BNF_wsp_star (const char **pptr) |
static bool | BNF_comma_wsp (const char **pptr) |
static bool | BNF_number (const char **pptr, float *number) |
static void _css_length | ( | const char * | str, | |
GR_Graphics * | pG, | |||
UT_sint32 * | iDisplayLength, | |||
UT_sint32 * | iLayoutLength | |||
) | [static] |
References dim, DIM_none, DIM_PX, GR_Graphics::getResolution(), UT_convertDimensionless(), UT_convertToInches(), UT_convertToLogicalUnits(), and UT_determineDimension().
Referenced by UT_svg::startElement().
References UT_svg::m_bContinue, UT_svg::m_bHasTSpan, UT_svg::m_bIsText, UT_svg::m_bIsTSpan, UT_svg::m_bSVG, UT_XML::parse(), and UT_XML::setListener().
Referenced by UT_svg::parse(), and UT_SVG_getDimensions().
static bool BNF_comma_wsp | ( | const char ** | pptr | ) | [static] |
References BNF_wsp_star().
Referenced by UT_SVGMatrix::applyTransform().
static bool BNF_number | ( | const char ** | pptr, | |
float * | number | |||
) | [static] |
Referenced by UT_SVGMatrix::applyTransform().
static bool BNF_wsp_star | ( | const char ** | pptr | ) | [static] |
Referenced by UT_SVGMatrix::applyTransform(), and BNF_comma_wsp().
bool UT_SVG_getDimensions | ( | const UT_ConstByteBufPtr & | pBB, | |
GR_Graphics * | pG, | |||
UT_sint32 & | iDisplayWidth, | |||
UT_sint32 & | iDisplayHeight, | |||
UT_sint32 & | iLayoutWidth, | |||
UT_sint32 & | iLayoutHeight | |||
) |
References _recognizeContent(), UT_svg::m_iDisplayHeight, UT_svg::m_iDisplayWidth, UT_svg::m_iLayoutHeight, UT_svg::m_iLayoutWidth, UT_svg::pm_getDimensions, and UT_DEBUGMSG.
Referenced by s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), GR_EmbedManager::render(), and FG_GraphicVector::setVector_SVG().
bool UT_SVG_recognizeContent | ( | const char * | szBuf, | |
UT_uint32 | iNumbytes | |||
) |
References UT_UNUSED.
Referenced by GR_Image::getBufferType(), and IE_ImpGraphicSVG_Sniffer::recognizeContents().