lib Library API Documentation

KoPageLayout Struct Reference

This structure defines the page layout, including its size in pt, its format (e.g. More...

#include <koPageLayout.h>

List of all members.

Public Member Functions

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

Static Public Member Functions

static KOFFICECORE_EXPORT
KoPageLayout 
standardLayout ()

Public Attributes

KoFormat format
KoOrientation orientation
double ptWidth
double ptHeight
double ptLeft
double ptRight
double ptTop
double ptBottom


Detailed Description

This structure defines the page layout, including its size in pt, its format (e.g.

A4), orientation, unit, margins etc.

Definition at line 160 of file koPageLayout.h.


Member Function Documentation

KoGenStyle KoPageLayout::saveOasis  )  const
 

Save this page layout to OASIS.

Definition at line 47 of file koPageLayout.cpp.

References KoGenStyle::addProperty(), KoGenStyle::addPropertyPt(), orientation, ptBottom, ptHeight, ptLeft, ptRight, ptTop, and ptWidth.

void KoPageLayout::loadOasis const QDomElement style  ) 
 

Load this page layout from OASIS.

Definition at line 60 of file koPageLayout.cpp.

References format, KoDom::namedItemNS(), orientation, KoUnit::parseValue(), ptBottom, ptHeight, ptLeft, ptRight, ptTop, and ptWidth.

KoPageLayout KoPageLayout::standardLayout  )  [static]
 

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

Definition at line 83 of file koPageLayout.cpp.

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

Referenced by KoPageLayoutDia::standardLayout().


Member Data Documentation

KoFormat KoPageLayout::format
 

Page format.

Definition at line 163 of file koPageLayout.h.

Referenced by loadOasis(), and standardLayout().

KoOrientation KoPageLayout::orientation
 

Page orientation.

Definition at line 165 of file koPageLayout.h.

Referenced by loadOasis(), saveOasis(), and standardLayout().

double KoPageLayout::ptWidth
 

Page width in pt.

Definition at line 168 of file koPageLayout.h.

Referenced by KoDocument::generatePreview(), KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().

double KoPageLayout::ptHeight
 

Page height in pt.

Definition at line 170 of file koPageLayout.h.

Referenced by KoDocument::generatePreview(), KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().

double KoPageLayout::ptLeft
 

Left margin in pt.

Definition at line 172 of file koPageLayout.h.

Referenced by KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().

double KoPageLayout::ptRight
 

Right margin in pt.

Definition at line 174 of file koPageLayout.h.

Referenced by KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().

double KoPageLayout::ptTop
 

Top margin in pt.

Definition at line 176 of file koPageLayout.h.

Referenced by KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().

double KoPageLayout::ptBottom
 

Bottom margin in pt.

Definition at line 178 of file koPageLayout.h.

Referenced by KoDocument::KoDocument(), loadOasis(), saveOasis(), KoPagePreview::setPageLayout(), and standardLayout().


The documentation for this struct was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:41:06 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003