SECEditView Class

class SECEditView: public SECEditViewWrapper_T, public CView, public SECEditViewport

The SECEditView class combines a CView with a SECEditViewport for rendering the data associated with the model (SECEdit) and directing user input to the controller (SECEditController). This class represents the view portion of the model-view-controller triad. Unlike the SECEditCtrl class, SECEditView provides print / print preview support.

Defined in: SECEditView.h

See Also

SECEditViewport SECEdit SECEditController

Class Members

Construction / initialization

EDIT_API SECEditView()

Protected constructor used by dynamic creation

Attributes

EDIT_API virtual CPoint SetLogOrigin(int x, int y)

Sets the logical origin.

inline CPoint SetLogOrigin(const CPoint& ptLog)

Sets the logical origin

Operations

EDIT_API virtual void OnUpdate(sfl::IMvcSubject* pSubject, sfl::IMvcMessage* pMsg)

Handle notifications of changes to the subject this viewport is observing.

EDIT_API virtual void OnInitialUpdate()

Called when window is first initialized

EDIT_API virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)

Called when printing is beginning

EDIT_API virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)

Called when printing is complete

EDIT_API virtual BOOL OnPreparePrinting(CPrintInfo* pInfo)

Called to preapare for printing

EDIT_API virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo)

Called to print each page

Implementation

EDIT_API virtual ~SECEditView()

Destructor

_SECEditPrinterInfo* m_pPrinterInfo

Printing information structure for the curent print job in progress

EDIT_API virtual void SetPagination(CDC* pDC)

Sets the pagination of the document based on the device context.

EDIT_API virtual void SetMargins(CDC* pDC, CRect& rcPage)

Sets the print margins

EDIT_API virtual int GetHeaderHeight(CDC* pDC)

Gets the height for the header area

EDIT_API virtual int GetFooterHeight(CDC* pDC)

Gets the height for the footer area

EDIT_API virtual void PrintHeader(CDC* pDC, CPrintInfo* pInfo, const CRect& rcHeader)

Prints the header

EDIT_API virtual void PrintBody(CDC* pDC, CPrintInfo* pInfo, const CRect& rcBody)

Prints the body of the page

EDIT_API virtual void PrintFooter(CDC* pDC, CPrintInfo* pInfo, const CRect& rcFooter)

Prints the footer

EDIT_API virtual SECEdit* GetEdit()

Returns a pointer to the SECEdit model for this view.

EDIT_API afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)

WM_CREATE handler for this view

Protected data members

CSplitterWnd* m_pSplitterParent

The CSplitterWnd parent of this view, if contained in a splitter window.

int m_nSplitRow

The splitter row for this view, if contained in a splitter window.

int m_nSplitCol

The splitter column of this view, if contained in a splitter window.