~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to filters/kontour/latex/ellipse.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_ELLIPSE_H__
23
 
#define __KILLU_ELLIPSE_H__
24
 
 
25
 
#include <qtextstream.h>
26
 
#include "element.h"
27
 
 
28
 
enum EKind
29
 
{
30
 
        EK_FULL,
31
 
        EK_ARC,
32
 
        EK_PIE
33
 
};
34
 
 
35
 
/***********************************************************************/
36
 
/* Class: Ellipse                                                      */
37
 
/***********************************************************************/
38
 
 
39
 
/**
40
 
 * This class hold a ellipse.
41
 
 */
42
 
class Ellipse: public Element
43
 
{
44
 
        double _x, _y;
45
 
        double _rx, _ry;
46
 
        double _angle1, _angle2;
47
 
        EKind  _kind;
48
 
 
49
 
        public:
50
 
                /**
51
 
                 * Constructor
52
 
                 *
53
 
                 * Creates a new instance of Ellipse.
54
 
                 */
55
 
                Ellipse();
56
 
 
57
 
                /**
58
 
                 * Destructor
59
 
                 *
60
 
                 */
61
 
                virtual ~Ellipse();
62
 
 
63
 
                /**
64
 
                 * Accessors
65
 
                 */
66
 
                EKind    getKind  () const { return _kind;   }
67
 
                double   getX     () const { return _x;      }
68
 
                double   getY     () const { return _y;      }
69
 
                double   getRx    () const { return _rx;     }
70
 
                double   getRy    () const { return _ry;     }
71
 
                double   getAngle1() const { return _angle1; }
72
 
                double   getAngle2() const { return _angle2; }
73
 
 
74
 
                /**
75
 
                 * Modifiors
76
 
                 */
77
 
                void setKind  (int k)     { _kind   = (EKind) k; }
78
 
                void setX     (double x)  { _x      = x;         }
79
 
                void setY     (double y)  { _y      = y;         }
80
 
                void setRx    (double rx) { _rx     = rx;        }
81
 
                void setRy    (double ry) { _ry     = ry;        }
82
 
                void setAngle1(double a)  { _angle1 = a;         }
83
 
                void setAngle2(double a)  { _angle2 = a;         }
84
 
 
85
 
                void  analyse(const QDomNode);
86
 
 
87
 
                void  generatePSTRICKS(QTextStream&);
88
 
 
89
 
        private:
90
 
};
91
 
 
92
 
#endif /* __KILLU_ELLIPSE_H__ */