18 #ifndef QGSLAYOUTTABLECOLUMN_H
19 #define QGSLAYOUTTABLECOLUMN_H
21 #include <QDomDocument>
22 #include <QDomElement>
25 #include "qgis_core.h"
52 bool writeXml( QDomElement &columnElem, QDomDocument &doc )
const;
59 bool readXml(
const QDomElement &columnElem );
66 double width()
const {
return mWidth; }
72 void setWidth(
const double width ) { mWidth = width; }
79 QString heading()
const {
return mHeading; }
86 void setHeading(
const QString &heading ) { mHeading = heading; }
94 Qt::AlignmentFlag hAlignment()
const {
return mHAlignment; }
102 void setHAlignment( Qt::AlignmentFlag alignment ) { mHAlignment = alignment; }
110 Qt::AlignmentFlag vAlignment()
const {
return mVAlignment; }
118 void setVAlignment( Qt::AlignmentFlag alignment ) { mVAlignment = alignment; }
126 QString attribute()
const {
return mAttribute; }
134 void setAttribute(
const QString &attribute ) { mAttribute = attribute; }
143 Qt::SortOrder sortOrder()
const {
return mSortOrder; }
152 void setSortOrder( Qt::SortOrder order ) { mSortOrder = order; }
168 Q_DECL_DEPRECATED
int sortByRank() const
SIP_DEPRECATED {
return mSortByRank; }
183 Q_DECL_DEPRECATED
void setSortByRank(
int rank )
SIP_DEPRECATED { mSortByRank = rank; }
194 return mHeading == other.mHeading
195 && mAttribute == other.mAttribute
196 && mSortByRank == other.mSortByRank
197 && mSortOrder == other.mSortOrder
198 && mWidth == other.mWidth
199 && mHAlignment == other.mHAlignment
200 && mVAlignment == other.mVAlignment;
208 Qt::SortOrder mSortOrder = Qt::AscendingOrder;
210 QColor mBackgroundColor = Qt::transparent;
211 Qt::AlignmentFlag mHAlignment = Qt::AlignLeft;
212 Qt::AlignmentFlag mVAlignment = Qt::AlignVCenter;
217 #endif //QGSLAYOUTTABLECOLUMN_H