11 /*! \brief base class for headings of branches and vymnotes */
13 class VymText : public XMLObj {
15 enum TextMode { AutoText, PlainText, RichText };
17 VymText(const VymText &vt);
18 VymText(const QString &s);
19 bool operator==(const VymText &other);
20 void operator=(const VymText &);
21 virtual void copy(const VymText &);
23 void setText(const QString &);
24 void setRichText(const QString &);
25 void setPlainText(const QString &);
26 void setAutoText(const QString &);
27 QString getText() const;
28 QString getTextASCII() const;
29 QString getTextASCII(QString igdent, const int &width = 0) const;
30 void setRichText(bool b);
31 bool isRichText() const;
32 void setFontHint(const QString &);
33 QString getFontHint() const;
34 void setFilenameHint(const QString &);
35 QString getFilenameHint() const;
37 void setColor(QColor color);
39 QStringList getAttributes() const;
40 QString saveToDir(); // Needs to be overloaded!
47 QColor color; // used for plaintext