XPFView Class Reference

Simple view class for use when converting for plugin filters. More...

#include <xpfrgn.h>

Inheritance diagram for XPFView:

View ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

virtual ~XPFView ()
 Destroys a XPFView, deallocating it's associated ViewState.
BOOL Init (double DPI)
 Initialise the XPFView for rendering.
virtual BOOL ViewStateChanged ()
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 - XPFView is a skeleton class that is only used to access screen characteristics.
virtual CNativeDCGetRenderDC ()
 None - XPFView is a skeleton class that is only used to access screen characteristics.
virtual BOOL GetForeBackMode ()
 None - XPFView is a skeleton class that is only used to access screen characteristics.
virtual void SetForeBackMode (BOOL)
 None - XPFView is a skeleton class that is only used to access screen characteristics.
virtual double GetConvertToEditableShapesDPI ()
 Allows derived view classes to override the reolution.
virtual DocRect GetDocViewRect (Spread *)
 To determine the docrect area that this view is viewing.
virtual void SetExtent (DocCoord, DocCoord)
 Informs the DocView that the extent of the document has changed in some way and that the view must be altered to take this into account (namely the scrollbars).
virtual WorkRect GetViewRect ()
 None - XPFView is a skeleton class that is only used to access screen characteristics.

Protected Attributes

double m_DPI

Private Member Functions

 CC_DECLARE_DYNAMIC (XPFView)

Detailed Description

Simple view class for use when converting for plugin filters.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/08/2005
See also:
View

Definition at line 349 of file xpfrgn.h.


Constructor & Destructor Documentation

XPFView::~XPFView  )  [virtual]
 

Destroys a XPFView, deallocating it's associated ViewState.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
31/10/2005

Definition at line 3136 of file xpfrgn.cpp.

03137 {
03138     delete pVState;
03139     pVState = 0;
03140 }


Member Function Documentation

XPFView::CC_DECLARE_DYNAMIC XPFView   )  [private]
 

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

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

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Parameters:
N/A [INPUTS]
Returns:
Errors: Always => ERROR3

Implements View.

Definition at line 3243 of file xpfrgn.cpp.

03245 {
03246     ERROR3("XPFView::ContinueRenderView() should not be called!");
03247 }

double XPFView::GetConvertToEditableShapesDPI  )  [virtual]
 

Allows derived view classes to override the reolution.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/08/2005
Returns:
The resolution to use for convert to editable shapes operations while this view is current

Reimplemented from View.

Definition at line 3388 of file xpfrgn.cpp.

03389 {
03390     return(m_DPI);
03391 }

DocRect XPFView::GetDocViewRect Spread pSpread  )  [virtual]
 

To determine the docrect area that this view is viewing.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Parameters:
N/A [INPUTS]
Returns:
The bounds of the objects in the InternalClipboard

Implements View.

Definition at line 3323 of file xpfrgn.cpp.

03324 {
03325     return(pSpread->GetBoundingRect());
03326 }

BOOL XPFView::GetForeBackMode  )  [virtual]
 

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

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Returns:
FALSE - dialogs don't do background rendering.

Implements View.

Definition at line 3282 of file xpfrgn.cpp.

03283 {
03284     // XPFViews don't background render.
03285     return FALSE;
03286 }

CNativeDC * XPFView::GetRenderDC  )  [virtual]
 

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

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Returns:
NULL (always)

Implements View.

Definition at line 3263 of file xpfrgn.cpp.

03264 {
03265     return NULL;
03266 }

WorkRect XPFView::GetViewRect  )  [virtual]
 

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

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Returns:
An empty rectangle (always).

Implements View.

Definition at line 3367 of file xpfrgn.cpp.

03368 {
03369     WorkRect Empty;
03370     return Empty;
03371 }

BOOL XPFView::Init double  DPI  ) 
 

Initialise the XPFView for rendering.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
022/4/95
Returns:
TRUE if initialised ok; FALSE if not

Definition at line 3158 of file xpfrgn.cpp.

03159 {
03160     // Store the DPI away
03161     m_DPI = DPI;
03162     
03163     // Set up our pixel size
03164     PixelWidth = FIXED16(72000.0 / DPI);
03165     PixelHeight = FIXED16(72000.0 / DPI);
03166     ScaledPixelWidth = PixelWidth;
03167     ScaledPixelHeight = PixelHeight;
03168 
03169     // Get ourselves a ViewState object
03170     pVState = new ViewState;
03171     if (pVState == NULL) 
03172         return FALSE;
03173 
03174     // Connect this view state to this view
03175     pVState->pView = this;
03176 
03177     // All ok
03178     return TRUE;
03179 }

void XPFView::SetExtent DocCoord  lolog,
DocCoord  hilog
[virtual]
 

Informs the DocView that the extent of the document has changed in some way and that the view must be altered to take this into account (namely the scrollbars).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Parameters:
Two DocCoords describing the low and high corners of a rectangle in logical [INPUTS] space describing the full extent of the document. I.E. the bottom-left corner of the last chapter and the top-right corner of the first.
See also:
XPFView

Implements View.

Definition at line 3346 of file xpfrgn.cpp.

03347 {
03348     // Convert the extent given in DocCoord to WorkCoords...
03349     pVState->WorkAreaExtent.lo = lolog.ToWork(pDoc, this);
03350     pVState->WorkAreaExtent.hi = hilog.ToWork(pDoc, this);
03351 }

void XPFView::SetForeBackMode BOOL   )  [virtual]
 

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

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Parameters:
N/A [INPUTS]
Returns:
Errors: ERROR3 always - dialogs cannot background render!
See also:
XPFView

Implements View.

Definition at line 3304 of file xpfrgn.cpp.

03305 {
03306     ERROR3("XPFView::SetForeBackMode() should not be called!");
03307 }

void XPFView::SetViewPixelSize  )  [virtual]
 

Sets up the pixel size for this view object.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
See also:
XPFView

Implements View.

Definition at line 3220 of file xpfrgn.cpp.

03221 {
03222     // Set the scaled pixel size
03223     ScaledPixelWidth = PixelWidth / Scale;
03224     ScaledPixelHeight = PixelHeight / Scale;
03225 }

BOOL XPFView::ViewStateChanged  )  [virtual]
 

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (copying Tim code)
Date:
22/4/95
Returns:
TRUE (always).

Implements View.

Definition at line 3194 of file xpfrgn.cpp.

03195 {
03196     // Local variables...
03197     DocCoord    ExtentLo;                       // coord of bottom-left of logical extent
03198     DocCoord    ExtentHi;                       // coord of top-right of logical extent
03199     
03200     // Read DocCoords extent of document & set extent in platform-indy ViewState struct.
03201     pDoc->GetExtents(&ExtentLo, &ExtentHi, &PhysExtent, this);
03202     SetExtent(ExtentLo, ExtentHi);              
03203 
03204     return TRUE;
03205 }


Member Data Documentation

double XPFView::m_DPI [protected]
 

Definition at line 378 of file xpfrgn.h.


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