#include <PAGCollector.h>
Classes | |
struct | Section |
Public Member Functions | |
PAGCollector (IWORKDocumentInterface *document) | |
void | collectPublicationInfo (const PAGPublicationInfo &pubInfo) |
void | collectTextBody () |
void | collectAttachment (const IWORKOutputID_t &id, bool block) |
void | collectAttachmentPosition (const IWORKPosition &position) |
void | openPageGroup (const boost::optional< int > &page) |
void | closePageGroup () |
void | openSection (const std::string &style, double width, double height, double horizontalMargin, double verticalMargin) |
void | closeSection () |
void | openAttachments () |
void | closeAttachments () |
PAGFootnoteKind | getFootnoteKind () const |
Private Types | |
typedef std::map< unsigned, IWORKOutputID_t > | PageGroupsMap_t |
Private Member Functions | |
virtual void | drawTable () |
virtual void | drawMedia (double x, double y, double w, double h, const std::string &mimetype, const librevenge::RVNGBinaryData &data) |
virtual void | fillShapeProperties (librevenge::RVNGPropertyList &props) |
virtual void | drawTextBox (const IWORKTextPtr_t &text, const glm::dmat3 &trafo, const IWORKGeometryPtr_t &boundingBox) |
void | flushPageSpan (bool writeEmpty=true) |
void | writePageGroupsObjects () |
Private Attributes | |
Section | m_currentSection |
bool | m_firstPageSpan |
PAGPublicationInfo | m_pubInfo |
PageGroupsMap_t | m_pageGroups |
int | m_page |
boost::optional< IWORKPosition > | m_attachmentPosition |
bool | m_inAttachments |
typedef std::map<unsigned, IWORKOutputID_t> libetonyek::PAGCollector::PageGroupsMap_t [private] |
libetonyek::PAGCollector::PAGCollector | ( | IWORKDocumentInterface * | document | ) | [explicit] |
void libetonyek::PAGCollector::collectAttachment | ( | const IWORKOutputID_t & | id, |
bool | block | ||
) |
void libetonyek::PAGCollector::collectAttachmentPosition | ( | const IWORKPosition & | position | ) |
void libetonyek::PAGCollector::collectPublicationInfo | ( | const PAGPublicationInfo & | pubInfo | ) |
void libetonyek::PAGCollector::drawMedia | ( | double | x, |
double | y, | ||
double | w, | ||
double | h, | ||
const std::string & | mimetype, | ||
const librevenge::RVNGBinaryData & | data | ||
) | [private, virtual] |
Implements libetonyek::IWORKCollector.
void libetonyek::PAGCollector::drawTable | ( | ) | [private, virtual] |
Implements libetonyek::IWORKCollector.
void libetonyek::PAGCollector::drawTextBox | ( | const IWORKTextPtr_t & | text, |
const glm::dmat3 & | trafo, | ||
const IWORKGeometryPtr_t & | boundingBox | ||
) | [private, virtual] |
Implements libetonyek::IWORKCollector.
void libetonyek::PAGCollector::fillShapeProperties | ( | librevenge::RVNGPropertyList & | props | ) | [private, virtual] |
Implements libetonyek::IWORKCollector.
Referenced by drawTextBox().
void libetonyek::PAGCollector::flushPageSpan | ( | bool | writeEmpty = true | ) | [private] |
Referenced by closeSection(), and collectTextBody().
void libetonyek::PAGCollector::openPageGroup | ( | const boost::optional< int > & | page | ) |
void libetonyek::PAGCollector::openSection | ( | const std::string & | style, |
double | width, | ||
double | height, | ||
double | horizontalMargin, | ||
double | verticalMargin | ||
) |
void libetonyek::PAGCollector::writePageGroupsObjects | ( | ) | [private] |
Referenced by flushPageSpan().
boost::optional<IWORKPosition> libetonyek::PAGCollector::m_attachmentPosition [private] |
Referenced by collectAttachmentPosition(), and drawMedia().
Referenced by flushPageSpan(), and openSection().
bool libetonyek::PAGCollector::m_firstPageSpan [private] |
Referenced by flushPageSpan().
bool libetonyek::PAGCollector::m_inAttachments [private] |
Referenced by closeAttachments(), drawMedia(), and openAttachments().
int libetonyek::PAGCollector::m_page [private] |
Referenced by closePageGroup(), drawMedia(), fillShapeProperties(), and openPageGroup().
Referenced by closePageGroup(), and writePageGroupsObjects().
Referenced by collectPublicationInfo(), and getFootnoteKind().