kig
native-filter.cc
Go to the documentation of this file.
408 for ( QDomElement subsectionelement = docelem.firstChild().toElement(); ! subsectionelement.isNull();
static const ObjectImpFactory * instance()
Definition: object_imp_factory.cc:37
void setCodec(QTextCodec *codec)
QString cap(int nth) const
static CoordinateSystem * build(int which)
Definition: coordinate_system.cpp:535
a CoordinateSystem is what the user sees: it is kept by KigPart to show the user a grid...
Definition: coordinate_system.h:60
bool supportMime(const QString &mime)
can the filter handle the mimetype mime ?
Definition: native-filter.cc:103
bool save(const KigDocument &data, const QString &file)
Definition: native-filter.cc:728
QDomNode appendChild(const QDomNode &newChild)
QString pointStyleToString() const
return pointStyle transformed in a string
Definition: object_drawer.cc:184
QString name() const
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
static std::vector< HierElem > sortElems(const std::vector< HierElem > elems)
Definition: native-filter.cc:86
bool shown() const
returns whether the object this ObjectDrawer is responsible for will be drawn or not.
Definition: object_drawer.cc:52
QString attribute(const QString &name, const QString &defValue) const
bool remove()
static void visitElem(std::vector< HierElem > &ret, const std::vector< HierElem > &elems, std::vector< bool > &seen, int i)
Definition: native-filter.cc:72
const T & at(int i) const
int size() const
void setFileName(const QString &name)
std::vector< ObjectCalcer * > getAllCalcers(const std::vector< ObjectHolder * > &os)
get the calcers that the holders represent and their namecalcers
Definition: common.cc:21
QDomElement documentElement() const
void addObjects(const std::vector< ObjectHolder * > &os)
Add the objects os to the document.
Definition: kig_document.cc:143
bool exists() const
QString & remove(int position, int n)
virtual const QByteArrayList propertiesInternalNames() const
Definition: object_imp.cc:63
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
bool isNull() const
QDomNode nextSibling() const
int indexOf(const T &value, int from) const
QDomElement toElement() const
void setCoordinateSystem(CoordinateSystem *s)
sets the coordinate system to s , and deletes the old one.
Definition: kig_document.cc:56
QString number(int n, int base)
int count(const T &value) const
static void extendVect(std::vector< HierElem > &vect, uint size)
Definition: native-filter.cc:61
std::vector< ObjectCalcer * > getAllParents(const std::vector< ObjectCalcer * > &objs)
This function returns all objects above the given in the dependency graph.
Definition: calcpaths.cc:229
std::vector< ObjectCalcer * > calcPath(const std::vector< ObjectCalcer * > &os)
This function sorts os such that they're in the right order for calc()-ing.
Definition: calcpaths.cc:48
QString text() const
bool fromString(const QString &descrip)
void parseError(const QString &file, const QString &explanation=QString()) const
Definition: filter.cc:79
void setAttribute(const QString &name, const QString &value)
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
int toInt(bool *ok, int base) const
ObjectImp * deserialize(const QString &type, const QDomElement &parent, QString &error) const
loads data from parent , and returns a new ObjectImp from the type string type .
Definition: object_imp_factory.cc:288
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool isEmpty() const
static ObjectTypeFactory * instance()
Definition: object_type_factory.cc:50
void notSupported(const QString &file, const QString &explanation) const
Definition: filter.cc:92
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual void calc(const KigDocument &)=0
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
This is an ObjectCalcer that has a single parent, and gets a certain property from it in its calc() m...
Definition: object_calcer.h:276
const std::vector< ObjectHolder * > objects() const
Get a hold of the objects of this KigDocument.
Definition: kig_document.cc:46
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
virtual void close()
static int pointStyleFromString(const QString &style)
Note that this returns a valid point style in every case, even if the given style string is unknown...
Definition: object_drawer.cc:169
QString serialize(const ObjectImp &d, QDomElement &parent, QDomDocument &doc) const
adds data to parent , and returns a type string.
Definition: object_imp_factory.cc:79
bool isNull() const
KigDocument * load(const QString &file)
load file fromfile and build a KigDocument from it.
Definition: native-filter.cc:108
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
static Qt::PenStyle styleFromString(const QString &style)
Note that this returns a valid style in every case, even if the given style string is unknown...
Definition: object_drawer.cc:200
QDomNode firstChild() const
QByteArray toLatin1() const
QString toString() const
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
char * data()
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
QString fromLatin1(const char *str, int size)
QColor color() const
returns the color that the object will be drawn in
Definition: object_drawer.cc:57
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
QString tagName() const
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
virtual const char * type() const =0
bool exactMatch(const QString &str) const
const ObjectType * find(const char *name) const
Definition: object_type_factory.cc:62
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.