Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 mspecialobject.h - Kugar report special field object 00003 ------------------- 00004 begin : Mon Aug 23 1999 00005 copyright : (C) 1999 by Mutiny Bay Software 00006 email : info@mutinybaysoftware.com 00007 ***************************************************************************/ 00008 00009 #ifndef MSPECIALOBJECT_H 00010 #define MSPECIALOBJECT_H 00011 00012 #include <qdatetime.h> 00013 00014 #include "mlabelobject.h" 00015 00021 class MSpecialObject: public MLabelObject 00022 { 00023 00024 public: 00025 00029 enum SpecialType { 00030 Date = 0, 00031 PageNumber 00032 }; 00033 00037 MSpecialObject(); 00038 00042 MSpecialObject(const MSpecialObject &mSpecialObject); 00043 00047 MSpecialObject operator=(const MSpecialObject &mSpecialObject); 00048 00052 virtual ~ MSpecialObject(); 00053 00054 protected: 00055 00059 int type; 00060 00064 int format; 00065 00066 public: 00067 00071 void setText(QDate d); 00072 00076 void setText(int page); 00077 00081 void setType(int t); 00082 00086 int getType(); 00087 00091 void setDateFormat(int f); 00092 00093 private: 00094 00100 void copy(const MSpecialObject *mSpecialObject); 00101 }; 00102 00103 #endif