17 #ifndef QGSCOMPOSERMAPITEM_H
18 #define QGSCOMPOSERMAPITEM_H
46 virtual void draw( QPainter* painter ) = 0;
53 virtual bool writeXML( QDomElement& elem, QDomDocument & doc )
const override;
60 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc )
override;
77 QString
id()
const {
return mUuid; }
83 virtual void setName(
const QString& name ) { mName = name; }
89 virtual QString
name()
const {
return mName; }
95 virtual void setEnabled(
const bool enabled ) { mEnabled = enabled; }
101 virtual bool enabled()
const {
return mEnabled; }
148 int size()
const {
return mItems.size(); }
156 virtual bool writeXML( QDomElement& elem, QDomDocument & doc )
const;
164 virtual bool readXML(
const QDomElement& elem,
const QDomDocument& doc ) = 0;
169 void drawItems( QPainter* painter );
175 bool containsAdvancedEffects()
const;
195 void removeItem(
const QString& itemId );
203 void moveItemUp(
const QString& itemId );
211 void moveItemDown(
const QString& itemId );
246 QList< QgsComposerMapItem* > asList()
const;
260 #endif //QGSCOMPOSERMAPITEM_H