#include <gcu/printable.h>
Public Member Functions | |
Printable () | |
virtual | ~Printable () |
virtual void | DoPrint (GtkPrintOperation *print, GtkPrintContext *context, int page) const =0 |
virtual bool | SupportsHeaders () |
virtual bool | SupportMultiplePages () |
virtual GtkWindow * | GetGtkWindow ()=0 |
virtual int | GetPagesNumber () |
void | Print (bool preview) |
void | SetPageSetup (GtkPageSetup *PageSetup) |
GtkPrintSettings * | GetPrintSettings (void) const |
void | SetUnit (GtkUnit val) |
GtkUnit | GetUnit (void) const |
GtkUnit & | GetRefUnit (void) |
void | SetHeaderHeight (double val) |
double | GetHeaderHeight (void) const |
double & | GetRefHeaderHeight (void) |
void | SetFooterHeight (double val) |
double | GetFooterHeight (void) const |
double & | GetRefFooterHeight (void) |
void | SetHorizCentered (bool val) |
bool | GetHorizCentered (void) const |
bool & | GetRefHorizCentered (void) |
void | SetVertCentered (bool val) |
bool | GetVertCentered (void) const |
bool & | GetRefVertCentered (void) |
void | SetScaleType (PrintScaleType val) |
PrintScaleType | GetScaleType (void) const |
PrintScaleType & | GetRefScaleType (void) |
void | SetScale (double val) |
double | GetScale (void) const |
double & | GetRefScale (void) |
void | SetHorizFit (bool val) |
bool | GetHorizFit (void) const |
bool & | GetRefHorizFit (void) |
void | SetVertFit (bool val) |
bool | GetVertFit (void) const |
bool & | GetRefVertFit (void) |
void | SetHPages (int val) |
int | GetHPages (void) const |
int & | GetRefHPages (void) |
void | SetVPages (int val) |
int | GetVPages (void) const |
int & | GetRefVPages (void) |
Definition at line 58 of file printable.h.
gcu::Printable::Printable | ( | ) |
The constructor.
virtual gcu::Printable::~Printable | ( | ) | [virtual] |
The destructor.
virtual void gcu::Printable::DoPrint | ( | GtkPrintOperation * | print, | |
GtkPrintContext * | context, | |||
int | page | |||
) | const [pure virtual] |
a GtkPrintOperation*. | ||
context | a GtkPrintContext*. | |
page | the page to print. |
Implemented in gcu::GLView, and gcp::Document.
gcu::Printable::GetFooterHeight | ( | void | ) | const [inline] |
virtual GtkWindow* gcu::Printable::GetGtkWindow | ( | ) | [pure virtual] |
Derived classes need to overload this pure virtual method.
Implemented in gcu::GLView, and gcp::Document.
gcu::Printable::GetHeaderHeight | ( | void | ) | const [inline] |
gcu::Printable::GetHorizCentered | ( | void | ) | const [inline] |
gcu::Printable::GetHorizFit | ( | void | ) | const [inline] |
gcu::Printable::GetHPages | ( | void | ) | const [inline] |
Definition at line 241 of file printable.h.
virtual int gcu::Printable::GetPagesNumber | ( | ) | [inline, virtual] |
Derived classes able to print several pages must overload this method.
Definition at line 101 of file printable.h.
gcu::Printable::GetPrintSettings | ( | void | ) | const [inline] |
the GtkPageSetup currently associated with the Printable instance.
Definition at line 121 of file printable.h.
gcu::Printable::GetRefFooterHeight | ( | void | ) | [inline] |
gcu::Printable::GetRefHeaderHeight | ( | void | ) | [inline] |
gcu::Printable::GetRefHorizCentered | ( | void | ) | [inline] |
Definition at line 172 of file printable.h.
gcu::Printable::GetRefHorizFit | ( | void | ) | [inline] |
Definition at line 218 of file printable.h.
gcu::Printable::GetRefHPages | ( | void | ) | [inline] |
Definition at line 241 of file printable.h.
gcu::Printable::GetRefScale | ( | void | ) | [inline] |
gcu::Printable::GetRefScaleType | ( | void | ) | [inline] |
gcu::Printable::GetRefUnit | ( | void | ) | [inline] |
gcu::Printable::GetRefVertCentered | ( | void | ) | [inline] |
Definition at line 183 of file printable.h.
gcu::Printable::GetRefVertFit | ( | void | ) | [inline] |
Definition at line 228 of file printable.h.
gcu::Printable::GetRefVPages | ( | void | ) | [inline] |
Definition at line 254 of file printable.h.
gcu::Printable::GetScale | ( | void | ) | const [inline] |
gcu::Printable::GetScaleType | ( | void | ) | const [inline] |
gcu::Printable::GetUnit | ( | void | ) | const [inline] |
gcu::Printable::GetVertCentered | ( | void | ) | const [inline] |
gcu::Printable::GetVertFit | ( | void | ) | const [inline] |
vertically
Definition at line 228 of file printable.h.
gcu::Printable::GetVPages | ( | void | ) | const [inline] |
Definition at line 254 of file printable.h.
void gcu::Printable::Print | ( | bool | preview | ) |
preview | whether preview or real printing is requested. |
gcu::Printable::SetFooterHeight | ( | double | FooterHeight | ) | [inline] |
FooterHeight | the height of the header. |
Definition at line 161 of file printable.h.
gcu::Printable::SetHeaderHeight | ( | double | HeaderHeight | ) | [inline] |
HeaderHeight | the height of the header. |
Definition at line 149 of file printable.h.
gcu::Printable::SetHorizCentered | ( | bool | HorizCentered | ) | [inline] |
HorizCentered | whether to center horizontally or not. |
Definition at line 172 of file printable.h.
gcu::Printable::SetHorizFit | ( | bool | HorizFit | ) | [inline] |
HorizFit | whether to fill the page horizontally. |
Definition at line 218 of file printable.h.
gcu::Printable::SetHPages | ( | int | HPages | ) | [inline] |
HPages | the number of pages to which horizontally spread the print output. |
Definition at line 241 of file printable.h.
void gcu::Printable::SetPageSetup | ( | GtkPageSetup * | PageSetup | ) |
PageSetup | a GtkPageSetup*. |
gcu::Printable::SetScale | ( | double | Scale | ) | [inline] |
Scale | the scale to use. |
Definition at line 207 of file printable.h.
gcu::Printable::SetScaleType | ( | PrintScaleType | ScaleType | ) | [inline] |
ScaleType | how to scale when printing. |
Definition at line 195 of file printable.h.
gcu::Printable::SetUnit | ( | GtkUnit | Unit | ) | [inline] |
Unit | a GtkUnit. |
Definition at line 137 of file printable.h.
gcu::Printable::SetVertCentered | ( | bool | VertCentered | ) | [inline] |
VertCentered | whether to center vertically or not. |
Definition at line 183 of file printable.h.
gcu::Printable::SetVertFit | ( | bool | VertFit | ) | [inline] |
VertFit | whether to fill the page vertically. |
Definition at line 228 of file printable.h.
gcu::Printable::SetVPages | ( | int | VPages | ) | [inline] |
VPages | the number of pages to which vertically spread the print output. |
Definition at line 254 of file printable.h.
virtual bool gcu::Printable::SupportMultiplePages | ( | ) | [inline, virtual] |
Derived classes able to print several pages must overload this method.
Definition at line 91 of file printable.h.
virtual bool gcu::Printable::SupportsHeaders | ( | ) | [inline, virtual] |
Derived classes supporting headers and footers must overload this method.
Definition at line 85 of file printable.h.