blob: 4493abef00acee3a6e5bde0772d1c8baec0d6162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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 <tqdatetime.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( TQDate 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
|