Class responsible for paper setting. Size, orientation, custom size, etc. More...
#include <PaperConfig.h>
Public Member Functions | |
virtual LayoutOrientationType | getPaperOrientantion () |
Returns paper orientation type enum. More... | |
virtual void | getPaperSize (double &w, double &h) |
Returns paper size. Height and Width. More... | |
virtual LayoutAbstractPaperType | getPaperType () |
Returns paper type. More... | |
PaperConfig () | |
Constructor. More... | |
PaperConfig (LayoutAbstractPaperType paperType) | |
Constructor. More... | |
virtual void | setPaperOrientation (LayoutOrientationType orientation) |
Sets paper orientation type enum. Ex.: Portrait. More... | |
virtual void | setPaperSizeCustom (double w, double h) |
Custom paper size. More... | |
virtual void | setPaperType (LayoutAbstractPaperType paperType) |
Sets paper type enum. Ex.: A4. More... | |
virtual | ~PaperConfig () |
Destructor. More... | |
Protected Attributes | |
double | m_customH |
custom paper size height More... | |
double | m_customW |
custom paper size width More... | |
LayoutOrientationType | m_paperOrientationType |
paper orientation type enum. Ex.: Portrait More... | |
LayoutAbstractPaperType | m_paperType |
paper type enum. Ex.: A4 More... | |
Class responsible for paper setting. Size, orientation, custom size, etc.
Definition at line 45 of file PaperConfig.h.
te::layout::PaperConfig::PaperConfig | ( | ) |
Constructor.
Definition at line 31 of file PaperConfig.cpp.
te::layout::PaperConfig::PaperConfig | ( | LayoutAbstractPaperType | paperType | ) |
Constructor.
paperType | paper type. Ex.: A4 |
Definition at line 40 of file PaperConfig.cpp.
References m_paperType.
|
virtual |
Destructor.
Definition at line 46 of file PaperConfig.cpp.
|
virtual |
Returns paper orientation type enum.
paper | orientation type enum |
Definition at line 139 of file PaperConfig.cpp.
Referenced by te::layout::PrintScene::createPrinter(), and te::layout::PageSetupOutside::on_pbApply_clicked().
|
virtual |
Returns paper size. Height and Width.
w | returns width |
h | returns height |
Definition at line 61 of file PaperConfig.cpp.
References te::layout::A0, te::layout::A1, te::layout::A2, te::layout::A3, te::layout::A4, te::layout::A5, te::layout::A6, te::layout::A7, te::layout::A8, te::layout::A9, te::layout::Custom, te::layout::Executive, te::layout::Landscape, te::layout::Legal, and te::layout::Letter.
Referenced by te::layout::Scene::calculateWindow(), te::layout::PrintScene::createPrinter(), te::layout::PaperItem::drawPaper(), te::layout::HorizontalRuler::drawRuler(), te::layout::VerticalRuler::drawRuler(), te::layout::PageSetupOutside::load(), te::layout::PrintScene::renderScene(), and te::layout::PageSetupOutside::switchSize().
|
virtual |
Returns paper type.
paper | type enum |
Definition at line 56 of file PaperConfig.cpp.
Referenced by te::layout::PageSetupOutside::configurePageSize(), and te::layout::PageSetupOutside::on_pbApply_clicked().
|
virtual |
Sets paper orientation type enum. Ex.: Portrait.
paper | orientation type enum |
Definition at line 134 of file PaperConfig.cpp.
Referenced by te::layout::PageSetupOutside::on_pbApply_clicked().
|
virtual |
|
virtual |
Sets paper type enum. Ex.: A4.
paperType | paper type enum |
Definition at line 51 of file PaperConfig.cpp.
Referenced by te::layout::PageSetupOutside::on_pbApply_clicked().
|
protected |
custom paper size height
Definition at line 115 of file PaperConfig.h.
|
protected |
custom paper size width
Definition at line 114 of file PaperConfig.h.
|
protected |
paper orientation type enum. Ex.: Portrait
Definition at line 113 of file PaperConfig.h.
|
protected |