textoutput::PageFragment Struct Reference

#include <textoutputentities.h>

Inheritance diagram for textoutput::PageFragment:
textoutput::PageFormula textoutput::PageWord

List of all members.

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

Detailed Description

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.


Member Typedef Documentation

typedef libs::Rectangle textoutput::PageFragment::BBox
typedef PageSimpleFragments::const_iterator textoutput::PageFragment::Iterator

Constructor & Destructor Documentation

virtual textoutput::PageFragment::~PageFragment (  )  [inline, virtual]

Member Function Documentation

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.


Member Data Documentation

Aproximate bbox.

Referenced by bbox(), and push_back().

Fragment styles.

Referenced by begin(), empty(), end(), push_back(), and text().


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