All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::PaperConfig Class Reference

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...
 

Detailed Description

Class responsible for paper setting. Size, orientation, custom size, etc.

Definition at line 45 of file PaperConfig.h.

Constructor & Destructor Documentation

te::layout::PaperConfig::PaperConfig ( )

Constructor.

Definition at line 31 of file PaperConfig.cpp.

te::layout::PaperConfig::PaperConfig ( LayoutAbstractPaperType  paperType)

Constructor.

Parameters
paperTypepaper type. Ex.: A4

Definition at line 40 of file PaperConfig.cpp.

References m_paperType.

te::layout::PaperConfig::~PaperConfig ( )
virtual

Destructor.

Definition at line 46 of file PaperConfig.cpp.

Member Function Documentation

te::layout::LayoutOrientationType te::layout::PaperConfig::getPaperOrientantion ( )
virtual

Returns paper orientation type enum.

Parameters
paperorientation type enum

Definition at line 139 of file PaperConfig.cpp.

Referenced by te::layout::PrintScene::createPrinter(), and te::layout::PageSetupOutside::on_pbApply_clicked().

te::layout::LayoutAbstractPaperType te::layout::PaperConfig::getPaperType ( )
virtual

Returns paper type.

Parameters
papertype enum

Definition at line 56 of file PaperConfig.cpp.

Referenced by te::layout::PageSetupOutside::configurePageSize(), and te::layout::PageSetupOutside::on_pbApply_clicked().

void te::layout::PaperConfig::setPaperOrientation ( LayoutOrientationType  orientation)
virtual

Sets paper orientation type enum. Ex.: Portrait.

Parameters
paperorientation type enum

Definition at line 134 of file PaperConfig.cpp.

Referenced by te::layout::PageSetupOutside::on_pbApply_clicked().

void te::layout::PaperConfig::setPaperSizeCustom ( double  w,
double  h 
)
virtual

Custom paper size.

Parameters
wwidth
hheight

Definition at line 144 of file PaperConfig.cpp.

void te::layout::PaperConfig::setPaperType ( LayoutAbstractPaperType  paperType)
virtual

Sets paper type enum. Ex.: A4.

Parameters
paperTypepaper type enum

Definition at line 51 of file PaperConfig.cpp.

Referenced by te::layout::PageSetupOutside::on_pbApply_clicked().

Member Data Documentation

double te::layout::PaperConfig::m_customH
protected

custom paper size height

Definition at line 115 of file PaperConfig.h.

double te::layout::PaperConfig::m_customW
protected

custom paper size width

Definition at line 114 of file PaperConfig.h.

LayoutOrientationType te::layout::PaperConfig::m_paperOrientationType
protected

paper orientation type enum. Ex.: Portrait

Definition at line 113 of file PaperConfig.h.

LayoutAbstractPaperType te::layout::PaperConfig::m_paperType
protected

paper type enum. Ex.: A4

Definition at line 112 of file PaperConfig.h.

Referenced by PaperConfig().


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