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

Document Class Reference

#include <document.h>

Inheritance diagram for Document:

RefCounted

List of all members.


Detailed Description

This is it! The document class! It is reference counted and has no public constructors, so you will have to use the create methods.

Definition at line 36 of file document.h.


Public Types

typedef std::list< Pagent * > Selection
typedef std::list< TextStream * > StreamVec

Public Member Functions

void add_text_stream (TextStream *new_stream)
int count_selected () const
void delete_page (int page_num)
void delete_selected ()
void deselect (Pagent *obj)
int get_first_page_num () const
float get_height () const
unsigned int get_num_of_pages () const
Papers::Orientation get_orientation () const
Page * get_page (const std::string &page_name)
Page * get_page (int page_num)
int get_page_num_of_page (const Page *page) const
const std::string & get_paper_name () const
DocRef get_template ()
const std::string & get_template_file ()
std::list< std::string > get_template_pages ()
TextStreamget_text_stream (const std::string &name)
StreamVec get_text_streams ()
float get_width () const
bool is_doublesided () const
std::string make_up_new_name ()
Page * new_page (int page_num, Page *original=0)
void print (std::ostream &out, int first_page, int last_page, bool eps=false, bool include_fonts=false, bool grayscale=false) const
void print_pdf (PDF::Document::Ptr pdf, int first_page, int last_page)
void reference () const
void remove_text_stream (const std::string &name)
void rename_text_stream (const std::string &old_name, const std::string &new_name)
void save (const std::string &filename)
void select (Pagent *obj, bool deselect_old=true)
void select_all (bool select)
void select_all_on_page (Page *page, bool select)
const Selection & selected () const
DocRef self ()
void set_doublesided (bool ds)
void set_first_page_num (int num)
void set_orientation (Papers::Orientation _orientation)
void set_paper_name (const std::string &_paper_name)
void set_template (const std::string &template_file_)
void unreference () const

Static Public Member Functions

static const Documentcontaining (const Pagent &obj)
static Documentcontaining (Pagent &obj)
static DocRef create (const std::string &template_file_)
static DocRef create (const std::string &filename, bool is_template_)
static DocRef create ()
static DocRef null ()

Static Public Attributes

static SigC::Signal1< void,
DocRef > 
changed_signal
static SigC::Signal1< void,
DocRef > 
selection_changed_signal
static SigC::Signal1< void,
DocRef > 
size_changed_signal
static SigC::Signal1< void,
DocRef > 
streams_changed_signal

Private Types

typedef std::list< Page * > PageVec

Private Member Functions

void _add_text_stream (TextStream *new_stream)
 Document (const Document &)
 Document (const std::string &template_file_)
 Document (const std::string &filename, bool is_template_)
void open (const std::string &filename)
void operator= (const Document &)
void xml_open (const ElementWrap &root)
xmlpp::Document * xml_save (const FileContext &context)

Private Attributes

bool doublesided
int first_page_num
bool is_template
Papers::Orientation orientation
PageVec pages
std::string paper_name
Selection selection
int stream_num
std::string template_file
StreamVec text_streams
DocRef the_template

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

Generated by  Doxygen 1.6.0   Back to index