phoenix_title wx.lib.pydocview.DocService

An abstract class used to add reusable services to a docview application.


class_hierarchy Class Hierarchy

Inheritance diagram for class DocService:

super_classes Known Superclasses

wx.EvtHandler


method_summary Methods Summary

__init__

Initializes the DocService.

GetDocumentManager

Returns the DocManager for the docview application.

GetMenuItemPos

Utility method used to find the position of a menu item so that services can

GetView

Called by WindowMenuService to get views for services that don’t

InstallControls

Called to install controls into the menubar and toolbar of a SDI or MDI window. Override this method for a particular service.

OnCloseFrame

Called when the a docview frame is being closed. Override this method

OnExit

Called when the the docview application is being closed. Override this method

ProcessEvent

Processes an event, searching event tables and calling zero or more

ProcessEventBeforeWindows

Processes an event before the main window has a chance to process the window.

ProcessUpdateUIEvent

Processes a UI event, searching event tables and calling zero or more

ProcessUpdateUIEventBeforeWindows

Processes a UI event before the main window has a chance to process the window.

SetDocumentManager

Sets the DocManager for the docview application.


api Class API

class DocService(wx.EvtHandler)

An abstract class used to add reusable services to a docview application.


Methods

__init__(self)

Initializes the DocService.



GetDocumentManager(self)

Returns the DocManager for the docview application.



GetMenuItemPos(self, menu, id)

Utility method used to find the position of a menu item so that services can easily find where to insert a menu item in InstallControls.



GetView(self)

Called by WindowMenuService to get views for services that don’t have dedicated documents such as the Outline Service.



InstallControls(self, frame, menuBar=None, toolBar=None, statusBar=None, document=None)

Called to install controls into the menubar and toolbar of a SDI or MDI window. Override this method for a particular service.



OnCloseFrame(self, event)

Called when the a docview frame is being closed. Override this method so a service can either do cleanup or veto the frame being closed by returning false.



OnExit(self)

Called when the the docview application is being closed. Override this method so a service can either do cleanup or veto the frame being closed by returning false.



ProcessEvent(self, event)

Processes an event, searching event tables and calling zero or more suitable event handler function(s). Note that the ProcessEvent method is called from the wxPython docview framework directly since wxPython does not have a virtual ProcessEvent function.



ProcessEventBeforeWindows(self, event)

Processes an event before the main window has a chance to process the window. Override this method for a particular service.



ProcessUpdateUIEvent(self, event)

Processes a UI event, searching event tables and calling zero or more suitable event handler function(s). Note that the ProcessEvent method is called from the wxPython docview framework directly since wxPython does not have a virtual ProcessEvent function.



ProcessUpdateUIEventBeforeWindows(self, event)

Processes a UI event before the main window has a chance to process the window. Override this method for a particular service.



SetDocumentManager(self, docManager)

Sets the DocManager for the docview application.