#include <xpfrgn.h>
Inheritance diagram for XPFView:
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 CNativeDC * | GetRenderDC () |
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) |
Definition at line 349 of file xpfrgn.h.
|
Destroys a XPFView, deallocating it's associated ViewState.
Definition at line 3136 of file xpfrgn.cpp.
|
|
|
|
None - XPFView is a skeleton class that is only used to access screen characteristics.
Implements View. Definition at line 3243 of file xpfrgn.cpp. 03245 { 03246 ERROR3("XPFView::ContinueRenderView() should not be called!"); 03247 }
|
|
Allows derived view classes to override the reolution.
Reimplemented from View. Definition at line 3388 of file xpfrgn.cpp. 03389 { 03390 return(m_DPI); 03391 }
|
|
To determine the docrect area that this view is viewing.
Implements View. Definition at line 3323 of file xpfrgn.cpp. 03324 { 03325 return(pSpread->GetBoundingRect()); 03326 }
|
|
None - XPFView is a skeleton class that is only used to access screen characteristics.
Implements View. Definition at line 3282 of file xpfrgn.cpp. 03283 { 03284 // XPFViews don't background render. 03285 return FALSE; 03286 }
|
|
None - XPFView is a skeleton class that is only used to access screen characteristics.
Implements View. Definition at line 3263 of file xpfrgn.cpp. 03264 { 03265 return NULL; 03266 }
|
|
None - XPFView is a skeleton class that is only used to access screen characteristics.
Implements View. Definition at line 3367 of file xpfrgn.cpp. 03368 { 03369 WorkRect Empty; 03370 return Empty; 03371 }
|
|
Initialise the XPFView for rendering.
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 }
|
|
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).
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 }
|
|
None - XPFView is a skeleton class that is only used to access screen characteristics.
Implements View. Definition at line 3304 of file xpfrgn.cpp. 03305 { 03306 ERROR3("XPFView::SetForeBackMode() should not be called!"); 03307 }
|
|
Sets up the pixel size for this view object.
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 }
|
|
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 }
|
|
|