DialogView Class Reference

Simple view class for dialogs to use when rendering via a Camelot RenderRegion. More...

#include <dlgview.h>

Inheritance diagram for DialogView:

View ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

virtual BOOL ViewStateChanged ()
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual void SetViewPixelSize ()
 Sets up the pixel size for this view object.
virtual void ContinueRenderView (RenderRegion *, Spread *, BOOL=TRUE, BOOL=TRUE, BOOL bForceImmediate=FALSE)
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual wxDC * GetRenderDC ()
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual BOOL GetForeBackMode ()
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual void SetForeBackMode (BOOL)
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual DocRect GetDocViewRect (Spread *)
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual void SetExtent (DocCoord, DocCoord)
 None - DialogView is a skeleton class that is only used to access screen characteristics.
virtual WorkRect GetViewRect ()
 None - DialogView is a skeleton class that is only used to access screen characteristics.

Private Member Functions

 CC_DECLARE_DYNAMIC (DialogView)
virtual ~DialogView ()
 Destructor - the class leaks viewstates like a privatised water company - the destructor has to delete them.
BOOL Init ()
 Initialise the DialogView for rendering.

Detailed Description

Simple view class for dialogs to use when rendering via a Camelot RenderRegion.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
See also:
View

Definition at line 118 of file dlgview.h.


Constructor & Destructor Documentation

DialogView::~DialogView  )  [private, virtual]
 

Destructor - the class leaks viewstates like a privatised water company - the destructor has to delete them.

Author:
Jim_Lynn (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/11/95

Definition at line 172 of file dlgview.cpp.

00173 {
00174     if (pVState != NULL)
00175     {
00176         delete pVState;
00177         pVState = NULL;
00178     }
00179 }


Member Function Documentation

DialogView::CC_DECLARE_DYNAMIC DialogView   )  [private]
 

void DialogView::ContinueRenderView RenderRegion ,
Spread ,
BOOL  = TRUE,
BOOL  = TRUE,
BOOL  bForceImmediate = FALSE
[virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Parameters:
N/A [INPUTS]
Returns:
Errors: Always => ERROR3
See also:
DialogView

Implements View.

Definition at line 232 of file dlgview.cpp.

00234 {
00235     ERROR3("DialogView::ContinueRenderView() should not be called!");
00236 }

DocRect DialogView::GetDocViewRect Spread  )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Parameters:
N/A [INPUTS]
Returns:
An empty rectangle (always).
See also:
DialogView

Implements View.

Definition at line 308 of file dlgview.cpp.

00309 {
00310     DocRect Empty;
00311     return Empty;
00312 }

BOOL DialogView::GetForeBackMode  )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Returns:
FALSE - dialogs don't do background rendering.
See also:
DialogView

Implements View.

Definition at line 269 of file dlgview.cpp.

00270 {
00271     // DialogViews don't background render.
00272     return FALSE;
00273 }

wxDC * DialogView::GetRenderDC  )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Returns:
NULL (always)
See also:
DialogView

Implements View.

Definition at line 251 of file dlgview.cpp.

00252 {
00253     return NULL;
00254 }

WorkRect DialogView::GetViewRect  )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Returns:
An empty rectangle (always).
See also:
DialogView

Implements View.

Definition at line 344 of file dlgview.cpp.

00345 {
00346     WorkRect Empty;
00347     return Empty;
00348 }

BOOL DialogView::Init void   )  [private]
 

Initialise the DialogView for rendering.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Returns:
TRUE if initialised ok; FALSE if not
See also:
DialogView

Reimplemented from SimpleCCObject.

Definition at line 131 of file dlgview.cpp.

00132 {
00133     // Get pixel size from screen DC.
00134     INT32                   pixwidth, pixheight;
00135     wxScreenDC dc;
00136     wxSize ppi = OSRenderRegion::GetFixedDCPPI(dc);
00137     pixwidth=ppi.GetWidth();
00138     pixheight=ppi.GetHeight();
00139     
00140     // Set up our pixel size
00141     PixelWidth = FIXED16(72000.0 / pixwidth);
00142     PixelHeight = FIXED16(72000.0 / pixheight);
00143     ScaledPixelWidth = PixelWidth;
00144     ScaledPixelHeight = PixelHeight;
00145 
00146     // Get ourselves a ViewState object
00147     pVState = new ViewState;
00148     if (pVState == NULL) 
00149         return FALSE;
00150 
00151     // Connect this view state to this view
00152     pVState->pView = this;
00153 
00154     // No document for dialogs
00155     pDoc = NULL;
00156 
00157     // All ok
00158     return TRUE;
00159 }

void DialogView::SetExtent DocCoord  ,
DocCoord 
[virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Parameters:
N/A [INPUTS]
See also:
DialogView

Implements View.

Definition at line 327 of file dlgview.cpp.

00328 {
00329 }

void DialogView::SetForeBackMode BOOL   )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Parameters:
N/A [INPUTS]
Returns:
Errors: ERROR3 always - dialogs cannot background render!
See also:
DialogView

Implements View.

Definition at line 289 of file dlgview.cpp.

00290 {
00291     ERROR3("DialogView::SetForeBackMode() should not be called!");
00292 }

void DialogView::SetViewPixelSize  )  [virtual]
 

Sets up the pixel size for this view object.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
See also:
DialogView

Implements View.

Definition at line 210 of file dlgview.cpp.

00211 {
00212     // Set the scaled pixel size
00213     ScaledPixelWidth = PixelWidth / Scale;
00214     ScaledPixelHeight = PixelHeight / Scale;
00215 }

BOOL DialogView::ViewStateChanged  )  [virtual]
 

None - DialogView is a skeleton class that is only used to access screen characteristics.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/20/95
Returns:
TRUE (always).
See also:
DialogView

Implements View.

Definition at line 194 of file dlgview.cpp.

00195 {
00196     return TRUE;
00197 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:37 2007 for Camelot by  doxygen 1.4.4