X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..98672b4b9cb156c624a66efd5b3c1935a1d37de9:/wxPython/src/htmlhelp.i?ds=inline diff --git a/wxPython/src/htmlhelp.i b/wxPython/src/htmlhelp.i index 6926522a59..b9c9bee5e1 100644 --- a/wxPython/src/htmlhelp.i +++ b/wxPython/src/htmlhelp.i @@ -39,14 +39,24 @@ %extern utils.i %extern html.i +// #ifdef wxUSE_UNICODE +// %typemap(python, memberin) wxChar* { +// if ($target) delete [] $target; +// wxString *tempStr = new wxString($source); +// $target = new wxChar[tempStr->Len()+1]; +// memcpy($target, tempStr->c_str(), (sizeof(wxChar)*tempStr->Len())+sizeof(wxChar)); +// delete tempStr; +// } +// #endif //--------------------------------------------------------------------------- -class wxHtmlBookRecord { +class wxHtmlBookRecord : public wxObject { public: - wxHtmlBookRecord(const wxString& basepath, const wxString& title, - const wxString& start); + wxHtmlBookRecord(const wxString& bookfile, const wxString& basepath, + const wxString& title, const wxString& start); + wxString GetBookFile(); wxString GetTitle(); wxString GetStart(); wxString GetBasePath(); @@ -54,18 +64,26 @@ public: void SetContentsRange(int start, int end); int GetContentsStart(); int GetContentsEnd(); + + void SetTitle(const wxString& title); + void SetBasePath(const wxString& path); + void SetStart(const wxString& start); + + wxString GetFullPath(const wxString &page) const; }; //--------------------------------------------------------------------------- -typedef struct +struct wxHtmlContentsItem { +%readonly short int m_Level; int m_ID; - char* m_Name; - char* m_Page; + wxChar* m_Name; + wxChar* m_Page; wxHtmlBookRecord *m_Book; -} wxHtmlContentsItem; +%readwrite +}; //---------------------------------------------------------------------------