libvisio::VSDXContentCollector Class Reference

#include <VSDXContentCollector.h>

Inheritance diagram for libvisio::VSDXContentCollector:
libvisio::VSDXCollector

Public Member Functions

 VSDXContentCollector (libwpg::WPGPaintInterface *painter, std::vector< std::map< unsigned, XForm > > &groupXFormsSequence, std::vector< std::map< unsigned, unsigned > > &groupMembershipsSequence, std::vector< std::list< unsigned > > &documentPageShapeOrders, VSDXStyles &styles, VSDXStencils &stencils)
 
virtual ~VSDXContentCollector ()
 
void collectEllipticalArcTo (unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc)
 
void collectForeignData (unsigned id, unsigned level, const WPXBinaryData &binaryData)
 
void collectOLEList (unsigned id, unsigned level)
 
void collectOLEData (unsigned id, unsigned level, const WPXBinaryData &oleData)
 
void collectEllipse (unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop)
 
void collectLine (unsigned id, unsigned level, double strokeWidth, Colour c, unsigned linePattern, unsigned char startMarker, unsigned char endMarker, unsigned lineCap)
 
void collectFillAndShadow (unsigned id, unsigned level, unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY)
 
void collectFillAndShadow (unsigned id, unsigned level, unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc)
 
void collectGeometry (unsigned id, unsigned level, unsigned char geomFlags)
 
void collectMoveTo (unsigned id, unsigned level, double x, double y)
 
void collectLineTo (unsigned id, unsigned level, double x, double y)
 
void collectArcTo (unsigned id, unsigned level, double x2, double y2, double bow)
 
void collectNURBSTo (unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree, std::vector< std::pair< double, double > > controlPoints, std::vector< double > knotVector, std::vector< double > weights)
 
void collectNURBSTo (unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID)
 
void collectPolylineTo (unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, std::vector< std::pair< double, double > > &points)
 
void collectPolylineTo (unsigned id, unsigned level, double x, double y, unsigned dataID)
 
void collectShapeData (unsigned id, unsigned level, unsigned char xType, unsigned char yType, unsigned degree, double lastKnot, std::vector< std::pair< double, double > > controlPoints, std::vector< double > knotVector, std::vector< double > weights)
 
void collectShapeData (unsigned id, unsigned level, unsigned char xType, unsigned char yType, std::vector< std::pair< double, double > > points)
 
void collectXFormData (unsigned id, unsigned level, const XForm &xform)
 
void collectTxtXForm (unsigned id, unsigned level, const XForm &txtxform)
 
void collectShapeId (unsigned id, unsigned level, unsigned shapeId)
 
void collectForeignDataType (unsigned id, unsigned level, unsigned foreignType, unsigned foreignFormat, double offsetX, double offsetY, double width, double height)
 
void collectPageProps (unsigned id, unsigned level, double pageWidth, double pageHeight, double shadowOffsetX, double shadowOffsetY, double scale)
 
void collectPage (unsigned id, unsigned level, unsigned backgroundPageID, unsigned currentPageID)
 
void collectShape (unsigned id, unsigned level, unsigned masterPage, unsigned masterShape, unsigned lineStyle, unsigned fillStyle, unsigned textStyle)
 
void collectSplineStart (unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree)
 
void collectSplineKnot (unsigned id, unsigned level, double x, double y, double knot)
 
void collectSplineEnd ()
 
void collectInfiniteLine (unsigned id, unsigned level, double x1, double y1, double x2, double y2)
 
void collectUnhandledChunk (unsigned id, unsigned level)
 
void collectColours (const std::vector< Colour > &colours)
 
void collectFont (unsigned short fontID, const WPXBinaryData &textStream, TextFormat format)
 
void collectText (unsigned id, unsigned level, const WPXBinaryData &textStream, TextFormat format)
 
void collectVSDXCharStyle (unsigned id, unsigned level, unsigned charCount, unsigned short fontID, Colour fontColour, unsigned langId, double fontSize, bool bold, bool italic, bool underline, bool doubleunderline, bool strikeout, bool doublestrikeout, bool allcaps, bool initcaps, bool smallcaps, bool superscript, bool subscript, WPXString fontFace)
 
void collectVSDXParaStyle (unsigned id, unsigned level, unsigned charCount, double indFirst, double indLeft, double indRight, double spLine, double spBefore, double spAfter, unsigned char align, unsigned flags)
 
void collectTextBlock (unsigned id, unsigned level, double leftMargin, double rightMargin, double topMargin, double bottomMargin, unsigned char verticalAlign, unsigned char bgClrId, const Colour &bgColour, double defaultTabStop, unsigned char textDirection)
 
void collectNameList (unsigned id, unsigned level)
 
void collectName (unsigned id, unsigned level, const WPXBinaryData &name, TextFormat format)
 
void collectStyleSheet (unsigned id, unsigned level, unsigned parentLineStyle, unsigned parentFillStyle, unsigned parentTextStyle)
 
void collectLineStyle (unsigned id, unsigned level, double strokeWidth, Colour c, unsigned char linePattern, unsigned char startMarker, unsigned char endMarker, unsigned char lineCap)
 
void collectFillStyle (unsigned id, unsigned level, unsigned char colourIndexFG, unsigned char colourIndexBG, unsigned char fillPattern, unsigned char fillFGTransparency, unsigned char fillBGTransparency, unsigned char shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY)
 
void collectFillStyle (unsigned id, unsigned level, unsigned char colourIndexFG, unsigned char colourIndexBG, unsigned char fillPattern, unsigned char fillFGTransparency, unsigned char fillBGTransparency, unsigned char shadowPattern, Colour shfgc)
 
void collectCharIXStyle (unsigned id, unsigned level, unsigned charCount, unsigned short fontID, Colour fontColour, unsigned langId, double fontSize, bool bold, bool italic, bool underline, bool doubleunderline, bool strikeout, bool doublestrikeout, bool allcaps, bool initcaps, bool smallcaps, bool superscript, bool subscript, WPXString fontFace)
 
void collectParaIXStyle (unsigned id, unsigned level, unsigned charCount, double indFirst, double indLeft, double indRight, double spLine, double spBefore, double spAfter, unsigned char align, unsigned flags)
 
void collectTextBlockStyle (unsigned id, unsigned level, double leftMargin, double rightMargin, double topMargin, double bottomMargin, unsigned char verticalAlign, unsigned char bgClrId, const Colour &bgColour, double defaultTabStop, unsigned char textDirection)
 
void collectFieldList (unsigned id, unsigned level)
 
void collectTextField (unsigned id, unsigned level, int nameId, int formatStringId)
 
void collectNumericField (unsigned id, unsigned level, unsigned short format, double number, int formatStringId)
 
void startPage ()
 
void endPage ()
 
void endPages ()
 
- Public Member Functions inherited from libvisio::VSDXCollector
 VSDXCollector ()
 
virtual ~VSDXCollector ()
 
virtual void collectFont (unsigned short fontID, const ::WPXBinaryData &textStream, TextFormat format)=0
 
virtual void collectText (unsigned id, unsigned level, const ::WPXBinaryData &textStream, TextFormat format)=0
 
virtual void collectName (unsigned id, unsigned level, const ::WPXBinaryData &name, TextFormat format)=0
 

Private Member Functions

 VSDXContentCollector (const VSDXContentCollector &)
 
VSDXContentCollectoroperator= (const VSDXContentCollector &)
 
void applyXForm (double &x, double &y, const XForm &xform)
 
void transformPoint (double &x, double &y, XForm *txtxform=0)
 
void transformAngle (double &angle, XForm *txtxform=0)
 
void transformFlips (bool &flipX, bool &flipY)
 
double _NURBSBasis (unsigned knot, unsigned degree, double point, const std::vector< double > &knotVector)
 
void _flushCurrentPath ()
 
void _flushText ()
 
void _flushCurrentForeignData ()
 
void _flushCurrentPage ()
 
void _handleLevelChange (unsigned level)
 
void _appendUTF16LE (WPXString &text, WPXInputStream *input)
 
void _appendUCS4 (WPXString &text, unsigned ucs4Character)
 
void _handleForeignData (const WPXBinaryData &data)
 
void lineStyleFromStyleSheet (unsigned styleId)
 
void fillStyleFromStyleSheet (unsigned styleId)
 
void lineStyleFromStyleSheet (const VSDXLineStyle *style)
 
void fillStyleFromStyleSheet (const VSDXFillStyle *style)
 
void _applyLinePattern ()
 
void _lineProperties (double strokeWidth, Colour c, unsigned linePattern, unsigned startMarker, unsigned endMarker, unsigned lineCap)
 
const char * _linePropertiesMarkerViewbox (unsigned marker)
 
const char * _linePropertiesMarkerPath (unsigned marker)
 
double _linePropertiesMarkerScale (unsigned marker)
 
void _fillAndShadowProperties (unsigned colourIndexFG, unsigned colourIndexBG, unsigned fillPattern, unsigned fillFGTransparency, unsigned fillBGTransparency, unsigned shadowPattern, Colour shfgc, double shadowOffsetX, double shadowOffsetY)
 
void _convertDataToString (WPXString &result, const WPXBinaryData &data, TextFormat format)
 
bool parseFormatId (const char *formatString, unsigned short &result)
 

Private Attributes

libwpg::WPGPaintInterface * m_painter
 
bool m_isPageStarted
 
double m_pageWidth
 
double m_pageHeight
 
double m_shadowOffsetX
 
double m_shadowOffsetY
 
double m_scale
 
double m_x
 
double m_y
 
double m_originalX
 
double m_originalY
 
XForm m_xform
 
XFormm_txtxform
 
std::vector< WPXPropertyList > m_currentGeometry
 
std::map< unsigned, XForm > & m_groupXForms
 
WPXBinaryData m_currentForeignData
 
WPXBinaryData m_currentOLEData
 
WPXPropertyList m_currentForeignProps
 
unsigned m_currentShapeId
 
unsigned m_foreignType
 
unsigned m_foreignFormat
 
double m_foreignOffsetX
 
double m_foreignOffsetY
 
double m_foreignWidth
 
double m_foreignHeight
 
WPXPropertyList m_styleProps
 
::WPXString m_lineColour
 
::WPXString m_fillType
 
unsigned m_linePattern
 
unsigned m_fillPattern
 
unsigned m_fillFGTransparency
 
unsigned m_fillBGTransparency
 
bool m_noLine
 
bool m_noFill
 
bool m_noShow
 
std::vector< Colourm_colours
 
std::map< unsigned short, WPXString > m_fonts
 
unsigned m_currentLevel
 
bool m_isShapeStarted
 
std::map< unsigned, unsigned > & m_groupMemberships
 
std::vector< std::map< unsigned, XForm > > & m_groupXFormsSequence
 
std::vector< std::map< unsigned, unsigned > > & m_groupMembershipsSequence
 
unsigned m_currentPageNumber
 
VSDXOutputElementListm_shapeOutputDrawing
 
VSDXOutputElementListm_shapeOutputText
 
std::map< unsigned, VSDXOutputElementListm_pageOutputDrawing
 
std::map< unsigned, VSDXOutputElementListm_pageOutputText
 
std::vector< std::list< unsigned > > & m_documentPageShapeOrders
 
std::list< unsigned > & m_pageShapeOrder
 
bool m_isFirstGeometry
 
std::map< unsigned, NURBSDatam_NURBSData
 
std::map< unsigned, PolylineDatam_polylineData
 
WPXBinaryData m_textStream
 
std::map< unsigned, WPXString > m_names
 
std::map< unsigned, WPXString > m_stencilNames
 
std::vector< WPXString > m_fields
 
VSDXFieldList m_stencilFields
 
unsigned m_fieldIndex
 
TextFormat m_textFormat
 
std::vector< VSDXCharStylem_charFormats
 
std::vector< VSDXParaStylem_paraFormats
 
VSDXTextBlockStyle m_textBlockStyle
 
VSDXCharStyle m_defaultCharStyle
 
VSDXParaStyle m_defaultParaStyle
 
VSDXStyles m_styles
 
VSDXStencils m_stencils
 
const VSDXStencilShapem_stencilShape
 
bool m_isStencilStarted
 
unsigned m_currentGeometryCount
 
unsigned m_backgroundPageID
 
unsigned m_currentPageID
 
VSDXPage m_currentPage
 
VSDXPages m_pages
 
std::vector< std::pair< double, double > > m_splineControlPoints
 
std::vector< double > m_splineKnotVector
 
double m_splineX
 
double m_splineY
 
double m_splineLastKnot
 
unsigned m_splineDegree
 
unsigned m_splineLevel
 

Additional Inherited Members

- Protected Member Functions inherited from libvisio::VSDXCollector
const ::WPXString getColourString (const Colour &c) const
 

Constructor & Destructor Documentation

◆ VSDXContentCollector() [1/2]

libvisio::VSDXContentCollector::VSDXContentCollector ( libwpg::WPGPaintInterface *  painter,
std::vector< std::map< unsigned, XForm > > &  groupXFormsSequence,
std::vector< std::map< unsigned, unsigned > > &  groupMembershipsSequence,
std::vector< std::list< unsigned > > &  documentPageShapeOrders,
VSDXStyles styles,
VSDXStencils stencils 
)

Referenced by ~VSDXContentCollector().

◆ ~VSDXContentCollector()

virtual libvisio::VSDXContentCollector::~VSDXContentCollector ( )
inlinevirtual

◆ VSDXContentCollector() [2/2]

libvisio::VSDXContentCollector::VSDXContentCollector ( const VSDXContentCollector )
private

Member Function Documentation

◆ _appendUCS4()

void libvisio::VSDXContentCollector::_appendUCS4 ( WPXString &  text,
unsigned  ucs4Character 
)
private

◆ _appendUTF16LE()

void libvisio::VSDXContentCollector::_appendUTF16LE ( WPXString &  text,
WPXInputStream *  input 
)
private

Referenced by _convertDataToString(), and _flushText().

◆ _applyLinePattern()

void libvisio::VSDXContentCollector::_applyLinePattern ( )
private

Referenced by _lineProperties(), and collectGeometry().

◆ _convertDataToString()

void libvisio::VSDXContentCollector::_convertDataToString ( WPXString &  result,
const WPXBinaryData &  data,
TextFormat  format 
)
private

◆ _fillAndShadowProperties()

void libvisio::VSDXContentCollector::_fillAndShadowProperties ( unsigned  colourIndexFG,
unsigned  colourIndexBG,
unsigned  fillPattern,
unsigned  fillFGTransparency,
unsigned  fillBGTransparency,
unsigned  shadowPattern,
Colour  shfgc,
double  shadowOffsetX,
double  shadowOffsetY 
)
private

◆ _flushCurrentForeignData()

void libvisio::VSDXContentCollector::_flushCurrentForeignData ( )
private

Referenced by _handleLevelChange(), and startPage().

◆ _flushCurrentPage()

void libvisio::VSDXContentCollector::_flushCurrentPage ( )
private

Referenced by endPage().

◆ _flushCurrentPath()

void libvisio::VSDXContentCollector::_flushCurrentPath ( )
private

◆ _flushText()

void libvisio::VSDXContentCollector::_flushText ( )
private

Referenced by _handleLevelChange().

◆ _handleForeignData()

void libvisio::VSDXContentCollector::_handleForeignData ( const WPXBinaryData &  data)
private

◆ _handleLevelChange()

◆ _lineProperties()

void libvisio::VSDXContentCollector::_lineProperties ( double  strokeWidth,
Colour  c,
unsigned  linePattern,
unsigned  startMarker,
unsigned  endMarker,
unsigned  lineCap 
)
private

◆ _linePropertiesMarkerPath()

const char * libvisio::VSDXContentCollector::_linePropertiesMarkerPath ( unsigned  marker)
private

Referenced by _lineProperties().

◆ _linePropertiesMarkerScale()

double libvisio::VSDXContentCollector::_linePropertiesMarkerScale ( unsigned  marker)
private

Referenced by _lineProperties().

◆ _linePropertiesMarkerViewbox()

const char * libvisio::VSDXContentCollector::_linePropertiesMarkerViewbox ( unsigned  marker)
private

Referenced by _lineProperties().

◆ _NURBSBasis()

double libvisio::VSDXContentCollector::_NURBSBasis ( unsigned  knot,
unsigned  degree,
double  point,
const std::vector< double > &  knotVector 
)
private

Referenced by collectNURBSTo().

◆ applyXForm()

void libvisio::VSDXContentCollector::applyXForm ( double &  x,
double &  y,
const XForm xform 
)
private

Referenced by transformPoint().

◆ collectArcTo()

void libvisio::VSDXContentCollector::collectArcTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
double  bow 
)
virtual

◆ collectCharIXStyle()

void libvisio::VSDXContentCollector::collectCharIXStyle ( unsigned  id,
unsigned  level,
unsigned  charCount,
unsigned short  fontID,
Colour  fontColour,
unsigned  langId,
double  fontSize,
bool  bold,
bool  italic,
bool  underline,
bool  doubleunderline,
bool  strikeout,
bool  doublestrikeout,
bool  allcaps,
bool  initcaps,
bool  smallcaps,
bool  superscript,
bool  subscript,
WPXString  fontFace 
)
virtual

◆ collectColours()

void libvisio::VSDXContentCollector::collectColours ( const std::vector< Colour > &  colours)
virtual

◆ collectEllipse()

void libvisio::VSDXContentCollector::collectEllipse ( unsigned  id,
unsigned  level,
double  cx,
double  cy,
double  xleft,
double  yleft,
double  xtop,
double  ytop 
)
virtual

◆ collectEllipticalArcTo()

void libvisio::VSDXContentCollector::collectEllipticalArcTo ( unsigned  id,
unsigned  level,
double  x3,
double  y3,
double  x2,
double  y2,
double  angle,
double  ecc 
)
virtual

◆ collectFieldList()

void libvisio::VSDXContentCollector::collectFieldList ( unsigned  id,
unsigned  level 
)
virtual

◆ collectFillAndShadow() [1/2]

void libvisio::VSDXContentCollector::collectFillAndShadow ( unsigned  id,
unsigned  level,
unsigned  colourIndexFG,
unsigned  colourIndexBG,
unsigned  fillPattern,
unsigned  fillFGTransparency,
unsigned  fillBGTransparency,
unsigned  shadowPattern,
Colour  shfgc,
double  shadowOffsetX,
double  shadowOffsetY 
)
virtual

◆ collectFillAndShadow() [2/2]

void libvisio::VSDXContentCollector::collectFillAndShadow ( unsigned  id,
unsigned  level,
unsigned  colourIndexFG,
unsigned  colourIndexBG,
unsigned  fillPattern,
unsigned  fillFGTransparency,
unsigned  fillBGTransparency,
unsigned  shadowPattern,
Colour  shfgc 
)
virtual

◆ collectFillStyle() [1/2]

void libvisio::VSDXContentCollector::collectFillStyle ( unsigned  id,
unsigned  level,
unsigned char  colourIndexFG,
unsigned char  colourIndexBG,
unsigned char  fillPattern,
unsigned char  fillFGTransparency,
unsigned char  fillBGTransparency,
unsigned char  shadowPattern,
Colour  shfgc,
double  shadowOffsetX,
double  shadowOffsetY 
)
virtual

◆ collectFillStyle() [2/2]

void libvisio::VSDXContentCollector::collectFillStyle ( unsigned  id,
unsigned  level,
unsigned char  colourIndexFG,
unsigned char  colourIndexBG,
unsigned char  fillPattern,
unsigned char  fillFGTransparency,
unsigned char  fillBGTransparency,
unsigned char  shadowPattern,
Colour  shfgc 
)
virtual

◆ collectFont()

void libvisio::VSDXContentCollector::collectFont ( unsigned short  fontID,
const WPXBinaryData &  textStream,
TextFormat  format 
)

Referenced by ~VSDXContentCollector().

◆ collectForeignData()

void libvisio::VSDXContentCollector::collectForeignData ( unsigned  id,
unsigned  level,
const WPXBinaryData &  binaryData 
)
virtual

◆ collectForeignDataType()

void libvisio::VSDXContentCollector::collectForeignDataType ( unsigned  id,
unsigned  level,
unsigned  foreignType,
unsigned  foreignFormat,
double  offsetX,
double  offsetY,
double  width,
double  height 
)
virtual

◆ collectGeometry()

void libvisio::VSDXContentCollector::collectGeometry ( unsigned  id,
unsigned  level,
unsigned char  geomFlags 
)
virtual

◆ collectInfiniteLine()

void libvisio::VSDXContentCollector::collectInfiniteLine ( unsigned  id,
unsigned  level,
double  x1,
double  y1,
double  x2,
double  y2 
)
virtual

◆ collectLine()

void libvisio::VSDXContentCollector::collectLine ( unsigned  id,
unsigned  level,
double  strokeWidth,
Colour  c,
unsigned  linePattern,
unsigned char  startMarker,
unsigned char  endMarker,
unsigned  lineCap 
)
virtual

◆ collectLineStyle()

void libvisio::VSDXContentCollector::collectLineStyle ( unsigned  id,
unsigned  level,
double  strokeWidth,
Colour  c,
unsigned char  linePattern,
unsigned char  startMarker,
unsigned char  endMarker,
unsigned char  lineCap 
)
virtual

◆ collectLineTo()

void libvisio::VSDXContentCollector::collectLineTo ( unsigned  id,
unsigned  level,
double  x,
double  y 
)
virtual

◆ collectMoveTo()

void libvisio::VSDXContentCollector::collectMoveTo ( unsigned  id,
unsigned  level,
double  x,
double  y 
)
virtual

◆ collectName()

void libvisio::VSDXContentCollector::collectName ( unsigned  id,
unsigned  level,
const WPXBinaryData &  name,
TextFormat  format 
)

Referenced by ~VSDXContentCollector().

◆ collectNameList()

void libvisio::VSDXContentCollector::collectNameList ( unsigned  id,
unsigned  level 
)
virtual

◆ collectNumericField()

void libvisio::VSDXContentCollector::collectNumericField ( unsigned  id,
unsigned  level,
unsigned short  format,
double  number,
int  formatStringId 
)
virtual

◆ collectNURBSTo() [1/2]

void libvisio::VSDXContentCollector::collectNURBSTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
unsigned char  xType,
unsigned char  yType,
unsigned  degree,
std::vector< std::pair< double, double > >  controlPoints,
std::vector< double >  knotVector,
std::vector< double >  weights 
)
virtual

◆ collectNURBSTo() [2/2]

void libvisio::VSDXContentCollector::collectNURBSTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
double  knot,
double  knotPrev,
double  weight,
double  weightPrev,
unsigned  dataID 
)
virtual

◆ collectOLEData()

void libvisio::VSDXContentCollector::collectOLEData ( unsigned  id,
unsigned  level,
const WPXBinaryData &  oleData 
)
virtual

◆ collectOLEList()

void libvisio::VSDXContentCollector::collectOLEList ( unsigned  id,
unsigned  level 
)
virtual

◆ collectPage()

void libvisio::VSDXContentCollector::collectPage ( unsigned  id,
unsigned  level,
unsigned  backgroundPageID,
unsigned  currentPageID 
)
virtual

◆ collectPageProps()

void libvisio::VSDXContentCollector::collectPageProps ( unsigned  id,
unsigned  level,
double  pageWidth,
double  pageHeight,
double  shadowOffsetX,
double  shadowOffsetY,
double  scale 
)
virtual

◆ collectParaIXStyle()

void libvisio::VSDXContentCollector::collectParaIXStyle ( unsigned  id,
unsigned  level,
unsigned  charCount,
double  indFirst,
double  indLeft,
double  indRight,
double  spLine,
double  spBefore,
double  spAfter,
unsigned char  align,
unsigned  flags 
)
virtual

◆ collectPolylineTo() [1/2]

void libvisio::VSDXContentCollector::collectPolylineTo ( unsigned  id,
unsigned  level,
double  x,
double  y,
unsigned char  xType,
unsigned char  yType,
std::vector< std::pair< double, double > > &  points 
)
virtual

◆ collectPolylineTo() [2/2]

void libvisio::VSDXContentCollector::collectPolylineTo ( unsigned  id,
unsigned  level,
double  x,
double  y,
unsigned  dataID 
)
virtual

◆ collectShape()

void libvisio::VSDXContentCollector::collectShape ( unsigned  id,
unsigned  level,
unsigned  masterPage,
unsigned  masterShape,
unsigned  lineStyle,
unsigned  fillStyle,
unsigned  textStyle 
)
virtual

◆ collectShapeData() [1/2]

void libvisio::VSDXContentCollector::collectShapeData ( unsigned  id,
unsigned  level,
unsigned char  xType,
unsigned char  yType,
unsigned  degree,
double  lastKnot,
std::vector< std::pair< double, double > >  controlPoints,
std::vector< double >  knotVector,
std::vector< double >  weights 
)
virtual

◆ collectShapeData() [2/2]

void libvisio::VSDXContentCollector::collectShapeData ( unsigned  id,
unsigned  level,
unsigned char  xType,
unsigned char  yType,
std::vector< std::pair< double, double > >  points 
)
virtual

◆ collectShapeId()

void libvisio::VSDXContentCollector::collectShapeId ( unsigned  id,
unsigned  level,
unsigned  shapeId 
)
virtual

◆ collectSplineEnd()

void libvisio::VSDXContentCollector::collectSplineEnd ( )
virtual

◆ collectSplineKnot()

void libvisio::VSDXContentCollector::collectSplineKnot ( unsigned  id,
unsigned  level,
double  x,
double  y,
double  knot 
)
virtual

◆ collectSplineStart()

void libvisio::VSDXContentCollector::collectSplineStart ( unsigned  id,
unsigned  level,
double  x,
double  y,
double  secondKnot,
double  firstKnot,
double  lastKnot,
unsigned  degree 
)
virtual

◆ collectStyleSheet()

void libvisio::VSDXContentCollector::collectStyleSheet ( unsigned  id,
unsigned  level,
unsigned  parentLineStyle,
unsigned  parentFillStyle,
unsigned  parentTextStyle 
)
virtual

◆ collectText()

void libvisio::VSDXContentCollector::collectText ( unsigned  id,
unsigned  level,
const WPXBinaryData &  textStream,
TextFormat  format 
)

Referenced by ~VSDXContentCollector().

◆ collectTextBlock()

void libvisio::VSDXContentCollector::collectTextBlock ( unsigned  id,
unsigned  level,
double  leftMargin,
double  rightMargin,
double  topMargin,
double  bottomMargin,
unsigned char  verticalAlign,
unsigned char  bgClrId,
const Colour bgColour,
double  defaultTabStop,
unsigned char  textDirection 
)
virtual

◆ collectTextBlockStyle()

void libvisio::VSDXContentCollector::collectTextBlockStyle ( unsigned  id,
unsigned  level,
double  leftMargin,
double  rightMargin,
double  topMargin,
double  bottomMargin,
unsigned char  verticalAlign,
unsigned char  bgClrId,
const Colour bgColour,
double  defaultTabStop,
unsigned char  textDirection 
)
virtual

◆ collectTextField()

void libvisio::VSDXContentCollector::collectTextField ( unsigned  id,
unsigned  level,
int  nameId,
int  formatStringId 
)
virtual

◆ collectTxtXForm()

void libvisio::VSDXContentCollector::collectTxtXForm ( unsigned  id,
unsigned  level,
const XForm txtxform 
)
virtual

◆ collectUnhandledChunk()

void libvisio::VSDXContentCollector::collectUnhandledChunk ( unsigned  id,
unsigned  level 
)
virtual

◆ collectVSDXCharStyle()

void libvisio::VSDXContentCollector::collectVSDXCharStyle ( unsigned  id,
unsigned  level,
unsigned  charCount,
unsigned short  fontID,
Colour  fontColour,
unsigned  langId,
double  fontSize,
bool  bold,
bool  italic,
bool  underline,
bool  doubleunderline,
bool  strikeout,
bool  doublestrikeout,
bool  allcaps,
bool  initcaps,
bool  smallcaps,
bool  superscript,
bool  subscript,
WPXString  fontFace 
)
virtual

◆ collectVSDXParaStyle()

void libvisio::VSDXContentCollector::collectVSDXParaStyle ( unsigned  id,
unsigned  level,
unsigned  charCount,
double  indFirst,
double  indLeft,
double  indRight,
double  spLine,
double  spBefore,
double  spAfter,
unsigned char  align,
unsigned  flags 
)
virtual

◆ collectXFormData()

void libvisio::VSDXContentCollector::collectXFormData ( unsigned  id,
unsigned  level,
const XForm xform 
)
virtual

◆ endPage()

void libvisio::VSDXContentCollector::endPage ( )
virtual

◆ endPages()

void libvisio::VSDXContentCollector::endPages ( )
virtual

◆ fillStyleFromStyleSheet() [1/2]

void libvisio::VSDXContentCollector::fillStyleFromStyleSheet ( unsigned  styleId)
private

Referenced by collectShape().

◆ fillStyleFromStyleSheet() [2/2]

void libvisio::VSDXContentCollector::fillStyleFromStyleSheet ( const VSDXFillStyle style)
private

◆ lineStyleFromStyleSheet() [1/2]

void libvisio::VSDXContentCollector::lineStyleFromStyleSheet ( unsigned  styleId)
private

Referenced by collectShape().

◆ lineStyleFromStyleSheet() [2/2]

void libvisio::VSDXContentCollector::lineStyleFromStyleSheet ( const VSDXLineStyle style)
private

◆ operator=()

VSDXContentCollector& libvisio::VSDXContentCollector::operator= ( const VSDXContentCollector )
private

Referenced by ~VSDXContentCollector().

◆ parseFormatId()

bool libvisio::VSDXContentCollector::parseFormatId ( const char *  formatString,
unsigned short &  result 
)
private

Referenced by collectNumericField().

◆ startPage()

void libvisio::VSDXContentCollector::startPage ( )
virtual

◆ transformAngle()

void libvisio::VSDXContentCollector::transformAngle ( double &  angle,
XForm txtxform = 0 
)
private

◆ transformFlips()

void libvisio::VSDXContentCollector::transformFlips ( bool &  flipX,
bool &  flipY 
)
private

◆ transformPoint()

void libvisio::VSDXContentCollector::transformPoint ( double &  x,
double &  y,
XForm txtxform = 0 
)
private

Member Data Documentation

◆ m_backgroundPageID

unsigned libvisio::VSDXContentCollector::m_backgroundPageID
private

◆ m_charFormats

std::vector<VSDXCharStyle> libvisio::VSDXContentCollector::m_charFormats
private

◆ m_colours

std::vector<Colour> libvisio::VSDXContentCollector::m_colours
private

◆ m_currentForeignData

WPXBinaryData libvisio::VSDXContentCollector::m_currentForeignData
private

◆ m_currentForeignProps

WPXPropertyList libvisio::VSDXContentCollector::m_currentForeignProps
private

◆ m_currentGeometry

std::vector<WPXPropertyList> libvisio::VSDXContentCollector::m_currentGeometry
private

◆ m_currentGeometryCount

unsigned libvisio::VSDXContentCollector::m_currentGeometryCount
private

◆ m_currentLevel

unsigned libvisio::VSDXContentCollector::m_currentLevel
private

Referenced by _handleLevelChange().

◆ m_currentOLEData

WPXBinaryData libvisio::VSDXContentCollector::m_currentOLEData
private

◆ m_currentPage

VSDXPage libvisio::VSDXContentCollector::m_currentPage
private

◆ m_currentPageID

unsigned libvisio::VSDXContentCollector::m_currentPageID
private

◆ m_currentPageNumber

unsigned libvisio::VSDXContentCollector::m_currentPageNumber
private

Referenced by startPage().

◆ m_currentShapeId

unsigned libvisio::VSDXContentCollector::m_currentShapeId
private

◆ m_defaultCharStyle

VSDXCharStyle libvisio::VSDXContentCollector::m_defaultCharStyle
private

Referenced by _flushText(), and collectShape().

◆ m_defaultParaStyle

VSDXParaStyle libvisio::VSDXContentCollector::m_defaultParaStyle
private

Referenced by _flushText(), and collectShape().

◆ m_documentPageShapeOrders

std::vector<std::list<unsigned> >& libvisio::VSDXContentCollector::m_documentPageShapeOrders
private

Referenced by startPage().

◆ m_fieldIndex

unsigned libvisio::VSDXContentCollector::m_fieldIndex
private

◆ m_fields

std::vector<WPXString> libvisio::VSDXContentCollector::m_fields
private

◆ m_fillBGTransparency

unsigned libvisio::VSDXContentCollector::m_fillBGTransparency
private

◆ m_fillFGTransparency

unsigned libvisio::VSDXContentCollector::m_fillFGTransparency
private

◆ m_fillPattern

unsigned libvisio::VSDXContentCollector::m_fillPattern
private

◆ m_fillType

::WPXString libvisio::VSDXContentCollector::m_fillType
private

◆ m_fonts

std::map<unsigned short, WPXString> libvisio::VSDXContentCollector::m_fonts
private

Referenced by _flushText(), and collectFont().

◆ m_foreignFormat

unsigned libvisio::VSDXContentCollector::m_foreignFormat
private

◆ m_foreignHeight

double libvisio::VSDXContentCollector::m_foreignHeight
private

◆ m_foreignOffsetX

double libvisio::VSDXContentCollector::m_foreignOffsetX
private

◆ m_foreignOffsetY

double libvisio::VSDXContentCollector::m_foreignOffsetY
private

◆ m_foreignType

unsigned libvisio::VSDXContentCollector::m_foreignType
private

◆ m_foreignWidth

double libvisio::VSDXContentCollector::m_foreignWidth
private

◆ m_groupMemberships

std::map<unsigned, unsigned>& libvisio::VSDXContentCollector::m_groupMemberships
private

◆ m_groupMembershipsSequence

std::vector<std::map<unsigned, unsigned> >& libvisio::VSDXContentCollector::m_groupMembershipsSequence
private

Referenced by startPage().

◆ m_groupXForms

std::map<unsigned, XForm>& libvisio::VSDXContentCollector::m_groupXForms
private

◆ m_groupXFormsSequence

std::vector<std::map<unsigned, XForm> >& libvisio::VSDXContentCollector::m_groupXFormsSequence
private

Referenced by startPage().

◆ m_isFirstGeometry

bool libvisio::VSDXContentCollector::m_isFirstGeometry
private

Referenced by collectGeometry(), and collectShape().

◆ m_isPageStarted

bool libvisio::VSDXContentCollector::m_isPageStarted
private

Referenced by endPage(), and startPage().

◆ m_isShapeStarted

bool libvisio::VSDXContentCollector::m_isShapeStarted
private

◆ m_isStencilStarted

bool libvisio::VSDXContentCollector::m_isStencilStarted
private

Referenced by _handleLevelChange().

◆ m_lineColour

::WPXString libvisio::VSDXContentCollector::m_lineColour
private

Referenced by _lineProperties(), and collectGeometry().

◆ m_linePattern

unsigned libvisio::VSDXContentCollector::m_linePattern
private

◆ m_names

std::map<unsigned, WPXString> libvisio::VSDXContentCollector::m_names
private

◆ m_noFill

bool libvisio::VSDXContentCollector::m_noFill
private

Referenced by collectGeometry(), and collectShape().

◆ m_noLine

bool libvisio::VSDXContentCollector::m_noLine
private

Referenced by collectGeometry(), and collectShape().

◆ m_noShow

bool libvisio::VSDXContentCollector::m_noShow
private

◆ m_NURBSData

std::map<unsigned, NURBSData> libvisio::VSDXContentCollector::m_NURBSData
private

◆ m_originalX

◆ m_originalY

◆ m_pageHeight

double libvisio::VSDXContentCollector::m_pageHeight
private

◆ m_pageOutputDrawing

std::map<unsigned, VSDXOutputElementList> libvisio::VSDXContentCollector::m_pageOutputDrawing
private

Referenced by _flushCurrentPage(), and collectShape().

◆ m_pageOutputText

std::map<unsigned, VSDXOutputElementList> libvisio::VSDXContentCollector::m_pageOutputText
private

Referenced by _flushCurrentPage(), and collectShape().

◆ m_pages

VSDXPages libvisio::VSDXContentCollector::m_pages
private

Referenced by endPage(), and endPages().

◆ m_pageShapeOrder

std::list<unsigned>& libvisio::VSDXContentCollector::m_pageShapeOrder
private

Referenced by _flushCurrentPage(), and startPage().

◆ m_pageWidth

double libvisio::VSDXContentCollector::m_pageWidth
private

◆ m_painter

libwpg::WPGPaintInterface* libvisio::VSDXContentCollector::m_painter
private

Referenced by endPages().

◆ m_paraFormats

std::vector<VSDXParaStyle> libvisio::VSDXContentCollector::m_paraFormats
private

◆ m_polylineData

std::map<unsigned, PolylineData> libvisio::VSDXContentCollector::m_polylineData
private

◆ m_scale

◆ m_shadowOffsetX

double libvisio::VSDXContentCollector::m_shadowOffsetX
private

◆ m_shadowOffsetY

double libvisio::VSDXContentCollector::m_shadowOffsetY
private

◆ m_shapeOutputDrawing

VSDXOutputElementList* libvisio::VSDXContentCollector::m_shapeOutputDrawing
private

◆ m_shapeOutputText

VSDXOutputElementList * libvisio::VSDXContentCollector::m_shapeOutputText
private

Referenced by _flushText(), and collectShape().

◆ m_splineControlPoints

std::vector<std::pair<double, double> > libvisio::VSDXContentCollector::m_splineControlPoints
private

◆ m_splineDegree

unsigned libvisio::VSDXContentCollector::m_splineDegree
private

◆ m_splineKnotVector

std::vector<double> libvisio::VSDXContentCollector::m_splineKnotVector
private

◆ m_splineLastKnot

double libvisio::VSDXContentCollector::m_splineLastKnot
private

◆ m_splineLevel

unsigned libvisio::VSDXContentCollector::m_splineLevel
private

◆ m_splineX

double libvisio::VSDXContentCollector::m_splineX
private

◆ m_splineY

double libvisio::VSDXContentCollector::m_splineY
private

◆ m_stencilFields

VSDXFieldList libvisio::VSDXContentCollector::m_stencilFields
private

◆ m_stencilNames

std::map<unsigned, WPXString> libvisio::VSDXContentCollector::m_stencilNames
private

Referenced by collectShape(), and collectTextField().

◆ m_stencils

VSDXStencils libvisio::VSDXContentCollector::m_stencils
private

Referenced by collectShape().

◆ m_stencilShape

const VSDXStencilShape* libvisio::VSDXContentCollector::m_stencilShape
private

◆ m_styleProps

WPXPropertyList libvisio::VSDXContentCollector::m_styleProps
private

◆ m_styles

VSDXStyles libvisio::VSDXContentCollector::m_styles
private

◆ m_textBlockStyle

VSDXTextBlockStyle libvisio::VSDXContentCollector::m_textBlockStyle
private

◆ m_textFormat

TextFormat libvisio::VSDXContentCollector::m_textFormat
private

◆ m_textStream

WPXBinaryData libvisio::VSDXContentCollector::m_textStream
private

◆ m_txtxform

XForm* libvisio::VSDXContentCollector::m_txtxform
private

◆ m_x

◆ m_xform

XForm libvisio::VSDXContentCollector::m_xform
private

◆ m_y


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

Generated for libvisio by doxygen 1.8.13