File: wx.lib.pydocview.DocService.txt

package info (click to toggle)
wxpython4.0 4.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 232,540 kB
  • sloc: cpp: 958,937; python: 233,059; ansic: 150,441; makefile: 51,662; sh: 8,687; perl: 1,563; javascript: 584; php: 326; xml: 200
file content (169 lines) | stat: -rw-r--r-- 7,108 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2020 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.pydocview

.. highlight:: python



.. _wx.lib.pydocview.DocService:

==========================================================================================================================================
|phoenix_title|  **wx.lib.pydocview.DocService**
==========================================================================================================================================

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



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>DocService</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.lib.pydocview.DocService_inheritance.png" alt="Inheritance diagram of DocService" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.pydocview.DocService.html" title="wx.lib.pydocview.DocService" alt="" coords="5,160,216,189"/> <area shape="rect" id="node2" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="52,83,169,112"/> <area shape="rect" id="node3" href="wx.Object.html" title="wx.Object" alt="" coords="7,5,94,35"/> <area shape="rect" id="node4" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="119,5,225,35"/> </map> 
   </p>
   </div>

|


|sub_classes| Known Subclasses
==============================

:class:`wx.lib.pydocview.AboutService`, :class:`wx.lib.pydocview.DocOptionsService`, :class:`wx.lib.pydocview.FilePropertiesService`, :class:`wx.lib.pydocview.WindowMenuService`

|


|super_classes| Known Superclasses
==================================

:class:`wx.EvtHandler`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.lib.pydocview.DocService.__init__`                                    Initializes the DocService.
:meth:`~wx.lib.pydocview.DocService.GetDocumentManager`                          Returns the DocManager for the docview application.
:meth:`~wx.lib.pydocview.DocService.GetMenuItemPos`                              Utility method used to find the position of a menu item so that services can
:meth:`~wx.lib.pydocview.DocService.GetView`                                     Called by WindowMenuService to get views for services that don't
:meth:`~wx.lib.pydocview.DocService.InstallControls`                             Called to install controls into the menubar and toolbar of a SDI or MDI window.  Override this method for a particular service.
:meth:`~wx.lib.pydocview.DocService.OnCloseFrame`                                Called when the a docview frame is being closed.  Override this method
:meth:`~wx.lib.pydocview.DocService.OnExit`                                      Called when the the docview application is being closed.  Override this method
:meth:`~wx.lib.pydocview.DocService.ProcessEvent`                                Processes an event, searching event tables and calling zero or more
:meth:`~wx.lib.pydocview.DocService.ProcessEventBeforeWindows`                   Processes an event before the main window has a chance to process the window.
:meth:`~wx.lib.pydocview.DocService.ProcessUpdateUIEvent`                        Processes a UI event, searching event tables and calling zero or more
:meth:`~wx.lib.pydocview.DocService.ProcessUpdateUIEventBeforeWindows`           Processes a UI event before the main window has a chance to process the window.
:meth:`~wx.lib.pydocview.DocService.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.

   .. method:: __init__(self)

      Initializes the DocService.


   .. method:: GetDocumentManager(self)

      Returns the DocManager for the docview application.


   .. method:: 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.


   .. method:: GetView(self)

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


   .. method:: 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.


   .. method:: 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.


   .. method:: 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.


   .. method:: 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.


   .. method:: ProcessEventBeforeWindows(self, event)

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


   .. method:: 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.


   .. method:: 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.


   .. method:: SetDocumentManager(self, docManager)

      Sets the DocManager for the docview application.