]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/richtext.i
fix wxUniv/MSW compilation with wxUSE_MENUS==0 (patch 1744277)
[wxWidgets.git] / wxPython / src / richtext.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: richtext.i
3 // Purpose: Classes for wxRichTextCtrl and support classes
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 11-April-2006
8 // RCS-ID: $Id$
9 // Copyright: (c) 2006 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 %define DOCSTRING
14 ""
15 %enddef
16
17 %module(package="wx", docstring=DOCSTRING) richtext
18
19 %{
20 #include "wx/wxPython/wxPython.h"
21 #include "wx/wxPython/pyclasses.h"
22 #include "wx/wxPython/printfw.h"
23 #include "wx/wxPython/twoitem.h"
24
25 #include <wx/richtext/richtextctrl.h>
26
27
28 class wxEffects;
29 class wxBufferedDC;
30 class wxBufferedPaintDC;
31 class wxMetaFile;
32 class wxMetaFileDC;
33 class wxPrinterDC;
34
35 %}
36
37 #define USE_TEXTATTREX 0
38
39 //----------------------------------------------------------------------
40
41 %import windows.i
42
43 %pythoncode { wx = _core }
44 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
45
46 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
47
48 //----------------------------------------------------------------------
49
50 // TODO: These are already defined in _textctrl.i, do we really need them here?
51 enum wxTextAttrAlignment
52 {
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
59 };
60
61 //----------------------------------------------------------------------
62
63 %include _richtextbuffer.i
64 %include _richtextctrl.i
65 %include _richtexthtml.i
66 %include _richtextxml.i
67
68 //----------------------------------------------------------------------
69
70 %init %{
71 wxRichTextModuleInit();
72 %}
73
74 //----------------------------------------------------------------------