OOFILE  1.9
oofrepMac.h
Go to the documentation of this file.
1 #ifndef H_OOFREPMAC
2 #define H_OOFREPMAC
3 
4 // COPYRIGHT 1997 A.D. Software, All rights reserved
5 
6 // GUI report-writer layer of OOFILE database
7 
8 
9 #ifndef H_OOFFILE
10  #include "oofile.h"
11 #endif
12 #ifndef H_OOFREP
13  #include "oofrep.h"
14 #endif
15 #ifndef H_OOFREPREND
16  #include "oofreprn.h"
17 #endif
18 #ifndef H_OOFDRAW
19  #include "oofdraw.h"
20 #endif
21 
22 #if defined _Macintosh_Carbon
23  #ifndef __CARBON__
24  #ifdef _Macintosh_Mach
25  #include <Carbon/Carbon.h>
26  #else
27  # include <Carbon.h>
28  #endif
29  #endif
30 #else
31  #include <Printing.h>
32 #endif
33 
46 // use common base to provide the factory methods
52 public:
53  enum {eRenderType='Mac '};
54 
56  mPrintRecordH(0),
57  mSavedPort(0)
58  {}
59 
60  THPrint pageSetup() const { return mPrintRecordH; }
61 
62  void pageSetup(THPrint);
63 
64  // multi-method dispatch to factories for rendering report objects
65  virtual void makeRenderDispatch(oofRepDrawable*) const;
66  virtual void makeRenderDispatch(oofAdorner*) const;
67  virtual oofRepRenderT renderType() const;
68 
69  virtual void drawPageBorder( long top, long left, long bottom, long right );
70 
71 protected:
72 #if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON!=0
73  Handle mFlatFormat;
74  Handle mFlatSettings;
75 
76 #endif
77  THPrint mPrintRecordH; // OWNED - Macintosh Handle, setup by children
78  GrafPtr mSavedPort;
79 };
80 
81 
82 // Macintosh renderers for OOFILE database
83 
89 public:
91  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
92  virtual void draw();
93 };
94 
95 
102 public:
104  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
105  virtual void draw();
106 };
107 
108 
116 public:
118  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
119  virtual void draw();
120 };
121 
122 
129 public:
131  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
132  virtual void draw();
133 };
134 
135 
141 public:
143  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
144 
145  virtual void draw();
146 };
147 
148 
154 public:
156  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
157 
158  virtual void draw();
159 };
160 
161 
168 public:
170  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
171  virtual void finishConstruction ();
172 
173  virtual void draw();
174  virtual void drawColumnHeaders();
175  virtual void startTableBody(bool headersHaveChanged);
176 
177 protected:
178  void DrawContinuingOverPage(unsigned long, unsigned long, oofSizedTextArray&, FontInfo&, bool hasCustomDrawers);
179  void CalcColHeaderWrapping();
181 };
182 
183 
189 public:
191  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
192  virtual unsigned long width() const;
193  virtual void draw();
194 };
195 
196 
202 public:
204  virtual oofRepRender* clone(const oofRepDrawable* newOwner) const;
205  virtual unsigned long width() const;
206  virtual void draw();
207 };
208 
209 #endif
210 
oofRepViewBand_MacRender(oofRepViewBand *b)
Definition: oofrepMac.h:169
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:1025
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:797
virtual unsigned long width() const
Definition: oofrepMac.cpp:1069
Abstract base for anything drawn on report.
Definition: oofrep.h:860
Abstract base for rendering an oofRepGraphBand.
Definition: oofreprn.h:43
Array of oofStrings paired with oofTextSizer.
Definition: oofdraw.h:127
oofRepTextBlock_MacRender(oofRepTextBlock *b)
Definition: oofrepMac.h:190
Abstract base for rendering an oofRepPictBand.
Definition: oofreprn.h:95
virtual oofRepRenderT renderType() const
Definition: oofrepMac.cpp:55
oofRepLayoutBand_MacRender(oofRepLayoutBand *b)
Definition: oofrepMac.h:130
Call oofPict::draw positioned centred within oofRepPictBand.
Definition: oofrepMac.h:153
virtual void drawColumnHeaders()
Definition: oofrepMac.cpp:670
virtual unsigned long width() const
Definition: oofrepMac.cpp:1107
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:863
Most commonly used top band in a report.
Definition: oofrep.h:1283
oofRepSpaceBand_MacRender(oofRepSpaceBand *b)
Definition: oofrepMac.h:90
void DrawContinuingOverPage(unsigned long, unsigned long, oofSizedTextArray &, FontInfo &, bool hasCustomDrawers)
Definition: oofrepMac.cpp:411
Base rendering class.
Definition: oofrep.h:816
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:1047
oofRepPictBand_MacRender(oofRepPictBand *b)
Definition: oofrepMac.h:155
oofRepLineBand_MacRender(oofRepLineBand *b)
Definition: oofrepMac.h:142
oofRepGraphBand_MacRender(oofRepGraphBand *b)
Definition: oofrepMac.h:103
GrafPtr mSavedPort
Definition: oofrepMac.h:78
virtual void finishConstruction()
Definition: oofrepMac.cpp:195
oofRepPictBlock_MacRender(oofRepPictBlock *b)
Definition: oofrepMac.h:203
Abstract base for rendering an oofRepLineBand.
Definition: oofreprn.h:81
THPrint pageSetup() const
Definition: oofrepMac.h:60
GUI report-writer layer of OOFILE database.
Abstract base for rendering an oofRepLayoutBand.
Definition: oofreprn.h:57
Abstracts a drawing environment.
Definition: oofrep.h:406
Call oofPict::draw positioned centred within oofRepPictBlock.
Definition: oofrepMac.h:201
Draw a line as filled rectangle specified by oofRepLineBand.
Definition: oofrepMac.h:140
virtual void makeRenderDispatch(oofRepDrawable *) const
Definition: oofrepMac.cpp:25
Base for specifying Macintosh GUI drawing environment.
Definition: oofrepMac.h:51
unsigned long oofRepRenderT
Definition: oofrep.h:113
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:956
Draw text in the current style.
Definition: oofrepMac.h:188
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:1081
oofSizedTextArray mColHeaders
Definition: oofrepMac.h:180
Draw oofRepViewBand contents as grid with page breaks.
Definition: oofrepMac.h:167
Abstract base for rendering an oofRepViewBand.
Definition: oofreprn.h:129
virtual void startTableBody(bool headersHaveChanged)
reset mDrawnColHeadersThisPage in case we redraw a mac render once constructed.
Definition: oofrepMac.cpp:208
Specify a fixed height band containing an oofGraph with additional height & width.
Definition: oofrep.h:1080
void CalcColHeaderWrapping()
Calculate wrapped widths with Mac font rendering for all column headers.
Definition: oofrepMac.cpp:225
THPrint mPrintRecordH
Definition: oofrepMac.h:77
Specify a fixed-height band that contains a series of oofRepBlock's.
Definition: oofrep.h:1182
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:908
Use oofRepGraphBand_MacRender::draw to draw colour or mono graph as specified by oofRepGraphBand.
Definition: oofrepMac.h:115
virtual void drawPageBorder(long top, long left, long bottom, long right)
Definition: oofrepMac.cpp:75
Base object to derive adorners from.
Definition: oofadorn.h:32
Abstract base for rendering an oofRepPictBlock within a oofRepLayoutBand.
Definition: oofreprn.h:187
Abstract base for rendering an oofRepTextBlock within a oofRepLayoutBand.
Definition: oofreprn.h:173
Abstract base for rendering an oofRepSpaceBand.
Definition: oofreprn.h:29
oofRepGraphBand_MacPrintRender(oofRepGraphBand *b)
Definition: oofrepMac.h:117
Specify a block to draw mono-styled text in an oofRepLayoutBand.
Definition: oofrep.h:1445
Draw colour or mono graph as specified by oofRepGraphBand.
Definition: oofrepMac.h:101
Specify a fixed height band to draw an oofPict.
Definition: oofrep.h:1649
Specify a fixed height band to draw a horizontal line black or grey in given thickness.
Definition: oofrep.h:1143
Iterate blocks in oofRepLayoutBand changing pen position for each.
Definition: oofrepMac.h:128
Specify a block to draw an oofPict in an oofRepLayoutBand.
Definition: oofrep.h:1516
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:939
virtual oofRepRender * clone(const oofRepDrawable *newOwner) const
Definition: oofrepMac.cpp:188
Specify a band which provides a vertical gap on the page.
Definition: oofrep.h:1050
Advance report vertical position.
Definition: oofrepMac.h:88
Abstract base classes for report renderers.