Logo Search packages:      
Sourcecode: passepartout version File versions  Download package

TextStream Class Reference

#include <textstream.h>

List of all members.


Detailed Description

A source of text associated with a set of TextFrame s. TextStream keeps a list of TextFrames. When association is set, TextStream runs an XSLT transformation (external xsltproc, so far) to convert the association into the xml2ps dtd. Then xml2ps (internally linked) reads the output from the transform and produces postscript for the actual TextFrames (which will emit signals to be redrawn).

When the docview tells the page to draw itself, the text frame looks at its ps_exists member to detemine if it should read its parsed_file. If it is false, the frame calls TextStream::generate_ps_request which will run xml2ps if necessary. This also happens when a frame is resized.

Definition at line 32 of file textstream.h.


Public Types

typedef ParamMap::const_iterator ParamIter
typedef std::map< std::string,
std::string > 
ParamMap

Public Member Functions

void add_frame (TextFrame *text_frame)
void generate_ps_request (TextFrame *frame=0)
const std::string & get_association () const
const std::string & get_name () const
const std::string & get_transform () const
const font::Fonts & get_used_fonts () const
PDF::Object::Ptr getPagePDF (const TextFrame *frame)
void outputPageEps (std::ostream &out, const TextFrame *frame)
void outputPageRaw (std::ostream &out, const TextFrame *frame)
ParamIter param_begin () const
ParamIter param_end () const
void print_pdf (PDF::Document::Ptr pdfdoc)
void remove_frame (TextFrame *text_frame)
void run_typesetter ()
xmlpp::Element * save (xmlpp::Element &parent_node, const FileContext &context) const
void set_association (const std::string &s)
void set_name (const std::string &s)
void set_parameter (const std::string &name, const std::string &value)
void set_transform (const std::string &s)
 TextStream (const ElementWrap &xml)
 TextStream (const std::string &_name, const std::string &_association, const std::string &_transform)
 ~TextStream ()

Protected Types

typedef std::list< TextFrame * > Frames

Protected Member Functions

void on_file_modified ()
bool on_idle ()

Protected Attributes

std::string association
FileWatcher association_watcher
bool failed
Frames frames
std::string name
std::string transform
FileWatcher transform_watcher
std::string typesetter_error

Private Member Functions

void operator= (const TextStream &)
 TextStream (const TextStream &)

Private Attributes

Glib::RefPtr< xml2ps::PsCanvascanvas
std::map< const TextFrame
*, unsigned int > 
pageno_map
ParamMap parameters
std::auto_ptr< xml2ps::PDFCanvas > pdfcanvas
Glib::RefPtr< WorkerThread > typesetter_thread
font::Fonts used_fonts

Classes

class  WorkerThread

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

Generated by  Doxygen 1.6.0   Back to index