X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb757066dfea26412c518153f7c4af05a8a43dc9..7a0a63aeee7a95b65bf133c8fa7a47538710f12c:/wxPython/src/html.i diff --git a/wxPython/src/html.i b/wxPython/src/html.i index 970911807b..7449fdff7a 100644 --- a/wxPython/src/html.i +++ b/wxPython/src/html.i @@ -23,17 +23,9 @@ #include #include - - DECLARE_DEF_STRING(EmptyString); - static const wxChar* wxHtmlWindowNameStr = wxT("htmlWindow"); - DECLARE_DEF_STRING(HtmlWindowNameStr); - static const wxChar* wxHtmlPrintoutTitleStr = wxT("Printout"); - DECLARE_DEF_STRING(HtmlPrintoutTitleStr); - static const wxChar* wxHtmlPrintingTitleStr = wxT("Printing"); - DECLARE_DEF_STRING(HtmlPrintingTitleStr); - %} + //--------------------------------------------------------------------------- %import windows.i @@ -42,6 +34,12 @@ %include _html_rename.i +MAKE_CONST_WXSTRING_NOSWIG(EmptyString); +MAKE_CONST_WXSTRING2(HtmlWindowNameStr, "htmlWindow") +MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, "Printout") +MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, "Printing") + + // TODO: Split this file into multiple %included files that coresponds to the // wx/html include files (more or less.) @@ -489,6 +487,8 @@ public: int GetWidth(); int GetHeight(); int GetDescent(); + const wxString& GetId() const; + void SetId(const wxString& id); wxHtmlLinkInfo* GetLink(int x = 0, int y = 0); wxHtmlCell* GetNext(); wxHtmlContainerCell* GetParent();