#include <MSPUBCollector.h>
Classes | |
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) |
void | addTextShape (unsigned stringId, unsigned seqNum, unsigned pageSeqNum) |
bool | addImage (unsigned index, ImgType type, WPXBinaryData img) |
bool | addShape (unsigned seqNum) |
void | setShapePage (unsigned seqNum, unsigned pageSeqNum) |
void | setShapeType (unsigned seqNum, ShapeType type) |
void | setShapeCoordinatesInEmu (unsigned seqNum, int xs, int ys, int xe, int ye) |
void | setShapeImgIndex (unsigned seqNum, unsigned index) |
void | setShapeFill (unsigned seqNum, boost::shared_ptr< Fill > fill, bool skipIfNotBg) |
void | setAdjustValue (unsigned seqNum, unsigned index, int adjust) |
void | setShapeRotation (unsigned seqNum, double rotation) |
void | setShapeFlip (unsigned, bool, bool) |
void | setShapeMargins (unsigned seqNum, unsigned left, unsigned top, unsigned right, unsigned bottom) |
void | setShapeBorderPosition (unsigned seqNum, BorderPosition pos) |
void | setShapeCoordinatesRotated90 (unsigned seqNum) |
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 &) |
std::vector< int > | getShapeAdjustValues (const ShapeInfo &info) const |
void | setRectCoordProps (Coordinate, WPXPropertyList *) const |
boost::optional< std::vector < libmspub::TextParagraph > > | getShapeText (const ShapeInfo &info) const |
void | setupShapeStructures (ShapeGroupElement &elt) |
void | addBlackToPaletteIfNecessary () |
void | assignShapesToPages () |
void | writePage (unsigned pageSeqNum, const PageInfo &pageInfo) const |
boost::function< void(void)> | paintShape (const ShapeInfo &info, const Coordinate &relativeTo, const VectorTransformation2D &foldedTransform, bool isGroup, const VectorTransformation2D &thisTransform) const |
double | getCalculationValue (const ShapeInfo &info, unsigned index, bool recursiveEntry, const std::vector< int > &adjustValues) const |
WPXPropertyList | getCharStyleProps (const CharacterStyle &, unsigned defaultCharStyleIndex) const |
WPXPropertyList | getParaStyleProps (const ParagraphStyle &, unsigned defaultParaStyleIndex) const |
double | getSpecialValue (const ShapeInfo &info, const CustomShape &shape, int arg, const std::vector< int > &adjustValues) const |
Friends | |
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 |
|
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 | ) |
void libmspub::MSPUBCollector::addTextShape | ( | unsigned | stringId, |
unsigned | seqNum, | ||
unsigned | pageSeqNum | ||
) |
bool libmspub::MSPUBCollector::addTextString | ( | const std::vector< TextParagraph > & | str, |
unsigned | id | ||
) |
|
private |
void libmspub::MSPUBCollector::beginGroup | ( | ) |
bool libmspub::MSPUBCollector::endGroup | ( | ) |
|
private |
Referenced by paintShape().
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
bool libmspub::MSPUBCollector::go | ( | ) |
bool libmspub::MSPUBCollector::hasPage | ( | unsigned | seqNum | ) | const |
|
private |
|
private |
Referenced by writePage().
void 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 |
void libmspub::MSPUBCollector::setShapeBorderPosition | ( | unsigned | seqNum, |
BorderPosition | pos | ||
) |
void libmspub::MSPUBCollector::setShapeCoordinatesInEmu | ( | unsigned | seqNum, |
int | xs, | ||
int | ys, | ||
int | xe, | ||
int | ye | ||
) |
void libmspub::MSPUBCollector::setShapeCoordinatesRotated90 | ( | unsigned | seqNum | ) |
void libmspub::MSPUBCollector::setShapeFill | ( | unsigned | seqNum, |
boost::shared_ptr< Fill > | fill, | ||
bool | skipIfNotBg | ||
) |
void libmspub::MSPUBCollector::setShapeFlip | ( | unsigned | seqNum, |
bool | flipVertical, | ||
bool | flipHorizontal | ||
) |
void libmspub::MSPUBCollector::setShapeImgIndex | ( | unsigned | seqNum, |
unsigned | index | ||
) |
void libmspub::MSPUBCollector::setShapeMargins | ( | unsigned | seqNum, |
unsigned | left, | ||
unsigned | top, | ||
unsigned | right, | ||
unsigned | bottom | ||
) |
void libmspub::MSPUBCollector::setShapeOrder | ( | unsigned | seqNum | ) |
void libmspub::MSPUBCollector::setShapePage | ( | unsigned | seqNum, |
unsigned | pageSeqNum | ||
) |
void libmspub::MSPUBCollector::setShapeRotation | ( | unsigned | seqNum, |
double | rotation | ||
) |
void libmspub::MSPUBCollector::setShapeType | ( | unsigned | seqNum, |
ShapeType | type | ||
) |
|
private |
Referenced by assignShapesToPages().
void libmspub::MSPUBCollector::setWidthInEmu | ( | unsigned long | widthInEmu | ) |
|
private |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by setRectCoordProps().
|
private |
|
private |
Referenced by libmspub::ImgFill::getProperties(), and libmspub::PatternFill::getProperties().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by setShapeCoordinatesRotated90().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by setRectCoordProps().
|
private |