MarkupView.h
资源名称:CMarkup.rar [点击查看]
上传用户:hawkcdm
上传日期:2013-02-10
资源大小:411k
文件大小:3k
源码类别:
xml/soap/webservice
开发平台:
Visual C++
- // MarkupView.h : interface of the CMarkupView class
- //
- // Markup Release 6.1 Lite
- // Copyright (C) 1999-2001 First Objective Software, Inc. All rights reserved
- // This entire notice must be retained in this source code
- // Redistributing this source code requires written permission
- // This software is provided "as is", with no warranty.
- // Latest fixes enhancements and documentation at www.firstobject.com
- #if !defined(AFX_MARKUPVIEW_H__774D6871_8271_11D3_B1CF_00105A27C570__INCLUDED_)
- #define AFX_MARKUPVIEW_H__774D6871_8271_11D3_B1CF_00105A27C570__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "DividerCtrl.h"
- class CMarkupView : public CView
- {
- protected: // create from serialization only
- CMarkupView();
- DECLARE_DYNCREATE(CMarkupView)
- CEdit m_edit;
- CFont m_font;
- CTreeCtrl m_tree;
- CImageList m_ilTree;
- CDividerCtrl m_divider;
- void CalcSize( int cx, int cy );
- int m_nAddAttrib;
- void GetNthWisePos( HTREEITEM hItem, CUIntArray& aNths );
- void SetPos( HTREEITEM hItem, BOOL bChild = FALSE );
- // Attributes
- public:
- CMarkupDoc* GetDocument();
- CMarkup* m_pXML;
- void GetEditText( CString& csDoc );
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMarkupView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
- virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMarkupView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- CString SetEditTextFromDoc();
- HTREEITEM AddElemToTree(HTREEITEM hParentItem);
- BOOL ElemHasSubItems();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMarkupView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnMarkupFind();
- afx_msg void OnMarkupAdd();
- afx_msg void OnMarkupAddChild();
- afx_msg void OnMarkupAddAttrib();
- afx_msg void OnEditCopy();
- afx_msg void OnEditCut();
- afx_msg void OnEditPaste();
- afx_msg void OnEditUndo();
- afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
- //}}AFX_MSG
- afx_msg void OnChangeEdit();
- afx_msg LRESULT OnAppMessage( WPARAM, LPARAM );
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in MarkupView.cpp
- inline CMarkupDoc* CMarkupView::GetDocument()
- { return (CMarkupDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MARKUPVIEW_H__774D6871_8271_11D3_B1CF_00105A27C570__INCLUDED_)