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/mspecialobject.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/mspecialobject.h')
-rw-r--r-- | kugar/lib/mspecialobject.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/kugar/lib/mspecialobject.h b/kugar/lib/mspecialobject.h new file mode 100644 index 000000000..58d18ca84 --- /dev/null +++ b/kugar/lib/mspecialobject.h @@ -0,0 +1,91 @@ +/*************************************************************************** + mspecialobject.h - Kugar report special field object + ------------------- + begin : Mon Aug 23 1999 + copyright : (C) 1999 by Mutiny Bay Software + email : info@mutinybaysoftware.com +***************************************************************************/ + +#ifndef MSPECIALOBJECT_H +#define MSPECIALOBJECT_H + +#include <qdatetime.h> + +#include "mlabelobject.h" + +/**Kugar report special field object - report date, page number, etc. + *@author Mutiny Bay Software + */ + +namespace Kugar +{ + +class MSpecialObject : public MLabelObject +{ + +public: + /** Data type constants */ + enum SpecialType { Date = 0, PageNumber }; + + /** Constructor */ + MSpecialObject(); + /** Copy constructor */ + MSpecialObject( const MSpecialObject& mSpecialObject ); + /** Assignment operator */ + MSpecialObject operator=( const MSpecialObject& mSpecialObject ); + /** Destructor */ + virtual ~MSpecialObject(); + +protected: + /** Field type */ + int type; + /** Format type */ + int format; +public: + /** Sets the field's data string with a date */ + void setText( QDate d ); + /** Sets the field's data string with a page number */ + void setText( int page ); + /** Sets the field's type */ + void setType( int t ); + /** Gets the field's type */ + int getType(); + /** Sets the field's date formatting */ + void setDateFormat( int f ); + +private: + /** Copies member data from one object to another. + * Used by the copy constructor and assignment operator + */ + void copy( const MSpecialObject* mSpecialObject ); + +}; + +} + +#endif + + + + + + + + + + + + + + + + + + + + + + + + + |