~ubuntu-branches/ubuntu/warty/koffice/warty

« back to all changes in this revision

Viewing changes to filters/kontour/latex/rectangle.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
** Header file for inclusion with kword_xml2latex.c
3
 
**
4
 
** Copyright (C) 2000 Robert JACOLIN
5
 
**
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.
10
 
**
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.
15
 
**
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.
19
 
**
20
 
*/
21
 
 
22
 
#ifndef __KILLU_RECTANGLE_H__
23
 
#define __KILLU_RECTANGLE_H__
24
 
 
25
 
#include <qtextstream.h>
26
 
#include "element.h"
27
 
 
28
 
/***********************************************************************/
29
 
/* Class: Rectangle                                                    */
30
 
/***********************************************************************/
31
 
 
32
 
/**
33
 
 * This class hold a rectangle.
34
 
 */
35
 
class Rectangle: public Element
36
 
{
37
 
        double _x, _y;
38
 
        double _width, _height;
39
 
        double _rounding;
40
 
 
41
 
        public:
42
 
                /**
43
 
                 * Constructor
44
 
                 *
45
 
                 * Creates a new instance of Rectangle.
46
 
                 */
47
 
                Rectangle();
48
 
 
49
 
                /**
50
 
                 * Destructor
51
 
                 *
52
 
                 * Remove the list of headers, footers and the body.
53
 
                 */
54
 
                virtual ~Rectangle();
55
 
 
56
 
                /**
57
 
                 * Accessors
58
 
                 */
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;      }
64
 
 
65
 
                /**
66
 
                 * Modifiors
67
 
                 */
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;      }
73
 
 
74
 
                void  analyse(const QDomNode);
75
 
                void  analyseParam(const QDomNode);
76
 
 
77
 
                void  generatePSTRICKS(QTextStream&);
78
 
 
79
 
        private:
80
 
};
81
 
 
82
 
#endif /* __KILLU_RECTANGLE_H__ */