ClipboardView Class Reference

Simple view class for use when rendering (exporting) the clipboard. More...

#include <clipext.h>

Inheritance diagram for ClipboardView:

View ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

virtual ~ClipboardView ()
 Destroys a ClipboardView, deallocating it's associated ViewState.
BOOL Init ()
 Initialise the ClipboardView 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 - ClipboardView is a skeleton class that is only used to access screen characteristics.
virtual CDCGetRenderDC ()
 None - ClipboardView is a skeleton class that is only used to access screen characteristics.
virtual BOOL GetForeBackMode ()
 None - ClipboardView is a skeleton class that is only used to access screen characteristics.
virtual void SetForeBackMode (BOOL)
 None - ClipboardView is a skeleton class that is only used to access screen characteristics.
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 - ClipboardView is a skeleton class that is only used to access screen characteristics.

Private Member Functions

 CC_DECLARE_DYNAMIC (ClipboardView)

Detailed Description

Simple view class for use when rendering (exporting) the clipboard.

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

Definition at line 396 of file clipext.h.


Constructor & Destructor Documentation

ClipboardView::~ClipboardView  )  [virtual]
 

Destroys a ClipboardView, deallocating it's associated ViewState.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/9/96

Definition at line 2188 of file clipext.cpp.

02189 {
02190     delete pVState;
02191     pVState = 0;
02192 }


Member Function Documentation

ClipboardView::CC_DECLARE_DYNAMIC ClipboardView   )  [private]
 

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

None - ClipboardView 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 2300 of file clipext.cpp.

02302 {
02303     ERROR3("ClipboardView::ContinueRenderView() should not be called!");
02304 }

DocRect ClipboardView::GetDocViewRect Spread  )  [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 2380 of file clipext.cpp.

02381 {
02382     return InternalClipboard::GetObjectsBounds();
02383 }

BOOL ClipboardView::GetForeBackMode  )  [virtual]
 

None - ClipboardView 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 2339 of file clipext.cpp.

02340 {
02341     // ClipboardViews don't background render.
02342     return FALSE;
02343 }

CDC * ClipboardView::GetRenderDC  )  [virtual]
 

None - ClipboardView 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 2320 of file clipext.cpp.

02321 {
02322     return NULL;
02323 }

WorkRect ClipboardView::GetViewRect  )  [virtual]
 

None - ClipboardView 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 2424 of file clipext.cpp.

02425 {
02426     WorkRect Empty;
02427     return Empty;
02428 }

BOOL ClipboardView::Init void   ) 
 

Initialise the ClipboardView 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

Reimplemented from SimpleCCObject.

Definition at line 2211 of file clipext.cpp.

02212 {
02213     // Think up a particularly stupid dpi value...
02214     INT32 pixwidth = 150;
02215     INT32 pixheight = 150;
02216     
02217     // Set up our pixel size
02218     PixelWidth = FIXED16(72000.0 / pixwidth);
02219     PixelHeight = FIXED16(72000.0 / pixheight);
02220     ScaledPixelWidth = PixelWidth;
02221     ScaledPixelHeight = PixelHeight;
02222 
02223     // Get ourselves a ViewState object
02224     pVState = new ViewState;
02225     if (pVState == NULL) 
02226         return FALSE;
02227 
02228     // Connect this view state to this view
02229     pVState->pView = this;
02230 
02231     // Always uses the internal clipboard document
02232     pDoc = InternalClipboard::Instance();
02233 
02234     // All ok
02235     return TRUE;
02236 }

void ClipboardView::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:
ClipboardView

Implements View.

Definition at line 2403 of file clipext.cpp.

02404 {
02405     // Convert the extent given in DocCoord to WorkCoords...
02406     pVState->WorkAreaExtent.lo = lolog.ToWork(pDoc, this);
02407     pVState->WorkAreaExtent.hi = hilog.ToWork(pDoc, this);
02408 }

void ClipboardView::SetForeBackMode BOOL   )  [virtual]
 

None - ClipboardView 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:
ClipboardView

Implements View.

Definition at line 2361 of file clipext.cpp.

02362 {
02363     ERROR3("ClipboardView::SetForeBackMode() should not be called!");
02364 }

void ClipboardView::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:
ClipboardView

Implements View.

Definition at line 2277 of file clipext.cpp.

02278 {
02279     // Set the scaled pixel size
02280     ScaledPixelWidth = PixelWidth / Scale;
02281     ScaledPixelHeight = PixelHeight / Scale;
02282 }

BOOL ClipboardView::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 2251 of file clipext.cpp.

02252 {
02253     // Local variables...
02254     DocCoord    ExtentLo;                       // coord of bottom-left of logical extent
02255     DocCoord    ExtentHi;                       // coord of top-right of logical extent
02256     
02257     // Read DocCoords extent of document & set extent in platform-indy ViewState struct.
02258     pDoc->GetExtents(&ExtentLo, &ExtentHi, &PhysExtent, this);
02259     SetExtent(ExtentLo, ExtentHi);              
02260 
02261     return TRUE;
02262 }


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