18 #ifndef QGSCOMPOSERLEGENDITEM_H
19 #define QGSCOMPOSERLEGENDITEM_H
22 #include <QStandardItem>
37 GroupItem = QStandardItem::UserType,
44 virtual void writeXML( QDomElement& elem, QDomDocument& doc )
const = 0;
48 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true ) = 0;
50 virtual ItemType itemType()
const = 0;
51 virtual QStandardItem* clone()
const = 0;
57 virtual QString
userText()
const {
return mUserText; }
59 virtual void setUserText(
const QString & text ) { mUserText = text; }
63 void writeXMLChildren( QDomElement& elem, QDomDocument& doc )
const;
82 virtual QStandardItem*
clone()
const;
84 virtual void writeXML( QDomElement& elem, QDomDocument& doc )
const;
85 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true );
105 virtual QStandardItem*
clone()
const;
107 virtual void writeXML( QDomElement& elem, QDomDocument& doc )
const;
108 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true );
115 QColor
color()
const {
return mColor; }
128 virtual QStandardItem*
clone()
const;
130 virtual void writeXML( QDomElement& elem, QDomDocument& doc )
const;
131 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true );
141 void setDefaultStyle();
155 virtual QStandardItem*
clone()
const;
157 virtual void writeXML( QDomElement& elem, QDomDocument& doc )
const;
158 virtual void readXML(
const QDomElement& itemElem,
bool xServerAvailable =
true );
171 #endif // QGSCOMPOSERLEGENDITEM_H