CODDocViewAnchor Class
class CODDocViewAnchor: public CODAnchorSymbol
Provides a hyperlink to an MFC document.This type of anchor symbol encapsulates an MFC document template and a document name. When the link is opened, the document template is used to open a document and view.
Defined in: OdAnchorSymbol.h
Class Members
CODDocViewAnchor(CDocTemplate* pDocTemplate = NULL)
Constructor.
CODDocViewAnchor(const CODDocViewAnchor& src)
Copy constructor.
virtual ~CODDocViewAnchor()
Destructor.
CODDocViewAnchor& operator=(const CODDocViewAnchor& src)
Assignment operator.
virtual CODComponent* Dup() const
Create a duplicate copy of this object.
CDocTemplate* m_pDocTemplate
Pointer to the document template to link to.
CString m_strPathName
Name of document to link to.
CString m_strTitle
Document title.
virtual CDocTemplate* GetDocTemplate()
Get the document template attached to this anchor.
virtual void SetDocTemplate(CDocTemplate* pDocTemplate)
Set the document template to use for opening linked documents.
virtual void SetPathName(LPCTSTR lpszPathName)
Set the path and file name.
const CString& GetPathName() const
Return the path and file name.
virtual void SetTitle(LPCTSTR lpszTitle)
Set the document title.
const CString& GetTitle() const
Return the document title.
virtual BOOL Open()
Open the named document using the given document template.
virtual CDocument* GetDocument()
Return a pointer to the most recently opened document.
virtual void Serialize(CArchive& ar)
Serialize the component.