kig
GenericTextType Class Reference
#include <text_type.h>

Detailed Description
Definition at line 23 of file text_type.h.
Public Member Functions | |
| const ObjectImpType * | impRequirement (const ObjectImp *o, const Args &parents) const |
| bool | isDefinedOnOrThrough (const ObjectImp *o, const Args &parents) const |
| const ObjectImpType * | resultId () const |
| ObjectImp * | calc (const Args &parents, const KigDocument &d) const |
| std::vector< ObjectCalcer * > | sortArgs (const std::vector< ObjectCalcer * > &os) const |
| Args | sortArgs (const Args &args) const |
| bool | canMove (const ObjectTypeCalcer &ourobj) const |
| bool | isFreelyTranslatable (const ObjectTypeCalcer &ourobj) const |
| std::vector< ObjectCalcer * > | movableParents (const ObjectTypeCalcer &ourobj) const |
| const Coordinate | moveReferencePoint (const ObjectTypeCalcer &ourobj) const |
| void | move (ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &) const |
| QStringList | specialActions () const |
| void | executeAction (int i, ObjectHolder &o, ObjectTypeCalcer &c, KigPart &d, KigWidget &w, NormalMode &m) const |
| const ArgsParser & | argParser () const |
Protected Member Functions | |
| GenericTextType (const char *fulltypename) | |
| ~GenericTextType () | |
Constructor & Destructor Documentation
| GenericTextType::GenericTextType | ( | const char * | fulltypename | ) | [protected] |
| GenericTextType::~GenericTextType | ( | ) | [protected] |
Definition at line 56 of file text_type.cc.
Member Function Documentation
| const ObjectImpType * GenericTextType::impRequirement | ( | const ObjectImp * | o, | |
| const Args & | parents | |||
| ) | const [virtual] |
Supposing that parents would be given as parents to this type's calc function, this function returns the ObjectImp id that o should at least have.
( o should be part of parents )
Implements ObjectType.
Definition at line 65 of file text_type.cc.
| bool GenericTextType::isDefinedOnOrThrough | ( | const ObjectImp * | o, | |
| const Args & | parents | |||
| ) | const [virtual] |
Supposing that parents would be given as parents to this type's calc function, this function returns whether the returned ObjectImp will be, by construction, on o ( if o is a curve ), or through o ( if o is a point ).
Implements ObjectType.
Definition at line 167 of file text_type.cc.
| const ObjectImpType * GenericTextType::resultId | ( | ) | const [virtual] |
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
if the ObjectType can return different sorts of ObjectImp's, it should return the biggest common id, or ID_AnyImp.
Implements ObjectType.
Definition at line 60 of file text_type.cc.
| ObjectImp * GenericTextType::calc | ( | const Args & | parents, | |
| const KigDocument & | d | |||
| ) | const [virtual] |
| std::vector< ObjectCalcer * > GenericTextType::sortArgs | ( | const std::vector< ObjectCalcer * > & | os | ) | const [virtual] |
| bool GenericTextType::canMove | ( | const ObjectTypeCalcer & | ourobj | ) | const [virtual] |
| bool GenericTextType::isFreelyTranslatable | ( | const ObjectTypeCalcer & | ourobj | ) | const [virtual] |
| std::vector< ObjectCalcer * > GenericTextType::movableParents | ( | const ObjectTypeCalcer & | ourobj | ) | const [virtual] |
| const Coordinate GenericTextType::moveReferencePoint | ( | const ObjectTypeCalcer & | ourobj | ) | const [virtual] |
| void GenericTextType::move | ( | ObjectTypeCalcer & | ourobj, | |
| const Coordinate & | to, | |||
| const KigDocument & | d | |||
| ) | const [virtual] |
| QStringList GenericTextType::specialActions | ( | ) | const [virtual] |
return i18n'd names for the special actions.
Reimplemented from ObjectType.
Reimplemented in TextType, and NumericTextType.
Definition at line 172 of file text_type.cc.
| void GenericTextType::executeAction | ( | int | i, | |
| ObjectHolder & | o, | |||
| ObjectTypeCalcer & | t, | |||
| KigPart & | d, | |||
| KigWidget & | w, | |||
| NormalMode & | m | |||
| ) | const [virtual] |
execute the i 'th action from the specialActions above.
Reimplemented from ObjectType.
Reimplemented in TextType, and NumericTextType.
Definition at line 181 of file text_type.cc.
| const ArgsParser & GenericTextType::argParser | ( | ) | const |
Definition at line 129 of file text_type.cc.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference