richtextnodecontent.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef RICHTEXTNODECONTENT_H
00022 #define RICHTEXTNODECONTENT_H
00023
00024 #include "src/data/node/abstractnodecontent.h"
00025
00026
00034 class RichTextNodeContent : public AbstractNodeContent
00035 {
00036 Q_OBJECT
00037
00038 public:
00043 RichTextNodeContent();
00044
00049 ~RichTextNodeContent();
00050
00051 AbstractContentView* getWidget();
00052 QHash<QString, QString>* getMetaInfos();
00053 void addMetaInfo(QString key, QString value);
00054 QString getMimeType();
00055 bool contains(const QString& value);
00056
00062 void setText(QString text);
00063
00069 QString getText() const;
00070
00071 QDomElement getXmlData(QDomDocument &doc);
00072 void setXmlData(QDomElement &xmlNode);
00073
00074 QPixmap getPixmap();
00075 QIcon getIcon();
00076
00077 QString toString();
00078
00079 signals:
00083 void changed();
00084
00085 private:
00086 QHash<QString, QString> *metaInfos;
00087 QString text;
00088 QIcon icon;
00089
00090 };
00091
00092 #endif // RICHTEXTNODECONTENT_H
00093
00094