18 #ifndef QGSCOMPOSERTABLE_H
19 #define QGSCOMPOSERTABLE_H
39 virtual void paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
41 virtual bool writeXML( QDomElement& elem, QDomDocument & doc )
const = 0;
42 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc ) = 0;
64 void adjustFrameToSize();
79 virtual bool getFeatureAttributes( QList<QgsAttributeMap>& attributeMaps ) { Q_UNUSED( attributeMaps );
return false; }
80 virtual QMap<int, QString>
getHeaderLabels()
const {
return QMap<int, QString>(); }
82 virtual bool calculateMaxColumnWidths( QMap<int, double>& maxWidthMap,
const QList<QgsAttributeMap>& attributeMaps )
const;
85 void adaptItemFrame(
const QMap<int, double>& maxWidthMap,
const QList<QgsAttributeMap>& attributeMaps );
86 void drawHorizontalGridLines( QPainter* p,
int nAttributes );
88 void drawVerticalGridLines( QPainter* p,
const QMap<int, double>& maxWidthMap );
90 bool tableWriteXML( QDomElement& itemElem, QDomDocument& doc )
const;
91 bool tableReadXML(
const QDomElement& itemElem,
const QDomDocument& doc );
94 #endif // QGSCOMPOSERTABLE_H