📄 kyofficeview.h
字号:
// KyOfficeView.h : interface of the CKyOfficeView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_KYOFFICEVIEW_H__7017ABE5_E46D_4D66_BD1D_112229164303__INCLUDED_)
#define AFX_KYOFFICEVIEW_H__7017ABE5_E46D_4D66_BD1D_112229164303__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "InPlacePrevw.h"
class CKyOfficeCtrl;
class CKyOfficeDoc;
class CKyOfficeCntrItem;
class CKyOfficeView : public CView, public IPreviewCallback
{
protected: // create from serialization only
CKyOfficeView();
DECLARE_DYNCREATE(CKyOfficeView)
// Attributes
public:
CKyOfficeDoc* GetDocument();
// m_pSelection holds the selection to the current CKyOfficeCntrItem.
// For many applications, such a member variable isn't adequate to
// represent a selection, such as a multiple selection or a selection
// of objects that are not CKyOfficeCntrItem objects. This selection
// mechanism is provided just to help you get started.
// TODO: replace this selection mechanism with one appropriate to your app.
CKyOfficeCntrItem * m_pSelection;
// Operations
public:
STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
STDMETHODIMP Notify(DWORD wStatus, LONG nLastPage, wchar_t* pwszPreviewStatus);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CKyOfficeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support
//}}AFX_VIRTUAL
// Implementation
public:
void DoFilePrint();
void DoFilePrintPreview();
BOOL DoNew(REFCLSID clsid = CLSID_NULL);
BOOL DoOpenDocument(LPCTSTR lpszPathName);
void DoCloseDocument();
void SetOfficeCtrl(CKyOfficeCtrl * pOfficeCtrl){m_pOfficeCtrl = pOfficeCtrl;}
CKyOfficeCtrl * GetOfficeCtrl(CKyOfficeCtrl * pOfficeCtrl){return m_pOfficeCtrl;}
virtual ~CKyOfficeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
ULONG _cRef; // Reference count
CKyOfficeCtrl * m_pOfficeCtrl;
// Generated message map functions
protected:
//{{AFX_MSG(CKyOfficeView)
afx_msg void OnDestroy();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnFileClose();
afx_msg void OnAppAbout();
afx_msg void OnFilePrint();
afx_msg void OnFilePrintPreview();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in KyOfficeView.cpp
inline CKyOfficeDoc* CKyOfficeView::GetDocument()
{ return (CKyOfficeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_KYOFFICEVIEW_H__7017ABE5_E46D_4D66_BD1D_112229164303__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -