1
// Copyright (C) 2002 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., 51 Franklin Street, Fifth Floor, Boston, MA
18
#ifndef KIG_OBJECTS_LINE_TYPE_H
19
#define KIG_OBJECTS_LINE_TYPE_H
21
#include "base_type.h"
31
static const SegmentABType* instance();
33
ObjectImp* calcx( const Coordinate& a, const Coordinate& b ) const;
34
const ObjectImpType* resultId() const;
36
QStringList specialActions() const;
38
* execute the \p i 'th action from the specialActions above.
40
void executeAction( int i, ObjectHolder& o, ObjectTypeCalcer& c,
41
KigPart& d, KigWidget& w, NormalMode& m ) const;
50
static const LineABType* instance();
51
ObjectImp* calcx( const Coordinate& a, const Coordinate& b ) const;
52
const ObjectImpType* resultId() const;
61
static const RayABType* instance();
62
ObjectImp* calcx( const Coordinate& a, const Coordinate& b ) const;
63
const ObjectImpType* resultId() const;
66
class LinePerpendLPType
72
static LinePerpendLPType* instance();
73
ObjectImp* calc( const LineData& a, const Coordinate& b ) const;
74
const ObjectImpType* resultId() const;
77
class LineParallelLPType
81
~LineParallelLPType();
83
static LineParallelLPType* instance();
84
ObjectImp* calc( const LineData& a, const Coordinate& b ) const;
85
const ObjectImpType* resultId() const;
88
class LineByVectorType
89
: public ArgsParserObjectType
94
static const LineByVectorType* instance();
95
ObjectImp* calc( const Args& args, const KigDocument& ) const;
96
const ObjectImpType* resultId() const;
99
class HalflineByVectorType
100
: public ArgsParserObjectType
102
HalflineByVectorType();
103
~HalflineByVectorType();
105
static const HalflineByVectorType* instance();
106
ObjectImp* calc( const Args& args, const KigDocument& ) const;
107
const ObjectImpType* resultId() const;