kdeprint Library API Documentation

KPMarginPage Class Reference

Inheritance diagram for KPMarginPage:

Inheritance graph
[legend]
Collaboration diagram for KPMarginPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KPMarginPage (KPrinter *prt, DrMain *driver, QWidget *parent=0, const char *name=0)
 ~KPMarginPage ()
void setOptions (const QMap< QString, QString > &opts)
void getOptions (QMap< QString, QString > &opts, bool incldef=false)

Protected Member Functions

void initPageSize (const QString &, bool)

Detailed Description

Definition at line 29 of file kpmarginpage.h.


Member Function Documentation

void KPMarginPage::setOptions const QMap< QString, QString > &  opts  )  [virtual]
 

This function is called to update the current page with the options contained in opts.

Reimplement it in subclasses.

Parameters:
opts the structure containing the options to update the page

Reimplemented from KPrintDialogPage.

Definition at line 106 of file kpmarginpage.cpp.

References MarginWidget::bottom(), initPageSize(), QString::isEmpty(), MarginWidget::left(), MarginWidget::right(), MarginWidget::setBottom(), MarginWidget::setCustomEnabled(), MarginWidget::setLeft(), MarginWidget::setRight(), MarginWidget::setTop(), QString::toFloat(), and MarginWidget::top().

void KPMarginPage::getOptions QMap< QString, QString > &  opts,
bool  incldef = false
[virtual]
 

This function is called to fill the structure opts with the selected options from this dialog page.

If incldef is true, include also options with default values, otherwise discard them. Reimplement this function in subclasses.

Parameters:
opts the option set to fill
incldef if true, include also options with default values
See also:
setOptions()

Reimplemented from KPrintDialogPage.

Definition at line 147 of file kpmarginpage.cpp.

References MarginWidget::bottom(), MarginWidget::isCustomEnabled(), MarginWidget::left(), QString::number(), QMap::remove(), MarginWidget::right(), and MarginWidget::top().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeprint Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 16 07:06:47 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003