CPrintLabel Class Reference

#include <formprint.h>

List of all members.

Public Slots

void slotPagePrev ()
void slotPageNext ()

Public Member Functions

 CPrintLabel (CFormPrint *form)
int getPage ()
void setPage (int page)

Protected Member Functions

void resizeEvent (QResizeEvent *event)
void paintEvent (QPaintEvent *event)

Protected Attributes

int page
CFormPrintform
bool resizing


Detailed Description

A print preview label.

Definition at line 33 of file formprint.h.


Constructor & Destructor Documentation

CPrintLabel::CPrintLabel ( CFormPrint frm  ) 

Construct a new print preview label.

Parameters:
frm the parent print form

Definition at line 37 of file formprint.cpp.

References form, and CFormPrint::printDevice.


Member Function Documentation

int CPrintLabel::getPage (  )  [inline]

Get the current page.

Definition at line 40 of file formprint.h.

References page.

void CPrintLabel::setPage ( int  p  ) 

Set the current page.

Parameters:
p new the page

Definition at line 102 of file formprint.cpp.

References form, CFormPrint::labelPage, page, CPrinter::pages(), and CFormPrint::printEngine.

Referenced by CFormPrint::CFormPrint(), slotPageNext(), and slotPagePrev().

void CPrintLabel::slotPagePrev (  )  [slot]

Display the previous page.

Definition at line 115 of file formprint.cpp.

References page, and setPage().

void CPrintLabel::slotPageNext (  )  [slot]

Display the next page.

Definition at line 123 of file formprint.cpp.

References page, and setPage().

void CPrintLabel::resizeEvent ( QResizeEvent *  event  )  [protected]

Receive a resize event.

Definition at line 76 of file formprint.cpp.

References form, CFormPrint::printDevice, and resizing.

void CPrintLabel::paintEvent ( QPaintEvent *  event  )  [protected]

Print the current page.

Definition at line 60 of file formprint.cpp.

References form, page, CPrinter::print(), CFormPrint::printDevice, CFormPrint::printEngine, and CFormPrint::printFontSize.


Member Data Documentation

int CPrintLabel::page [protected]

the current page number

Definition at line 55 of file formprint.h.

Referenced by getPage(), paintEvent(), setPage(), slotPageNext(), and slotPagePrev().

the print preview form

Definition at line 57 of file formprint.h.

Referenced by CPrintLabel(), paintEvent(), resizeEvent(), and setPage().

bool CPrintLabel::resizing [protected]

is the label currently being resized?

Definition at line 59 of file formprint.h.

Referenced by resizeEvent().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6