1 # This file was created automatically by SWIG. 
  12 from clip_dnd 
import * 
  22 from stattool 
import * 
  24 from controls 
import * 
  26 from controls2 
import * 
  28 from windows2 
import * 
  32 from windows3 
import * 
  43 class wxHtmlHelpFrameCfgPtr 
: 
  44     def __init__(self
,this
): 
  47     def __setattr__(self
,name
,value
): 
  49             htmlhelpc
.wxHtmlHelpFrameCfg_x_set(self
,value
) 
  52             htmlhelpc
.wxHtmlHelpFrameCfg_y_set(self
,value
) 
  55             htmlhelpc
.wxHtmlHelpFrameCfg_w_set(self
,value
) 
  58             htmlhelpc
.wxHtmlHelpFrameCfg_h_set(self
,value
) 
  60         if name 
== "sashpos" : 
  61             htmlhelpc
.wxHtmlHelpFrameCfg_sashpos_set(self
,value
) 
  63         if name 
== "navig_on" : 
  64             htmlhelpc
.wxHtmlHelpFrameCfg_navig_on_set(self
,value
) 
  66         self
.__dict
__[name
] = value
 
  67     def __getattr__(self
,name
): 
  69             return htmlhelpc
.wxHtmlHelpFrameCfg_x_get(self
) 
  71             return htmlhelpc
.wxHtmlHelpFrameCfg_y_get(self
) 
  73             return htmlhelpc
.wxHtmlHelpFrameCfg_w_get(self
) 
  75             return htmlhelpc
.wxHtmlHelpFrameCfg_h_get(self
) 
  76         if name 
== "sashpos" :  
  77             return htmlhelpc
.wxHtmlHelpFrameCfg_sashpos_get(self
) 
  78         if name 
== "navig_on" :  
  79             return htmlhelpc
.wxHtmlHelpFrameCfg_navig_on_get(self
) 
  80         raise AttributeError,name
 
  82         return "<C wxHtmlHelpFrameCfg instance at %s>" % (self
.this
,) 
  83 class wxHtmlHelpFrameCfg(wxHtmlHelpFrameCfgPtr
): 
  84     def __init__(self
,*_args
,**_kwargs
): 
  85         self
.this 
= apply(htmlhelpc
.new_wxHtmlHelpFrameCfg
,_args
,_kwargs
) 
  91 class wxHtmlBookRecordPtr 
: 
  92     def __init__(self
,this
): 
  95     def GetTitle(self
, *_args
, **_kwargs
): 
  96         val 
= apply(htmlhelpc
.wxHtmlBookRecord_GetTitle
,(self
,) + _args
, _kwargs
) 
  98     def GetStart(self
, *_args
, **_kwargs
): 
  99         val 
= apply(htmlhelpc
.wxHtmlBookRecord_GetStart
,(self
,) + _args
, _kwargs
) 
 101     def GetBasePath(self
, *_args
, **_kwargs
): 
 102         val 
= apply(htmlhelpc
.wxHtmlBookRecord_GetBasePath
,(self
,) + _args
, _kwargs
) 
 104     def SetContentsRange(self
, *_args
, **_kwargs
): 
 105         val 
= apply(htmlhelpc
.wxHtmlBookRecord_SetContentsRange
,(self
,) + _args
, _kwargs
) 
 107     def GetContentsStart(self
, *_args
, **_kwargs
): 
 108         val 
= apply(htmlhelpc
.wxHtmlBookRecord_GetContentsStart
,(self
,) + _args
, _kwargs
) 
 110     def GetContentsEnd(self
, *_args
, **_kwargs
): 
 111         val 
= apply(htmlhelpc
.wxHtmlBookRecord_GetContentsEnd
,(self
,) + _args
, _kwargs
) 
 114         return "<C wxHtmlBookRecord instance at %s>" % (self
.this
,) 
 115 class wxHtmlBookRecord(wxHtmlBookRecordPtr
): 
 116     def __init__(self
,*_args
,**_kwargs
): 
 117         self
.this 
= apply(htmlhelpc
.new_wxHtmlBookRecord
,_args
,_kwargs
) 
 123 class wxHtmlContentsItemPtr 
: 
 124     def __init__(self
,this
): 
 127     def __setattr__(self
,name
,value
): 
 128         if name 
== "m_Level" : 
 129             htmlhelpc
.wxHtmlContentsItem_m_Level_set(self
,value
) 
 132             htmlhelpc
.wxHtmlContentsItem_m_ID_set(self
,value
) 
 134         if name 
== "m_Name" : 
 135             htmlhelpc
.wxHtmlContentsItem_m_Name_set(self
,value
) 
 137         if name 
== "m_Page" : 
 138             htmlhelpc
.wxHtmlContentsItem_m_Page_set(self
,value
) 
 140         if name 
== "m_Book" : 
 141             htmlhelpc
.wxHtmlContentsItem_m_Book_set(self
,value
.this
) 
 143         self
.__dict
__[name
] = value
 
 144     def __getattr__(self
,name
): 
 145         if name 
== "m_Level" :  
 146             return htmlhelpc
.wxHtmlContentsItem_m_Level_get(self
) 
 148             return htmlhelpc
.wxHtmlContentsItem_m_ID_get(self
) 
 149         if name 
== "m_Name" :  
 150             return htmlhelpc
.wxHtmlContentsItem_m_Name_get(self
) 
 151         if name 
== "m_Page" :  
 152             return htmlhelpc
.wxHtmlContentsItem_m_Page_get(self
) 
 153         if name 
== "m_Book" :  
 154             return wxHtmlBookRecordPtr(htmlhelpc
.wxHtmlContentsItem_m_Book_get(self
)) 
 155         raise AttributeError,name
 
 157         return "<C wxHtmlContentsItem instance at %s>" % (self
.this
,) 
 158 class wxHtmlContentsItem(wxHtmlContentsItemPtr
): 
 159     def __init__(self
,this
): 
 165 class wxHtmlSearchStatusPtr 
: 
 166     def __init__(self
,this
): 
 169     def Search(self
, *_args
, **_kwargs
): 
 170         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_Search
,(self
,) + _args
, _kwargs
) 
 172     def IsActive(self
, *_args
, **_kwargs
): 
 173         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_IsActive
,(self
,) + _args
, _kwargs
) 
 175     def GetCurIndex(self
, *_args
, **_kwargs
): 
 176         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_GetCurIndex
,(self
,) + _args
, _kwargs
) 
 178     def GetMaxIndex(self
, *_args
, **_kwargs
): 
 179         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_GetMaxIndex
,(self
,) + _args
, _kwargs
) 
 181     def GetName(self
, *_args
, **_kwargs
): 
 182         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_GetName
,(self
,) + _args
, _kwargs
) 
 184     def GetContentsItem(self
, *_args
, **_kwargs
): 
 185         val 
= apply(htmlhelpc
.wxHtmlSearchStatus_GetContentsItem
,(self
,) + _args
, _kwargs
) 
 186         if val
: val 
= wxHtmlContentsItemPtr(val
)  
 189         return "<C wxHtmlSearchStatus instance at %s>" % (self
.this
,) 
 190 class wxHtmlSearchStatus(wxHtmlSearchStatusPtr
): 
 191     def __init__(self
,this
): 
 197 class wxHtmlHelpDataPtr 
: 
 198     def __init__(self
,this
): 
 201     def __del__(self
,htmlhelpc
=htmlhelpc
): 
 202         if self
.thisown 
== 1 : 
 203             htmlhelpc
.delete_wxHtmlHelpData(self
) 
 204     def SetTempDir(self
, *_args
, **_kwargs
): 
 205         val 
= apply(htmlhelpc
.wxHtmlHelpData_SetTempDir
,(self
,) + _args
, _kwargs
) 
 207     def AddBook(self
, *_args
, **_kwargs
): 
 208         val 
= apply(htmlhelpc
.wxHtmlHelpData_AddBook
,(self
,) + _args
, _kwargs
) 
 210     def FindPageByName(self
, *_args
, **_kwargs
): 
 211         val 
= apply(htmlhelpc
.wxHtmlHelpData_FindPageByName
,(self
,) + _args
, _kwargs
) 
 213     def FindPageById(self
, *_args
, **_kwargs
): 
 214         val 
= apply(htmlhelpc
.wxHtmlHelpData_FindPageById
,(self
,) + _args
, _kwargs
) 
 216     def GetBookRecArray(self
, *_args
, **_kwargs
): 
 217         val 
= apply(htmlhelpc
.wxHtmlHelpData_GetBookRecArray
,(self
,) + _args
, _kwargs
) 
 219     def GetContents(self
, *_args
, **_kwargs
): 
 220         val 
= apply(htmlhelpc
.wxHtmlHelpData_GetContents
,(self
,) + _args
, _kwargs
) 
 221         if val
: val 
= wxHtmlContentsItemPtr(val
)  
 223     def GetContentsCnt(self
, *_args
, **_kwargs
): 
 224         val 
= apply(htmlhelpc
.wxHtmlHelpData_GetContentsCnt
,(self
,) + _args
, _kwargs
) 
 226     def GetIndex(self
, *_args
, **_kwargs
): 
 227         val 
= apply(htmlhelpc
.wxHtmlHelpData_GetIndex
,(self
,) + _args
, _kwargs
) 
 228         if val
: val 
= wxHtmlContentsItemPtr(val
)  
 230     def GetIndexCnt(self
, *_args
, **_kwargs
): 
 231         val 
= apply(htmlhelpc
.wxHtmlHelpData_GetIndexCnt
,(self
,) + _args
, _kwargs
) 
 234         return "<C wxHtmlHelpData instance at %s>" % (self
.this
,) 
 235 class wxHtmlHelpData(wxHtmlHelpDataPtr
): 
 236     def __init__(self
,*_args
,**_kwargs
): 
 237         self
.this 
= apply(htmlhelpc
.new_wxHtmlHelpData
,_args
,_kwargs
) 
 243 class wxHtmlHelpFramePtr(wxFramePtr
): 
 244     def __init__(self
,this
): 
 247     def GetData(self
, *_args
, **_kwargs
): 
 248         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_GetData
,(self
,) + _args
, _kwargs
) 
 249         if val
: val 
= wxHtmlHelpDataPtr(val
)  
 251     def SetTitleFormat(self
, *_args
, **_kwargs
): 
 252         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_SetTitleFormat
,(self
,) + _args
, _kwargs
) 
 254     def Display(self
, *_args
, **_kwargs
): 
 255         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_Display
,(self
,) + _args
, _kwargs
) 
 257     def DisplayID(self
, *_args
, **_kwargs
): 
 258         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_DisplayID
,(self
,) + _args
, _kwargs
) 
 260     def DisplayContents(self
, *_args
, **_kwargs
): 
 261         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_DisplayContents
,(self
,) + _args
, _kwargs
) 
 263     def DisplayIndex(self
, *_args
, **_kwargs
): 
 264         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_DisplayIndex
,(self
,) + _args
, _kwargs
) 
 266     def KeywordSearch(self
, *_args
, **_kwargs
): 
 267         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_KeywordSearch
,(self
,) + _args
, _kwargs
) 
 269     def UseConfig(self
, *_args
, **_kwargs
): 
 270         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_UseConfig
,(self
,) + _args
, _kwargs
) 
 272     def ReadCustomization(self
, *_args
, **_kwargs
): 
 273         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_ReadCustomization
,(self
,) + _args
, _kwargs
) 
 275     def WriteCustomization(self
, *_args
, **_kwargs
): 
 276         val 
= apply(htmlhelpc
.wxHtmlHelpFrame_WriteCustomization
,(self
,) + _args
, _kwargs
) 
 279         return "<C wxHtmlHelpFrame instance at %s>" % (self
.this
,) 
 280 class wxHtmlHelpFrame(wxHtmlHelpFramePtr
): 
 281     def __init__(self
,*_args
,**_kwargs
): 
 282         self
.this 
= apply(htmlhelpc
.new_wxHtmlHelpFrame
,_args
,_kwargs
) 
 288 class wxHtmlHelpControllerPtr(wxEvtHandlerPtr
): 
 289     def __init__(self
,this
): 
 292     def __del__(self
,htmlhelpc
=htmlhelpc
): 
 293         if self
.thisown 
== 1 : 
 294             htmlhelpc
.delete_wxHtmlHelpController(self
) 
 295     def SetTitleFormat(self
, *_args
, **_kwargs
): 
 296         val 
= apply(htmlhelpc
.wxHtmlHelpController_SetTitleFormat
,(self
,) + _args
, _kwargs
) 
 298     def SetTempDir(self
, *_args
, **_kwargs
): 
 299         val 
= apply(htmlhelpc
.wxHtmlHelpController_SetTempDir
,(self
,) + _args
, _kwargs
) 
 301     def AddBook(self
, *_args
, **_kwargs
): 
 302         val 
= apply(htmlhelpc
.wxHtmlHelpController_AddBook
,(self
,) + _args
, _kwargs
) 
 304     def Display(self
, *_args
, **_kwargs
): 
 305         val 
= apply(htmlhelpc
.wxHtmlHelpController_Display
,(self
,) + _args
, _kwargs
) 
 307     def DisplayID(self
, *_args
, **_kwargs
): 
 308         val 
= apply(htmlhelpc
.wxHtmlHelpController_DisplayID
,(self
,) + _args
, _kwargs
) 
 310     def DisplayContents(self
, *_args
, **_kwargs
): 
 311         val 
= apply(htmlhelpc
.wxHtmlHelpController_DisplayContents
,(self
,) + _args
, _kwargs
) 
 313     def DisplayIndex(self
, *_args
, **_kwargs
): 
 314         val 
= apply(htmlhelpc
.wxHtmlHelpController_DisplayIndex
,(self
,) + _args
, _kwargs
) 
 316     def KeywordSearch(self
, *_args
, **_kwargs
): 
 317         val 
= apply(htmlhelpc
.wxHtmlHelpController_KeywordSearch
,(self
,) + _args
, _kwargs
) 
 319     def UseConfig(self
, *_args
, **_kwargs
): 
 320         val 
= apply(htmlhelpc
.wxHtmlHelpController_UseConfig
,(self
,) + _args
, _kwargs
) 
 322     def ReadCustomization(self
, *_args
, **_kwargs
): 
 323         val 
= apply(htmlhelpc
.wxHtmlHelpController_ReadCustomization
,(self
,) + _args
, _kwargs
) 
 325     def WriteCustomization(self
, *_args
, **_kwargs
): 
 326         val 
= apply(htmlhelpc
.wxHtmlHelpController_WriteCustomization
,(self
,) + _args
, _kwargs
) 
 328     def GetFrame(self
, *_args
, **_kwargs
): 
 329         val 
= apply(htmlhelpc
.wxHtmlHelpController_GetFrame
,(self
,) + _args
, _kwargs
) 
 330         if val
: val 
= wxHtmlHelpFramePtr(val
)  
 333         return "<C wxHtmlHelpController instance at %s>" % (self
.this
,) 
 334 class wxHtmlHelpController(wxHtmlHelpControllerPtr
): 
 335     def __init__(self
,*_args
,**_kwargs
): 
 336         self
.this 
= apply(htmlhelpc
.new_wxHtmlHelpController
,_args
,_kwargs
) 
 344 #-------------- FUNCTION WRAPPERS ------------------ 
 348 #-------------- VARIABLE WRAPPERS ------------------ 
 350 wxHF_TOOLBAR 
= htmlhelpc
.wxHF_TOOLBAR
 
 351 wxHF_FLATTOOLBAR 
= htmlhelpc
.wxHF_FLATTOOLBAR
 
 352 wxHF_CONTENTS 
= htmlhelpc
.wxHF_CONTENTS
 
 353 wxHF_INDEX 
= htmlhelpc
.wxHF_INDEX
 
 354 wxHF_SEARCH 
= htmlhelpc
.wxHF_SEARCH
 
 355 wxHF_BOOKMARKS 
= htmlhelpc
.wxHF_BOOKMARKS
 
 356 wxHF_OPENFILES 
= htmlhelpc
.wxHF_OPENFILES
 
 357 wxHF_PRINT 
= htmlhelpc
.wxHF_PRINT
 
 358 wxHF_DEFAULTSTYLE 
= htmlhelpc
.wxHF_DEFAULTSTYLE