#include <QXPContentCollector.h>
Classes | |
| class | CollectedObject |
| class | CollectedObjectInterface |
| struct | CollectedPage |
Public Member Functions | |
| QXPContentCollector (librevenge::RVNGDrawingInterface *painter) | |
| ~QXPContentCollector () | |
| void | startDocument () override |
| void | endDocument () override |
| void | startPage (const Page &page) override |
| void | endPage () override |
| void | collectDocumentProperties (const QXPDocumentProperties &props) override |
| void | collectLine (const std::shared_ptr< Line > &line) override |
| void | collectBox (const std::shared_ptr< Box > &box) override |
| void | collectTextBox (const std::shared_ptr< TextBox > &box) override |
| void | collectTextPath (const std::shared_ptr< TextPath > &textPath) override |
| void | collectGroup (const std::shared_ptr< Group > &group) override |
| void | collectText (const std::shared_ptr< Text > &text, const unsigned linkId) override |
Private Member Functions | |
| QXPContentCollector (const QXPContentCollector &other) | |
| QXPContentCollector & | operator= (const QXPContentCollector &other) |
| CollectedPage & | getInsertionPage (const std::shared_ptr< Object > &obj) |
| template<typename T > | |
| std::shared_ptr < CollectedObject< T > > | addObject (const std::shared_ptr< T > &obj, const ObjectHandlerMember< T, QXPContentCollector > &handler) |
| void | draw (bool force=false) |
| void | collectTextObject (const std::shared_ptr< TextObject > &textObj, CollectedPage &page) |
| void | updateLinkedTexts () |
| bool | hasUnfinishedLinkedTexts () |
| void | drawLine (const std::shared_ptr< Line > &line, const CollectedPage &page) |
| void | drawBox (const std::shared_ptr< Box > &box, const CollectedPage &page) |
| void | drawRectangle (const std::shared_ptr< Box > &box, const CollectedPage &page) |
| void | drawOval (const std::shared_ptr< Box > &oval, const CollectedPage &page) |
| void | drawPolygon (const std::shared_ptr< Box > &polygon, const CollectedPage &page) |
| void | drawBezierBox (const std::shared_ptr< Box > &box, const CollectedPage &page) |
| void | drawTextBox (const std::shared_ptr< TextBox > &textbox, const CollectedPage &page) |
| void | drawTextPath (const std::shared_ptr< TextPath > &textPath, const CollectedPage &page) |
| void | drawText (const std::shared_ptr< Text > &text, const LinkedTextSettings &linkSettings) |
| void | drawGroup (const std::shared_ptr< Group > &group, const CollectedPage &page) |
| void | writeFill (librevenge::RVNGPropertyList &propList, const boost::optional< Fill > &fill) |
| void | writeFrame (librevenge::RVNGPropertyList &propList, const Frame &frame, const bool runaround, const bool allowHairline=false) |
Private Attributes | |
| librevenge::RVNGDrawingInterface * | m_painter |
| bool | m_isDocumentStarted |
| bool | m_isCollectingFacingPage |
| std::vector< CollectedPage > | m_unprocessedPages |
| std::unordered_map< unsigned, std::shared_ptr< Text > > | m_linkTextMap |
| std::unordered_map< unsigned, std::unordered_map< unsigned, std::shared_ptr< TextObject > > > | m_linkIndexedTextObjectsMap |
| QXPDocumentProperties | m_docProps |
| libqxp::QXPContentCollector::QXPContentCollector | ( | const QXPContentCollector & | other | ) | [private] |
| libqxp::QXPContentCollector::QXPContentCollector | ( | librevenge::RVNGDrawingInterface * | painter | ) |
| std::shared_ptr<CollectedObject<T> > libqxp::QXPContentCollector::addObject | ( | const std::shared_ptr< T > & | obj, |
| const ObjectHandlerMember< T, QXPContentCollector > & | handler | ||
| ) | [inline, private] |
| void libqxp::QXPContentCollector::collectBox | ( | const std::shared_ptr< Box > & | box | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectDocumentProperties | ( | const QXPDocumentProperties & | props | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectGroup | ( | const std::shared_ptr< Group > & | group | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectLine | ( | const std::shared_ptr< Line > & | line | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectText | ( | const std::shared_ptr< Text > & | text, |
| const unsigned | linkId | ||
| ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectTextBox | ( | const std::shared_ptr< TextBox > & | box | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::collectTextObject | ( | const std::shared_ptr< TextObject > & | textObj, |
| CollectedPage & | page | ||
| ) | [private] |
Referenced by collectTextBox(), and collectTextPath().
| void libqxp::QXPContentCollector::collectTextPath | ( | const std::shared_ptr< TextPath > & | textPath | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::draw | ( | bool | force = false | ) | [private] |
Referenced by endDocument(), and endPage().
| void libqxp::QXPContentCollector::drawBezierBox | ( | const std::shared_ptr< Box > & | box, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by drawBox().
| void libqxp::QXPContentCollector::drawBox | ( | const std::shared_ptr< Box > & | box, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by collectBox(), and drawTextBox().
| void libqxp::QXPContentCollector::drawGroup | ( | const std::shared_ptr< Group > & | group, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by collectGroup().
| void libqxp::QXPContentCollector::drawLine | ( | const std::shared_ptr< Line > & | line, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by collectLine(), and drawTextPath().
| void libqxp::QXPContentCollector::drawOval | ( | const std::shared_ptr< Box > & | oval, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by drawBox().
| void libqxp::QXPContentCollector::drawPolygon | ( | const std::shared_ptr< Box > & | polygon, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by drawBox().
| void libqxp::QXPContentCollector::drawRectangle | ( | const std::shared_ptr< Box > & | box, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by drawBox().
| void libqxp::QXPContentCollector::drawText | ( | const std::shared_ptr< Text > & | text, |
| const LinkedTextSettings & | linkSettings | ||
| ) | [private] |
Referenced by drawTextBox(), and drawTextPath().
| void libqxp::QXPContentCollector::drawTextBox | ( | const std::shared_ptr< TextBox > & | textbox, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by collectTextBox().
| void libqxp::QXPContentCollector::drawTextPath | ( | const std::shared_ptr< TextPath > & | textPath, |
| const CollectedPage & | page | ||
| ) | [private] |
Referenced by collectTextPath().
| void libqxp::QXPContentCollector::endDocument | ( | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
Referenced by libqxp::QXPParser::parse(), and ~QXPContentCollector().
| void libqxp::QXPContentCollector::endPage | ( | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
Referenced by endDocument().
| QXPContentCollector::CollectedPage & libqxp::QXPContentCollector::getInsertionPage | ( | const std::shared_ptr< Object > & | obj | ) | [private] |
Referenced by addObject(), collectGroup(), collectTextBox(), and collectTextPath().
| bool libqxp::QXPContentCollector::hasUnfinishedLinkedTexts | ( | ) | [private] |
Referenced by draw().
| QXPContentCollector& libqxp::QXPContentCollector::operator= | ( | const QXPContentCollector & | other | ) | [private] |
| void libqxp::QXPContentCollector::startDocument | ( | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
Referenced by libqxp::QXPParser::parse().
| void libqxp::QXPContentCollector::startPage | ( | const Page & | page | ) | [override, virtual] |
Reimplemented from libqxp::QXPCollector.
| void libqxp::QXPContentCollector::updateLinkedTexts | ( | ) | [private] |
Referenced by draw().
| void libqxp::QXPContentCollector::writeFill | ( | librevenge::RVNGPropertyList & | propList, |
| const boost::optional< Fill > & | fill | ||
| ) | [private] |
Referenced by drawBezierBox(), drawOval(), drawPolygon(), and drawRectangle().
| void libqxp::QXPContentCollector::writeFrame | ( | librevenge::RVNGPropertyList & | propList, |
| const Frame & | frame, | ||
| const bool | runaround, | ||
| const bool | allowHairline = false |
||
| ) | [private] |
Referenced by drawBezierBox(), drawLine(), drawOval(), drawPolygon(), and drawRectangle().
Referenced by collectDocumentProperties(), and drawText().
bool libqxp::QXPContentCollector::m_isCollectingFacingPage [private] |
Referenced by getInsertionPage(), and startPage().
bool libqxp::QXPContentCollector::m_isDocumentStarted [private] |
Referenced by endDocument(), startDocument(), and ~QXPContentCollector().
std::unordered_map<unsigned, std::unordered_map<unsigned, std::shared_ptr<TextObject> > > libqxp::QXPContentCollector::m_linkIndexedTextObjectsMap [private] |
Referenced by collectText(), collectTextObject(), and updateLinkedTexts().
std::unordered_map<unsigned, std::shared_ptr<Text> > libqxp::QXPContentCollector::m_linkTextMap [private] |
Referenced by collectText(), and collectTextObject().
librevenge::RVNGDrawingInterface* libqxp::QXPContentCollector::m_painter [private] |
Referenced by draw(), drawBezierBox(), drawGroup(), drawLine(), drawOval(), drawPolygon(), drawRectangle(), drawText(), drawTextBox(), drawTextPath(), endDocument(), and startDocument().
std::vector<CollectedPage> libqxp::QXPContentCollector::m_unprocessedPages [private] |
Referenced by draw(), endDocument(), endPage(), getInsertionPage(), hasUnfinishedLinkedTexts(), startPage(), and updateLinkedTexts().