KD Reports

           | Home |            | Namespaces |            | Classes |            | Files |            | Directories |

KDReportsAbstractTableElement.h

00001 #ifndef KDREPORTSABSTRACTTABLEELEMENT_H
00002 #define KDREPORTSABSTRACTTABLEELEMENT_H
00003 
00004 #include "KDReportsElement.h"
00005 #include "KDReportsUnit.h"
00006 
00007 template <typename T> class QList;
00008 class QTextTableFormat;
00009 namespace KDReports {
00010 
00015 class KDREPORTS_EXPORT AbstractTableElement : public Element
00016 {
00017 public:
00018 
00024     void setBorder( qreal border );
00025 
00029     qreal border() const;
00030 
00035     void setBorderBrush( const QBrush& brush );
00036 
00041     QBrush borderBrush() const;
00042 
00049     void setPadding( qreal padding );
00050 
00054     qreal padding() const;
00055 
00061     void setWidth( qreal width, Unit unit = Millimeters );
00062 
00067     AbstractTableElement(const AbstractTableElement &other);
00071     AbstractTableElement &operator=(const AbstractTableElement &other);
00072 
00073 protected:
00077     AbstractTableElement();
00078 
00082     ~AbstractTableElement();
00083 
00087     void fillTableFormat( QTextTableFormat& tableFormat ) const;
00088 
00089 private:
00090     class Private;
00091     Private* const d;
00092 };
00093 
00094 }
00095 
00096 #endif /* KDREPORTSABSTRACTTABLEELEMENT_H */
00097 

Copyright © 2008, Klarälvdalens Datakonsult AB KD Reports