MarkupDoc.h
资源名称:CMarkup.rar [点击查看]
上传用户:hawkcdm
上传日期:2013-02-10
资源大小:411k
文件大小:2k
源码类别:
xml/soap/webservice
开发平台:
Visual C++
- // MarkupDoc.h : interface of the CMarkupDoc 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_MARKUPDOC_H__774D686F_8271_11D3_B1CF_00105A27C570__INCLUDED_)
- #define AFX_MARKUPDOC_H__774D686F_8271_11D3_B1CF_00105A27C570__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Markup.h"
- class CMarkupDoc : public CDocument
- {
- protected: // create from serialization only
- CMarkupDoc();
- DECLARE_DYNCREATE(CMarkupDoc)
- // Attributes
- public:
- CString m_csText;
- CMarkup m_doc;
- // Operations
- public:
- BOOL IsParsed() { return m_bIsParsed; };
- void SetParsedFlag( BOOL bIsParsed = TRUE ) { m_bIsParsed = bIsParsed; };
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMarkupDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
- virtual void OnCloseDocument();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMarkupDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- BOOL m_bIsParsed;
- SYSTEMTIME m_stBefore;
- void TimeBefore();
- void TimeAfter(LPCTSTR lpszTitle, LPCTSTR szOp);
- CString TitleFromPath(LPCTSTR lpszPathName);
- void ShowError(LPCTSTR lpszTitle, LPCTSTR szError);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMarkupDoc)
- afx_msg void OnFileParse();
- afx_msg void OnUpdateFileParse(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MARKUPDOC_H__774D686F_8271_11D3_B1CF_00105A27C570__INCLUDED_)