/** * @file XTPMarkupView.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPMARKUPVIEW_H__) # define __XTPMARKUPVIEW_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" # ifdef _XTP_INCLUDE_MARKUP class CXTPMarkupDrawingContext; class CXTPMarkupUIElement; class CXTPMarkupContext; class _XTP_EXT_CLASS CXTPMarkupView : public CView , CXTPMarkupContext { protected: // create from serialization only CXTPMarkupView(); DECLARE_DYNCREATE(CXTPMarkupView) // Attributes public: /** * Operations */ public: //{{AFX_VIRTUAL(CMarkupPadView) /** * Overrides * ClassWizard generated virtual function overrides */ 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); void OnPrint(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo); // Implementation public: virtual ~CXTPMarkupView(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); using CXTPMarkupContext::OnWndMsg; void OnInitialUpdate(); void DrawMarkup(CXTPMarkupDrawingContext* pDC, CRect rc); void SetMarkupText(LPCTSTR lpszMarkup); public: CXTPMarkupUIElement* m_pUIElement; BOOL m_bInRender; // Generated message map functions protected: //{{AFX_MSG(CMarkupPadView) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnPaint(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; # endif # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPVIEW_H__) /** @endcond */