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_RECTANGLE_H__
23
#define __KILLU_RECTANGLE_H__
25
#include <qtextstream.h>
28
/***********************************************************************/
29
/* Class: Rectangle */
30
/***********************************************************************/
33
* This class hold a rectangle.
35
class Rectangle: public Element
38
double _width, _height;
45
* Creates a new instance of Rectangle.
52
* Remove the list of headers, footers and the body.
59
double getX () const { return _x; }
60
double getY () const { return _y; }
61
double getWidth () const { return _width; }
62
double getHeight () const { return _height; }
63
double getRound () const { return _rounding; }
68
void setX (double x) { _x = x; }
69
void setY (double y) { _y = y; }
70
void setWidth (double w) { _width = w; }
71
void setHeight(double h) { _height = h; }
72
void setRound (double r) { _rounding = r; }
74
void analyse(const QDomNode);
75
void analyseParam(const QDomNode);
77
void generatePSTRICKS(QTextStream&);
82
#endif /* __KILLU_RECTANGLE_H__ */