]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/htmlhelp.py
fixed GTK critical warning when closing MDI child (patch 529369)
[wxWidgets.git] / wxPython / src / mac / htmlhelp.py
1 # This file was created automatically by SWIG.
2 import htmlhelpc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from streams import *
17
18 from utils import *
19
20 from mdi import *
21
22 from frames import *
23
24 from stattool import *
25
26 from controls import *
27
28 from controls2 import *
29
30 from windows2 import *
31
32 from cmndlgs import *
33
34 from windows3 import *
35
36 from image import *
37
38 from printfw import *
39
40 from sizers import *
41
42 from filesys import *
43 class wxHtmlBookRecordPtr(wxObjectPtr):
44 def __init__(self,this):
45 self.this = this
46 self.thisown = 0
47 def GetBookFile(self, *_args, **_kwargs):
48 val = apply(htmlhelpc.wxHtmlBookRecord_GetBookFile,(self,) + _args, _kwargs)
49 return val
50 def GetTitle(self, *_args, **_kwargs):
51 val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs)
52 return val
53 def GetStart(self, *_args, **_kwargs):
54 val = apply(htmlhelpc.wxHtmlBookRecord_GetStart,(self,) + _args, _kwargs)
55 return val
56 def GetBasePath(self, *_args, **_kwargs):
57 val = apply(htmlhelpc.wxHtmlBookRecord_GetBasePath,(self,) + _args, _kwargs)
58 return val
59 def SetContentsRange(self, *_args, **_kwargs):
60 val = apply(htmlhelpc.wxHtmlBookRecord_SetContentsRange,(self,) + _args, _kwargs)
61 return val
62 def GetContentsStart(self, *_args, **_kwargs):
63 val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsStart,(self,) + _args, _kwargs)
64 return val
65 def GetContentsEnd(self, *_args, **_kwargs):
66 val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs)
67 return val
68 def SetTitle(self, *_args, **_kwargs):
69 val = apply(htmlhelpc.wxHtmlBookRecord_SetTitle,(self,) + _args, _kwargs)
70 return val
71 def SetBasePath(self, *_args, **_kwargs):
72 val = apply(htmlhelpc.wxHtmlBookRecord_SetBasePath,(self,) + _args, _kwargs)
73 return val
74 def SetStart(self, *_args, **_kwargs):
75 val = apply(htmlhelpc.wxHtmlBookRecord_SetStart,(self,) + _args, _kwargs)
76 return val
77 def GetFullPath(self, *_args, **_kwargs):
78 val = apply(htmlhelpc.wxHtmlBookRecord_GetFullPath,(self,) + _args, _kwargs)
79 return val
80 def __repr__(self):
81 return "<C wxHtmlBookRecord instance at %s>" % (self.this,)
82 class wxHtmlBookRecord(wxHtmlBookRecordPtr):
83 def __init__(self,*_args,**_kwargs):
84 self.this = apply(htmlhelpc.new_wxHtmlBookRecord,_args,_kwargs)
85 self.thisown = 1
86
87
88
89
90 class wxHtmlContentsItemPtr :
91 def __init__(self,this):
92 self.this = this
93 self.thisown = 0
94 def __setattr__(self,name,value):
95 if name == "m_Level" :
96 htmlhelpc.wxHtmlContentsItem_m_Level_set(self,value)
97 return
98 if name == "m_ID" :
99 htmlhelpc.wxHtmlContentsItem_m_ID_set(self,value)
100 return
101 if name == "m_Name" :
102 htmlhelpc.wxHtmlContentsItem_m_Name_set(self,value)
103 return
104 if name == "m_Page" :
105 htmlhelpc.wxHtmlContentsItem_m_Page_set(self,value)
106 return
107 if name == "m_Book" :
108 htmlhelpc.wxHtmlContentsItem_m_Book_set(self,value.this)
109 return
110 self.__dict__[name] = value
111 def __getattr__(self,name):
112 if name == "m_Level" :
113 return htmlhelpc.wxHtmlContentsItem_m_Level_get(self)
114 if name == "m_ID" :
115 return htmlhelpc.wxHtmlContentsItem_m_ID_get(self)
116 if name == "m_Name" :
117 return htmlhelpc.wxHtmlContentsItem_m_Name_get(self)
118 if name == "m_Page" :
119 return htmlhelpc.wxHtmlContentsItem_m_Page_get(self)
120 if name == "m_Book" :
121 return wxHtmlBookRecordPtr(htmlhelpc.wxHtmlContentsItem_m_Book_get(self))
122 raise AttributeError,name
123 def __repr__(self):
124 return "<C wxHtmlContentsItem instance at %s>" % (self.this,)
125 class wxHtmlContentsItem(wxHtmlContentsItemPtr):
126 def __init__(self,this):
127 self.this = this
128
129
130
131
132 class wxHtmlSearchStatusPtr :
133 def __init__(self,this):
134 self.this = this
135 self.thisown = 0
136 def Search(self, *_args, **_kwargs):
137 val = apply(htmlhelpc.wxHtmlSearchStatus_Search,(self,) + _args, _kwargs)
138 return val
139 def IsActive(self, *_args, **_kwargs):
140 val = apply(htmlhelpc.wxHtmlSearchStatus_IsActive,(self,) + _args, _kwargs)
141 return val
142 def GetCurIndex(self, *_args, **_kwargs):
143 val = apply(htmlhelpc.wxHtmlSearchStatus_GetCurIndex,(self,) + _args, _kwargs)
144 return val
145 def GetMaxIndex(self, *_args, **_kwargs):
146 val = apply(htmlhelpc.wxHtmlSearchStatus_GetMaxIndex,(self,) + _args, _kwargs)
147 return val
148 def GetName(self, *_args, **_kwargs):
149 val = apply(htmlhelpc.wxHtmlSearchStatus_GetName,(self,) + _args, _kwargs)
150 return val
151 def GetContentsItem(self, *_args, **_kwargs):
152 val = apply(htmlhelpc.wxHtmlSearchStatus_GetContentsItem,(self,) + _args, _kwargs)
153 if val: val = wxHtmlContentsItemPtr(val)
154 return val
155 def __repr__(self):
156 return "<C wxHtmlSearchStatus instance at %s>" % (self.this,)
157 class wxHtmlSearchStatus(wxHtmlSearchStatusPtr):
158 def __init__(self,this):
159 self.this = this
160
161
162
163
164 class wxHtmlHelpDataPtr :
165 def __init__(self,this):
166 self.this = this
167 self.thisown = 0
168 def __del__(self,htmlhelpc=htmlhelpc):
169 if self.thisown == 1 :
170 htmlhelpc.delete_wxHtmlHelpData(self)
171 def SetTempDir(self, *_args, **_kwargs):
172 val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
173 return val
174 def AddBook(self, *_args, **_kwargs):
175 val = apply(htmlhelpc.wxHtmlHelpData_AddBook,(self,) + _args, _kwargs)
176 return val
177 def FindPageByName(self, *_args, **_kwargs):
178 val = apply(htmlhelpc.wxHtmlHelpData_FindPageByName,(self,) + _args, _kwargs)
179 return val
180 def FindPageById(self, *_args, **_kwargs):
181 val = apply(htmlhelpc.wxHtmlHelpData_FindPageById,(self,) + _args, _kwargs)
182 return val
183 def GetBookRecArray(self, *_args, **_kwargs):
184 val = apply(htmlhelpc.wxHtmlHelpData_GetBookRecArray,(self,) + _args, _kwargs)
185 return val
186 def GetContents(self, *_args, **_kwargs):
187 val = apply(htmlhelpc.wxHtmlHelpData_GetContents,(self,) + _args, _kwargs)
188 if val: val = wxHtmlContentsItemPtr(val)
189 return val
190 def GetContentsCnt(self, *_args, **_kwargs):
191 val = apply(htmlhelpc.wxHtmlHelpData_GetContentsCnt,(self,) + _args, _kwargs)
192 return val
193 def GetIndex(self, *_args, **_kwargs):
194 val = apply(htmlhelpc.wxHtmlHelpData_GetIndex,(self,) + _args, _kwargs)
195 if val: val = wxHtmlContentsItemPtr(val)
196 return val
197 def GetIndexCnt(self, *_args, **_kwargs):
198 val = apply(htmlhelpc.wxHtmlHelpData_GetIndexCnt,(self,) + _args, _kwargs)
199 return val
200 def __repr__(self):
201 return "<C wxHtmlHelpData instance at %s>" % (self.this,)
202 class wxHtmlHelpData(wxHtmlHelpDataPtr):
203 def __init__(self,*_args,**_kwargs):
204 self.this = apply(htmlhelpc.new_wxHtmlHelpData,_args,_kwargs)
205 self.thisown = 1
206
207
208
209
210 class wxHtmlHelpFramePtr(wxFramePtr):
211 def __init__(self,this):
212 self.this = this
213 self.thisown = 0
214 def GetData(self, *_args, **_kwargs):
215 val = apply(htmlhelpc.wxHtmlHelpFrame_GetData,(self,) + _args, _kwargs)
216 if val: val = wxHtmlHelpDataPtr(val)
217 return val
218 def SetTitleFormat(self, *_args, **_kwargs):
219 val = apply(htmlhelpc.wxHtmlHelpFrame_SetTitleFormat,(self,) + _args, _kwargs)
220 return val
221 def Display(self, *_args, **_kwargs):
222 val = apply(htmlhelpc.wxHtmlHelpFrame_Display,(self,) + _args, _kwargs)
223 return val
224 def DisplayID(self, *_args, **_kwargs):
225 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayID,(self,) + _args, _kwargs)
226 return val
227 def DisplayContents(self, *_args, **_kwargs):
228 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayContents,(self,) + _args, _kwargs)
229 return val
230 def DisplayIndex(self, *_args, **_kwargs):
231 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayIndex,(self,) + _args, _kwargs)
232 return val
233 def KeywordSearch(self, *_args, **_kwargs):
234 val = apply(htmlhelpc.wxHtmlHelpFrame_KeywordSearch,(self,) + _args, _kwargs)
235 return val
236 def UseConfig(self, *_args, **_kwargs):
237 val = apply(htmlhelpc.wxHtmlHelpFrame_UseConfig,(self,) + _args, _kwargs)
238 return val
239 def ReadCustomization(self, *_args, **_kwargs):
240 val = apply(htmlhelpc.wxHtmlHelpFrame_ReadCustomization,(self,) + _args, _kwargs)
241 return val
242 def WriteCustomization(self, *_args, **_kwargs):
243 val = apply(htmlhelpc.wxHtmlHelpFrame_WriteCustomization,(self,) + _args, _kwargs)
244 return val
245 def __repr__(self):
246 return "<C wxHtmlHelpFrame instance at %s>" % (self.this,)
247 class wxHtmlHelpFrame(wxHtmlHelpFramePtr):
248 def __init__(self,*_args,**_kwargs):
249 self.this = apply(htmlhelpc.new_wxHtmlHelpFrame,_args,_kwargs)
250 self.thisown = 1
251 self._setOORInfo(self)
252
253
254
255
256 class wxHtmlHelpControllerPtr(wxEvtHandlerPtr):
257 def __init__(self,this):
258 self.this = this
259 self.thisown = 0
260 def __del__(self,htmlhelpc=htmlhelpc):
261 if self.thisown == 1 :
262 htmlhelpc.delete_wxHtmlHelpController(self)
263 def SetTitleFormat(self, *_args, **_kwargs):
264 val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
265 return val
266 def SetTempDir(self, *_args, **_kwargs):
267 val = apply(htmlhelpc.wxHtmlHelpController_SetTempDir,(self,) + _args, _kwargs)
268 return val
269 def AddBook(self, *_args, **_kwargs):
270 val = apply(htmlhelpc.wxHtmlHelpController_AddBook,(self,) + _args, _kwargs)
271 return val
272 def Display(self, *_args, **_kwargs):
273 val = apply(htmlhelpc.wxHtmlHelpController_Display,(self,) + _args, _kwargs)
274 return val
275 def DisplayID(self, *_args, **_kwargs):
276 val = apply(htmlhelpc.wxHtmlHelpController_DisplayID,(self,) + _args, _kwargs)
277 return val
278 def DisplayContents(self, *_args, **_kwargs):
279 val = apply(htmlhelpc.wxHtmlHelpController_DisplayContents,(self,) + _args, _kwargs)
280 return val
281 def DisplayIndex(self, *_args, **_kwargs):
282 val = apply(htmlhelpc.wxHtmlHelpController_DisplayIndex,(self,) + _args, _kwargs)
283 return val
284 def KeywordSearch(self, *_args, **_kwargs):
285 val = apply(htmlhelpc.wxHtmlHelpController_KeywordSearch,(self,) + _args, _kwargs)
286 return val
287 def UseConfig(self, *_args, **_kwargs):
288 val = apply(htmlhelpc.wxHtmlHelpController_UseConfig,(self,) + _args, _kwargs)
289 return val
290 def ReadCustomization(self, *_args, **_kwargs):
291 val = apply(htmlhelpc.wxHtmlHelpController_ReadCustomization,(self,) + _args, _kwargs)
292 return val
293 def WriteCustomization(self, *_args, **_kwargs):
294 val = apply(htmlhelpc.wxHtmlHelpController_WriteCustomization,(self,) + _args, _kwargs)
295 return val
296 def GetFrame(self, *_args, **_kwargs):
297 val = apply(htmlhelpc.wxHtmlHelpController_GetFrame,(self,) + _args, _kwargs)
298 if val: val = wxHtmlHelpFramePtr(val)
299 return val
300 def __repr__(self):
301 return "<C wxHtmlHelpController instance at %s>" % (self.this,)
302 class wxHtmlHelpController(wxHtmlHelpControllerPtr):
303 def __init__(self,*_args,**_kwargs):
304 self.this = apply(htmlhelpc.new_wxHtmlHelpController,_args,_kwargs)
305 self.thisown = 1
306 self._setOORInfo(self)
307
308
309
310
311
312
313 #-------------- FUNCTION WRAPPERS ------------------
314
315
316
317 #-------------- VARIABLE WRAPPERS ------------------
318
319 wxHF_TOOLBAR = htmlhelpc.wxHF_TOOLBAR
320 wxHF_FLATTOOLBAR = htmlhelpc.wxHF_FLATTOOLBAR
321 wxHF_CONTENTS = htmlhelpc.wxHF_CONTENTS
322 wxHF_INDEX = htmlhelpc.wxHF_INDEX
323 wxHF_SEARCH = htmlhelpc.wxHF_SEARCH
324 wxHF_BOOKMARKS = htmlhelpc.wxHF_BOOKMARKS
325 wxHF_OPENFILES = htmlhelpc.wxHF_OPENFILES
326 wxHF_PRINT = htmlhelpc.wxHF_PRINT
327 wxHF_DEFAULTSTYLE = htmlhelpc.wxHF_DEFAULTSTYLE