#include <textoutput.h>
Public Member Functions | |
| void | operator() (boost::shared_ptr< GfxResources > gfx_res) |
| void | operator() (const PdfOperatorPtr op, BBox rc, const GfxState &gfx_state) |
| void | format () |
| void | output (OutputBuilder &out, size_t pagepos) const |
Private Types | |
| typedef SimpleWordEngine::PdfOperatorPtr | PdfOperatorPtr |
| typedef libs::Rectangle | BBox |
Private Attributes | |
| WordEngine | wordengine |
| LineEngine | lineengine |
| ColumnEngine | columnengine |
Text representation of a page.
This class can be parametrized by page entity engines. Word engine is responsible for creating complex structures (words,...) from simple fragments.
Word engine must contain three functions * operator() (shared_ptr<GfxResources>) -- to init resources (it is called just once because resources do not change) * operator() (PdfOperatorPtr, BBox, const GfxState&) -- called after each end every operator * operator() () -- responsible for ordering and reformating words (optimizing)
typedef libs::Rectangle textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::BBox [private] |
typedef SimpleWordEngine::PdfOperatorPtr textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::PdfOperatorPtr [private] |
| void textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::format | ( | ) | [inline] |
| void textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::operator() | ( | const PdfOperatorPtr | op, | |
| BBox | rc, | |||
| const GfxState & | gfx_state | |||
| ) | [inline] |
Stateupdater functor.
References textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::wordengine.
| void textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::operator() | ( | boost::shared_ptr< GfxResources > | gfx_res | ) | [inline] |
Init stateupdater functor.
References textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::wordengine.
| void textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::output | ( | OutputBuilder & | out, | |
| size_t | pagepos | |||
| ) | const [inline] |
Output builder.
References textoutput::OutputBuilder::build(), textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::columnengine, textoutput::OutputBuilder::end_page(), textoutput::OutputBuilder::start_page(), and textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::wordengine.
ColumnEngine textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::columnengine [private] |
LineEngine textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::lineengine [private] |
WordEngine textoutput::PageTextSource< WordEngine, LineEngine, ColumnEngine >::wordengine [private] |