#include <MSPUBCollector.h>
Classes | |
struct | Margins |
struct | PageInfo |
Public Types | |
typedef std::list < ContentChunkReference > ::const_iterator | ccr_iterator_t |
Public Member Functions | |
MSPUBCollector (::libwpg::WPGPaintInterface *painter) | |
virtual | ~MSPUBCollector () |
bool | addPage (unsigned seqNum) |
bool | addTextString (const std::vector< TextParagraph > &str, unsigned id) |
bool | addTextShape (unsigned stringId, unsigned seqNum, unsigned pageSeqNum) |
bool | addImage (unsigned index, ImgType type, WPXBinaryData img) |
bool | addShape (unsigned seqNum) |
bool | setShapePage (unsigned seqNum, unsigned pageSeqNum) |
bool | setShapeType (unsigned seqNum, ShapeType type) |
bool | setShapeCoordinatesInEmu (unsigned seqNum, int xs, int ys, int xe, int ye) |
bool | setShapeImgIndex (unsigned seqNum, unsigned index) |
bool | setShapeFill (unsigned seqNum, Fill *fill, bool skipIfNotBg) |
bool | setAdjustValue (unsigned seqNum, unsigned index, int adjust) |
bool | setShapeRotation (unsigned seqNum, double rotation) |
bool | setShapeFlip (unsigned, bool, bool) |
bool | setShapeMargins (unsigned seqNum, unsigned left, unsigned top, unsigned right, unsigned bottom) |
bool | setShapeBorderPosition (unsigned seqNum, BorderPosition pos) |
void | beginGroup () |
bool | endGroup () |
void | addShapeLine (unsigned seqNum, Line line) |
void | setShapeOrder (unsigned seqNum) |
void | setPageBgShape (unsigned pageSeqNum, unsigned seqNum) |
void | setWidthInEmu (unsigned long) |
void | setHeightInEmu (unsigned long) |
void | addTextColor (ColorReference c) |
void | addFont (std::vector< unsigned char > name) |
void | addDefaultCharacterStyle (const CharacterStyle &style) |
void | addDefaultParagraphStyle (const ParagraphStyle &style) |
void | addPaletteColor (Color) |
bool | setCurrentGroupSeqNum (unsigned seqNum) |
bool | go () |
bool | hasPage (unsigned seqNum) const |
Static Public Member Functions | |
static WPXString | getColorString (const Color &) |
Private Member Functions | |
MSPUBCollector (const MSPUBCollector &) | |
MSPUBCollector & | operator= (const MSPUBCollector &) |
void | assignImages () |
void | assignGroups () |
void | setRectCoordProps (Coordinate, WPXPropertyList *) |
WPXPropertyList | getCharStyleProps (const CharacterStyle &, unsigned defaultCharStyleIndex) |
WPXPropertyList | getParaStyleProps (const ParagraphStyle &, unsigned defaultParaStyleIndex) |
Private Attributes | |
libwpg::WPGPaintInterface * | m_painter |
std::list< ContentChunkReference > | m_contentChunkReferences |
double | m_width |
double | m_height |
bool | m_widthSet |
bool | m_heightSet |
unsigned short | m_numPages |
std::map< unsigned, std::vector< TextParagraph > > | m_textStringsById |
std::map< unsigned, PageInfo > | m_pagesBySeqNum |
boost::ptr_map< unsigned, Shape > | m_shapesBySeqNum |
std::vector< std::pair < ImgType, WPXBinaryData > > | m_images |
std::vector< ColorReference > | m_textColors |
std::vector< std::vector < unsigned char > > | m_fonts |
std::vector< CharacterStyle > | m_defaultCharStyles |
std::vector< ParagraphStyle > | m_defaultParaStyles |
std::map< unsigned, ShapeType > | m_shapeTypesBySeqNum |
std::vector< unsigned > | m_possibleImageShapeSeqNums |
std::map< unsigned, unsigned > | m_shapeImgIndicesBySeqNum |
std::map< unsigned, Coordinate > | m_shapeCoordinatesBySeqNum |
std::map< unsigned, std::vector< Line > > | m_shapeLinesBySeqNum |
boost::ptr_map< unsigned, Fill > | m_shapeFillsBySeqNum |
std::vector< Color > | m_paletteColors |
std::vector< unsigned > | m_shapeSeqNumsOrdered |
std::map< unsigned, unsigned > | m_pageSeqNumsByShapeSeqNum |
std::map< unsigned, std::pair < unsigned, unsigned > > | m_textInfoBySeqNum |
std::map< unsigned, unsigned > | m_bgShapeSeqNumsByPageSeqNum |
std::set< unsigned > | m_skipIfNotBgSeqNums |
std::map< unsigned, std::map < unsigned, int > > | m_adjustValuesByIndexBySeqNum |
std::map< unsigned, double > | m_shapeRotationsBySeqNum |
std::map< unsigned, std::pair < bool, bool > > | m_shapeFlipsBySeqNum |
std::map< unsigned, Margins > | m_shapeMarginsBySeqNum |
std::map< unsigned, BorderPosition > | m_shapeBorderPositionsBySeqNum |
ShapeGroup * | m_currentShapeGroup |
boost::ptr_vector < ShapeGroupElement > | m_topLevelShapes |
std::map< unsigned, ShapeGroup * > | m_groupsBySeqNum |
Friends | |
struct | Shape |
struct | GeometricShape |
struct | FillableShape |
class | ShapeGroupPainter |
class | Fill |
class | ImgFill |
class | SolidFill |
class | GradientFill |
class | PatternFill |
typedef std::list<ContentChunkReference>::const_iterator libmspub::MSPUBCollector::ccr_iterator_t |
libmspub::MSPUBCollector::MSPUBCollector | ( | ::libwpg::WPGPaintInterface * | painter | ) |
|
virtual |
|
private |
void libmspub::MSPUBCollector::addDefaultCharacterStyle | ( | const CharacterStyle & | style | ) |
void libmspub::MSPUBCollector::addDefaultParagraphStyle | ( | const ParagraphStyle & | style | ) |
void libmspub::MSPUBCollector::addFont | ( | std::vector< unsigned char > | name | ) |
bool libmspub::MSPUBCollector::addImage | ( | unsigned | index, |
ImgType | type, | ||
WPXBinaryData | img | ||
) |
bool libmspub::MSPUBCollector::addPage | ( | unsigned | seqNum | ) |
void libmspub::MSPUBCollector::addPaletteColor | ( | Color | c | ) |
bool libmspub::MSPUBCollector::addShape | ( | unsigned | seqNum | ) |
void libmspub::MSPUBCollector::addShapeLine | ( | unsigned | seqNum, |
Line | line | ||
) |
void libmspub::MSPUBCollector::addTextColor | ( | ColorReference | c | ) |
bool libmspub::MSPUBCollector::addTextShape | ( | unsigned | stringId, |
unsigned | seqNum, | ||
unsigned | pageSeqNum | ||
) |
bool libmspub::MSPUBCollector::addTextString | ( | const std::vector< TextParagraph > & | str, |
unsigned | id | ||
) |
|
private |
|
private |
void libmspub::MSPUBCollector::beginGroup | ( | ) |
bool libmspub::MSPUBCollector::endGroup | ( | ) |
|
private |
|
static |
|
private |
bool libmspub::MSPUBCollector::go | ( | ) |
bool libmspub::MSPUBCollector::hasPage | ( | unsigned | seqNum | ) | const |
|
private |
bool libmspub::MSPUBCollector::setAdjustValue | ( | unsigned | seqNum, |
unsigned | index, | ||
int | adjust | ||
) |
bool libmspub::MSPUBCollector::setCurrentGroupSeqNum | ( | unsigned | seqNum | ) |
void libmspub::MSPUBCollector::setHeightInEmu | ( | unsigned long | heightInEmu | ) |
void libmspub::MSPUBCollector::setPageBgShape | ( | unsigned | pageSeqNum, |
unsigned | seqNum | ||
) |
|
private |
bool libmspub::MSPUBCollector::setShapeBorderPosition | ( | unsigned | seqNum, |
BorderPosition | pos | ||
) |
bool libmspub::MSPUBCollector::setShapeCoordinatesInEmu | ( | unsigned | seqNum, |
int | xs, | ||
int | ys, | ||
int | xe, | ||
int | ye | ||
) |
bool libmspub::MSPUBCollector::setShapeFill | ( | unsigned | seqNum, |
Fill * | fill, | ||
bool | skipIfNotBg | ||
) |
bool libmspub::MSPUBCollector::setShapeFlip | ( | unsigned | seqNum, |
bool | flipVertical, | ||
bool | flipHorizontal | ||
) |
bool libmspub::MSPUBCollector::setShapeImgIndex | ( | unsigned | seqNum, |
unsigned | index | ||
) |
bool libmspub::MSPUBCollector::setShapeMargins | ( | unsigned | seqNum, |
unsigned | left, | ||
unsigned | top, | ||
unsigned | right, | ||
unsigned | bottom | ||
) |
void libmspub::MSPUBCollector::setShapeOrder | ( | unsigned | seqNum | ) |
bool libmspub::MSPUBCollector::setShapePage | ( | unsigned | seqNum, |
unsigned | pageSeqNum | ||
) |
bool libmspub::MSPUBCollector::setShapeRotation | ( | unsigned | seqNum, |
double | rotation | ||
) |
bool libmspub::MSPUBCollector::setShapeType | ( | unsigned | seqNum, |
ShapeType | type | ||
) |
void libmspub::MSPUBCollector::setWidthInEmu | ( | unsigned long | widthInEmu | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
Referenced by beginGroup().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by libmspub::ImgFill::getProperties(), and libmspub::PatternFill::getProperties().
|
private |
|
private |
|
private |
|
private |
Referenced by libmspub::ShapeGroupPainter::group().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by beginGroup().
|
private |
|
private |