PyCDocument Object

A document class. Encapsulates an MFC CDocument class

Methods

DeleteContents
Call the MFC DeleteContents method. 

DoSave
Save the file. If necessary, prompt for file name. 

DoFileSave
Check file attributes, and save the file. 

GetDocTemplate
Returns the PyCDocTemplate for the document. 

GetAllViews
Returns a list of all views for the current document. 

GetFirstView
Returns the first view object attached to this document. 

GetPathName
Returns the full path name of the current document. 

GetTitle
Returns the title of the current document. 

IsModified
Return a flag indicating if the document has been modified. 

OnChangedViewList
Informs the document when a view is added or removed. 

OnCloseDocument
Call the MFC OnCloseDocument handler. 

OnNewDocument
Call the MFC OnNewDocument handler. 

OnOpenDocument
Call the MFC OnOpenDocument handler. 

OnSaveDocument
Call the MFC OnSaveDocument handler. 

SetModifiedFlag
Set the "dirty" flag for the document. 

SaveModified
Call the underlying MFC method. 

SetPathName
Set the full path name for the document. 

SetTitle
Set the title of the document. 

UpdateAllViews
Informs each view when a document changes. sentinel 

Based On

PyCCmdTarget