diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
| commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
| tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kugar/lib/mreportdetail.h | |
| download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip | |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/mreportdetail.h')
| -rw-r--r-- | kugar/lib/mreportdetail.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/kugar/lib/mreportdetail.h b/kugar/lib/mreportdetail.h new file mode 100644 index 000000000..ee2e9222a --- /dev/null +++ b/kugar/lib/mreportdetail.h @@ -0,0 +1,89 @@ +/*************************************************************************** + mreportdetail.h - Kugar report detail section + ------------------- + begin : Mon Aug 23 1999 + copyright : (C) 1999 by Mutiny Bay Software + email : info@mutinybaysoftware.com +***************************************************************************/ + +#ifndef MREPORTDETAIL_H +#define MREPORTDETAIL_H + +#include "mfieldobject.h" +#include "mreportsection.h" + +/**Kugar report detail section + *@author Mutiny Bay Software + */ + +namespace Kugar +{ + +class MReportDetail : public MReportSection +{ + +public: + /** Constructor */ + MReportDetail(); + /** Copy constructor */ + MReportDetail( const MReportDetail& mReportDetail ); + /** Assignment operator */ + MReportDetail operator=( const MReportDetail& mReportDetail ); + /** Destructor */ + virtual ~MReportDetail(); + +protected: + /** Sections's repeat on new pages */ + bool repeat; + /** Section's field collection */ + QPtrList<MFieldObject> fields; + +public: + /** Sets whether to repeat the detail on new pages */ + void setRepeat( bool b ); + /** Sets whether to repeat the detail on new pages */ + bool getRepeat() const; + /** Draws the detail section to the specified painter & x/y-offsets */ + void draw( QPainter* p, int xoffset, int yoffset ); + /** Adds a new field object to the section's field collection */ + void addField( MFieldObject* field ); + /** Sets the data for the field at the specified index */ + void setFieldData( int idx, QString data ); + /** Returns the number of fields in the detail section */ + int getFieldCount(); + /** Returns the name of the bound field for field object at the given index */ + QString getFieldName( int idx ); + /** Frees all resources allocated by the report section */ + void clear(); + +private: + /** Copies member data from one object to another. + * Used by the copy constructor and assignment operator + */ + void copy( const MReportDetail* mReportDetail ); + +}; + +} + +#endif + + + + + + + + + + + + + + + + + + + + |
