25#include <KoGenStyles.h>
26#include <tqstringlist.h>
27#include <koffice_export.h>
70 PG_LAST_FORMAT = PG_US_TABLOID
93 KOFFICECORE_EXPORT int printerPageSize( KoFormat format );
99 KOFFICECORE_EXPORT double width( KoFormat format, KoOrientation orientation );
105 KOFFICECORE_EXPORT double height( KoFormat format, KoOrientation orientation );
111 KOFFICECORE_EXPORT TQString formatString( KoFormat format );
117 KOFFICECORE_EXPORT KoFormat formatFromString( const TQString & string );
122 KOFFICECORE_EXPORT KoFormat defaultFormat();
128 KOFFICECORE_EXPORT TQString name( KoFormat format );
133 KOFFICECORE_EXPORT TQStringList allFormats();
139 KOFFICECORE_EXPORT KoFormat guessFormat( double width, double height );
151 HF_FIRST_EO_DIFF = 1,
180 double ptBindingSide;
189 ptPageEdge == l.ptPageEdge &&
190 ptBindingSide == l.ptBindingSide);
193 return !( (*this) == l );
204 KOFFICECORE_EXPORT void loadOasis( const TQDomElement &style);
229 double ptColumnSpacing;
230 bool operator==( const KoColumns& rhs ) const {
231 return columns == rhs.columns &&
232 TQABS(ptColumnSpacing - rhs.ptColumnSpacing) <= 1E-10;
234 bool operator!=( const KoColumns& rhs ) const {
235 return columns != rhs.columns ||
236 TQABS(ptColumnSpacing - rhs.ptColumnSpacing) > 1E-10;
245 double ptHeaderBodySpacing;
246 double ptFooterBodySpacing;
247 double ptFootNoteBodySpacing;
249 return header == rhs.header && footer == rhs.footer &&
250 TQABS(ptHeaderBodySpacing - rhs.ptHeaderBodySpacing) <= 1E-10 &&
251 TQABS(ptFooterBodySpacing - rhs.ptFooterBodySpacing) <= 1E-10 &&
252 TQABS(ptFootNoteBodySpacing - rhs.ptFootNoteBodySpacing) <= 1E-10;
255 return !( * this == rhs );
const char * name(StdAction id)
This structure defines the page layout, including its size in pt, its format (e.g.
KoFormat format Page format.
double ptRight Right margin in pt.
double ptHeight Page height in pt.
KOFFICECORE_EXPORT void loadOasis(const TQDomElement &style) Load this page layout from OASIS.
KoOrientation orientation Page orientation.
double ptLeft Left margin in pt.
double ptBottom Bottom margin in pt.
double ptWidth Page width in pt.
static KOFFICECORE_EXPORT KoPageLayout standardLayout()
KOFFICECORE_EXPORT KoGenStyle saveOasis() const Save this page layout to OASIS.
double ptTop Top margin in pt.
|