Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofRepWindow Class Reference
[Macintosh Report rendering]

#include <oofRepPPWindow.h>

Inheritance diagram for oofRepWindow:

Inheritance graph
[legend]
Collaboration diagram for oofRepWindow:

Collaboration graph
[legend]
List of all members.

Detailed Description

Preview window using the PowerPlant framework.

Todo:
use Internet Config to read HTML browser and preferred TEXT editor for file types created by DoSaveAs.


Public Types

enum  { class_ID = 'RpWn', cmdRefresh = 'RepR' }

Public Member Functions

 oofRepWindow (LStream *inStream)
virtual ~oofRepWindow ()
virtual void FinishCreateSelf ()
virtual Boolean ObeyCommand (CommandT, void *ioParam=nil)
virtual void ListenToMessage (CommandT, void *ioParam=nil)
virtual void FindCommandStatus (CommandT, Boolean &outEnabled, Boolean &outUsesMark, UInt16 &outMark, Str255 outName)

Static Public Member Functions

oofRepWindowCreateFromStream (LStream *)
void RegisterClass ()
oofRepWindowCreateWindow (LCommander *, oofRep *adoptedReport, THPrint inTHPrint=0)

Protected Member Functions

void DoPageSetup ()
void DoOpen ()
 open an XML file and parse it, replacing the current report.

void DoPrint ()
void DoSaveAs ()
void PrintAsPreviewed ()
void CopyToScrap ()
void UpdateMovementButtons ()
void ReflowReport ()
 Reflow report after page setup, opening or editing.

dbRepPICTsPICTs ()
virtual void CreatePreviewContent (oofRep *adoptedReport, THPrint inTHPrint=0)

Protected Attributes

oofRepmRepPtr
 owned, report we're rendering adopted in CreatePreviewContent.

dbRepPICTsmPICTs
 owned, database of PICTS for redrawing each page.

oofRepMacGUIPreviewPPmEnv
 owned, current rendering environment.

CHandlePicturemPICTView
LStdButton * mFirstButton
LStdButton * mPrevButton
LStdButton * mNextButton
LStdButton * mLastButton
LStdCheckBox * mPrintBWCheck


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
class_ID 
cmdRefresh 


Constructor & Destructor Documentation

oofRepWindow::oofRepWindow LStream *  inStream  ) 
 

oofRepWindow::~oofRepWindow  )  [virtual]
 


Member Function Documentation

void oofRepWindow::CopyToScrap  )  [protected]
 

oofRepWindow * oofRepWindow::CreateFromStream LStream *   )  [static]
 

void oofRepWindow::CreatePreviewContent oofRep adoptedReport,
THPrint  inTHPrint = 0
[protected, virtual]
 

oofRepWindow * oofRepWindow::CreateWindow LCommander ,
oofRep adoptedReport,
THPrint  inTHPrint = 0
[static]
 

void oofRepWindow::DoOpen  )  [protected]
 

open an XML file and parse it, replacing the current report.

Uses OOF_XMLrepParser to parse the file.

In Carbon builds has a copy of UNavServicesDialogs::AskOpenOneFile which has been enhanced to allow us to set a signature for opening files created by any app.

Todo:
check if crash with UConditionalDialogs still occurs

void oofRepWindow::DoPageSetup  )  [protected]
 

void oofRepWindow::DoPrint  )  [protected]
 

void oofRepWindow::DoSaveAs  )  [protected]
 

void oofRepWindow::FindCommandStatus CommandT  ,
Boolean &  outEnabled,
Boolean &  outUsesMark,
UInt16 &  outMark,
Str255  outName
[virtual]
 

void oofRepWindow::FinishCreateSelf  )  [virtual]
 

void oofRepWindow::ListenToMessage CommandT  ,
void *  ioParam = nil
[virtual]
 

Boolean oofRepWindow::ObeyCommand CommandT  ,
void *  ioParam = nil
[virtual]
 

dbRepPICTs* oofRepWindow::PICTs  )  [inline, protected]
 

void oofRepWindow::PrintAsPreviewed  )  [protected]
 

void oofRepWindow::ReflowReport  )  [protected]
 

Reflow report after page setup, opening or editing.

Calculates page layout again from scratch.

Todo:
show picture on blank reports.

void oofRepWindow::RegisterClass  )  [static]
 

void oofRepWindow::UpdateMovementButtons  )  [protected]
 


Member Data Documentation

oofRepMacGUIPreviewPP* oofRepWindow::mEnv [protected]
 

owned, current rendering environment.

LStdButton* oofRepWindow::mFirstButton [protected]
 

LStdButton* oofRepWindow::mLastButton [protected]
 

LStdButton* oofRepWindow::mNextButton [protected]
 

dbRepPICTs* oofRepWindow::mPICTs [protected]
 

owned, database of PICTS for redrawing each page.

CHandlePicture* oofRepWindow::mPICTView [protected]
 

LStdButton* oofRepWindow::mPrevButton [protected]
 

LStdCheckBox* oofRepWindow::mPrintBWCheck [protected]
 

oofRep* oofRepWindow::mRepPtr [protected]
 

owned, report we're rendering adopted in CreatePreviewContent.


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 01:25:10 2004 for OOFILE by doxygen 1.3.5