1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Classes for wxRichTextCtrl and support classes
7 // Created: 11-April-2006
9 // Copyright: (c) 2006 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
17 %module(package="wx", docstring=DOCSTRING) richtext
20 #include "wx/wxPython/wxPython.h"
21 #include "wx/wxPython/pyclasses.h"
22 #include "wx/wxPython/printfw.h"
23 #include "wx/wxPython/twoitem.h"
25 #include <wx/richtext/richtextctrl.h>
30 class wxBufferedPaintDC;
37 #define USE_TEXTATTREX 0
39 //----------------------------------------------------------------------
43 %pythoncode { wx = _core }
44 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
46 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
48 //----------------------------------------------------------------------
50 // TODO: These are already defined in _textctrl.i, do we really need them here?
51 enum wxTextAttrAlignment
53 wxTEXT_ALIGNMENT_DEFAULT,
54 wxTEXT_ALIGNMENT_LEFT,
55 wxTEXT_ALIGNMENT_CENTRE,
56 wxTEXT_ALIGNMENT_CENTER = wxTEXT_ALIGNMENT_CENTRE,
57 wxTEXT_ALIGNMENT_RIGHT,
58 wxTEXT_ALIGNMENT_JUSTIFIED
61 //----------------------------------------------------------------------
63 %include _richtextbuffer.i
64 %include _richtextctrl.i
65 %include _richtexthtml.i
66 %include _richtextxml.i
68 //----------------------------------------------------------------------
71 wxRichTextModuleInit();
74 //----------------------------------------------------------------------