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%ModuleHeaderCode 12#include <wx/richtext/richtextstyledlg.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18const int wxRICHTEXT_ORGANISER_DELETE_STYLES; 19const int wxRICHTEXT_ORGANISER_CREATE_STYLES; 20const int wxRICHTEXT_ORGANISER_APPLY_STYLES; 21const int wxRICHTEXT_ORGANISER_EDIT_STYLES; 22const int wxRICHTEXT_ORGANISER_RENAME_STYLES; 23const int wxRICHTEXT_ORGANISER_OK_CANCEL; 24const int wxRICHTEXT_ORGANISER_RENUMBER; 25const int wxRICHTEXT_ORGANISER_SHOW_CHARACTER; 26const int wxRICHTEXT_ORGANISER_SHOW_PARAGRAPH; 27const int wxRICHTEXT_ORGANISER_SHOW_LIST; 28const int wxRICHTEXT_ORGANISER_SHOW_BOX; 29const int wxRICHTEXT_ORGANISER_SHOW_ALL; 30const int wxRICHTEXT_ORGANISER_ORGANISE; 31const int wxRICHTEXT_ORGANISER_BROWSE; 32const int wxRICHTEXT_ORGANISER_BROWSE_NUMBERING; 33class wxRichTextStyleOrganiserDialog : wxDialog 34{ 35 %Docstring 36 RichTextStyleOrganiserDialog() 37 RichTextStyleOrganiserDialog(flags, sheet, ctrl, parent, id=wx.ID_ANY, caption=_("StyleOrganiser"), pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.SYSTEM_MENU|wx.CLOSE_BOX) 38 39 This class shows a style sheet and allows the user to edit, add and 40 remove styles. 41 %End 42 %TypeHeaderCode 43 #include <wx/richtext/richtextstyledlg.h> 44 %End 45 46public: 47 wxRichTextStyleOrganiserDialog(); 48 %PreMethodCode 49 if (!wxPyCheckForApp()) return NULL; 50 %End 51 52 wxRichTextStyleOrganiserDialog( 53 int flags, 54 wxRichTextStyleSheet * sheet, 55 wxRichTextCtrl * ctrl, 56 wxWindow * parent, 57 wxWindowID id = wxID_ANY, 58 const wxString & caption = _("Style Organiser"), 59 const wxPoint & pos = wxDefaultPosition, 60 const wxSize & size = wxDefaultSize, 61 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX 62 ) /Transfer/; 63 %PreMethodCode 64 if (!wxPyCheckForApp()) return NULL; 65 %End 66 67 bool ApplyStyle( 68 wxRichTextCtrl * ctrl = NULL 69 ); 70 %Docstring 71 ApplyStyle(ctrl=None) -> bool 72 73 Applies the selected style to selection in the given control or the 74 control passed to the constructor. 75 %End 76 77 bool Create( 78 int flags, 79 wxRichTextStyleSheet * sheet, 80 wxRichTextCtrl * ctrl, 81 wxWindow * parent, 82 wxWindowID id = wxID_ANY, 83 const wxString & caption = wxGetTranslation("Style Organiser"), 84 const wxPoint & pos = wxDefaultPosition, 85 const wxSize & size = wxSize(400, 300), 86 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX 87 ) /TransferThis/; 88 %Docstring 89 Create(flags, sheet, ctrl, parent, id=wx.ID_ANY, caption=wx.GetTranslation("StyleOrganiser"), pos=wx.DefaultPosition, size=wx.Size(400,300), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.SYSTEM_MENU|wx.CLOSE_BOX) -> bool 90 91 Creates the dialog. 92 %End 93 94 bool GetRestartNumbering() const; 95 %Docstring 96 GetRestartNumbering() -> bool 97 98 Returns true if the user has opted to restart numbering. 99 %End 100 101 wxRichTextCtrl * GetRichTextCtrl() const; 102 %Docstring 103 GetRichTextCtrl() -> RichTextCtrl 104 105 Returns the associated rich text control (if any). 106 %End 107 108 wxString GetSelectedStyle() const; 109 %Docstring 110 GetSelectedStyle() -> String 111 112 Returns selected style name. 113 %End 114 115 wxRichTextStyleDefinition * GetSelectedStyleDefinition() const; 116 %Docstring 117 GetSelectedStyleDefinition() -> RichTextStyleDefinition 118 119 Returns selected style definition. 120 %End 121 122 wxRichTextStyleSheet * GetStyleSheet() const; 123 %Docstring 124 GetStyleSheet() -> RichTextStyleSheet 125 126 Returns the associated style sheet. 127 %End 128 129 void SetFlags( 130 int flags 131 ); 132 %Docstring 133 SetFlags(flags) 134 135 Sets the flags used to control the interface presented to the user. 136 %End 137 138 void SetRestartNumbering( 139 bool restartNumbering 140 ); 141 %Docstring 142 SetRestartNumbering(restartNumbering) 143 144 Checks or unchecks the restart numbering checkbox. 145 %End 146 147 void SetRichTextCtrl( 148 wxRichTextCtrl * ctrl 149 ); 150 %Docstring 151 SetRichTextCtrl(ctrl) 152 153 Sets the control to be associated with the dialog, for the purposes of 154 applying a style to the selection. 155 %End 156 157 void SetStyleSheet( 158 wxRichTextStyleSheet * sheet 159 ); 160 %Docstring 161 SetStyleSheet(sheet) 162 163 Sets the associated style sheet. 164 %End 165 166 int GetFlags() const; 167 %Docstring 168 GetFlags() -> int 169 170 Returns the flags used to control the interface presented to the user. 171 %End 172 173 static 174 void SetShowToolTips( 175 bool show 176 ); 177 %Docstring 178 SetShowToolTips(show) 179 180 Determines whether tooltips will be shown. 181 %End 182 183 public: 184 virtual wxPoint GetClientAreaOrigin() const; 185 virtual bool Validate(); 186 virtual bool TransferDataToWindow(); 187 virtual bool TransferDataFromWindow(); 188 virtual void InitDialog(); 189 virtual bool AcceptsFocus() const; 190 virtual bool AcceptsFocusRecursively() const; 191 virtual bool AcceptsFocusFromKeyboard() const; 192 virtual void AddChild( wxWindowBase *child ); 193 virtual void RemoveChild( wxWindowBase *child ); 194 virtual void InheritAttributes(); 195 virtual bool ShouldInheritColours() const; 196 virtual void OnInternalIdle(); 197 virtual wxWindow *GetMainWindowOfCompositeControl(); 198 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 199 virtual void SetCanFocus(bool canFocus); 200 virtual bool Destroy(); 201 virtual void SetValidator( const wxValidator &validator ); 202 virtual wxValidator* GetValidator(); 203 204 205 protected: 206 virtual bool ProcessEvent(wxEvent & event); 207 virtual void DoEnable(bool enable); 208 virtual void DoGetPosition(int *x, int *y) const; 209 virtual void DoGetSize(int *width, int *height) const; 210 virtual void DoGetClientSize(int *width, int *height) const; 211 virtual wxSize DoGetBestSize() const; 212 virtual wxSize DoGetBestClientSize() const; 213 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 214 virtual void DoSetClientSize(int width, int height); 215 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 216 virtual wxSize DoGetBorderSize() const; 217 virtual void DoMoveWindow(int x, int y, int width, int height); 218 virtual void DoSetWindowVariant( wxWindowVariant variant); 219 virtual wxBorder GetDefaultBorder() const; 220 virtual wxBorder GetDefaultBorderForControl() const; 221 virtual void DoFreeze(); 222 virtual void DoThaw(); 223 virtual bool HasTransparentBackground(); 224 virtual bool TryBefore(wxEvent& event); 225 virtual bool TryAfter(wxEvent& event); 226 227 228 public: 229 230 231 static 232 wxVisualAttributes GetClassDefaultAttributes( 233 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 234 ); 235 %Docstring 236 GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes 237 %End 238 %PreMethodCode 239 if (!wxPyCheckForApp()) return NULL; 240 %End 241 242 public: 243 244 245 %Property(name=Flags, get=GetFlags, set=SetFlags) 246 %Property(name=RestartNumbering, get=GetRestartNumbering, set=SetRestartNumbering) 247 %Property(name=RichTextCtrl, get=GetRichTextCtrl, set=SetRichTextCtrl) 248 %Property(name=SelectedStyle, get=GetSelectedStyle) 249 %Property(name=SelectedStyleDefinition, get=GetSelectedStyleDefinition) 250 %Property(name=StyleSheet, get=GetStyleSheet, set=SetStyleSheet) 251}; // end of class wxRichTextStyleOrganiserDialog 252 253 254 255//--------------------------------------------------------------------------- 256 257