#include <textoutputentities.h>
Public Types | |
| typedef libs::Rectangle | BBox |
| typedef PageSimpleFragment::PdfOperatorPtr | PdfOperatorPtr |
| typedef PageSimpleFragment::GfxStatePtr | GfxStatePtr |
| typedef PageSimpleFragment::GfxResourcePtr | GfxResourcePtr |
| typedef boost::shared_ptr < PageSimpleFragment > | PageSimpleFragmentPtr |
| typedef std::vector < PageSimpleFragmentPtr > | PageSimpleFragments |
| typedef PageSimpleFragments::const_iterator | Iterator |
Public Member Functions | |
| virtual void | push_back (PageSimpleFragmentPtr sfrag) |
| virtual void | sort () |
| Iterator | begin () const |
| Iterator | end () const |
| bool | empty () const |
| BBox | bbox () const |
| std::string | text () const |
| virtual | ~PageFragment () |
Protected Attributes | |
| BBox | _bbox |
| PageSimpleFragments | _sfrags |
Page text fragment. Can be either word, math formula etc.
It is supposed that the actual structure of fragment characteristics can be changed frequently, also specialized text output engines can have their special characteristics an because of this PageFragment only points to the structure.
| typedef libs::Rectangle textoutput::PageFragment::BBox |
| typedef PageSimpleFragments::const_iterator textoutput::PageFragment::Iterator |
| typedef boost::shared_ptr<PageSimpleFragment> textoutput::PageFragment::PageSimpleFragmentPtr |
| typedef std::vector<PageSimpleFragmentPtr> textoutput::PageFragment::PageSimpleFragments |
| virtual textoutput::PageFragment::~PageFragment | ( | ) | [inline, virtual] |
| BBox textoutput::PageFragment::bbox | ( | ) | const [inline] |
Return apporximate bbox.
References _bbox.
Referenced by textoutput::SimpleLineEngine::LinePart::line_part().
| Iterator textoutput::PageFragment::begin | ( | ) | const [inline] |
Return first simple fragment iterator.
References _sfrags.
| bool textoutput::PageFragment::empty | ( | ) | const [inline] |
Is container empty.
References _sfrags.
| Iterator textoutput::PageFragment::end | ( | ) | const [inline] |
Return last simple fragment iterator.
References _sfrags.
| void textoutput::PageFragment::push_back | ( | PageSimpleFragmentPtr | sfrag | ) | [virtual] |
Add sfrag to the end and adjust bbox accordingly.
References _bbox, _sfrags, debug::DBG_DBG, and kernelPrintDbg.
| void textoutput::PageFragment::sort | ( | ) | [virtual] |
Sort lines.
| std::string textoutput::PageFragment::text | ( | ) | const [inline] |
References _sfrags.
BBox textoutput::PageFragment::_bbox [protected] |
Aproximate bbox.
Referenced by bbox(), and push_back().
PageSimpleFragments textoutput::PageFragment::_sfrags [protected] |
Fragment styles.
Referenced by begin(), empty(), end(), push_back(), and text().