1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _richtext.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxRichTextHTMLHandler : wxRichTextFileHandler 14{ 15 %Docstring 16 RichTextHTMLHandler(name="HTML", ext="html", type=RICHTEXT_TYPE_HTML) 17 18 Handles HTML output (only) for wxRichTextCtrl content. 19 %End 20 %TypeHeaderCode 21 #include <wx/richtext/richtexthtml.h> 22 %End 23 24public: 25 wxRichTextHTMLHandler( 26 const wxString & name = "HTML", 27 const wxString & ext = "html", 28 int type = wxRICHTEXT_TYPE_HTML 29 ); 30 31 void ClearTemporaryImageLocations(); 32 %Docstring 33 ClearTemporaryImageLocations() 34 35 Clears the image locations generated by the last operation. 36 %End 37 38 bool DeleteTemporaryImages(); 39 %Docstring 40 DeleteTemporaryImages() -> bool 41 DeleteTemporaryImages(flags, imageLocations) -> bool 42 43 Deletes the in-memory or temporary files generated by the last 44 operation. 45 %End 46 47 static 48 bool DeleteTemporaryImages( 49 int flags, 50 const wxArrayString & imageLocations 51 ); 52 53 wxArrayInt GetFontSizeMapping() const; 54 %Docstring 55 GetFontSizeMapping() -> ArrayInt 56 57 Returns the mapping for converting point sizes to HTML font sizes. 58 %End 59 60 const wxString & GetTempDir() const; 61 %Docstring 62 GetTempDir() -> String 63 64 Returns the directory used to store temporary image files. 65 %End 66 67 const wxArrayString & GetTemporaryImageLocations() const; 68 %Docstring 69 GetTemporaryImageLocations() -> ArrayString 70 71 Returns the image locations for the last operation. 72 %End 73 74 void SetFontSizeMapping( 75 const wxArrayInt & fontSizeMapping 76 ); 77 %Docstring 78 SetFontSizeMapping(fontSizeMapping) 79 80 Sets the mapping for converting point sizes to HTML font sizes. 81 %End 82 83 void SetTempDir( 84 const wxString & tempDir 85 ); 86 %Docstring 87 SetTempDir(tempDir) 88 89 Sets the directory for storing temporary files. 90 %End 91 92 void SetTemporaryImageLocations( 93 const wxArrayString & locations 94 ); 95 %Docstring 96 SetTemporaryImageLocations(locations) 97 98 Sets the list of image locations generated by the last operation. 99 %End 100 101 static 102 void SetFileCounter( 103 int counter 104 ); 105 %Docstring 106 SetFileCounter(counter) 107 108 Reset the file counter, in case, for example, the same names are 109 required each time. 110 %End 111 112 protected: 113 virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream); 114 virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream); 115 116 117 public: 118 119 120 %Property(name=FontSizeMapping, get=GetFontSizeMapping, set=SetFontSizeMapping) 121 %Property(name=TempDir, get=GetTempDir, set=SetTempDir) 122 %Property(name=TemporaryImageLocations, get=GetTemporaryImageLocations, set=SetTemporaryImageLocations) 123}; // end of class wxRichTextHTMLHandler 124 125 126 127//--------------------------------------------------------------------------- 128 129