OOFILE  1.9
oofRepPreviewPP.h
Go to the documentation of this file.
1 #ifndef REPMACGUIPREVPP
2 #define REPMACGUIPREVPP
3 
4 #ifndef H_OOFFILE
5  #include "oofile.h" // Hmm - I shouldn't need this !
6 #endif
7 #ifndef H_OOFREP
8  #include "oofrep.h"
9 #endif
10 #if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON!=0
11  #ifndef H_REPMACCARBPRINT
12  #include "oofMacCarbonPrint.h"
13  #endif
14 #else
15  #ifndef H_REPMACPRINT
16  #include "oofRepMacPrint.h" // to get the parent class
17  #endif
18 #endif
19 
20 class dbRepPICTs;
21 class LCommander;
22 
28 public:
30  virtual ~oofRepMacGUIPreviewPP();
31 
32  void finishConstruction(dbRepPICTs* PICTs, THPrint pageSetup=nil);
33  virtual void changeTextStyle(oofRepTextStyle*);
34  virtual unsigned short heightOfTextStyle(oofRepTextStyle*);
35  virtual void drawPageBreak();
36  //virtual void moveToVerticalPos(unsigned long); // see oofRepEnvironment comments
37  virtual unsigned long calcPageHeight();
38  virtual unsigned long calcPageWidth();
39  virtual void startEnvironment();
40  virtual void endEnvironment();
41 
42  Point printableOffset();
43 #if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON!=0
44  Handle getFlatSettings(); // caller owns the handle
45  Handle getFlatFormat(); // caller owns handle
46  Handle getOldRecord(); // caller owns handle
47 #endif
48 
50  LCommander* parentCommander() const;
51 
52  unsigned long previewPageOrdinal() const;
53 
54 private:
55  dbRepPICTs* mPICTs;
56  PicHandle mCurPagePICT;
57  Rect mPaperRect;
58  Point mOffset;
59  LCommander* mCommander;
60 };
61 
62 
63 
64 // -------------------------------------------------------
65 // o o f R e p M a c G U I P r e v i e w P P
66 // -------------------------------------------------------
67 
68 inline Point
70 {
71  return mOffset;
72 }
73 
74 
75 inline void
77 {
78  mCommander = inCommander;
79 }
80 
81 
82 inline LCommander*
84 {
85  return mCommander;
86 }
87 
88 
89 #endif
90 
91 
unsigned long previewPageOrdinal() const
returns ordinal number, NOT the printable page number which may reset
virtual unsigned long calcPageWidth()
Macintosh structure for a rectangle.
virtual void endEnvironment()
void finishConstruction(dbRepPICTs *PICTs, THPrint pageSetup=nil)
PowerPlant base for anything that handles commands.
dbTable used by oofRepMacGUIPreviewPP to store database of PICTs.
Specify Macintosh GUI drawing environment previewed in PowerPlant window.
THPrint pageSetup() const
Definition: oofrepMac.h:60
GUI report-writer layer of OOFILE database.
Base for specifying Macintosh GUI drawing environment.
Definition: oofrepMac.h:51
virtual void drawPageBreak()
virtual void startEnvironment()
virtual unsigned long calcPageHeight()
Cross-platform specification of text style.
Definition: oofrep.h:732
virtual void changeTextStyle(oofRepTextStyle *)
virtual unsigned short heightOfTextStyle(oofRepTextStyle *)
LCommander * parentCommander() const