Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module pydocview :: Class ChildDocument |
|
object
--+ |Object
--+ |EvtHandler
--+ |Document
--+ | ChildDocument
A ChildDocument is a document that represents a portion of a Document. The child document is managed by the parent document, so it will be prompted to close if its parent is closed, etc. Child Documents are useful when there are complicated Views of a Document and users will need to tunnel into the View.
Method Summary | |
---|---|
Returns the data that the ChildDocument contains. | |
Returns the parent Document of the ChildDocument. | |
Called when the ChildDocument is opened and does the minimum such that the ChildDocument looks like a real Document to the framework. | |
Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework. | |
Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework. | |
Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework. | |
Sets the data that the ChildDocument contains. | |
Sets the parent Document of the ChildDocument. | |
Inherited from Document | |
Constructor. | |
If the view is not already in the list of views, adds the view and calls OnChangedViewList. | |
Closes the document, by calling OnSaveModified and then (if this true) OnCloseDocument. | |
Calls wxView.Close and deletes each view. | |
Deletes the contents of the document. | |
Destructor. | |
Called by printing framework to draw the view. | |
Returns the command processor associated with this document. | |
Returns the associated document manager. | |
Returns the file's modification date when it was loaded from disk. | |
The document type name given to the wxDocTemplate constructor, copied to this document when the document is created. | |
Returns True if the document has been saved. | |
Returns the template that created the document. | |
Intended to return a suitable window for using as a parent for document-related dialog boxes. | |
Gets the filename associated with this document, or "" if none is associated. | |
A convenience function to get the first view for a document, because in many cases a document will only have a single view. | |
Copies a suitable document name into the supplied name buffer. | |
Gets the title for this document. | |
Returns the list whose elements are the views on the document. | |
Returns true if the document can be written to its accociated file path. | |
Returns False if the file has been modified outside of the application. | |
Returns true if the document has been modified since the last save, false otherwise. | |
Override this function and call it from your own LoadObject before loading your own data. | |
Call with true to mark the document as modified since the last save, false otherwise. | |
Notifies the views that the document is going to close. | |
Called when a view is added to or deleted from this document. | |
The default implementation calls DeleteContents (an empty implementation) sets the modified flag to false. | |
The default implementation calls DeleteContents (an empty implementation) sets the modified flag to false. | |
Override this function if you want a different (or no) command processor to be created when the document is created. | |
The default implementation calls OnSaveModified and DeleteContents, makes a default title for the document, and notifies the views that the filename (in fact, the title) has changed. | |
If the document has been modified, prompts the user to ask if the changes should be changed. | |
Processes an event, searching event tables and calling zero or more suitable event handler function(s). | |
Removes the view from the document's list of views, and calls OnChangedViewList. | |
Override this function to revert the document to its last saved state. | |
Override this function and call it from your own SaveObject before saving your own data. | |
Sets the command processor to be used for this document. | |
Saves the file's last modification date. | |
Sets he document type name given to the wxDocTemplate constructor, copied to this document when the document is created. | |
Sets whether the document has been saved. | |
Sets the template that created the document. | |
Sets the filename for this document. | |
Sets the title for this document. | |
Set to False if the document can not be saved. | |
Updates all views. | |
Inherited from EvtHandler | |
| |
| |
Bind an event to an event handler. | |
| |
bool |
|
bool |
|
EvtHandler |
|
EvtHandler |
|
| |
| |
| |
| |
Disconencts the event handler binding for event from self. | |
Inherited from Object | |
String |
Returns the class name of the C++ class using wxRTTI. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Method Details |
---|
GetData(self)Returns the data that the ChildDocument contains. |
GetParentDocument(self)Returns the parent Document of the ChildDocument. |
OnOpenDocument(self, filename)Called when the ChildDocument is opened and does the minimum such that the ChildDocument looks like a real Document to the framework.
|
OnSaveDocument(self, filename)Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework.
|
Save(self)Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework.
|
SaveAs(self)Called when the ChildDocument is saved and does the minimum such that the ChildDocument looks like a real Document to the framework.
|
SetData(self, data)Sets the data that the ChildDocument contains. |
SetParentDocument(self, parentDocument)Sets the parent Document of the ChildDocument. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:41:57 2007 | http://epydoc.sf.net |