2
** Header file for inclusion with kword_xml2latex.c
4
** Copyright (C) 2000 Robert JACOLIN
6
** This library is free software; you can redistribute it and/or
7
** modify it under the terms of the GNU Library General Public
8
** License as published by the Free Software Foundation; either
9
** version 2 of the License, or (at your option) any later version.
11
** This library is distributed in the hope that it will be useful,
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
** Library General Public License for more details.
16
** To receive a copy of the GNU Library General Public License, write to the
17
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
** Boston, MA 02111-1307, USA.
22
#ifndef __KILLU_PAGE_H__
23
#define __KILLU_PAGE_H__
25
#include <qtextstream.h>
26
#include "xmlparser.h"
49
/***********************************************************************/
51
/***********************************************************************/
54
* This class hold a whole document with its rectangles, layers, ...
55
* It can generate a latex file (with pstricks extension).
57
class Page: public XmlParser
75
* Creates a new instance of Document.
82
* Remove the list of headers, footers and the body.
89
TFormat getFormat () const { return _format; }
90
TOrient getOrientation () const { return _orientation; }
91
double getHeight () const { return _height; }
92
double getWidth () const { return _width; }
93
double getRightMargin () const { return _rightMargin; }
94
double getLeftMargin () const { return _leftMargin; }
95
double getTopMargin () const { return _topMargin; }
96
double getBottomMargin () const { return _bottomMargin; }
102
void setHeight (double h) { _height = h; }
103
void setWidth (double w) { _width = w; }
104
void setRightMargin (double rm) { _rightMargin = rm; }
105
void setLeftMargin (double lm) { _leftMargin = lm; }
106
void setTopMargin (double tm) { _topMargin = tm; }
107
void setBottomMargin(double bm) { _bottomMargin = bm; }
108
void setFormat (int f) { _format = (TFormat) f; }
109
void setOrientation (int o) { _orientation = (TOrient) o; }
111
void analyse(const QDomNode);
112
void analyseLayout(const QDomNode);
114
void generatePSTRICKS(QTextStream&);
119
#endif /* __KILLU_PAGE_H__ */