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

xml2ps::PsCanvas Class Reference

#include <pscanvas.hh>

Inheritance diagram for xml2ps::PsCanvas:

xml2ps::Canvas RefCounted xml2ps::PagedStream

List of all members.

Detailed Description

A Canvas which output is a PostScript file (or a set of PostScript files). It inherits Canvas for the drawing interface and PsStream to manage the PostScript data.

Definition at line 18 of file pscanvas.hh.

Public Types

typedef std::vector< PageBoundary > PageVec

Public Member Functions

virtual void addMargin (const float &m)
virtual void addRelObstacle (const float left, const float bottom, const float right, const float top)
void appendPage (unsigned int number, std::ostream &out) const
virtual void closePage ()
virtual const float & down (const float &step)
std::string filename (unsigned int number) const
const PageBoundary & getCurrentPage () const
float getRise () const
virtual bool getSubstituteFontAliases () const
const font::Fonts & getUsedFonts () const
HBox hbox (bool span, float margin_left, float margin_right, float ascender, float descender)
void include_font (const std::string &fontname)
void line (float x1, float y1, float x2, float y2)
void merge (std::ostream &out) const
void moverel (float dx, float dy)
void moveto (float hpos, float vpos)
void newPage (const int &width, const int &height)
virtual void newPage ()
void pageEps (unsigned page_no, std::ostream &out)
 PsCanvas (const PageVec &pages, bool allow_extra_pages)
void reference () const
void require_font (const std::string &fontname)
virtual void reserveHeight (const float &hspace, bool span=false)
void setfont (const font::FontInfo &font)
void setgray (float gray)
virtual void setSubstituteFontAliases (bool subst)
void setWordSpace (const float &space)
void show (const Glib::ustring &text)
void split ()
float textRise (float rise)
void underlineFrom (const float &below)
void underlineTo (const float &below, const float &thickness)
void unreference () const
void whitespace (const float &space)
void whitespace ()

Static Public Member Functions

static void psProlog (std::ostream &out)

Protected Attributes

PageVec::iterator cur_page_
PageVec pages_

Private Attributes

float cur_rise
std::auto_ptr< font::FontInfo > font_
float word_space

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

Generated by  Doxygen 1.6.0   Back to index