[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $docheader$ : interface of the $docclass$ class // #pragma once [!if OLEDB_RECORD_VIEW || ODBC_RECORD_VIEW] #include "$rowsetheader$" [!endif] [!if MINI_SERVER || FULL_SERVER || CONTAINER_SERVER] class $serveritemclass$; [!endif] class $docclass$ : public $docbaseclass$ { protected: // create from serialization only $docclass$() noexcept; DECLARE_DYNCREATE($docclass$) // Attributes public: [!if MINI_SERVER || FULL_SERVER || CONTAINER_SERVER] $serveritemclass$* GetEmbeddedItem() { return reinterpret_cast<$serveritemclass$*>($docbaseclass$::GetEmbeddedItem()); } [!endif] [!if OLEDB_RECORD_VIEW || ODBC_RECORD_VIEW] $rowsetclass$ $rowsetclassvariablename$; [!endif] // Operations public: // Overrides [!if MINI_SERVER || FULL_SERVER || CONTAINER_SERVER] protected: virtual COleServerItem* OnGetEmbeddedItem(); [!endif] public: virtual BOOL OnNewDocument(); [!if !DB_VIEW_NO_FILE && !HTML_EDITVIEW] virtual void Serialize(CArchive& ar); [!endif] [!if RICH_EDIT_VIEW] virtual $containeritembaseclass$* CreateClientItem(REOBJECT* preo) const; [!endif] #ifdef SHARED_HANDLERS virtual void InitializeSearchContent(); virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds); #endif // SHARED_HANDLERS // Implementation public: virtual ~$docclass$(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: [!if ACTIVE_DOC_SERVER] virtual CDocObjectServer* GetDocObjectServer(LPOLEDOCUMENTSITE pDocSite); [!endif] // Generated message map functions protected: DECLARE_MESSAGE_MAP() [!if AUTOMATION] // Generated OLE dispatch map functions DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() [!endif] #ifdef SHARED_HANDLERS // Helper function that sets search content for a Search Handler void SetSearchContent(const CString& value); #endif // SHARED_HANDLERS [!if EDIT_VIEW] #ifdef SHARED_HANDLERS private: CString m_strSearchContent; CString m_strThumbnailContent; #endif // SHARED_HANDLERS [!endif] };