📄 resorghtmldoc.h
字号:
/************************************************************************
*
* Resource ID Organiser Core Library
*
* (c) Copyright 2000-2004 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
* All rights reserved.
*
************************************************************************
*
* Filename : ResOrgHtmlDoc.h
*
* Description : CResOrgHtmlDoc - document class for a hosting
* the "ResOrg on the web" HTML view
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or later
* Microsoft Visual C++ .NET 2002
*
* Target
* Environment : Windows 98/NT/2000/XP
*
* NOTE:
*
* This software is provided "as is" free for personal use. All
* title and copyrights in and to the software, including but not
* limited to any images, text, etc. incorporated into it, are
* owned by Anna-Jayne Metcalfe, except where acknowledged otherwise.
*
* Your may freely to use this code in your own products, PROVIDED
* this notice is not removed or modified.
*
*
* Visit http://www.annasplace.me.uk/resorg for latest updates
*
************************************************************************
*
* MODIFICATION HISTORY:
*
* This is a controlled document. See project configuration
* control tool for latest version and full version history.
*
* $Archive: /Projects/AddIns/ResOrg/ResOrgCore/ResOrgHtmlDoc.h $
* $Revision: 10 $
* $Date: 21/08/04 18:59 $
* $Author: Anna $
*
* $History: ResOrgHtmlDoc.h $
*
* ***************** Version 10 *****************
* User: Anna Date: 21/08/04 Time: 18:59
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Modifications to CResOrgHtmlDoc and CResOrgHtmlView for compatibility
* with dynamic splitter windows
*
* ***************** Version 9 *****************
* User: Anna Date: 15/04/03 Time: 20:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* 1. Removed unnecessary file guards (#pragma once works well enough)
* 2. Updated file banners
*
* ***************** Version 8 *****************
* User: Anna Date: 3/03/03 Time: 23:31
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Added the ability to save HTML Reports
*
* ***************** Version 7 *****************
* User: Anna Date: 19/02/03 Time: 19:20
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Started adding XML export and HTML reports
*
* ***************** Version 6 *****************
* User: Anna Date: 25/11/02 Time: 15:13
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Changed website address in banner
*
* ***************** Version 5 *****************
* User: Anna Date: 22/10/02 Time: 13:24
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Changed name/mail address (at last!)
*
* ***************** Version 4 *****************
* User: Andy Date: 7/06/02 Time: 17:04
* Updated in $/Projects/AddIns/ResOrg/ResOrgCore
* Renamed the ResOrgUtils module to ResOrgCore. Updated file banners
* accordingly
*
* ***************** Version 3 *****************
* User: Andy Date: 22/06/01 Time: 9:48
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Made class declaration "Rose friendly"
*
* ***************** Version 2 *****************
* User: Andy Date: 26/05/01 Time: 15:22
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added CResOrgHtmlView to allow the view's ID to be changed (for help
* support)
*
* ***************** Version 1 *****************
* User: Andy Date: 5/12/00 Time: 20:33
* Created in $/Projects/AddIns/ResOrg/ResOrgUtils
*
*
* $Nokeywords: $
*
************************************************************************/
#pragma once
#include <AfxHtml.h>
#define CResOrgHtmlDoc_BASE CDocument
/// HTML document class. Used with CResOrgHtmlView
///
class RESORGCORE_EXT_CLASS CResOrgHtmlDoc : public CDocument
{
DECLARE_DYNCREATE(CResOrgHtmlDoc)
protected: // create from serialization only
CResOrgHtmlDoc(void);
public:
virtual ~CResOrgHtmlDoc(void);
// Attributes
protected:
CString m_sUrl;
BOOL m_bUrlIsLocalFile;
// Operations
public:
CString GetUrl(void) const
{return m_sUrl; }
bool SetUrl(const CString& sUrl);
// Virtual Overrides
public:
virtual BOOL OnSaveDocument(LPCTSTR pszPathName);
// Implementation
public:
#ifdef _DEBUG
virtual void AssertValid(void) const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
afx_msg void OnCmdFileSave(void);
afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
/// HTML view class. Used with CResOrgHtmlDoc
///
class RESORGCORE_EXT_CLASS CResOrgHtmlView : public CHtmlView
{
DECLARE_DYNCREATE(CResOrgHtmlView)
protected: // create from serialization only
CResOrgHtmlView(void) {}
public:
virtual ~CResOrgHtmlView(void) {}
virtual void OnInitialUpdate(void);
afx_msg LRESULT OnHelpHitTest(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -