1 // Copyright (C) 2003 Dominique Devriese <devriese@kde.org>
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 #ifndef KIG_OBJECTS_CONIC_TYPES_H
19 #define KIG_OBJECTS_CONIC_TYPES_H
21 #include "base_type.h"
24 : public ArgsParserObjectType
29 static const ConicB5PType
* instance();
30 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
31 const ObjectImpType
* resultId() const;
35 : public ArgsParserObjectType
40 static const ConicBAAPType
* instance();
41 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
42 const ObjectImpType
* resultId() const;
46 : public ArgsParserObjectType
49 ConicBFFPType( const char* fullname
, const ArgsParser::spec
*, int n
);
52 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
54 // -1 for hyperbola, 1 for ellipse..
55 virtual int type() const = 0;
56 const ObjectImpType
* resultId() const;
60 : public ConicBFFPType
65 static const EllipseBFFPType
* instance();
69 class HyperbolaBFFPType
70 : public ConicBFFPType
75 static const HyperbolaBFFPType
* instance();
80 : public ArgsParserObjectType
85 static const ConicBDFPType
* instance();
86 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
87 const ObjectImpType
* resultId() const;
91 : public ArgsParserObjectType
96 static const ParabolaBTPType
* instance();
97 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
98 const ObjectImpType
* resultId() const;
101 class EquilateralHyperbolaB4PType
102 : public ArgsParserObjectType
104 EquilateralHyperbolaB4PType();
105 ~EquilateralHyperbolaB4PType();
107 static const EquilateralHyperbolaB4PType
* instance();
108 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
109 const ObjectImpType
* resultId() const;
112 class ConicPolarPointType
113 : public ArgsParserObjectType
115 ConicPolarPointType();
116 ~ConicPolarPointType();
118 static const ConicPolarPointType
* instance();
119 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
120 const ObjectImpType
* resultId() const;
123 class ConicPolarLineType
124 : public ArgsParserObjectType
126 ConicPolarLineType();
127 ~ConicPolarLineType();
129 static const ConicPolarLineType
* instance();
130 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
131 const ObjectImpType
* resultId() const;
134 class ConicDirectrixType
135 : public ArgsParserObjectType
137 ConicDirectrixType();
138 ~ConicDirectrixType();
140 static const ConicDirectrixType
* instance();
141 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
142 const ObjectImpType
* resultId() const;
145 class ParabolaBDPType
146 : public ObjectLPType
151 static const ParabolaBDPType
* instance();
152 ObjectImp
* calc( const LineData
& l
, const Coordinate
& c
) const;
153 const ObjectImpType
* resultId() const;
156 class ConicAsymptoteType
157 : public ArgsParserObjectType
159 ConicAsymptoteType();
160 ~ConicAsymptoteType();
162 static const ConicAsymptoteType
* instance();
163 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
164 const ObjectImpType
* resultId() const;
167 class ConicRadicalType
168 : public ArgsParserObjectType
173 static const ConicRadicalType
* instance();
174 ObjectImp
* calc( const Args
& parents
, const KigDocument
& ) const;
175 const ObjectImpType
* resultId() const;
176 QStringList
specialActions() const;
177 void executeAction( int i
, ObjectHolder
& o
, ObjectTypeCalcer
& t
,
178 KigPart
& d
, KigWidget
& w
, NormalMode
& m
) const;