Référence de la structure KoPageLayout

#include <KoPageLayout.h>

Liste de tous les membres

Fonctions membres publiques

bool operator== (const KoPageLayout &l) const
bool operator!= (const KoPageLayout &l) const
KOFFICECORE_EXPORT KoGenStyle saveOasis () const
KOFFICECORE_EXPORT void loadOasis (const KoXmlElement &style)

Fonctions membres publiques statiques

static KOFFICECORE_EXPORT
KoPageLayout 
standardLayout ()

Attributs publics

KoFormat format
KoOrientation orientation
double ptWidth
double ptHeight
double ptLeft
double ptRight
double ptTop
double ptBottom
double ptPageEdge
 margin on page edge
double ptBindingSide
 margin on page-binding edge


Description détaillée

This structure defines the page layout, including its size in pt, its format (e.g. A4), orientation, unit, margins etc.

Définition à la ligne 162 du fichier KoPageLayout.h.


Documentation des fonctions membres

bool KoPageLayout::operator== ( const KoPageLayout l  )  const [inline]

Définition à la ligne 186 du fichier KoPageLayout.h.

Références ptBindingSide, ptBottom, ptHeight, ptLeft, ptPageEdge, ptRight, ptTop, et ptWidth.

bool KoPageLayout::operator!= ( const KoPageLayout l  )  const [inline]

Définition à la ligne 196 du fichier KoPageLayout.h.

KoGenStyle KoPageLayout::saveOasis (  )  const

Save this page layout to OASIS.

Définition à la ligne 47 du fichier KoPageLayout.cpp.

Références KoGenStyle::addProperty(), KoGenStyle::addPropertyPt(), orientation, PG_LANDSCAPE, ptBottom, ptHeight, ptLeft, ptRight, ptTop, ptWidth, et KoGenStyle::STYLE_PAGELAYOUT.

Voici le graphe d'appel pour cette fonction :

void KoPageLayout::loadOasis ( const KoXmlElement style  ) 

Load this page layout from OASIS

Définition à la ligne 60 du fichier KoPageLayout.cpp.

Références KoXmlNS::fo, format, KoPageFormat::guessFormat(), KoDom::namedItemNS(), orientation, KoUnit::parseValue(), PG_LANDSCAPE, PG_PORTRAIT, POINT_TO_MM, ptBottom, ptHeight, ptLeft, ptRight, ptTop, ptWidth, et KoXmlNS::style.

Voici le graphe d'appel pour cette fonction :

KoPageLayout KoPageLayout::standardLayout (  )  [static]

Renvoie:
a page layout with the default page size depending on the locale settings, default margins (2 cm), and portrait orientation.
Depuis:
1.4

Définition à la ligne 83 du fichier KoPageLayout.cpp.

Références KoPageFormat::defaultFormat(), format, KoPageFormat::height(), MM_TO_POINT, orientation, PG_PORTRAIT, ptBindingSide, ptBottom, ptHeight, ptLeft, ptPageEdge, ptRight, ptTop, ptWidth, et KoPageFormat::width().

Référencé par KoPageLayoutDia::standardLayout().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KoFormat KoPageLayout::format

Page format

Définition à la ligne 165 du fichier KoPageLayout.h.

Référencé par KoPageLayoutSize::formatChanged(), KoPageLayoutSize::KoPageLayoutSize(), loadOasis(), KoPageLayoutSize::setValues(), KoPageLayoutDia::sizeUpdated(), et standardLayout().

KoOrientation KoPageLayout::orientation

Page orientation

Définition à la ligne 167 du fichier KoPageLayout.h.

Référencé par KoPageLayoutSize::formatChanged(), loadOasis(), KoPageLayoutSize::orientationChanged(), saveOasis(), KoPageLayoutSize::setValues(), KoPageLayoutDia::sizeUpdated(), et standardLayout().

double KoPageLayout::ptWidth

Page width in pt

Définition à la ligne 170 du fichier KoPageLayout.h.

Référencé par KoPageLayoutSize::formatChanged(), KoDocument::generatePreview(), KoDocument::KoDocument(), KoPageLayoutColumns::KoPageLayoutColumns(), loadOasis(), KoGuides::moveSelectedBy(), operator==(), KoGuides::paintGuides(), KoPageLayoutSize::queryClose(), saveOasis(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), KoPagePreview::updateZoomedSize(), et KoPageLayoutSize::widthChanged().

double KoPageLayout::ptHeight

Page height in pt

Définition à la ligne 172 du fichier KoPageLayout.h.

Référencé par KoPageLayoutSize::formatChanged(), KoDocument::generatePreview(), KoPageLayoutSize::heightChanged(), KoDocument::KoDocument(), loadOasis(), KoGuides::moveSelectedBy(), operator==(), KoGuides::paintGuides(), KoPageLayoutSize::queryClose(), saveOasis(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), et KoPagePreview::updateZoomedSize().

double KoPageLayout::ptLeft

Left margin in pt

Définition à la ligne 174 du fichier KoPageLayout.h.

Référencé par KoDocument::KoDocument(), KoPageLayoutSize::leftChanged(), loadOasis(), operator==(), KoPageLayoutSize::queryClose(), saveOasis(), KoPageLayoutSize::setEnableBorders(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), et KoPagePreview::updateZoomedSize().

double KoPageLayout::ptRight

Right margin in pt

Définition à la ligne 176 du fichier KoPageLayout.h.

Référencé par KoDocument::KoDocument(), loadOasis(), operator==(), KoPageLayoutSize::queryClose(), KoPageLayoutSize::rightChanged(), saveOasis(), KoPageLayoutSize::setEnableBorders(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), et KoPagePreview::updateZoomedSize().

double KoPageLayout::ptTop

Top margin in pt

Définition à la ligne 178 du fichier KoPageLayout.h.

Référencé par KoDocument::KoDocument(), loadOasis(), operator==(), KoPageLayoutSize::queryClose(), saveOasis(), KoPageLayoutSize::setEnableBorders(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), KoPageLayoutSize::topChanged(), et KoPagePreview::updateZoomedSize().

double KoPageLayout::ptBottom

Bottom margin in pt

Définition à la ligne 180 du fichier KoPageLayout.h.

Référencé par KoPageLayoutSize::bottomChanged(), KoDocument::KoDocument(), loadOasis(), operator==(), KoPageLayoutSize::queryClose(), saveOasis(), KoPageLayoutSize::setEnableBorders(), KoPageLayoutSize::setUnit(), KoPageLayoutDia::sizeUpdated(), standardLayout(), et KoPagePreview::updateZoomedSize().

double KoPageLayout::ptPageEdge

margin on page edge

Définition à la ligne 182 du fichier KoPageLayout.h.

Référencé par operator==(), et standardLayout().

double KoPageLayout::ptBindingSide

margin on page-binding edge

Définition à la ligne 184 du fichier KoPageLayout.h.

Référencé par operator==(), et standardLayout().


La documentation de cette structure a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:46:57 2006 pour KPlato par  doxygen 1.5.1-p1