lib Library API Documentation

KoPageLayoutDia Class Reference

With this dialog the user can specify the layout of the paper during printing. More...

#include <koPageLayoutDia.h>

List of all members.

Public Slots

void widthChanged ()
void heightChanged ()
void leftChanged ()
void rightChanged ()
void topChanged ()
void bottomChanged ()

Public Member Functions

 KoPageLayoutDia (QWidget *parent, const char *name, const KoPageLayout &layout, const KoHeadFoot &headfoot, int tabs, KoUnit::Unit unit, bool modal=true)
 KoPageLayoutDia (QWidget *parent, const char *name, const KoPageLayout &layout, const KoHeadFoot &headfoot, const KoColumns &columns, const KoKWHeaderFooter &kwheadfoot, int tabs, KoUnit::Unit unit)
 ~KoPageLayoutDia ()
KoPageLayout getLayout ()
KoHeadFoot getHeadFoot ()
KoUnit::Unit unit () const

Static Public Member Functions

bool pageLayout (KoPageLayout &, KoHeadFoot &, int tabs, KoUnit::Unit &unit)
bool pageLayout (KoPageLayout &, KoHeadFoot &, KoColumns &, KoKWHeaderFooter &, int tabs, KoUnit::Unit &unit)
KoPageLayout standardLayout ()

Protected Slots

virtual void slotOk ()

Protected Member Functions

KoColumns getColumns ()
KoKWHeaderFooter getKWHeaderFooter ()
void setupTab1 ()
void setValuesTab1 ()
void setValuesTab1Helper ()
void setupTab2 ()
void setupTab3 ()
void setupTab4 ()
void updatePreview (const KoPageLayout &)

Protected Attributes

QComboBoxcpgFormat
QComboBoxcpgUnit
QRadioButtonrbPortrait
QRadioButtonrbLandscape
KDoubleNumInput * epgWidth
KDoubleNumInput * epgHeight
KDoubleNumInput * ebrLeft
KDoubleNumInput * ebrRight
KDoubleNumInput * ebrTop
KDoubleNumInput * ebrBottom
KoPagePreviewpgPreview
KoPagePreviewpgPreview2
QLineEditeHeadLeft
QLineEditeHeadMid
QLineEditeHeadRight
QLineEditeFootLeft
QLineEditeFootMid
QLineEditeFootRight
QSpinBoxnColumns
KDoubleNumInput * nCSpacing
KDoubleNumInput * nHSpacing
KDoubleNumInput * nFSpacing
KDoubleNumInput * nFNSpacing
QCheckBoxrhSame_unused
QCheckBoxrhFirst
QCheckBoxrhEvenOdd
QCheckBoxrfSame_unused
QCheckBoxrfFirst
QCheckBoxrfEvenOdd
KoPageLayout layout
KoHeadFoot hf
KoColumns cl
KoKWHeaderFooter kwhf
KoUnit::Unit m_unit
bool retPressed
bool enableBorders
int flags


Detailed Description

With this dialog the user can specify the layout of the paper during printing.

Definition at line 90 of file koPageLayoutDia.h.


Constructor & Destructor Documentation

KoPageLayoutDia::KoPageLayoutDia QWidget parent,
const char *  name,
const KoPageLayout layout,
const KoHeadFoot headfoot,
int  tabs,
KoUnit::Unit  unit,
bool  modal = true
 

Constructor.

Parameters:
parent The parent of the dialog.
name The name of the dialog.
layout The layout.
headfoot The header and the footer.
tabs The number of tabs.
unit The unit to use for displaying the values to the user

Definition at line 117 of file koPageLayoutDia.cc.

References KoColumns::columns, and KoPageLayoutDia().

Referenced by KoPageLayoutDia().

KoPageLayoutDia::KoPageLayoutDia QWidget parent,
const char *  name,
const KoPageLayout layout,
const KoHeadFoot headfoot,
const KoColumns columns,
const KoKWHeaderFooter kwheadfoot,
int  tabs,
KoUnit::Unit  unit
 

Constructor.

Parameters:
parent The parent of the dialog.
name The name of the dialog.
layout The layout.
headfoot The header and the footer.
columns The number of columns on the page.
kwheadfoot The KWord header and footer.
tabs The number of tabs.
unit The unit to use for displaying the values to the user

Definition at line 147 of file koPageLayoutDia.cc.

References KoPageLayoutDia().

KoPageLayoutDia::~KoPageLayoutDia  ) 
 

Destructor.

Definition at line 181 of file koPageLayoutDia.cc.


Member Function Documentation

bool KoPageLayoutDia::pageLayout KoPageLayout ,
KoHeadFoot ,
int  tabs,
KoUnit::Unit &  unit
[static]
 

Show page layout dialog.

See constructor for documentation on the parameters

Definition at line 186 of file koPageLayoutDia.cc.

References getHeadFoot(), getLayout(), pageLayout(), and unit().

Referenced by pageLayout().

bool KoPageLayoutDia::pageLayout KoPageLayout ,
KoHeadFoot ,
KoColumns ,
KoKWHeaderFooter ,
int  tabs,
KoUnit::Unit &  unit
[static]
 

Show page layout dialog.

See constructor for documentation on the parameters

Definition at line 204 of file koPageLayoutDia.cc.

References getColumns(), getHeadFoot(), getKWHeaderFooter(), getLayout(), pageLayout(), and unit().

KoPageLayout KoPageLayoutDia::standardLayout  )  [static]
 

Retrieves a standard page layout.

Definition at line 225 of file koPageLayoutDia.cc.

References KoPageLayout::format, KoPageLayout::orientation, KoPageLayout::ptBottom, KoPageLayout::ptHeight, KoPageLayout::ptLeft, KoPageLayout::ptRight, KoPageLayout::ptTop, and KoPageLayout::ptWidth.

KoPageLayout KoPageLayoutDia::getLayout  )  [inline]
 

Returns the layout.

Definition at line 155 of file koPageLayoutDia.h.

Referenced by pageLayout().

KoHeadFoot KoPageLayoutDia::getHeadFoot  ) 
 

Returns the header and footer information.

Definition at line 241 of file koPageLayoutDia.cc.

References KoHeadFoot::footLeft, KoHeadFoot::footMid, KoHeadFoot::footRight, KoHeadFoot::headLeft, KoHeadFoot::headMid, and KoHeadFoot::headRight.

Referenced by pageLayout().

KoUnit::Unit KoPageLayoutDia::unit  )  const [inline]
 

Returns the unit.

Definition at line 165 of file koPageLayoutDia.h.

Referenced by pageLayout().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:22 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003