libqxp::QXPContentCollector Class Reference

#include <QXPContentCollector.h>

Inheritance diagram for libqxp::QXPContentCollector:
libqxp::QXPCollector

List of all members.

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)
QXPContentCollectoroperator= (const QXPContentCollector &other)
CollectedPagegetInsertionPage (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< CollectedPagem_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

Constructor & Destructor Documentation

libqxp::QXPContentCollector::QXPContentCollector ( librevenge::RVNGDrawingInterface *  painter)

Member Function Documentation

template<typename T >
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.

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]
void libqxp::QXPContentCollector::endPage ( ) [override, virtual]

Reimplemented from libqxp::QXPCollector.

Referenced by endDocument().

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.

Referenced by draw().

void libqxp::QXPContentCollector::writeFill ( librevenge::RVNGPropertyList &  propList,
const boost::optional< Fill > &  fill 
) [private]
void libqxp::QXPContentCollector::writeFrame ( librevenge::RVNGPropertyList &  propList,
const Frame frame,
const bool  runaround,
const bool  allowHairline = false 
) [private]

Member Data Documentation

std::unordered_map<unsigned, std::unordered_map<unsigned, std::shared_ptr<TextObject> > > libqxp::QXPContentCollector::m_linkIndexedTextObjectsMap [private]
std::unordered_map<unsigned, std::shared_ptr<Text> > libqxp::QXPContentCollector::m_linkTextMap [private]

Referenced by collectText(), and collectTextObject().


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