~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to wxPython/src/mac/richtext.py

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
import _core
57
57
wx = _core 
58
58
__docfilter__ = wx.__DocFilter(globals()) 
59
 
RE_READONLY = _richtext.RE_READONLY
60
 
RE_MULTILINE = _richtext.RE_MULTILINE
61
 
RICHTEXT_SHIFT_DOWN = _richtext.RICHTEXT_SHIFT_DOWN
62
 
RICHTEXT_CTRL_DOWN = _richtext.RICHTEXT_CTRL_DOWN
63
 
RICHTEXT_ALT_DOWN = _richtext.RICHTEXT_ALT_DOWN
64
 
RICHTEXT_SELECTED = _richtext.RICHTEXT_SELECTED
65
 
RICHTEXT_TAGGED = _richtext.RICHTEXT_TAGGED
66
 
RICHTEXT_FOCUSSED = _richtext.RICHTEXT_FOCUSSED
67
 
RICHTEXT_IS_FOCUS = _richtext.RICHTEXT_IS_FOCUS
 
59
TEXT_ALIGNMENT_DEFAULT = _richtext.TEXT_ALIGNMENT_DEFAULT
 
60
TEXT_ALIGNMENT_LEFT = _richtext.TEXT_ALIGNMENT_LEFT
 
61
TEXT_ALIGNMENT_CENTRE = _richtext.TEXT_ALIGNMENT_CENTRE
 
62
TEXT_ALIGNMENT_CENTER = _richtext.TEXT_ALIGNMENT_CENTER
 
63
TEXT_ALIGNMENT_RIGHT = _richtext.TEXT_ALIGNMENT_RIGHT
 
64
TEXT_ALIGNMENT_JUSTIFIED = _richtext.TEXT_ALIGNMENT_JUSTIFIED
 
65
#---------------------------------------------------------------------------
 
66
 
68
67
RICHTEXT_TYPE_ANY = _richtext.RICHTEXT_TYPE_ANY
69
68
RICHTEXT_TYPE_TEXT = _richtext.RICHTEXT_TYPE_TEXT
70
69
RICHTEXT_TYPE_XML = _richtext.RICHTEXT_TYPE_XML
75
74
RICHTEXT_FIXED_HEIGHT = _richtext.RICHTEXT_FIXED_HEIGHT
76
75
RICHTEXT_VARIABLE_WIDTH = _richtext.RICHTEXT_VARIABLE_WIDTH
77
76
RICHTEXT_VARIABLE_HEIGHT = _richtext.RICHTEXT_VARIABLE_HEIGHT
 
77
RICHTEXT_LAYOUT_SPECIFIED_RECT = _richtext.RICHTEXT_LAYOUT_SPECIFIED_RECT
 
78
RICHTEXT_DRAW_IGNORE_CACHE = _richtext.RICHTEXT_DRAW_IGNORE_CACHE
78
79
RICHTEXT_HITTEST_NONE = _richtext.RICHTEXT_HITTEST_NONE
79
80
RICHTEXT_HITTEST_BEFORE = _richtext.RICHTEXT_HITTEST_BEFORE
80
81
RICHTEXT_HITTEST_AFTER = _richtext.RICHTEXT_HITTEST_AFTER
81
82
RICHTEXT_HITTEST_ON = _richtext.RICHTEXT_HITTEST_ON
 
83
RICHTEXT_HITTEST_OUTSIDE = _richtext.RICHTEXT_HITTEST_OUTSIDE
82
84
RICHTEXT_FORMATTED = _richtext.RICHTEXT_FORMATTED
83
85
RICHTEXT_UNFORMATTED = _richtext.RICHTEXT_UNFORMATTED
84
86
RICHTEXT_SETSTYLE_NONE = _richtext.RICHTEXT_SETSTYLE_NONE
86
88
RICHTEXT_SETSTYLE_OPTIMIZE = _richtext.RICHTEXT_SETSTYLE_OPTIMIZE
87
89
RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY = _richtext.RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY
88
90
RICHTEXT_SETSTYLE_CHARACTERS_ONLY = _richtext.RICHTEXT_SETSTYLE_CHARACTERS_ONLY
 
91
RICHTEXT_SETSTYLE_RENUMBER = _richtext.RICHTEXT_SETSTYLE_RENUMBER
 
92
RICHTEXT_SETSTYLE_SPECIFY_LEVEL = _richtext.RICHTEXT_SETSTYLE_SPECIFY_LEVEL
 
93
RICHTEXT_SETSTYLE_RESET = _richtext.RICHTEXT_SETSTYLE_RESET
 
94
RICHTEXT_SETSTYLE_REMOVE = _richtext.RICHTEXT_SETSTYLE_REMOVE
89
95
RICHTEXT_INSERT_NONE = _richtext.RICHTEXT_INSERT_NONE
90
96
RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE = _richtext.RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
91
97
TEXT_ATTR_TEXT_COLOUR = _richtext.TEXT_ATTR_TEXT_COLOUR
107
113
TEXT_ATTR_PARAGRAPH_STYLE_NAME = _richtext.TEXT_ATTR_PARAGRAPH_STYLE_NAME
108
114
TEXT_ATTR_BULLET_STYLE = _richtext.TEXT_ATTR_BULLET_STYLE
109
115
TEXT_ATTR_BULLET_NUMBER = _richtext.TEXT_ATTR_BULLET_NUMBER
 
116
TEXT_ATTR_BULLET_TEXT = _richtext.TEXT_ATTR_BULLET_TEXT
 
117
TEXT_ATTR_BULLET_NAME = _richtext.TEXT_ATTR_BULLET_NAME
 
118
TEXT_ATTR_URL = _richtext.TEXT_ATTR_URL
 
119
TEXT_ATTR_PAGE_BREAK = _richtext.TEXT_ATTR_PAGE_BREAK
 
120
TEXT_ATTR_EFFECTS = _richtext.TEXT_ATTR_EFFECTS
 
121
TEXT_ATTR_OUTLINE_LEVEL = _richtext.TEXT_ATTR_OUTLINE_LEVEL
110
122
TEXT_ATTR_BULLET_STYLE_NONE = _richtext.TEXT_ATTR_BULLET_STYLE_NONE
111
123
TEXT_ATTR_BULLET_STYLE_ARABIC = _richtext.TEXT_ATTR_BULLET_STYLE_ARABIC
112
124
TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = _richtext.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
117
129
TEXT_ATTR_BULLET_STYLE_BITMAP = _richtext.TEXT_ATTR_BULLET_STYLE_BITMAP
118
130
TEXT_ATTR_BULLET_STYLE_PARENTHESES = _richtext.TEXT_ATTR_BULLET_STYLE_PARENTHESES
119
131
TEXT_ATTR_BULLET_STYLE_PERIOD = _richtext.TEXT_ATTR_BULLET_STYLE_PERIOD
 
132
TEXT_ATTR_BULLET_STYLE_STANDARD = _richtext.TEXT_ATTR_BULLET_STYLE_STANDARD
 
133
TEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS = _richtext.TEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
 
134
TEXT_ATTR_BULLET_STYLE_OUTLINE = _richtext.TEXT_ATTR_BULLET_STYLE_OUTLINE
 
135
TEXT_ATTR_BULLET_STYLE_ALIGN_LEFT = _richtext.TEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
 
136
TEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT = _richtext.TEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
 
137
TEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE = _richtext.TEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
 
138
TEXT_ATTR_EFFECT_NONE = _richtext.TEXT_ATTR_EFFECT_NONE
 
139
TEXT_ATTR_EFFECT_CAPITALS = _richtext.TEXT_ATTR_EFFECT_CAPITALS
 
140
TEXT_ATTR_EFFECT_SMALL_CAPITALS = _richtext.TEXT_ATTR_EFFECT_SMALL_CAPITALS
 
141
TEXT_ATTR_EFFECT_STRIKETHROUGH = _richtext.TEXT_ATTR_EFFECT_STRIKETHROUGH
 
142
TEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH = _richtext.TEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
 
143
TEXT_ATTR_EFFECT_SHADOW = _richtext.TEXT_ATTR_EFFECT_SHADOW
 
144
TEXT_ATTR_EFFECT_EMBOSS = _richtext.TEXT_ATTR_EFFECT_EMBOSS
 
145
TEXT_ATTR_EFFECT_OUTLINE = _richtext.TEXT_ATTR_EFFECT_OUTLINE
 
146
TEXT_ATTR_EFFECT_ENGRAVE = _richtext.TEXT_ATTR_EFFECT_ENGRAVE
 
147
TEXT_ATTR_EFFECT_SUPERSCRIPT = _richtext.TEXT_ATTR_EFFECT_SUPERSCRIPT
 
148
TEXT_ATTR_EFFECT_SUBSCRIPT = _richtext.TEXT_ATTR_EFFECT_SUBSCRIPT
120
149
TEXT_ATTR_LINE_SPACING_NORMAL = _richtext.TEXT_ATTR_LINE_SPACING_NORMAL
121
150
TEXT_ATTR_LINE_SPACING_HALF = _richtext.TEXT_ATTR_LINE_SPACING_HALF
122
151
TEXT_ATTR_LINE_SPACING_TWICE = _richtext.TEXT_ATTR_LINE_SPACING_TWICE
123
 
TEXT_ALIGNMENT_DEFAULT = _richtext.TEXT_ALIGNMENT_DEFAULT
124
 
TEXT_ALIGNMENT_LEFT = _richtext.TEXT_ALIGNMENT_LEFT
125
 
TEXT_ALIGNMENT_CENTRE = _richtext.TEXT_ALIGNMENT_CENTRE
126
 
TEXT_ALIGNMENT_CENTER = _richtext.TEXT_ALIGNMENT_CENTER
127
 
TEXT_ALIGNMENT_RIGHT = _richtext.TEXT_ALIGNMENT_RIGHT
128
 
TEXT_ALIGNMENT_JUSTIFIED = _richtext.TEXT_ALIGNMENT_JUSTIFIED
 
152
TEXT_ATTR_CHARACTER = _richtext.TEXT_ATTR_CHARACTER
 
153
TEXT_ATTR_PARAGRAPH = _richtext.TEXT_ATTR_PARAGRAPH
 
154
TEXT_ATTR_ALL = _richtext.TEXT_ATTR_ALL
 
155
#---------------------------------------------------------------------------
 
156
 
129
157
class RichTextRange(object):
130
158
    """
131
159
    RichTextRange is a data structure that represents a range of text
233
261
        """
234
262
        return _richtext.RichTextRange_Swap(*args, **kwargs)
235
263
 
 
264
    def ToInternal(*args, **kwargs):
 
265
        """
 
266
        ToInternal(self) -> RichTextRange
 
267
 
 
268
        Convert to internal form: (n, n) is the range of a single character.
 
269
        """
 
270
        return _richtext.RichTextRange_ToInternal(*args, **kwargs)
 
271
 
 
272
    def FromInternal(*args, **kwargs):
 
273
        """
 
274
        FromInternal(self) -> RichTextRange
 
275
 
 
276
        Convert from internal to public API form: (n, n+1) is the range of a
 
277
        single character.
 
278
        """
 
279
        return _richtext.RichTextRange_FromInternal(*args, **kwargs)
 
280
 
236
281
    def Get(*args, **kwargs):
237
282
        """
238
283
        Get() -> (start,end)
258
303
    Start = property(GetStart,SetStart,doc="See `GetStart` and `SetStart`") 
259
304
_richtext.RichTextRange_swigregister(RichTextRange)
260
305
 
261
 
class RichTextAttr(object):
 
306
#---------------------------------------------------------------------------
 
307
 
 
308
class TextAttrEx(object):
262
309
    """
263
 
    The RichTextAttr class stored information about the various attributes
 
310
    The TextAttrEx class stores information about the various attributes
264
311
    for a block of text, including font, colour, indents, alignments, and
265
312
    etc.
266
313
    """
268
315
    __repr__ = _swig_repr
269
316
    def __init__(self, *args, **kwargs): 
270
317
        """
271
 
        __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, 
272
 
            int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
 
318
        __init__(self) -> TextAttrEx
273
319
 
274
 
        The RichTextAttr class stored information about the various attributes
 
320
        The TextAttrEx class stores information about the various attributes
275
321
        for a block of text, including font, colour, indents, alignments, and
276
322
        etc.
277
323
        """
278
 
        _richtext.RichTextAttr_swiginit(self,_richtext.new_RichTextAttr(*args, **kwargs))
279
 
    __swig_destroy__ = _richtext.delete_RichTextAttr
 
324
        _richtext.TextAttrEx_swiginit(self,_richtext.new_TextAttrEx(*args, **kwargs))
 
325
    __swig_destroy__ = _richtext.delete_TextAttrEx
280
326
    __del__ = lambda self : None;
281
 
    def CreateFont(*args, **kwargs):
282
 
        """CreateFont(self) -> Font"""
283
 
        return _richtext.RichTextAttr_CreateFont(*args, **kwargs)
284
 
 
285
 
    def GetFontAttributes(*args, **kwargs):
286
 
        """GetFontAttributes(self, Font font) -> bool"""
287
 
        return _richtext.RichTextAttr_GetFontAttributes(*args, **kwargs)
288
 
 
289
 
    def GetFont(self):
290
 
        return self.CreateFont()
291
 
    def SetFont(self, font):
292
 
        return self.GetFontAttributes(font)
 
327
    def Init(*args, **kwargs):
 
328
        """Init(self)"""
 
329
        return _richtext.TextAttrEx_Init(*args, **kwargs)
 
330
 
 
331
    def Copy(*args, **kwargs):
 
332
        """Copy(self, TextAttrEx attr)"""
 
333
        return _richtext.TextAttrEx_Copy(*args, **kwargs)
293
334
 
294
335
    def SetTextColour(*args, **kwargs):
295
336
        """SetTextColour(self, Colour colText)"""
296
 
        return _richtext.RichTextAttr_SetTextColour(*args, **kwargs)
 
337
        return _richtext.TextAttrEx_SetTextColour(*args, **kwargs)
297
338
 
298
339
    def SetBackgroundColour(*args, **kwargs):
299
340
        """SetBackgroundColour(self, Colour colBack)"""
300
 
        return _richtext.RichTextAttr_SetBackgroundColour(*args, **kwargs)
 
341
        return _richtext.TextAttrEx_SetBackgroundColour(*args, **kwargs)
 
342
 
 
343
    def SetFont(*args, **kwargs):
 
344
        """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
 
345
        return _richtext.TextAttrEx_SetFont(*args, **kwargs)
301
346
 
302
347
    def SetAlignment(*args, **kwargs):
303
348
        """SetAlignment(self, int alignment)"""
304
 
        return _richtext.RichTextAttr_SetAlignment(*args, **kwargs)
 
349
        return _richtext.TextAttrEx_SetAlignment(*args, **kwargs)
305
350
 
306
351
    def SetTabs(*args, **kwargs):
307
352
        """SetTabs(self, wxArrayInt tabs)"""
308
 
        return _richtext.RichTextAttr_SetTabs(*args, **kwargs)
 
353
        return _richtext.TextAttrEx_SetTabs(*args, **kwargs)
309
354
 
310
355
    def SetLeftIndent(*args, **kwargs):
311
356
        """SetLeftIndent(self, int indent, int subIndent=0)"""
312
 
        return _richtext.RichTextAttr_SetLeftIndent(*args, **kwargs)
 
357
        return _richtext.TextAttrEx_SetLeftIndent(*args, **kwargs)
313
358
 
314
359
    def SetRightIndent(*args, **kwargs):
315
360
        """SetRightIndent(self, int indent)"""
316
 
        return _richtext.RichTextAttr_SetRightIndent(*args, **kwargs)
317
 
 
318
 
    def SetFontSize(*args, **kwargs):
319
 
        """SetFontSize(self, int pointSize)"""
320
 
        return _richtext.RichTextAttr_SetFontSize(*args, **kwargs)
321
 
 
322
 
    def SetFontStyle(*args, **kwargs):
323
 
        """SetFontStyle(self, int fontStyle)"""
324
 
        return _richtext.RichTextAttr_SetFontStyle(*args, **kwargs)
325
 
 
326
 
    def SetFontWeight(*args, **kwargs):
327
 
        """SetFontWeight(self, int fontWeight)"""
328
 
        return _richtext.RichTextAttr_SetFontWeight(*args, **kwargs)
329
 
 
330
 
    def SetFontFaceName(*args, **kwargs):
331
 
        """SetFontFaceName(self, String faceName)"""
332
 
        return _richtext.RichTextAttr_SetFontFaceName(*args, **kwargs)
333
 
 
334
 
    def SetFontUnderlined(*args, **kwargs):
335
 
        """SetFontUnderlined(self, bool underlined)"""
336
 
        return _richtext.RichTextAttr_SetFontUnderlined(*args, **kwargs)
 
361
        return _richtext.TextAttrEx_SetRightIndent(*args, **kwargs)
337
362
 
338
363
    def SetFlags(*args, **kwargs):
339
364
        """SetFlags(self, long flags)"""
340
 
        return _richtext.RichTextAttr_SetFlags(*args, **kwargs)
 
365
        return _richtext.TextAttrEx_SetFlags(*args, **kwargs)
 
366
 
 
367
    def HasTextColour(*args, **kwargs):
 
368
        """HasTextColour(self) -> bool"""
 
369
        return _richtext.TextAttrEx_HasTextColour(*args, **kwargs)
 
370
 
 
371
    def HasBackgroundColour(*args, **kwargs):
 
372
        """HasBackgroundColour(self) -> bool"""
 
373
        return _richtext.TextAttrEx_HasBackgroundColour(*args, **kwargs)
 
374
 
 
375
    def HasFont(*args, **kwargs):
 
376
        """HasFont(self) -> bool"""
 
377
        return _richtext.TextAttrEx_HasFont(*args, **kwargs)
 
378
 
 
379
    def HasAlignment(*args, **kwargs):
 
380
        """HasAlignment(self) -> bool"""
 
381
        return _richtext.TextAttrEx_HasAlignment(*args, **kwargs)
 
382
 
 
383
    def HasTabs(*args, **kwargs):
 
384
        """HasTabs(self) -> bool"""
 
385
        return _richtext.TextAttrEx_HasTabs(*args, **kwargs)
 
386
 
 
387
    def HasLeftIndent(*args, **kwargs):
 
388
        """HasLeftIndent(self) -> bool"""
 
389
        return _richtext.TextAttrEx_HasLeftIndent(*args, **kwargs)
 
390
 
 
391
    def HasRightIndent(*args, **kwargs):
 
392
        """HasRightIndent(self) -> bool"""
 
393
        return _richtext.TextAttrEx_HasRightIndent(*args, **kwargs)
 
394
 
 
395
    def HasFlag(*args, **kwargs):
 
396
        """HasFlag(self, long flag) -> bool"""
 
397
        return _richtext.TextAttrEx_HasFlag(*args, **kwargs)
 
398
 
 
399
    def GetTextColour(*args, **kwargs):
 
400
        """GetTextColour(self) -> Colour"""
 
401
        return _richtext.TextAttrEx_GetTextColour(*args, **kwargs)
 
402
 
 
403
    def GetBackgroundColour(*args, **kwargs):
 
404
        """GetBackgroundColour(self) -> Colour"""
 
405
        return _richtext.TextAttrEx_GetBackgroundColour(*args, **kwargs)
 
406
 
 
407
    def GetFont(*args, **kwargs):
 
408
        """GetFont(self) -> Font"""
 
409
        return _richtext.TextAttrEx_GetFont(*args, **kwargs)
 
410
 
 
411
    def GetAlignment(*args, **kwargs):
 
412
        """GetAlignment(self) -> int"""
 
413
        return _richtext.TextAttrEx_GetAlignment(*args, **kwargs)
 
414
 
 
415
    def GetTabs(*args, **kwargs):
 
416
        """GetTabs(self) -> wxArrayInt"""
 
417
        return _richtext.TextAttrEx_GetTabs(*args, **kwargs)
 
418
 
 
419
    def GetLeftIndent(*args, **kwargs):
 
420
        """GetLeftIndent(self) -> long"""
 
421
        return _richtext.TextAttrEx_GetLeftIndent(*args, **kwargs)
 
422
 
 
423
    def GetLeftSubIndent(*args, **kwargs):
 
424
        """GetLeftSubIndent(self) -> long"""
 
425
        return _richtext.TextAttrEx_GetLeftSubIndent(*args, **kwargs)
 
426
 
 
427
    def GetRightIndent(*args, **kwargs):
 
428
        """GetRightIndent(self) -> long"""
 
429
        return _richtext.TextAttrEx_GetRightIndent(*args, **kwargs)
 
430
 
 
431
    def GetFlags(*args, **kwargs):
 
432
        """GetFlags(self) -> long"""
 
433
        return _richtext.TextAttrEx_GetFlags(*args, **kwargs)
341
434
 
342
435
    def SetCharacterStyleName(*args, **kwargs):
343
436
        """SetCharacterStyleName(self, String name)"""
344
 
        return _richtext.RichTextAttr_SetCharacterStyleName(*args, **kwargs)
 
437
        return _richtext.TextAttrEx_SetCharacterStyleName(*args, **kwargs)
345
438
 
346
439
    def SetParagraphStyleName(*args, **kwargs):
347
440
        """SetParagraphStyleName(self, String name)"""
348
 
        return _richtext.RichTextAttr_SetParagraphStyleName(*args, **kwargs)
 
441
        return _richtext.TextAttrEx_SetParagraphStyleName(*args, **kwargs)
 
442
 
 
443
    def SetListStyleName(*args, **kwargs):
 
444
        """SetListStyleName(self, String name)"""
 
445
        return _richtext.TextAttrEx_SetListStyleName(*args, **kwargs)
349
446
 
350
447
    def SetParagraphSpacingAfter(*args, **kwargs):
351
448
        """SetParagraphSpacingAfter(self, int spacing)"""
352
 
        return _richtext.RichTextAttr_SetParagraphSpacingAfter(*args, **kwargs)
 
449
        return _richtext.TextAttrEx_SetParagraphSpacingAfter(*args, **kwargs)
353
450
 
354
451
    def SetParagraphSpacingBefore(*args, **kwargs):
355
452
        """SetParagraphSpacingBefore(self, int spacing)"""
356
 
        return _richtext.RichTextAttr_SetParagraphSpacingBefore(*args, **kwargs)
 
453
        return _richtext.TextAttrEx_SetParagraphSpacingBefore(*args, **kwargs)
357
454
 
358
455
    def SetLineSpacing(*args, **kwargs):
359
456
        """SetLineSpacing(self, int spacing)"""
360
 
        return _richtext.RichTextAttr_SetLineSpacing(*args, **kwargs)
 
457
        return _richtext.TextAttrEx_SetLineSpacing(*args, **kwargs)
361
458
 
362
459
    def SetBulletStyle(*args, **kwargs):
363
460
        """SetBulletStyle(self, int style)"""
364
 
        return _richtext.RichTextAttr_SetBulletStyle(*args, **kwargs)
 
461
        return _richtext.TextAttrEx_SetBulletStyle(*args, **kwargs)
365
462
 
366
463
    def SetBulletNumber(*args, **kwargs):
367
464
        """SetBulletNumber(self, int n)"""
368
 
        return _richtext.RichTextAttr_SetBulletNumber(*args, **kwargs)
 
465
        return _richtext.TextAttrEx_SetBulletNumber(*args, **kwargs)
369
466
 
370
467
    def SetBulletText(*args, **kwargs):
371
 
        """SetBulletText(self, wxChar symbol)"""
372
 
        return _richtext.RichTextAttr_SetBulletText(*args, **kwargs)
 
468
        """SetBulletText(self, String text)"""
 
469
        return _richtext.TextAttrEx_SetBulletText(*args, **kwargs)
 
470
 
 
471
    def SetBulletName(*args, **kwargs):
 
472
        """SetBulletName(self, String name)"""
 
473
        return _richtext.TextAttrEx_SetBulletName(*args, **kwargs)
373
474
 
374
475
    def SetBulletFont(*args, **kwargs):
375
476
        """SetBulletFont(self, String bulletFont)"""
376
 
        return _richtext.RichTextAttr_SetBulletFont(*args, **kwargs)
377
 
 
378
 
    def GetTextColour(*args, **kwargs):
379
 
        """GetTextColour(self) -> Colour"""
380
 
        return _richtext.RichTextAttr_GetTextColour(*args, **kwargs)
381
 
 
382
 
    def GetBackgroundColour(*args, **kwargs):
383
 
        """GetBackgroundColour(self) -> Colour"""
384
 
        return _richtext.RichTextAttr_GetBackgroundColour(*args, **kwargs)
385
 
 
386
 
    def GetAlignment(*args, **kwargs):
387
 
        """GetAlignment(self) -> int"""
388
 
        return _richtext.RichTextAttr_GetAlignment(*args, **kwargs)
389
 
 
390
 
    def GetTabs(*args, **kwargs):
391
 
        """GetTabs(self) -> wxArrayInt"""
392
 
        return _richtext.RichTextAttr_GetTabs(*args, **kwargs)
393
 
 
394
 
    def GetLeftIndent(*args, **kwargs):
395
 
        """GetLeftIndent(self) -> long"""
396
 
        return _richtext.RichTextAttr_GetLeftIndent(*args, **kwargs)
397
 
 
398
 
    def GetLeftSubIndent(*args, **kwargs):
399
 
        """GetLeftSubIndent(self) -> long"""
400
 
        return _richtext.RichTextAttr_GetLeftSubIndent(*args, **kwargs)
401
 
 
402
 
    def GetRightIndent(*args, **kwargs):
403
 
        """GetRightIndent(self) -> long"""
404
 
        return _richtext.RichTextAttr_GetRightIndent(*args, **kwargs)
405
 
 
406
 
    def GetFlags(*args, **kwargs):
407
 
        """GetFlags(self) -> long"""
408
 
        return _richtext.RichTextAttr_GetFlags(*args, **kwargs)
409
 
 
410
 
    def GetFontSize(*args, **kwargs):
411
 
        """GetFontSize(self) -> int"""
412
 
        return _richtext.RichTextAttr_GetFontSize(*args, **kwargs)
413
 
 
414
 
    def GetFontStyle(*args, **kwargs):
415
 
        """GetFontStyle(self) -> int"""
416
 
        return _richtext.RichTextAttr_GetFontStyle(*args, **kwargs)
417
 
 
418
 
    def GetFontWeight(*args, **kwargs):
419
 
        """GetFontWeight(self) -> int"""
420
 
        return _richtext.RichTextAttr_GetFontWeight(*args, **kwargs)
421
 
 
422
 
    def GetFontUnderlined(*args, **kwargs):
423
 
        """GetFontUnderlined(self) -> bool"""
424
 
        return _richtext.RichTextAttr_GetFontUnderlined(*args, **kwargs)
425
 
 
426
 
    def GetFontFaceName(*args, **kwargs):
427
 
        """GetFontFaceName(self) -> String"""
428
 
        return _richtext.RichTextAttr_GetFontFaceName(*args, **kwargs)
 
477
        return _richtext.TextAttrEx_SetBulletFont(*args, **kwargs)
 
478
 
 
479
    def SetURL(*args, **kwargs):
 
480
        """SetURL(self, String url)"""
 
481
        return _richtext.TextAttrEx_SetURL(*args, **kwargs)
 
482
 
 
483
    def SetPageBreak(*args, **kwargs):
 
484
        """SetPageBreak(self, bool pageBreak=True)"""
 
485
        return _richtext.TextAttrEx_SetPageBreak(*args, **kwargs)
 
486
 
 
487
    def SetTextEffects(*args, **kwargs):
 
488
        """SetTextEffects(self, int effects)"""
 
489
        return _richtext.TextAttrEx_SetTextEffects(*args, **kwargs)
 
490
 
 
491
    def SetTextEffectFlags(*args, **kwargs):
 
492
        """SetTextEffectFlags(self, int effects)"""
 
493
        return _richtext.TextAttrEx_SetTextEffectFlags(*args, **kwargs)
 
494
 
 
495
    def SetOutlineLevel(*args, **kwargs):
 
496
        """SetOutlineLevel(self, int level)"""
 
497
        return _richtext.TextAttrEx_SetOutlineLevel(*args, **kwargs)
429
498
 
430
499
    def GetCharacterStyleName(*args, **kwargs):
431
500
        """GetCharacterStyleName(self) -> String"""
432
 
        return _richtext.RichTextAttr_GetCharacterStyleName(*args, **kwargs)
 
501
        return _richtext.TextAttrEx_GetCharacterStyleName(*args, **kwargs)
433
502
 
434
503
    def GetParagraphStyleName(*args, **kwargs):
435
504
        """GetParagraphStyleName(self) -> String"""
436
 
        return _richtext.RichTextAttr_GetParagraphStyleName(*args, **kwargs)
 
505
        return _richtext.TextAttrEx_GetParagraphStyleName(*args, **kwargs)
 
506
 
 
507
    def GetListStyleName(*args, **kwargs):
 
508
        """GetListStyleName(self) -> String"""
 
509
        return _richtext.TextAttrEx_GetListStyleName(*args, **kwargs)
437
510
 
438
511
    def GetParagraphSpacingAfter(*args, **kwargs):
439
512
        """GetParagraphSpacingAfter(self) -> int"""
440
 
        return _richtext.RichTextAttr_GetParagraphSpacingAfter(*args, **kwargs)
 
513
        return _richtext.TextAttrEx_GetParagraphSpacingAfter(*args, **kwargs)
441
514
 
442
515
    def GetParagraphSpacingBefore(*args, **kwargs):
443
516
        """GetParagraphSpacingBefore(self) -> int"""
444
 
        return _richtext.RichTextAttr_GetParagraphSpacingBefore(*args, **kwargs)
 
517
        return _richtext.TextAttrEx_GetParagraphSpacingBefore(*args, **kwargs)
445
518
 
446
519
    def GetLineSpacing(*args, **kwargs):
447
520
        """GetLineSpacing(self) -> int"""
448
 
        return _richtext.RichTextAttr_GetLineSpacing(*args, **kwargs)
 
521
        return _richtext.TextAttrEx_GetLineSpacing(*args, **kwargs)
449
522
 
450
523
    def GetBulletStyle(*args, **kwargs):
451
524
        """GetBulletStyle(self) -> int"""
452
 
        return _richtext.RichTextAttr_GetBulletStyle(*args, **kwargs)
 
525
        return _richtext.TextAttrEx_GetBulletStyle(*args, **kwargs)
453
526
 
454
527
    def GetBulletNumber(*args, **kwargs):
455
528
        """GetBulletNumber(self) -> int"""
456
 
        return _richtext.RichTextAttr_GetBulletNumber(*args, **kwargs)
 
529
        return _richtext.TextAttrEx_GetBulletNumber(*args, **kwargs)
457
530
 
458
531
    def GetBulletText(*args, **kwargs):
459
532
        """GetBulletText(self) -> String"""
460
 
        return _richtext.RichTextAttr_GetBulletText(*args, **kwargs)
 
533
        return _richtext.TextAttrEx_GetBulletText(*args, **kwargs)
 
534
 
 
535
    def GetBulletName(*args, **kwargs):
 
536
        """GetBulletName(self) -> String"""
 
537
        return _richtext.TextAttrEx_GetBulletName(*args, **kwargs)
461
538
 
462
539
    def GetBulletFont(*args, **kwargs):
463
540
        """GetBulletFont(self) -> String"""
464
 
        return _richtext.RichTextAttr_GetBulletFont(*args, **kwargs)
465
 
 
466
 
    def HasTextColour(*args, **kwargs):
467
 
        """HasTextColour(self) -> bool"""
468
 
        return _richtext.RichTextAttr_HasTextColour(*args, **kwargs)
469
 
 
470
 
    def HasBackgroundColour(*args, **kwargs):
471
 
        """HasBackgroundColour(self) -> bool"""
472
 
        return _richtext.RichTextAttr_HasBackgroundColour(*args, **kwargs)
473
 
 
474
 
    def HasAlignment(*args, **kwargs):
475
 
        """HasAlignment(self) -> bool"""
476
 
        return _richtext.RichTextAttr_HasAlignment(*args, **kwargs)
477
 
 
478
 
    def HasTabs(*args, **kwargs):
479
 
        """HasTabs(self) -> bool"""
480
 
        return _richtext.RichTextAttr_HasTabs(*args, **kwargs)
481
 
 
482
 
    def HasLeftIndent(*args, **kwargs):
483
 
        """HasLeftIndent(self) -> bool"""
484
 
        return _richtext.RichTextAttr_HasLeftIndent(*args, **kwargs)
485
 
 
486
 
    def HasRightIndent(*args, **kwargs):
487
 
        """HasRightIndent(self) -> bool"""
488
 
        return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
489
 
 
490
 
    def HasFont(*args, **kwargs):
491
 
        """HasFont(self) -> bool"""
492
 
        return _richtext.RichTextAttr_HasFont(*args, **kwargs)
 
541
        return _richtext.TextAttrEx_GetBulletFont(*args, **kwargs)
 
542
 
 
543
    def GetURL(*args, **kwargs):
 
544
        """GetURL(self) -> String"""
 
545
        return _richtext.TextAttrEx_GetURL(*args, **kwargs)
 
546
 
 
547
    def GetTextEffects(*args, **kwargs):
 
548
        """GetTextEffects(self) -> int"""
 
549
        return _richtext.TextAttrEx_GetTextEffects(*args, **kwargs)
 
550
 
 
551
    def GetTextEffectFlags(*args, **kwargs):
 
552
        """GetTextEffectFlags(self) -> int"""
 
553
        return _richtext.TextAttrEx_GetTextEffectFlags(*args, **kwargs)
 
554
 
 
555
    def GetOutlineLevel(*args, **kwargs):
 
556
        """GetOutlineLevel(self) -> int"""
 
557
        return _richtext.TextAttrEx_GetOutlineLevel(*args, **kwargs)
 
558
 
 
559
    def HasFontWeight(*args, **kwargs):
 
560
        """HasFontWeight(self) -> bool"""
 
561
        return _richtext.TextAttrEx_HasFontWeight(*args, **kwargs)
 
562
 
 
563
    def HasFontSize(*args, **kwargs):
 
564
        """HasFontSize(self) -> bool"""
 
565
        return _richtext.TextAttrEx_HasFontSize(*args, **kwargs)
 
566
 
 
567
    def HasFontItalic(*args, **kwargs):
 
568
        """HasFontItalic(self) -> bool"""
 
569
        return _richtext.TextAttrEx_HasFontItalic(*args, **kwargs)
 
570
 
 
571
    def HasFontUnderlined(*args, **kwargs):
 
572
        """HasFontUnderlined(self) -> bool"""
 
573
        return _richtext.TextAttrEx_HasFontUnderlined(*args, **kwargs)
 
574
 
 
575
    def HasFontFaceName(*args, **kwargs):
 
576
        """HasFontFaceName(self) -> bool"""
 
577
        return _richtext.TextAttrEx_HasFontFaceName(*args, **kwargs)
493
578
 
494
579
    def HasParagraphSpacingAfter(*args, **kwargs):
495
580
        """HasParagraphSpacingAfter(self) -> bool"""
496
 
        return _richtext.RichTextAttr_HasParagraphSpacingAfter(*args, **kwargs)
 
581
        return _richtext.TextAttrEx_HasParagraphSpacingAfter(*args, **kwargs)
497
582
 
498
583
    def HasParagraphSpacingBefore(*args, **kwargs):
499
584
        """HasParagraphSpacingBefore(self) -> bool"""
500
 
        return _richtext.RichTextAttr_HasParagraphSpacingBefore(*args, **kwargs)
 
585
        return _richtext.TextAttrEx_HasParagraphSpacingBefore(*args, **kwargs)
501
586
 
502
587
    def HasLineSpacing(*args, **kwargs):
503
588
        """HasLineSpacing(self) -> bool"""
504
 
        return _richtext.RichTextAttr_HasLineSpacing(*args, **kwargs)
 
589
        return _richtext.TextAttrEx_HasLineSpacing(*args, **kwargs)
505
590
 
506
591
    def HasCharacterStyleName(*args, **kwargs):
507
592
        """HasCharacterStyleName(self) -> bool"""
508
 
        return _richtext.RichTextAttr_HasCharacterStyleName(*args, **kwargs)
 
593
        return _richtext.TextAttrEx_HasCharacterStyleName(*args, **kwargs)
509
594
 
510
595
    def HasParagraphStyleName(*args, **kwargs):
511
596
        """HasParagraphStyleName(self) -> bool"""
512
 
        return _richtext.RichTextAttr_HasParagraphStyleName(*args, **kwargs)
 
597
        return _richtext.TextAttrEx_HasParagraphStyleName(*args, **kwargs)
 
598
 
 
599
    def HasListStyleName(*args, **kwargs):
 
600
        """HasListStyleName(self) -> bool"""
 
601
        return _richtext.TextAttrEx_HasListStyleName(*args, **kwargs)
513
602
 
514
603
    def HasBulletStyle(*args, **kwargs):
515
604
        """HasBulletStyle(self) -> bool"""
516
 
        return _richtext.RichTextAttr_HasBulletStyle(*args, **kwargs)
 
605
        return _richtext.TextAttrEx_HasBulletStyle(*args, **kwargs)
517
606
 
518
607
    def HasBulletNumber(*args, **kwargs):
519
608
        """HasBulletNumber(self) -> bool"""
520
 
        return _richtext.RichTextAttr_HasBulletNumber(*args, **kwargs)
 
609
        return _richtext.TextAttrEx_HasBulletNumber(*args, **kwargs)
521
610
 
522
611
    def HasBulletText(*args, **kwargs):
523
612
        """HasBulletText(self) -> bool"""
524
 
        return _richtext.RichTextAttr_HasBulletText(*args, **kwargs)
525
 
 
526
 
    def HasFlag(*args, **kwargs):
527
 
        """HasFlag(self, long flag) -> bool"""
528
 
        return _richtext.RichTextAttr_HasFlag(*args, **kwargs)
 
613
        return _richtext.TextAttrEx_HasBulletText(*args, **kwargs)
 
614
 
 
615
    def HasBulletName(*args, **kwargs):
 
616
        """HasBulletName(self) -> bool"""
 
617
        return _richtext.TextAttrEx_HasBulletName(*args, **kwargs)
 
618
 
 
619
    def HasURL(*args, **kwargs):
 
620
        """HasURL(self) -> bool"""
 
621
        return _richtext.TextAttrEx_HasURL(*args, **kwargs)
 
622
 
 
623
    def HasPageBreak(*args, **kwargs):
 
624
        """HasPageBreak(self) -> bool"""
 
625
        return _richtext.TextAttrEx_HasPageBreak(*args, **kwargs)
 
626
 
 
627
    def HasTextEffects(*args, **kwargs):
 
628
        """HasTextEffects(self) -> bool"""
 
629
        return _richtext.TextAttrEx_HasTextEffects(*args, **kwargs)
 
630
 
 
631
    def HasTextEffect(*args, **kwargs):
 
632
        """HasTextEffect(self, int effect) -> bool"""
 
633
        return _richtext.TextAttrEx_HasTextEffect(*args, **kwargs)
 
634
 
 
635
    def HasOutlineLevel(*args, **kwargs):
 
636
        """HasOutlineLevel(self) -> bool"""
 
637
        return _richtext.TextAttrEx_HasOutlineLevel(*args, **kwargs)
529
638
 
530
639
    def IsCharacterStyle(*args, **kwargs):
531
640
        """IsCharacterStyle(self) -> bool"""
532
 
        return _richtext.RichTextAttr_IsCharacterStyle(*args, **kwargs)
 
641
        return _richtext.TextAttrEx_IsCharacterStyle(*args, **kwargs)
533
642
 
534
643
    def IsParagraphStyle(*args, **kwargs):
535
644
        """IsParagraphStyle(self) -> bool"""
536
 
        return _richtext.RichTextAttr_IsParagraphStyle(*args, **kwargs)
 
645
        return _richtext.TextAttrEx_IsParagraphStyle(*args, **kwargs)
537
646
 
538
647
    def IsDefault(*args, **kwargs):
539
648
        """IsDefault(self) -> bool"""
540
 
        return _richtext.RichTextAttr_IsDefault(*args, **kwargs)
541
 
 
542
 
    Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") 
543
 
    BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") 
544
 
    BulletFont = property(GetBulletFont,SetBulletFont,doc="See `GetBulletFont` and `SetBulletFont`") 
545
 
    BulletNumber = property(GetBulletNumber,SetBulletNumber,doc="See `GetBulletNumber` and `SetBulletNumber`") 
546
 
    BulletStyle = property(GetBulletStyle,SetBulletStyle,doc="See `GetBulletStyle` and `SetBulletStyle`") 
547
 
    BulletText = property(GetBulletText,SetBulletText,doc="See `GetBulletText` and `SetBulletText`") 
548
 
    CharacterStyleName = property(GetCharacterStyleName,SetCharacterStyleName,doc="See `GetCharacterStyleName` and `SetCharacterStyleName`") 
549
 
    Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
550
 
    Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") 
551
 
    FontAttributes = property(GetFontAttributes,doc="See `GetFontAttributes`") 
552
 
    FontFaceName = property(GetFontFaceName,SetFontFaceName,doc="See `GetFontFaceName` and `SetFontFaceName`") 
553
 
    FontSize = property(GetFontSize,SetFontSize,doc="See `GetFontSize` and `SetFontSize`") 
554
 
    FontStyle = property(GetFontStyle,SetFontStyle,doc="See `GetFontStyle` and `SetFontStyle`") 
555
 
    FontUnderlined = property(GetFontUnderlined,SetFontUnderlined,doc="See `GetFontUnderlined` and `SetFontUnderlined`") 
556
 
    FontWeight = property(GetFontWeight,SetFontWeight,doc="See `GetFontWeight` and `SetFontWeight`") 
557
 
    LeftIndent = property(GetLeftIndent,SetLeftIndent,doc="See `GetLeftIndent` and `SetLeftIndent`") 
558
 
    LeftSubIndent = property(GetLeftSubIndent,doc="See `GetLeftSubIndent`") 
559
 
    LineSpacing = property(GetLineSpacing,SetLineSpacing,doc="See `GetLineSpacing` and `SetLineSpacing`") 
560
 
    ParagraphSpacingAfter = property(GetParagraphSpacingAfter,SetParagraphSpacingAfter,doc="See `GetParagraphSpacingAfter` and `SetParagraphSpacingAfter`") 
561
 
    ParagraphSpacingBefore = property(GetParagraphSpacingBefore,SetParagraphSpacingBefore,doc="See `GetParagraphSpacingBefore` and `SetParagraphSpacingBefore`") 
562
 
    ParagraphStyleName = property(GetParagraphStyleName,SetParagraphStyleName,doc="See `GetParagraphStyleName` and `SetParagraphStyleName`") 
563
 
    RightIndent = property(GetRightIndent,SetRightIndent,doc="See `GetRightIndent` and `SetRightIndent`") 
564
 
    Tabs = property(GetTabs,SetTabs,doc="See `GetTabs` and `SetTabs`") 
565
 
    TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") 
566
 
_richtext.RichTextAttr_swigregister(RichTextAttr)
 
649
        return _richtext.TextAttrEx_IsDefault(*args, **kwargs)
 
650
 
 
651
    def CombineEx(*args, **kwargs):
 
652
        """CombineEx(TextAttrEx attr, TextAttrEx attrDef, RichTextCtrl text) -> TextAttrEx"""
 
653
        return _richtext.TextAttrEx_CombineEx(*args, **kwargs)
 
654
 
 
655
    CombineEx = staticmethod(CombineEx)
 
656
    Alignment = property(GetAlignment,SetAlignment) 
 
657
    BackgroundColour = property(GetBackgroundColour,SetBackgroundColour) 
 
658
    Flags = property(GetFlags,SetFlags) 
 
659
    Font = property(GetFont,SetFont) 
 
660
    LeftIndent = property(GetLeftIndent,SetLeftIndent) 
 
661
    LeftSubIndent = property(GetLeftSubIndent) 
 
662
    RightIndent = property(GetRightIndent,SetRightIndent) 
 
663
    Tabs = property(GetTabs,SetTabs) 
 
664
    TextColour = property(GetTextColour,SetTextColour) 
 
665
    CharacterStyleName = property(GetCharacterStyleName,SetCharacterStyleName) 
 
666
    ParagraphStyleName = property(GetParagraphStyleName,SetParagraphStyleName) 
 
667
    ListStyleName = property(GetListStyleName,SetListStyleName) 
 
668
    ParagraphSpacingAfter = property(GetParagraphSpacingAfter,SetParagraphSpacingAfter) 
 
669
    ParagraphSpacingBefore = property(GetParagraphSpacingBefore,SetParagraphSpacingBefore) 
 
670
    LineSpacing = property(GetLineSpacing,SetLineSpacing) 
 
671
    BulletStyle = property(GetBulletStyle,SetBulletStyle) 
 
672
    BulletNumber = property(GetBulletNumber,SetBulletNumber) 
 
673
    BulletText = property(GetBulletText,SetBulletText) 
 
674
    BulletName = property(GetBulletName,SetBulletName) 
 
675
    BulletFont = property(GetBulletFont,SetBulletFont) 
 
676
    URL = property(GetURL,SetURL) 
 
677
    TextEffects = property(GetTextEffects,SetTextEffects) 
 
678
    TextEffectFlags = property(GetTextEffectFlags,SetTextEffectFlags) 
 
679
    OutlineLevel = property(GetOutlineLevel,SetOutlineLevel) 
 
680
_richtext.TextAttrEx_swigregister(TextAttrEx)
567
681
cvar = _richtext.cvar
568
682
RICHTEXT_ALL = cvar.RICHTEXT_ALL
569
683
RICHTEXT_NONE = cvar.RICHTEXT_NONE
570
684
 
571
 
TEXT_ATTR_CHARACTER = _richtext.TEXT_ATTR_CHARACTER
572
 
TEXT_ATTR_PARAGRAPH = _richtext.TEXT_ATTR_PARAGRAPH
573
 
TEXT_ATTR_ALL = _richtext.TEXT_ATTR_ALL
 
685
def TextAttrEx_CombineEx(*args, **kwargs):
 
686
  """TextAttrEx_CombineEx(TextAttrEx attr, TextAttrEx attrDef, RichTextCtrl text) -> TextAttrEx"""
 
687
  return _richtext.TextAttrEx_CombineEx(*args, **kwargs)
 
688
 
 
689
# an alias for compatibility
 
690
RichTextAttr = TextAttrEx
 
691
 
 
692
class RichTextObject(_core.Object):
 
693
    """
 
694
    This is the base class for all drawable objects in a `RichTextCtrl`.
 
695
 
 
696
    The data displayed in a `RichTextCtrl` is handled by `RichTextBuffer`,
 
697
    and a `RichTextCtrl` always has one such buffer.
 
698
 
 
699
    The content is represented by a hierarchy of objects, all derived from
 
700
    `RichTextObject`. An object might be an image, a fragment of text, a
 
701
    paragraph, or a whole buffer. Objects store a an attribute object
 
702
    containing style information; a paragraph object can contain both
 
703
    paragraph and character information, but content objects such as text
 
704
    can only store character information. The final style displayed in the
 
705
    control or in a printout is a combination of base style, paragraph
 
706
    style and content (character) style.
 
707
 
 
708
    The top of the hierarchy is the buffer, a kind of
 
709
    `RichTextParagraphLayoutBox`. containing further `RichTextParagraph`
 
710
    objects, each of which can include text, images and potentially other
 
711
    types of objects.
 
712
 
 
713
    Each object maintains a range (start and end position) measured from
 
714
    the start of the main parent object.
 
715
 
 
716
    When Layout is called on an object, it is given a size which the
 
717
    object must limit itself to, or one or more flexible directions
 
718
    (vertical or horizontal). So, for example, a centred paragraph is
 
719
    given the page width to play with (minus any margins), but can extend
 
720
    indefinitely in the vertical direction. The implementation of Layout
 
721
    caches the calculated size and position.
 
722
 
 
723
    When the buffer is modified, a range is invalidated (marked as
 
724
    requiring layout), so that only the minimum amount of layout is
 
725
    performed.
 
726
 
 
727
    A paragraph of pure text with the same style contains just one further
 
728
    object, a `RichTextPlainText` object. When styling is applied to part
 
729
    of this object, the object is decomposed into separate objects, one
 
730
    object for each different character style. So each object within a
 
731
    paragraph always has just one attribute object to denote its character
 
732
    style. Of course, this can lead to fragmentation after a lot of edit
 
733
    operations, potentially leading to several objects with the same style
 
734
    where just one would do. So a Defragment function is called when
 
735
    updating the control's display, to ensure that the minimum number of
 
736
    objects is used.
 
737
 
 
738
    To implement your own RichTextObjects in Python you must derive a
 
739
    class from `PyRichTextObject`, which has been instrumented to forward
 
740
    the virtual C++ method calls to the Python methods in the derived
 
741
    class. (This class hasn't been implemented yet!)
 
742
    """
 
743
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
744
    def __init__(self): raise AttributeError, "No constructor defined"
 
745
    __repr__ = _swig_repr
 
746
    __swig_destroy__ = _richtext.delete_RichTextObject
 
747
    __del__ = lambda self : None;
 
748
    def Draw(*args, **kwargs):
 
749
        """
 
750
        Draw(self, DC dc, RichTextRange range, RichTextRange selectionRange, 
 
751
            Rect rect, int descent, int style) -> bool
 
752
        """
 
753
        return _richtext.RichTextObject_Draw(*args, **kwargs)
 
754
 
 
755
    def Layout(*args, **kwargs):
 
756
        """Layout(self, DC dc, Rect rect, int style) -> bool"""
 
757
        return _richtext.RichTextObject_Layout(*args, **kwargs)
 
758
 
 
759
    def HitTest(*args, **kwargs):
 
760
        """HitTest(self, DC dc, Point pt, long OUTPUT) -> int"""
 
761
        return _richtext.RichTextObject_HitTest(*args, **kwargs)
 
762
 
 
763
    def FindPosition(*args, **kwargs):
 
764
        """FindPosition(self, DC dc, long index, Point OUTPUT, int OUTPUT, bool forceLineStart) -> bool"""
 
765
        return _richtext.RichTextObject_FindPosition(*args, **kwargs)
 
766
 
 
767
    def GetBestSize(*args, **kwargs):
 
768
        """GetBestSize(self) -> Size"""
 
769
        return _richtext.RichTextObject_GetBestSize(*args, **kwargs)
 
770
 
 
771
    def GetRangeSize(*args, **kwargs):
 
772
        """
 
773
        GetRangeSize(self, RichTextRange range, Size OUTPUT, int OUTPUT, DC dc, 
 
774
            int flags, Point position=wxPoint(0,0)) -> bool
 
775
        """
 
776
        return _richtext.RichTextObject_GetRangeSize(*args, **kwargs)
 
777
 
 
778
    def DoSplit(*args, **kwargs):
 
779
        """DoSplit(self, long pos) -> RichTextObject"""
 
780
        return _richtext.RichTextObject_DoSplit(*args, **kwargs)
 
781
 
 
782
    def CalculateRange(*args, **kwargs):
 
783
        """CalculateRange(self, long start, long OUTPUT)"""
 
784
        return _richtext.RichTextObject_CalculateRange(*args, **kwargs)
 
785
 
 
786
    def DeleteRange(*args, **kwargs):
 
787
        """DeleteRange(self, RichTextRange range) -> bool"""
 
788
        return _richtext.RichTextObject_DeleteRange(*args, **kwargs)
 
789
 
 
790
    def IsEmpty(*args, **kwargs):
 
791
        """IsEmpty(self) -> bool"""
 
792
        return _richtext.RichTextObject_IsEmpty(*args, **kwargs)
 
793
 
 
794
    def GetTextForRange(*args, **kwargs):
 
795
        """GetTextForRange(self, RichTextRange range) -> String"""
 
796
        return _richtext.RichTextObject_GetTextForRange(*args, **kwargs)
 
797
 
 
798
    def CanMerge(*args, **kwargs):
 
799
        """CanMerge(self, RichTextObject object) -> bool"""
 
800
        return _richtext.RichTextObject_CanMerge(*args, **kwargs)
 
801
 
 
802
    def Merge(*args, **kwargs):
 
803
        """Merge(self, RichTextObject object) -> bool"""
 
804
        return _richtext.RichTextObject_Merge(*args, **kwargs)
 
805
 
 
806
    def Dump(*args, **kwargs):
 
807
        """Dump(self) -> String"""
 
808
        return _richtext.RichTextObject_Dump(*args, **kwargs)
 
809
 
 
810
    def GetCachedSize(*args, **kwargs):
 
811
        """GetCachedSize(self) -> Size"""
 
812
        return _richtext.RichTextObject_GetCachedSize(*args, **kwargs)
 
813
 
 
814
    def SetCachedSize(*args, **kwargs):
 
815
        """SetCachedSize(self, Size sz)"""
 
816
        return _richtext.RichTextObject_SetCachedSize(*args, **kwargs)
 
817
 
 
818
    CachedSize = property(GetCachedSize,SetCachedSize) 
 
819
    def GetPosition(*args, **kwargs):
 
820
        """GetPosition(self) -> Point"""
 
821
        return _richtext.RichTextObject_GetPosition(*args, **kwargs)
 
822
 
 
823
    def SetPosition(*args, **kwargs):
 
824
        """SetPosition(self, Point pos)"""
 
825
        return _richtext.RichTextObject_SetPosition(*args, **kwargs)
 
826
 
 
827
    Position = property(GetPosition,SetPosition) 
 
828
    def GetRect(*args, **kwargs):
 
829
        """GetRect(self) -> Rect"""
 
830
        return _richtext.RichTextObject_GetRect(*args, **kwargs)
 
831
 
 
832
    Rect = property(GetRect) 
 
833
    def SetRange(*args, **kwargs):
 
834
        """SetRange(self, RichTextRange range)"""
 
835
        return _richtext.RichTextObject_SetRange(*args, **kwargs)
 
836
 
 
837
    def GetRange(*args, **kwargs):
 
838
        """GetRange(self) -> RichTextRange"""
 
839
        return _richtext.RichTextObject_GetRange(*args, **kwargs)
 
840
 
 
841
    Range = property(GetRange,SetRange) 
 
842
    def GetDirty(*args, **kwargs):
 
843
        """GetDirty(self) -> bool"""
 
844
        return _richtext.RichTextObject_GetDirty(*args, **kwargs)
 
845
 
 
846
    def SetDirty(*args, **kwargs):
 
847
        """SetDirty(self, bool dirty)"""
 
848
        return _richtext.RichTextObject_SetDirty(*args, **kwargs)
 
849
 
 
850
    Dirty = property(GetDirty,SetDirty) 
 
851
    def IsComposite(*args, **kwargs):
 
852
        """IsComposite(self) -> bool"""
 
853
        return _richtext.RichTextObject_IsComposite(*args, **kwargs)
 
854
 
 
855
    def GetParent(*args, **kwargs):
 
856
        """GetParent(self) -> RichTextObject"""
 
857
        return _richtext.RichTextObject_GetParent(*args, **kwargs)
 
858
 
 
859
    def SetParent(*args, **kwargs):
 
860
        """SetParent(self, RichTextObject parent)"""
 
861
        return _richtext.RichTextObject_SetParent(*args, **kwargs)
 
862
 
 
863
    Parent = property(GetParent,SetParent) 
 
864
    def SetSameMargins(*args, **kwargs):
 
865
        """SetSameMargins(self, int margin)"""
 
866
        return _richtext.RichTextObject_SetSameMargins(*args, **kwargs)
 
867
 
 
868
    def SetMargins(*args, **kwargs):
 
869
        """SetMargins(self, int leftMargin, int rightMargin, int topMargin, int bottomMargin)"""
 
870
        return _richtext.RichTextObject_SetMargins(*args, **kwargs)
 
871
 
 
872
    def GetLeftMargin(*args, **kwargs):
 
873
        """GetLeftMargin(self) -> int"""
 
874
        return _richtext.RichTextObject_GetLeftMargin(*args, **kwargs)
 
875
 
 
876
    def GetRightMargin(*args, **kwargs):
 
877
        """GetRightMargin(self) -> int"""
 
878
        return _richtext.RichTextObject_GetRightMargin(*args, **kwargs)
 
879
 
 
880
    def GetTopMargin(*args, **kwargs):
 
881
        """GetTopMargin(self) -> int"""
 
882
        return _richtext.RichTextObject_GetTopMargin(*args, **kwargs)
 
883
 
 
884
    def GetBottomMargin(*args, **kwargs):
 
885
        """GetBottomMargin(self) -> int"""
 
886
        return _richtext.RichTextObject_GetBottomMargin(*args, **kwargs)
 
887
 
 
888
    def SetAttributes(*args, **kwargs):
 
889
        """SetAttributes(self, TextAttrEx attr)"""
 
890
        return _richtext.RichTextObject_SetAttributes(*args, **kwargs)
 
891
 
 
892
    def GetAttributes(*args, **kwargs):
 
893
        """GetAttributes(self) -> TextAttrEx"""
 
894
        return _richtext.RichTextObject_GetAttributes(*args, **kwargs)
 
895
 
 
896
    Attributes = property(GetAttributes,SetAttributes) 
 
897
    def SetDescent(*args, **kwargs):
 
898
        """SetDescent(self, int descent)"""
 
899
        return _richtext.RichTextObject_SetDescent(*args, **kwargs)
 
900
 
 
901
    def GetDescent(*args, **kwargs):
 
902
        """GetDescent(self) -> int"""
 
903
        return _richtext.RichTextObject_GetDescent(*args, **kwargs)
 
904
 
 
905
    Descent = property(GetDescent,SetDescent) 
 
906
    def GetBuffer(*args, **kwargs):
 
907
        """GetBuffer(self) -> RichTextBuffer"""
 
908
        return _richtext.RichTextObject_GetBuffer(*args, **kwargs)
 
909
 
 
910
    def Clone(*args, **kwargs):
 
911
        """Clone(self) -> RichTextObject"""
 
912
        return _richtext.RichTextObject_Clone(*args, **kwargs)
 
913
 
 
914
    def Copy(*args, **kwargs):
 
915
        """Copy(self, RichTextObject obj)"""
 
916
        return _richtext.RichTextObject_Copy(*args, **kwargs)
 
917
 
 
918
    def Reference(*args, **kwargs):
 
919
        """Reference(self)"""
 
920
        return _richtext.RichTextObject_Reference(*args, **kwargs)
 
921
 
 
922
    def Dereference(*args, **kwargs):
 
923
        """Dereference(self)"""
 
924
        return _richtext.RichTextObject_Dereference(*args, **kwargs)
 
925
 
 
926
    def ConvertTenthsMMToPixelsDC(*args, **kwargs):
 
927
        """ConvertTenthsMMToPixelsDC(self, DC dc, int units) -> int"""
 
928
        return _richtext.RichTextObject_ConvertTenthsMMToPixelsDC(*args, **kwargs)
 
929
 
 
930
    def ConvertTenthsMMToPixels(*args, **kwargs):
 
931
        """ConvertTenthsMMToPixels(int ppi, int units) -> int"""
 
932
        return _richtext.RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs)
 
933
 
 
934
    ConvertTenthsMMToPixels = staticmethod(ConvertTenthsMMToPixels)
 
935
_richtext.RichTextObject_swigregister(RichTextObject)
 
936
 
 
937
def RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs):
 
938
  """RichTextObject_ConvertTenthsMMToPixels(int ppi, int units) -> int"""
 
939
  return _richtext.RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs)
 
940
 
 
941
class RichTextObjectList_iterator(object):
 
942
    """This class serves as an iterator for a wxRichTextObjectList object."""
 
943
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
944
    def __init__(self): raise AttributeError, "No constructor defined"
 
945
    __repr__ = _swig_repr
 
946
    __swig_destroy__ = _richtext.delete_RichTextObjectList_iterator
 
947
    __del__ = lambda self : None;
 
948
    def next(*args, **kwargs):
 
949
        """next(self) -> RichTextObject"""
 
950
        return _richtext.RichTextObjectList_iterator_next(*args, **kwargs)
 
951
 
 
952
_richtext.RichTextObjectList_iterator_swigregister(RichTextObjectList_iterator)
 
953
 
 
954
class RichTextObjectList(object):
 
955
    """
 
956
    This class wraps a wxList-based class and gives it a Python
 
957
    sequence-like interface.  Sequence operations supported are length,
 
958
    index access and iteration.
 
959
    """
 
960
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
961
    def __init__(self): raise AttributeError, "No constructor defined"
 
962
    __repr__ = _swig_repr
 
963
    __swig_destroy__ = _richtext.delete_RichTextObjectList
 
964
    __del__ = lambda self : None;
 
965
    def __len__(*args, **kwargs):
 
966
        """__len__(self) -> size_t"""
 
967
        return _richtext.RichTextObjectList___len__(*args, **kwargs)
 
968
 
 
969
    def __getitem__(*args, **kwargs):
 
970
        """__getitem__(self, size_t index) -> RichTextObject"""
 
971
        return _richtext.RichTextObjectList___getitem__(*args, **kwargs)
 
972
 
 
973
    def __contains__(*args, **kwargs):
 
974
        """__contains__(self, RichTextObject obj) -> bool"""
 
975
        return _richtext.RichTextObjectList___contains__(*args, **kwargs)
 
976
 
 
977
    def __iter__(*args, **kwargs):
 
978
        """__iter__(self) -> RichTextObjectList_iterator"""
 
979
        return _richtext.RichTextObjectList___iter__(*args, **kwargs)
 
980
 
 
981
    def index(*args, **kwargs):
 
982
        """index(self, RichTextObject obj) -> int"""
 
983
        return _richtext.RichTextObjectList_index(*args, **kwargs)
 
984
 
 
985
    def __repr__(self):
 
986
        return "wxRichTextObjectList: " + repr(list(self))
 
987
 
 
988
_richtext.RichTextObjectList_swigregister(RichTextObjectList)
 
989
 
 
990
class RichTextCompositeObject(RichTextObject):
 
991
    """Objects of this class can contain other rich text objects."""
 
992
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
993
    def __init__(self): raise AttributeError, "No constructor defined"
 
994
    __repr__ = _swig_repr
 
995
    __swig_destroy__ = _richtext.delete_RichTextCompositeObject
 
996
    __del__ = lambda self : None;
 
997
    def GetChildren(*args, **kwargs):
 
998
        """GetChildren(self) -> RichTextObjectList"""
 
999
        return _richtext.RichTextCompositeObject_GetChildren(*args, **kwargs)
 
1000
 
 
1001
    def GetChildCount(*args, **kwargs):
 
1002
        """GetChildCount(self) -> size_t"""
 
1003
        return _richtext.RichTextCompositeObject_GetChildCount(*args, **kwargs)
 
1004
 
 
1005
    def GetChild(*args, **kwargs):
 
1006
        """GetChild(self, size_t n) -> RichTextObject"""
 
1007
        return _richtext.RichTextCompositeObject_GetChild(*args, **kwargs)
 
1008
 
 
1009
    def Copy(*args, **kwargs):
 
1010
        """Copy(self, RichTextCompositeObject obj)"""
 
1011
        return _richtext.RichTextCompositeObject_Copy(*args, **kwargs)
 
1012
 
 
1013
    def AppendChild(*args, **kwargs):
 
1014
        """AppendChild(self, RichTextObject child) -> size_t"""
 
1015
        return _richtext.RichTextCompositeObject_AppendChild(*args, **kwargs)
 
1016
 
 
1017
    def InsertChild(*args, **kwargs):
 
1018
        """InsertChild(self, RichTextObject child, RichTextObject inFrontOf) -> bool"""
 
1019
        return _richtext.RichTextCompositeObject_InsertChild(*args, **kwargs)
 
1020
 
 
1021
    def RemoveChild(self, child, deleteChild=False):
 
1022
        val = _richtext.RichTextCompositeObject_RemoveChild(self, child, deleteChild)
 
1023
        self.this.own(not deleteChild)
 
1024
        return val
 
1025
 
 
1026
 
 
1027
    def DeleteChildren(*args, **kwargs):
 
1028
        """DeleteChildren(self) -> bool"""
 
1029
        return _richtext.RichTextCompositeObject_DeleteChildren(*args, **kwargs)
 
1030
 
 
1031
    def Defragment(*args, **kwargs):
 
1032
        """Defragment(self) -> bool"""
 
1033
        return _richtext.RichTextCompositeObject_Defragment(*args, **kwargs)
 
1034
 
 
1035
_richtext.RichTextCompositeObject_swigregister(RichTextCompositeObject)
 
1036
 
 
1037
class RichTextBox(RichTextCompositeObject):
 
1038
    """This defines a 2D space to lay out objects."""
 
1039
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1040
    __repr__ = _swig_repr
 
1041
    def __init__(self, *args, **kwargs): 
 
1042
        """
 
1043
        __init__(self, RichTextObject parent=None) -> RichTextBox
 
1044
 
 
1045
        This defines a 2D space to lay out objects.
 
1046
        """
 
1047
        _richtext.RichTextBox_swiginit(self,_richtext.new_RichTextBox(*args, **kwargs))
 
1048
    def Copy(*args, **kwargs):
 
1049
        """Copy(self, RichTextBox obj)"""
 
1050
        return _richtext.RichTextBox_Copy(*args, **kwargs)
 
1051
 
 
1052
_richtext.RichTextBox_swigregister(RichTextBox)
 
1053
 
 
1054
class RichTextParagraphLayoutBox(RichTextBox):
 
1055
    """Proxy of C++ RichTextParagraphLayoutBox class"""
 
1056
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1057
    __repr__ = _swig_repr
 
1058
    def __init__(self, *args, **kwargs): 
 
1059
        """__init__(self, RichTextObject parent=None) -> RichTextParagraphLayoutBox"""
 
1060
        _richtext.RichTextParagraphLayoutBox_swiginit(self,_richtext.new_RichTextParagraphLayoutBox(*args, **kwargs))
 
1061
    def SetRichTextCtrl(*args, **kwargs):
 
1062
        """SetRichTextCtrl(self, RichTextCtrl ctrl)"""
 
1063
        return _richtext.RichTextParagraphLayoutBox_SetRichTextCtrl(*args, **kwargs)
 
1064
 
 
1065
    def GetRichTextCtrl(*args, **kwargs):
 
1066
        """GetRichTextCtrl(self) -> RichTextCtrl"""
 
1067
        return _richtext.RichTextParagraphLayoutBox_GetRichTextCtrl(*args, **kwargs)
 
1068
 
 
1069
    def SetPartialParagraph(*args, **kwargs):
 
1070
        """SetPartialParagraph(self, bool partialPara)"""
 
1071
        return _richtext.RichTextParagraphLayoutBox_SetPartialParagraph(*args, **kwargs)
 
1072
 
 
1073
    def GetPartialParagraph(*args, **kwargs):
 
1074
        """GetPartialParagraph(self) -> bool"""
 
1075
        return _richtext.RichTextParagraphLayoutBox_GetPartialParagraph(*args, **kwargs)
 
1076
 
 
1077
    def GetStyleSheet(*args, **kwargs):
 
1078
        """GetStyleSheet(self) -> wxRichTextStyleSheet"""
 
1079
        return _richtext.RichTextParagraphLayoutBox_GetStyleSheet(*args, **kwargs)
 
1080
 
 
1081
    def Init(*args, **kwargs):
 
1082
        """Init(self)"""
 
1083
        return _richtext.RichTextParagraphLayoutBox_Init(*args, **kwargs)
 
1084
 
 
1085
    def Clear(*args, **kwargs):
 
1086
        """Clear(self)"""
 
1087
        return _richtext.RichTextParagraphLayoutBox_Clear(*args, **kwargs)
 
1088
 
 
1089
    def Reset(*args, **kwargs):
 
1090
        """Reset(self)"""
 
1091
        return _richtext.RichTextParagraphLayoutBox_Reset(*args, **kwargs)
 
1092
 
 
1093
    def AddParagraph(*args, **kwargs):
 
1094
        """AddParagraph(self, String text, TextAttrEx paraStyle=None) -> RichTextRange"""
 
1095
        return _richtext.RichTextParagraphLayoutBox_AddParagraph(*args, **kwargs)
 
1096
 
 
1097
    def AddImage(*args, **kwargs):
 
1098
        """AddImage(self, Image image, TextAttrEx paraStyle=None) -> RichTextRange"""
 
1099
        return _richtext.RichTextParagraphLayoutBox_AddImage(*args, **kwargs)
 
1100
 
 
1101
    def AddParagraphs(*args, **kwargs):
 
1102
        """AddParagraphs(self, String text, TextAttrEx paraStyle=None) -> RichTextRange"""
 
1103
        return _richtext.RichTextParagraphLayoutBox_AddParagraphs(*args, **kwargs)
 
1104
 
 
1105
    def GetLineAtPosition(*args, **kwargs):
 
1106
        """GetLineAtPosition(self, long pos, bool caretPosition=False) -> RichTextLine"""
 
1107
        return _richtext.RichTextParagraphLayoutBox_GetLineAtPosition(*args, **kwargs)
 
1108
 
 
1109
    def GetLineAtYPosition(*args, **kwargs):
 
1110
        """GetLineAtYPosition(self, int y) -> RichTextLine"""
 
1111
        return _richtext.RichTextParagraphLayoutBox_GetLineAtYPosition(*args, **kwargs)
 
1112
 
 
1113
    def GetParagraphAtPosition(*args, **kwargs):
 
1114
        """GetParagraphAtPosition(self, long pos, bool caretPosition=False) -> RichTextParagraph"""
 
1115
        return _richtext.RichTextParagraphLayoutBox_GetParagraphAtPosition(*args, **kwargs)
 
1116
 
 
1117
    def GetLineSizeAtPosition(*args, **kwargs):
 
1118
        """GetLineSizeAtPosition(self, long pos, bool caretPosition=False) -> Size"""
 
1119
        return _richtext.RichTextParagraphLayoutBox_GetLineSizeAtPosition(*args, **kwargs)
 
1120
 
 
1121
    def GetVisibleLineNumber(*args, **kwargs):
 
1122
        """GetVisibleLineNumber(self, long pos, bool caretPosition=False, bool startOfLine=False) -> long"""
 
1123
        return _richtext.RichTextParagraphLayoutBox_GetVisibleLineNumber(*args, **kwargs)
 
1124
 
 
1125
    def GetLineForVisibleLineNumber(*args, **kwargs):
 
1126
        """GetLineForVisibleLineNumber(self, long lineNumber) -> RichTextLine"""
 
1127
        return _richtext.RichTextParagraphLayoutBox_GetLineForVisibleLineNumber(*args, **kwargs)
 
1128
 
 
1129
    def GetLeafObjectAtPosition(*args, **kwargs):
 
1130
        """GetLeafObjectAtPosition(self, long position) -> RichTextObject"""
 
1131
        return _richtext.RichTextParagraphLayoutBox_GetLeafObjectAtPosition(*args, **kwargs)
 
1132
 
 
1133
    def GetParagraphAtLine(*args, **kwargs):
 
1134
        """GetParagraphAtLine(self, long paragraphNumber) -> RichTextParagraph"""
 
1135
        return _richtext.RichTextParagraphLayoutBox_GetParagraphAtLine(*args, **kwargs)
 
1136
 
 
1137
    def GetParagraphForLine(*args, **kwargs):
 
1138
        """GetParagraphForLine(self, RichTextLine line) -> RichTextParagraph"""
 
1139
        return _richtext.RichTextParagraphLayoutBox_GetParagraphForLine(*args, **kwargs)
 
1140
 
 
1141
    def GetParagraphLength(*args, **kwargs):
 
1142
        """GetParagraphLength(self, long paragraphNumber) -> int"""
 
1143
        return _richtext.RichTextParagraphLayoutBox_GetParagraphLength(*args, **kwargs)
 
1144
 
 
1145
    def GetParagraphCount(*args, **kwargs):
 
1146
        """GetParagraphCount(self) -> int"""
 
1147
        return _richtext.RichTextParagraphLayoutBox_GetParagraphCount(*args, **kwargs)
 
1148
 
 
1149
    def GetLineCount(*args, **kwargs):
 
1150
        """GetLineCount(self) -> int"""
 
1151
        return _richtext.RichTextParagraphLayoutBox_GetLineCount(*args, **kwargs)
 
1152
 
 
1153
    def GetParagraphText(*args, **kwargs):
 
1154
        """GetParagraphText(self, long paragraphNumber) -> String"""
 
1155
        return _richtext.RichTextParagraphLayoutBox_GetParagraphText(*args, **kwargs)
 
1156
 
 
1157
    def XYToPosition(*args, **kwargs):
 
1158
        """XYToPosition(self, long x, long y) -> long"""
 
1159
        return _richtext.RichTextParagraphLayoutBox_XYToPosition(*args, **kwargs)
 
1160
 
 
1161
    def PositionToXY(*args, **kwargs):
 
1162
        """PositionToXY(self, long pos, long x, long y) -> bool"""
 
1163
        return _richtext.RichTextParagraphLayoutBox_PositionToXY(*args, **kwargs)
 
1164
 
 
1165
    def SetStyle(*args, **kwargs):
 
1166
        """SetStyle(self, RichTextRange range, TextAttrEx style, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool"""
 
1167
        return _richtext.RichTextParagraphLayoutBox_SetStyle(*args, **kwargs)
 
1168
 
 
1169
    def GetStyle(*args, **kwargs):
 
1170
        """GetStyle(self, long position, TextAttrEx style) -> bool"""
 
1171
        return _richtext.RichTextParagraphLayoutBox_GetStyle(*args, **kwargs)
 
1172
 
 
1173
    def GetUncombinedStyle(*args, **kwargs):
 
1174
        """GetUncombinedStyle(self, long position, TextAttrEx style) -> bool"""
 
1175
        return _richtext.RichTextParagraphLayoutBox_GetUncombinedStyle(*args, **kwargs)
 
1176
 
 
1177
    def GetStyleForRange(*args, **kwargs):
 
1178
        """GetStyleForRange(self, RichTextRange range, TextAttrEx style) -> bool"""
 
1179
        return _richtext.RichTextParagraphLayoutBox_GetStyleForRange(*args, **kwargs)
 
1180
 
 
1181
    def CollectStyle(*args, **kwargs):
 
1182
        """
 
1183
        CollectStyle(self, TextAttrEx currentStyle, TextAttrEx style, long multipleStyleAttributes, 
 
1184
            int multipleTextEffectAttributes) -> bool
 
1185
        """
 
1186
        return _richtext.RichTextParagraphLayoutBox_CollectStyle(*args, **kwargs)
 
1187
 
 
1188
    def SetListStyle(*args, **kwargs):
 
1189
        """
 
1190
        SetListStyle(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO, 
 
1191
            int startFrom=1, int specifiedLevel=-1) -> bool
 
1192
        """
 
1193
        return _richtext.RichTextParagraphLayoutBox_SetListStyle(*args, **kwargs)
 
1194
 
 
1195
    def ClearListStyle(*args, **kwargs):
 
1196
        """ClearListStyle(self, RichTextRange range, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool"""
 
1197
        return _richtext.RichTextParagraphLayoutBox_ClearListStyle(*args, **kwargs)
 
1198
 
 
1199
    def NumberList(*args, **kwargs):
 
1200
        """
 
1201
        NumberList(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO, 
 
1202
            int startFrom=1, int specifiedLevel=-1) -> bool
 
1203
        """
 
1204
        return _richtext.RichTextParagraphLayoutBox_NumberList(*args, **kwargs)
 
1205
 
 
1206
    def PromoteList(*args, **kwargs):
 
1207
        """
 
1208
        PromoteList(self, int promoteBy, RichTextRange range, String defName, 
 
1209
            int flags=RICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel=-1) -> bool
 
1210
        """
 
1211
        return _richtext.RichTextParagraphLayoutBox_PromoteList(*args, **kwargs)
 
1212
 
 
1213
    def DoNumberList(*args, **kwargs):
 
1214
        """
 
1215
        DoNumberList(self, RichTextRange range, RichTextRange promotionRange, 
 
1216
            int promoteBy, wxRichTextListStyleDefinition def, 
 
1217
            int flags=RICHTEXT_SETSTYLE_WITH_UNDO, int startFrom=1, 
 
1218
            int specifiedLevel=-1) -> bool
 
1219
        """
 
1220
        return _richtext.RichTextParagraphLayoutBox_DoNumberList(*args, **kwargs)
 
1221
 
 
1222
    def FindNextParagraphNumber(*args, **kwargs):
 
1223
        """FindNextParagraphNumber(self, RichTextParagraph previousParagraph, TextAttrEx attr) -> bool"""
 
1224
        return _richtext.RichTextParagraphLayoutBox_FindNextParagraphNumber(*args, **kwargs)
 
1225
 
 
1226
    def HasCharacterAttributes(*args, **kwargs):
 
1227
        """HasCharacterAttributes(self, RichTextRange range, TextAttrEx style) -> bool"""
 
1228
        return _richtext.RichTextParagraphLayoutBox_HasCharacterAttributes(*args, **kwargs)
 
1229
 
 
1230
    def HasParagraphAttributes(*args, **kwargs):
 
1231
        """HasParagraphAttributes(self, RichTextRange range, TextAttrEx style) -> bool"""
 
1232
        return _richtext.RichTextParagraphLayoutBox_HasParagraphAttributes(*args, **kwargs)
 
1233
 
 
1234
    def InsertFragment(*args, **kwargs):
 
1235
        """InsertFragment(self, long position, RichTextParagraphLayoutBox fragment) -> bool"""
 
1236
        return _richtext.RichTextParagraphLayoutBox_InsertFragment(*args, **kwargs)
 
1237
 
 
1238
    def CopyFragment(*args, **kwargs):
 
1239
        """CopyFragment(self, RichTextRange range, RichTextParagraphLayoutBox fragment) -> bool"""
 
1240
        return _richtext.RichTextParagraphLayoutBox_CopyFragment(*args, **kwargs)
 
1241
 
 
1242
    def ApplyStyleSheet(*args, **kwargs):
 
1243
        """ApplyStyleSheet(self, wxRichTextStyleSheet styleSheet) -> bool"""
 
1244
        return _richtext.RichTextParagraphLayoutBox_ApplyStyleSheet(*args, **kwargs)
 
1245
 
 
1246
    def Copy(*args, **kwargs):
 
1247
        """Copy(self, RichTextParagraphLayoutBox obj)"""
 
1248
        return _richtext.RichTextParagraphLayoutBox_Copy(*args, **kwargs)
 
1249
 
 
1250
    def UpdateRanges(*args, **kwargs):
 
1251
        """UpdateRanges(self)"""
 
1252
        return _richtext.RichTextParagraphLayoutBox_UpdateRanges(*args, **kwargs)
 
1253
 
 
1254
    def GetText(*args, **kwargs):
 
1255
        """GetText(self) -> String"""
 
1256
        return _richtext.RichTextParagraphLayoutBox_GetText(*args, **kwargs)
 
1257
 
 
1258
    def SetDefaultStyle(*args, **kwargs):
 
1259
        """SetDefaultStyle(self, TextAttrEx style) -> bool"""
 
1260
        return _richtext.RichTextParagraphLayoutBox_SetDefaultStyle(*args, **kwargs)
 
1261
 
 
1262
    def GetDefaultStyle(*args, **kwargs):
 
1263
        """GetDefaultStyle(self) -> TextAttrEx"""
 
1264
        return _richtext.RichTextParagraphLayoutBox_GetDefaultStyle(*args, **kwargs)
 
1265
 
 
1266
    def SetBasicStyle(*args, **kwargs):
 
1267
        """SetBasicStyle(self, TextAttrEx style)"""
 
1268
        return _richtext.RichTextParagraphLayoutBox_SetBasicStyle(*args, **kwargs)
 
1269
 
 
1270
    def GetBasicStyle(*args, **kwargs):
 
1271
        """GetBasicStyle(self) -> TextAttrEx"""
 
1272
        return _richtext.RichTextParagraphLayoutBox_GetBasicStyle(*args, **kwargs)
 
1273
 
 
1274
    def Invalidate(*args, **kwargs):
 
1275
        """Invalidate(self, RichTextRange invalidRange=wxRICHTEXT_ALL)"""
 
1276
        return _richtext.RichTextParagraphLayoutBox_Invalidate(*args, **kwargs)
 
1277
 
 
1278
    def GetInvalidRange(*args, **kwargs):
 
1279
        """GetInvalidRange(self, bool wholeParagraphs=False) -> RichTextRange"""
 
1280
        return _richtext.RichTextParagraphLayoutBox_GetInvalidRange(*args, **kwargs)
 
1281
 
 
1282
_richtext.RichTextParagraphLayoutBox_swigregister(RichTextParagraphLayoutBox)
 
1283
 
 
1284
class RichTextLine(object):
 
1285
    """
 
1286
    This object represents a line in a paragraph, and stores offsets from
 
1287
    the start of the paragraph representing the start and end positions of
 
1288
    the line.
 
1289
    """
 
1290
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1291
    __repr__ = _swig_repr
 
1292
    def __init__(self, *args, **kwargs): 
 
1293
        """
 
1294
        __init__(self, RichTextParagraph parent) -> RichTextLine
 
1295
 
 
1296
        This object represents a line in a paragraph, and stores offsets from
 
1297
        the start of the paragraph representing the start and end positions of
 
1298
        the line.
 
1299
        """
 
1300
        _richtext.RichTextLine_swiginit(self,_richtext.new_RichTextLine(*args, **kwargs))
 
1301
    __swig_destroy__ = _richtext.delete_RichTextLine
 
1302
    __del__ = lambda self : None;
 
1303
    def SetRange(*args, **kwargs):
 
1304
        """SetRange(self, RichTextRange range)"""
 
1305
        return _richtext.RichTextLine_SetRange(*args, **kwargs)
 
1306
 
 
1307
    def GetParent(*args, **kwargs):
 
1308
        """GetParent(self) -> RichTextParagraph"""
 
1309
        return _richtext.RichTextLine_GetParent(*args, **kwargs)
 
1310
 
 
1311
    def GetRange(*args, **kwargs):
 
1312
        """GetRange(self) -> RichTextRange"""
 
1313
        return _richtext.RichTextLine_GetRange(*args, **kwargs)
 
1314
 
 
1315
    def GetAbsoluteRange(*args, **kwargs):
 
1316
        """GetAbsoluteRange(self) -> RichTextRange"""
 
1317
        return _richtext.RichTextLine_GetAbsoluteRange(*args, **kwargs)
 
1318
 
 
1319
    def GetSize(*args, **kwargs):
 
1320
        """GetSize(self) -> Size"""
 
1321
        return _richtext.RichTextLine_GetSize(*args, **kwargs)
 
1322
 
 
1323
    def SetSize(*args, **kwargs):
 
1324
        """SetSize(self, Size sz)"""
 
1325
        return _richtext.RichTextLine_SetSize(*args, **kwargs)
 
1326
 
 
1327
    def GetPosition(*args, **kwargs):
 
1328
        """GetPosition(self) -> Point"""
 
1329
        return _richtext.RichTextLine_GetPosition(*args, **kwargs)
 
1330
 
 
1331
    def SetPosition(*args, **kwargs):
 
1332
        """SetPosition(self, Point pos)"""
 
1333
        return _richtext.RichTextLine_SetPosition(*args, **kwargs)
 
1334
 
 
1335
    def GetAbsolutePosition(*args, **kwargs):
 
1336
        """GetAbsolutePosition(self) -> Point"""
 
1337
        return _richtext.RichTextLine_GetAbsolutePosition(*args, **kwargs)
 
1338
 
 
1339
    def GetRect(*args, **kwargs):
 
1340
        """GetRect(self) -> Rect"""
 
1341
        return _richtext.RichTextLine_GetRect(*args, **kwargs)
 
1342
 
 
1343
    def SetDescent(*args, **kwargs):
 
1344
        """SetDescent(self, int descent)"""
 
1345
        return _richtext.RichTextLine_SetDescent(*args, **kwargs)
 
1346
 
 
1347
    def GetDescent(*args, **kwargs):
 
1348
        """GetDescent(self) -> int"""
 
1349
        return _richtext.RichTextLine_GetDescent(*args, **kwargs)
 
1350
 
 
1351
    def Init(*args, **kwargs):
 
1352
        """Init(self, RichTextParagraph parent)"""
 
1353
        return _richtext.RichTextLine_Init(*args, **kwargs)
 
1354
 
 
1355
    def Copy(*args, **kwargs):
 
1356
        """Copy(self, RichTextLine obj)"""
 
1357
        return _richtext.RichTextLine_Copy(*args, **kwargs)
 
1358
 
 
1359
    def Clone(*args, **kwargs):
 
1360
        """Clone(self) -> RichTextLine"""
 
1361
        return _richtext.RichTextLine_Clone(*args, **kwargs)
 
1362
 
 
1363
_richtext.RichTextLine_swigregister(RichTextLine)
 
1364
 
 
1365
class RichTextParagraph(RichTextBox):
 
1366
    """
 
1367
    This object represents a single paragraph (or in a straight text
 
1368
    editor, a line).
 
1369
    """
 
1370
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1371
    __repr__ = _swig_repr
 
1372
    def __init__(self, *args, **kwargs): 
 
1373
        """
 
1374
        __init__(self, String text, RichTextObject parent=None, TextAttrEx paraStyle=None, 
 
1375
            TextAttrEx charStyle=None) -> RichTextParagraph
 
1376
 
 
1377
        This object represents a single paragraph (or in a straight text
 
1378
        editor, a line).
 
1379
        """
 
1380
        _richtext.RichTextParagraph_swiginit(self,_richtext.new_RichTextParagraph(*args, **kwargs))
 
1381
    __swig_destroy__ = _richtext.delete_RichTextParagraph
 
1382
    __del__ = lambda self : None;
 
1383
    def GetLines(*args, **kwargs):
 
1384
        """GetLines(self) -> wxRichTextLineList"""
 
1385
        return _richtext.RichTextParagraph_GetLines(*args, **kwargs)
 
1386
 
 
1387
    def Copy(*args, **kwargs):
 
1388
        """Copy(self, RichTextParagraph obj)"""
 
1389
        return _richtext.RichTextParagraph_Copy(*args, **kwargs)
 
1390
 
 
1391
    def ClearLines(*args, **kwargs):
 
1392
        """ClearLines(self)"""
 
1393
        return _richtext.RichTextParagraph_ClearLines(*args, **kwargs)
 
1394
 
 
1395
    def ApplyParagraphStyle(*args, **kwargs):
 
1396
        """ApplyParagraphStyle(self, TextAttrEx attr, Rect rect)"""
 
1397
        return _richtext.RichTextParagraph_ApplyParagraphStyle(*args, **kwargs)
 
1398
 
 
1399
    def InsertText(*args, **kwargs):
 
1400
        """InsertText(self, long pos, String text) -> bool"""
 
1401
        return _richtext.RichTextParagraph_InsertText(*args, **kwargs)
 
1402
 
 
1403
    def SplitAt(*args, **kwargs):
 
1404
        """SplitAt(self, long pos, RichTextObject previousObject=None) -> RichTextObject"""
 
1405
        return _richtext.RichTextParagraph_SplitAt(*args, **kwargs)
 
1406
 
 
1407
    def MoveToList(*args, **kwargs):
 
1408
        """MoveToList(self, RichTextObject obj, wxList list)"""
 
1409
        return _richtext.RichTextParagraph_MoveToList(*args, **kwargs)
 
1410
 
 
1411
    def MoveFromList(*args, **kwargs):
 
1412
        """MoveFromList(self, wxList list)"""
 
1413
        return _richtext.RichTextParagraph_MoveFromList(*args, **kwargs)
 
1414
 
 
1415
    def GetContiguousPlainText(*args, **kwargs):
 
1416
        """GetContiguousPlainText(self, String text, RichTextRange range, bool fromStart=True) -> bool"""
 
1417
        return _richtext.RichTextParagraph_GetContiguousPlainText(*args, **kwargs)
 
1418
 
 
1419
    def FindWrapPosition(*args, **kwargs):
 
1420
        """FindWrapPosition(self, RichTextRange range, DC dc, int availableSpace, long wrapPosition) -> bool"""
 
1421
        return _richtext.RichTextParagraph_FindWrapPosition(*args, **kwargs)
 
1422
 
 
1423
    def FindObjectAtPosition(*args, **kwargs):
 
1424
        """FindObjectAtPosition(self, long position) -> RichTextObject"""
 
1425
        return _richtext.RichTextParagraph_FindObjectAtPosition(*args, **kwargs)
 
1426
 
 
1427
    def GetBulletText(*args, **kwargs):
 
1428
        """GetBulletText(self) -> String"""
 
1429
        return _richtext.RichTextParagraph_GetBulletText(*args, **kwargs)
 
1430
 
 
1431
    def AllocateLine(*args, **kwargs):
 
1432
        """AllocateLine(self, int pos) -> RichTextLine"""
 
1433
        return _richtext.RichTextParagraph_AllocateLine(*args, **kwargs)
 
1434
 
 
1435
    def ClearUnusedLines(*args, **kwargs):
 
1436
        """ClearUnusedLines(self, int lineCount) -> bool"""
 
1437
        return _richtext.RichTextParagraph_ClearUnusedLines(*args, **kwargs)
 
1438
 
 
1439
    def GetCombinedAttributes(*args, **kwargs):
 
1440
        """GetCombinedAttributes(self, TextAttrEx contentStyle=None) -> TextAttrEx"""
 
1441
        return _richtext.RichTextParagraph_GetCombinedAttributes(*args, **kwargs)
 
1442
 
 
1443
    def GetFirstLineBreakPosition(*args, **kwargs):
 
1444
        """GetFirstLineBreakPosition(self, long pos) -> long"""
 
1445
        return _richtext.RichTextParagraph_GetFirstLineBreakPosition(*args, **kwargs)
 
1446
 
 
1447
    def InitDefaultTabs(*args, **kwargs):
 
1448
        """InitDefaultTabs()"""
 
1449
        return _richtext.RichTextParagraph_InitDefaultTabs(*args, **kwargs)
 
1450
 
 
1451
    InitDefaultTabs = staticmethod(InitDefaultTabs)
 
1452
    def ClearDefaultTabs(*args, **kwargs):
 
1453
        """ClearDefaultTabs()"""
 
1454
        return _richtext.RichTextParagraph_ClearDefaultTabs(*args, **kwargs)
 
1455
 
 
1456
    ClearDefaultTabs = staticmethod(ClearDefaultTabs)
 
1457
    def GetDefaultTabs(*args, **kwargs):
 
1458
        """GetDefaultTabs() -> wxArrayInt"""
 
1459
        return _richtext.RichTextParagraph_GetDefaultTabs(*args, **kwargs)
 
1460
 
 
1461
    GetDefaultTabs = staticmethod(GetDefaultTabs)
 
1462
_richtext.RichTextParagraph_swigregister(RichTextParagraph)
 
1463
 
 
1464
def RichTextParagraph_InitDefaultTabs(*args):
 
1465
  """RichTextParagraph_InitDefaultTabs()"""
 
1466
  return _richtext.RichTextParagraph_InitDefaultTabs(*args)
 
1467
 
 
1468
def RichTextParagraph_ClearDefaultTabs(*args):
 
1469
  """RichTextParagraph_ClearDefaultTabs()"""
 
1470
  return _richtext.RichTextParagraph_ClearDefaultTabs(*args)
 
1471
 
 
1472
def RichTextParagraph_GetDefaultTabs(*args):
 
1473
  """RichTextParagraph_GetDefaultTabs() -> wxArrayInt"""
 
1474
  return _richtext.RichTextParagraph_GetDefaultTabs(*args)
 
1475
 
 
1476
class RichTextPlainText(RichTextObject):
 
1477
    """This object represents a single piece of text."""
 
1478
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1479
    __repr__ = _swig_repr
 
1480
    def __init__(self, *args, **kwargs): 
 
1481
        """
 
1482
        __init__(self, String text=wxEmptyString, RichTextObject parent=None, 
 
1483
            TextAttrEx style=None) -> RichTextPlainText
 
1484
 
 
1485
        This object represents a single piece of text.
 
1486
        """
 
1487
        _richtext.RichTextPlainText_swiginit(self,_richtext.new_RichTextPlainText(*args, **kwargs))
 
1488
    def GetFirstLineBreakPosition(*args, **kwargs):
 
1489
        """GetFirstLineBreakPosition(self, long pos) -> long"""
 
1490
        return _richtext.RichTextPlainText_GetFirstLineBreakPosition(*args, **kwargs)
 
1491
 
 
1492
    def GetText(*args, **kwargs):
 
1493
        """GetText(self) -> String"""
 
1494
        return _richtext.RichTextPlainText_GetText(*args, **kwargs)
 
1495
 
 
1496
    def SetText(*args, **kwargs):
 
1497
        """SetText(self, String text)"""
 
1498
        return _richtext.RichTextPlainText_SetText(*args, **kwargs)
 
1499
 
 
1500
    def Copy(*args, **kwargs):
 
1501
        """Copy(self, RichTextPlainText obj)"""
 
1502
        return _richtext.RichTextPlainText_Copy(*args, **kwargs)
 
1503
 
 
1504
_richtext.RichTextPlainText_swigregister(RichTextPlainText)
 
1505
 
 
1506
class RichTextImage(RichTextObject):
 
1507
    """This object represents an image."""
 
1508
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1509
    __repr__ = _swig_repr
 
1510
    def __init__(self, *args, **kwargs): 
 
1511
        """
 
1512
        __init__(self, RichTextObject parent=None) -> RichTextImage
 
1513
 
 
1514
        This object represents an image.
 
1515
        """
 
1516
        _richtext.RichTextImage_swiginit(self,_richtext.new_RichTextImage(*args, **kwargs))
 
1517
    def GetImage(*args, **kwargs):
 
1518
        """GetImage(self) -> Image"""
 
1519
        return _richtext.RichTextImage_GetImage(*args, **kwargs)
 
1520
 
 
1521
    def SetImage(*args, **kwargs):
 
1522
        """SetImage(self, Image image)"""
 
1523
        return _richtext.RichTextImage_SetImage(*args, **kwargs)
 
1524
 
 
1525
    def GetImageBlock(*args, **kwargs):
 
1526
        """GetImageBlock(self) -> wxRichTextImageBlock"""
 
1527
        return _richtext.RichTextImage_GetImageBlock(*args, **kwargs)
 
1528
 
 
1529
    def Copy(*args, **kwargs):
 
1530
        """Copy(self, RichTextImage obj)"""
 
1531
        return _richtext.RichTextImage_Copy(*args, **kwargs)
 
1532
 
 
1533
    def LoadFromBlock(*args, **kwargs):
 
1534
        """LoadFromBlock(self) -> bool"""
 
1535
        return _richtext.RichTextImage_LoadFromBlock(*args, **kwargs)
 
1536
 
 
1537
    def MakeBlock(*args, **kwargs):
 
1538
        """MakeBlock(self) -> bool"""
 
1539
        return _richtext.RichTextImage_MakeBlock(*args, **kwargs)
 
1540
 
 
1541
_richtext.RichTextImage_swigregister(RichTextImage)
 
1542
 
 
1543
class RichTextFileHandlerList_iterator(object):
 
1544
    """This class serves as an iterator for a wxRichTextFileHandlerList object."""
 
1545
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1546
    def __init__(self): raise AttributeError, "No constructor defined"
 
1547
    __repr__ = _swig_repr
 
1548
    __swig_destroy__ = _richtext.delete_RichTextFileHandlerList_iterator
 
1549
    __del__ = lambda self : None;
 
1550
    def next(*args, **kwargs):
 
1551
        """next(self) -> RichTextFileHandler"""
 
1552
        return _richtext.RichTextFileHandlerList_iterator_next(*args, **kwargs)
 
1553
 
 
1554
_richtext.RichTextFileHandlerList_iterator_swigregister(RichTextFileHandlerList_iterator)
 
1555
 
 
1556
class RichTextFileHandlerList(object):
 
1557
    """
 
1558
    This class wraps a wxList-based class and gives it a Python
 
1559
    sequence-like interface.  Sequence operations supported are length,
 
1560
    index access and iteration.
 
1561
    """
 
1562
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1563
    def __init__(self): raise AttributeError, "No constructor defined"
 
1564
    __repr__ = _swig_repr
 
1565
    __swig_destroy__ = _richtext.delete_RichTextFileHandlerList
 
1566
    __del__ = lambda self : None;
 
1567
    def __len__(*args, **kwargs):
 
1568
        """__len__(self) -> size_t"""
 
1569
        return _richtext.RichTextFileHandlerList___len__(*args, **kwargs)
 
1570
 
 
1571
    def __getitem__(*args, **kwargs):
 
1572
        """__getitem__(self, size_t index) -> RichTextFileHandler"""
 
1573
        return _richtext.RichTextFileHandlerList___getitem__(*args, **kwargs)
 
1574
 
 
1575
    def __contains__(*args, **kwargs):
 
1576
        """__contains__(self, RichTextFileHandler obj) -> bool"""
 
1577
        return _richtext.RichTextFileHandlerList___contains__(*args, **kwargs)
 
1578
 
 
1579
    def __iter__(*args, **kwargs):
 
1580
        """__iter__(self) -> RichTextFileHandlerList_iterator"""
 
1581
        return _richtext.RichTextFileHandlerList___iter__(*args, **kwargs)
 
1582
 
 
1583
    def __repr__(self):
 
1584
        return "wxRichTextFileHandlerList: " + repr(list(self))
 
1585
 
 
1586
_richtext.RichTextFileHandlerList_swigregister(RichTextFileHandlerList)
 
1587
 
 
1588
class RichTextBuffer(RichTextParagraphLayoutBox):
 
1589
    """This is a kind of box, used to represent the whole buffer."""
 
1590
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
1591
    __repr__ = _swig_repr
 
1592
    def __init__(self, *args, **kwargs): 
 
1593
        """
 
1594
        __init__(self) -> RichTextBuffer
 
1595
 
 
1596
        This is a kind of box, used to represent the whole buffer.
 
1597
        """
 
1598
        _richtext.RichTextBuffer_swiginit(self,_richtext.new_RichTextBuffer(*args, **kwargs))
 
1599
    __swig_destroy__ = _richtext.delete_RichTextBuffer
 
1600
    __del__ = lambda self : None;
 
1601
    def GetCommandProcessor(*args, **kwargs):
 
1602
        """GetCommandProcessor(self) -> wxCommandProcessor"""
 
1603
        return _richtext.RichTextBuffer_GetCommandProcessor(*args, **kwargs)
 
1604
 
 
1605
    def SetStyleSheet(*args, **kwargs):
 
1606
        """SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
 
1607
        return _richtext.RichTextBuffer_SetStyleSheet(*args, **kwargs)
 
1608
 
 
1609
    def SetStyleSheetAndNotify(*args, **kwargs):
 
1610
        """SetStyleSheetAndNotify(self, wxRichTextStyleSheet sheet) -> bool"""
 
1611
        return _richtext.RichTextBuffer_SetStyleSheetAndNotify(*args, **kwargs)
 
1612
 
 
1613
    def PushStyleSheet(*args, **kwargs):
 
1614
        """PushStyleSheet(self, wxRichTextStyleSheet styleSheet) -> bool"""
 
1615
        return _richtext.RichTextBuffer_PushStyleSheet(*args, **kwargs)
 
1616
 
 
1617
    def PopStyleSheet(*args, **kwargs):
 
1618
        """PopStyleSheet(self) -> wxRichTextStyleSheet"""
 
1619
        return _richtext.RichTextBuffer_PopStyleSheet(*args, **kwargs)
 
1620
 
 
1621
    def Init(*args, **kwargs):
 
1622
        """Init(self)"""
 
1623
        return _richtext.RichTextBuffer_Init(*args, **kwargs)
 
1624
 
 
1625
    def ResetAndClearCommands(*args, **kwargs):
 
1626
        """ResetAndClearCommands(self)"""
 
1627
        return _richtext.RichTextBuffer_ResetAndClearCommands(*args, **kwargs)
 
1628
 
 
1629
    def LoadFile(*args, **kwargs):
 
1630
        """LoadFile(self, String filename, int type=RICHTEXT_TYPE_ANY) -> bool"""
 
1631
        return _richtext.RichTextBuffer_LoadFile(*args, **kwargs)
 
1632
 
 
1633
    def SaveFile(*args, **kwargs):
 
1634
        """SaveFile(self, String filename, int type=RICHTEXT_TYPE_ANY) -> bool"""
 
1635
        return _richtext.RichTextBuffer_SaveFile(*args, **kwargs)
 
1636
 
 
1637
    def LoadStream(*args, **kwargs):
 
1638
        """LoadStream(self, InputStream stream, int type=RICHTEXT_TYPE_ANY) -> bool"""
 
1639
        return _richtext.RichTextBuffer_LoadStream(*args, **kwargs)
 
1640
 
 
1641
    def SaveStream(*args, **kwargs):
 
1642
        """SaveStream(self, wxOutputStream stream, int type=RICHTEXT_TYPE_ANY) -> bool"""
 
1643
        return _richtext.RichTextBuffer_SaveStream(*args, **kwargs)
 
1644
 
 
1645
    def SetHandlerFlags(*args, **kwargs):
 
1646
        """SetHandlerFlags(self, int flags)"""
 
1647
        return _richtext.RichTextBuffer_SetHandlerFlags(*args, **kwargs)
 
1648
 
 
1649
    def GetHandlerFlags(*args, **kwargs):
 
1650
        """GetHandlerFlags(self) -> int"""
 
1651
        return _richtext.RichTextBuffer_GetHandlerFlags(*args, **kwargs)
 
1652
 
 
1653
    def BeginBatchUndo(*args, **kwargs):
 
1654
        """BeginBatchUndo(self, String cmdName) -> bool"""
 
1655
        return _richtext.RichTextBuffer_BeginBatchUndo(*args, **kwargs)
 
1656
 
 
1657
    def EndBatchUndo(*args, **kwargs):
 
1658
        """EndBatchUndo(self) -> bool"""
 
1659
        return _richtext.RichTextBuffer_EndBatchUndo(*args, **kwargs)
 
1660
 
 
1661
    def BatchingUndo(*args, **kwargs):
 
1662
        """BatchingUndo(self) -> bool"""
 
1663
        return _richtext.RichTextBuffer_BatchingUndo(*args, **kwargs)
 
1664
 
 
1665
    def SubmitAction(*args, **kwargs):
 
1666
        """SubmitAction(self, RichTextAction action) -> bool"""
 
1667
        return _richtext.RichTextBuffer_SubmitAction(*args, **kwargs)
 
1668
 
 
1669
    def GetBatchedCommand(*args, **kwargs):
 
1670
        """GetBatchedCommand(self) -> RichTextCommand"""
 
1671
        return _richtext.RichTextBuffer_GetBatchedCommand(*args, **kwargs)
 
1672
 
 
1673
    def BeginSuppressUndo(*args, **kwargs):
 
1674
        """BeginSuppressUndo(self) -> bool"""
 
1675
        return _richtext.RichTextBuffer_BeginSuppressUndo(*args, **kwargs)
 
1676
 
 
1677
    def EndSuppressUndo(*args, **kwargs):
 
1678
        """EndSuppressUndo(self) -> bool"""
 
1679
        return _richtext.RichTextBuffer_EndSuppressUndo(*args, **kwargs)
 
1680
 
 
1681
    def SuppressingUndo(*args, **kwargs):
 
1682
        """SuppressingUndo(self) -> bool"""
 
1683
        return _richtext.RichTextBuffer_SuppressingUndo(*args, **kwargs)
 
1684
 
 
1685
    def CopyToClipboard(*args, **kwargs):
 
1686
        """CopyToClipboard(self, RichTextRange range) -> bool"""
 
1687
        return _richtext.RichTextBuffer_CopyToClipboard(*args, **kwargs)
 
1688
 
 
1689
    def PasteFromClipboard(*args, **kwargs):
 
1690
        """PasteFromClipboard(self, long position) -> bool"""
 
1691
        return _richtext.RichTextBuffer_PasteFromClipboard(*args, **kwargs)
 
1692
 
 
1693
    def CanPasteFromClipboard(*args, **kwargs):
 
1694
        """CanPasteFromClipboard(self) -> bool"""
 
1695
        return _richtext.RichTextBuffer_CanPasteFromClipboard(*args, **kwargs)
 
1696
 
 
1697
    def BeginStyle(*args, **kwargs):
 
1698
        """BeginStyle(self, TextAttrEx style) -> bool"""
 
1699
        return _richtext.RichTextBuffer_BeginStyle(*args, **kwargs)
 
1700
 
 
1701
    def EndStyle(*args, **kwargs):
 
1702
        """EndStyle(self) -> bool"""
 
1703
        return _richtext.RichTextBuffer_EndStyle(*args, **kwargs)
 
1704
 
 
1705
    def EndAllStyles(*args, **kwargs):
 
1706
        """EndAllStyles(self) -> bool"""
 
1707
        return _richtext.RichTextBuffer_EndAllStyles(*args, **kwargs)
 
1708
 
 
1709
    def ClearStyleStack(*args, **kwargs):
 
1710
        """ClearStyleStack(self)"""
 
1711
        return _richtext.RichTextBuffer_ClearStyleStack(*args, **kwargs)
 
1712
 
 
1713
    def GetStyleStackSize(*args, **kwargs):
 
1714
        """GetStyleStackSize(self) -> size_t"""
 
1715
        return _richtext.RichTextBuffer_GetStyleStackSize(*args, **kwargs)
 
1716
 
 
1717
    def BeginBold(*args, **kwargs):
 
1718
        """BeginBold(self) -> bool"""
 
1719
        return _richtext.RichTextBuffer_BeginBold(*args, **kwargs)
 
1720
 
 
1721
    def EndBold(*args, **kwargs):
 
1722
        """EndBold(self) -> bool"""
 
1723
        return _richtext.RichTextBuffer_EndBold(*args, **kwargs)
 
1724
 
 
1725
    def BeginItalic(*args, **kwargs):
 
1726
        """BeginItalic(self) -> bool"""
 
1727
        return _richtext.RichTextBuffer_BeginItalic(*args, **kwargs)
 
1728
 
 
1729
    def EndItalic(*args, **kwargs):
 
1730
        """EndItalic(self) -> bool"""
 
1731
        return _richtext.RichTextBuffer_EndItalic(*args, **kwargs)
 
1732
 
 
1733
    def BeginUnderline(*args, **kwargs):
 
1734
        """BeginUnderline(self) -> bool"""
 
1735
        return _richtext.RichTextBuffer_BeginUnderline(*args, **kwargs)
 
1736
 
 
1737
    def EndUnderline(*args, **kwargs):
 
1738
        """EndUnderline(self) -> bool"""
 
1739
        return _richtext.RichTextBuffer_EndUnderline(*args, **kwargs)
 
1740
 
 
1741
    def BeginFontSize(*args, **kwargs):
 
1742
        """BeginFontSize(self, int pointSize) -> bool"""
 
1743
        return _richtext.RichTextBuffer_BeginFontSize(*args, **kwargs)
 
1744
 
 
1745
    def EndFontSize(*args, **kwargs):
 
1746
        """EndFontSize(self) -> bool"""
 
1747
        return _richtext.RichTextBuffer_EndFontSize(*args, **kwargs)
 
1748
 
 
1749
    def BeginFont(*args, **kwargs):
 
1750
        """BeginFont(self, Font font) -> bool"""
 
1751
        return _richtext.RichTextBuffer_BeginFont(*args, **kwargs)
 
1752
 
 
1753
    def EndFont(*args, **kwargs):
 
1754
        """EndFont(self) -> bool"""
 
1755
        return _richtext.RichTextBuffer_EndFont(*args, **kwargs)
 
1756
 
 
1757
    def BeginTextColour(*args, **kwargs):
 
1758
        """BeginTextColour(self, Colour colour) -> bool"""
 
1759
        return _richtext.RichTextBuffer_BeginTextColour(*args, **kwargs)
 
1760
 
 
1761
    def EndTextColour(*args, **kwargs):
 
1762
        """EndTextColour(self) -> bool"""
 
1763
        return _richtext.RichTextBuffer_EndTextColour(*args, **kwargs)
 
1764
 
 
1765
    def BeginAlignment(*args, **kwargs):
 
1766
        """BeginAlignment(self, int alignment) -> bool"""
 
1767
        return _richtext.RichTextBuffer_BeginAlignment(*args, **kwargs)
 
1768
 
 
1769
    def EndAlignment(*args, **kwargs):
 
1770
        """EndAlignment(self) -> bool"""
 
1771
        return _richtext.RichTextBuffer_EndAlignment(*args, **kwargs)
 
1772
 
 
1773
    def BeginLeftIndent(*args, **kwargs):
 
1774
        """BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
 
1775
        return _richtext.RichTextBuffer_BeginLeftIndent(*args, **kwargs)
 
1776
 
 
1777
    def EndLeftIndent(*args, **kwargs):
 
1778
        """EndLeftIndent(self) -> bool"""
 
1779
        return _richtext.RichTextBuffer_EndLeftIndent(*args, **kwargs)
 
1780
 
 
1781
    def BeginRightIndent(*args, **kwargs):
 
1782
        """BeginRightIndent(self, int rightIndent) -> bool"""
 
1783
        return _richtext.RichTextBuffer_BeginRightIndent(*args, **kwargs)
 
1784
 
 
1785
    def EndRightIndent(*args, **kwargs):
 
1786
        """EndRightIndent(self) -> bool"""
 
1787
        return _richtext.RichTextBuffer_EndRightIndent(*args, **kwargs)
 
1788
 
 
1789
    def BeginParagraphSpacing(*args, **kwargs):
 
1790
        """BeginParagraphSpacing(self, int before, int after) -> bool"""
 
1791
        return _richtext.RichTextBuffer_BeginParagraphSpacing(*args, **kwargs)
 
1792
 
 
1793
    def EndParagraphSpacing(*args, **kwargs):
 
1794
        """EndParagraphSpacing(self) -> bool"""
 
1795
        return _richtext.RichTextBuffer_EndParagraphSpacing(*args, **kwargs)
 
1796
 
 
1797
    def BeginLineSpacing(*args, **kwargs):
 
1798
        """BeginLineSpacing(self, int lineSpacing) -> bool"""
 
1799
        return _richtext.RichTextBuffer_BeginLineSpacing(*args, **kwargs)
 
1800
 
 
1801
    def EndLineSpacing(*args, **kwargs):
 
1802
        """EndLineSpacing(self) -> bool"""
 
1803
        return _richtext.RichTextBuffer_EndLineSpacing(*args, **kwargs)
 
1804
 
 
1805
    def BeginNumberedBullet(*args, **kwargs):
 
1806
        """
 
1807
        BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent, 
 
1808
            int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
 
1809
        """
 
1810
        return _richtext.RichTextBuffer_BeginNumberedBullet(*args, **kwargs)
 
1811
 
 
1812
    def EndNumberedBullet(*args, **kwargs):
 
1813
        """EndNumberedBullet(self) -> bool"""
 
1814
        return _richtext.RichTextBuffer_EndNumberedBullet(*args, **kwargs)
 
1815
 
 
1816
    def BeginSymbolBullet(*args, **kwargs):
 
1817
        """BeginSymbolBullet(self, String symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
 
1818
        return _richtext.RichTextBuffer_BeginSymbolBullet(*args, **kwargs)
 
1819
 
 
1820
    def EndSymbolBullet(*args, **kwargs):
 
1821
        """EndSymbolBullet(self) -> bool"""
 
1822
        return _richtext.RichTextBuffer_EndSymbolBullet(*args, **kwargs)
 
1823
 
 
1824
    def BeginStandardBullet(*args, **kwargs):
 
1825
        """
 
1826
        BeginStandardBullet(self, String bulletName, int leftIndent, int leftSubIndent, 
 
1827
            int bulletStyle=TEXT_ATTR_BULLET_STYLE_STANDARD) -> bool
 
1828
        """
 
1829
        return _richtext.RichTextBuffer_BeginStandardBullet(*args, **kwargs)
 
1830
 
 
1831
    def EndStandardBullet(*args, **kwargs):
 
1832
        """EndStandardBullet(self) -> bool"""
 
1833
        return _richtext.RichTextBuffer_EndStandardBullet(*args, **kwargs)
 
1834
 
 
1835
    def BeginCharacterStyle(*args, **kwargs):
 
1836
        """BeginCharacterStyle(self, String characterStyle) -> bool"""
 
1837
        return _richtext.RichTextBuffer_BeginCharacterStyle(*args, **kwargs)
 
1838
 
 
1839
    def EndCharacterStyle(*args, **kwargs):
 
1840
        """EndCharacterStyle(self) -> bool"""
 
1841
        return _richtext.RichTextBuffer_EndCharacterStyle(*args, **kwargs)
 
1842
 
 
1843
    def BeginParagraphStyle(*args, **kwargs):
 
1844
        """BeginParagraphStyle(self, String paragraphStyle) -> bool"""
 
1845
        return _richtext.RichTextBuffer_BeginParagraphStyle(*args, **kwargs)
 
1846
 
 
1847
    def EndParagraphStyle(*args, **kwargs):
 
1848
        """EndParagraphStyle(self) -> bool"""
 
1849
        return _richtext.RichTextBuffer_EndParagraphStyle(*args, **kwargs)
 
1850
 
 
1851
    def BeginListStyle(*args, **kwargs):
 
1852
        """BeginListStyle(self, String listStyle, int level=1, int number=1) -> bool"""
 
1853
        return _richtext.RichTextBuffer_BeginListStyle(*args, **kwargs)
 
1854
 
 
1855
    def EndListStyle(*args, **kwargs):
 
1856
        """EndListStyle(self) -> bool"""
 
1857
        return _richtext.RichTextBuffer_EndListStyle(*args, **kwargs)
 
1858
 
 
1859
    def BeginURL(*args, **kwargs):
 
1860
        """BeginURL(self, String url, String characterStyle=wxEmptyString) -> bool"""
 
1861
        return _richtext.RichTextBuffer_BeginURL(*args, **kwargs)
 
1862
 
 
1863
    def EndURL(*args, **kwargs):
 
1864
        """EndURL(self) -> bool"""
 
1865
        return _richtext.RichTextBuffer_EndURL(*args, **kwargs)
 
1866
 
 
1867
    def AddEventHandler(*args, **kwargs):
 
1868
        """AddEventHandler(self, EvtHandler handler) -> bool"""
 
1869
        return _richtext.RichTextBuffer_AddEventHandler(*args, **kwargs)
 
1870
 
 
1871
    def RemoveEventHandler(*args, **kwargs):
 
1872
        """RemoveEventHandler(self, EvtHandler handler, bool deleteHandler=False) -> bool"""
 
1873
        return _richtext.RichTextBuffer_RemoveEventHandler(*args, **kwargs)
 
1874
 
 
1875
    def ClearEventHandlers(*args, **kwargs):
 
1876
        """ClearEventHandlers(self)"""
 
1877
        return _richtext.RichTextBuffer_ClearEventHandlers(*args, **kwargs)
 
1878
 
 
1879
    def SendEvent(*args, **kwargs):
 
1880
        """SendEvent(self, Event event, bool sendToAll=True) -> bool"""
 
1881
        return _richtext.RichTextBuffer_SendEvent(*args, **kwargs)
 
1882
 
 
1883
    def Copy(*args, **kwargs):
 
1884
        """Copy(self, RichTextBuffer obj)"""
 
1885
        return _richtext.RichTextBuffer_Copy(*args, **kwargs)
 
1886
 
 
1887
    def InsertParagraphsWithUndo(*args, **kwargs):
 
1888
        """
 
1889
        InsertParagraphsWithUndo(self, long pos, RichTextParagraphLayoutBox paragraphs, RichTextCtrl ctrl, 
 
1890
            int flags=0) -> bool
 
1891
        """
 
1892
        return _richtext.RichTextBuffer_InsertParagraphsWithUndo(*args, **kwargs)
 
1893
 
 
1894
    def InsertTextWithUndo(*args, **kwargs):
 
1895
        """InsertTextWithUndo(self, long pos, String text, RichTextCtrl ctrl, int flags=0) -> bool"""
 
1896
        return _richtext.RichTextBuffer_InsertTextWithUndo(*args, **kwargs)
 
1897
 
 
1898
    def InsertNewlineWithUndo(*args, **kwargs):
 
1899
        """InsertNewlineWithUndo(self, long pos, RichTextCtrl ctrl, int flags=0) -> bool"""
 
1900
        return _richtext.RichTextBuffer_InsertNewlineWithUndo(*args, **kwargs)
 
1901
 
 
1902
    def InsertImageWithUndo(*args, **kwargs):
 
1903
        """
 
1904
        InsertImageWithUndo(self, long pos, wxRichTextImageBlock imageBlock, RichTextCtrl ctrl, 
 
1905
            int flags=0) -> bool
 
1906
        """
 
1907
        return _richtext.RichTextBuffer_InsertImageWithUndo(*args, **kwargs)
 
1908
 
 
1909
    def DeleteRangeWithUndo(*args, **kwargs):
 
1910
        """DeleteRangeWithUndo(self, RichTextRange range, RichTextCtrl ctrl) -> bool"""
 
1911
        return _richtext.RichTextBuffer_DeleteRangeWithUndo(*args, **kwargs)
 
1912
 
 
1913
    def Modify(*args, **kwargs):
 
1914
        """Modify(self, bool modify=True)"""
 
1915
        return _richtext.RichTextBuffer_Modify(*args, **kwargs)
 
1916
 
 
1917
    def IsModified(*args, **kwargs):
 
1918
        """IsModified(self) -> bool"""
 
1919
        return _richtext.RichTextBuffer_IsModified(*args, **kwargs)
 
1920
 
 
1921
    def GetStyleForNewParagraph(*args, **kwargs):
 
1922
        """GetStyleForNewParagraph(self, long pos, bool caretPosition=False, bool lookUpNewParaStyle=False) -> TextAttrEx"""
 
1923
        return _richtext.RichTextBuffer_GetStyleForNewParagraph(*args, **kwargs)
 
1924
 
 
1925
    def GetHandlers(*args, **kwargs):
 
1926
        """GetHandlers() -> wxRichTextFileHandlerList_t"""
 
1927
        return _richtext.RichTextBuffer_GetHandlers(*args, **kwargs)
 
1928
 
 
1929
    GetHandlers = staticmethod(GetHandlers)
 
1930
    def AddHandler(*args, **kwargs):
 
1931
        """AddHandler(RichTextFileHandler handler)"""
 
1932
        return _richtext.RichTextBuffer_AddHandler(*args, **kwargs)
 
1933
 
 
1934
    AddHandler = staticmethod(AddHandler)
 
1935
    def InsertHandler(*args, **kwargs):
 
1936
        """InsertHandler(RichTextFileHandler handler)"""
 
1937
        return _richtext.RichTextBuffer_InsertHandler(*args, **kwargs)
 
1938
 
 
1939
    InsertHandler = staticmethod(InsertHandler)
 
1940
    def RemoveHandler(*args, **kwargs):
 
1941
        """RemoveHandler(String name) -> bool"""
 
1942
        return _richtext.RichTextBuffer_RemoveHandler(*args, **kwargs)
 
1943
 
 
1944
    RemoveHandler = staticmethod(RemoveHandler)
 
1945
    def FindHandlerByName(*args, **kwargs):
 
1946
        """FindHandlerByName(String name) -> RichTextFileHandler"""
 
1947
        return _richtext.RichTextBuffer_FindHandlerByName(*args, **kwargs)
 
1948
 
 
1949
    FindHandlerByName = staticmethod(FindHandlerByName)
 
1950
    def FindHandlerByExtension(*args, **kwargs):
 
1951
        """FindHandlerByExtension(String extension, int imageType) -> RichTextFileHandler"""
 
1952
        return _richtext.RichTextBuffer_FindHandlerByExtension(*args, **kwargs)
 
1953
 
 
1954
    FindHandlerByExtension = staticmethod(FindHandlerByExtension)
 
1955
    def FindHandlerByFilename(*args, **kwargs):
 
1956
        """FindHandlerByFilename(String filename, int imageType) -> RichTextFileHandler"""
 
1957
        return _richtext.RichTextBuffer_FindHandlerByFilename(*args, **kwargs)
 
1958
 
 
1959
    FindHandlerByFilename = staticmethod(FindHandlerByFilename)
 
1960
    def FindHandlerByType(*args, **kwargs):
 
1961
        """FindHandlerByType(int imageType) -> RichTextFileHandler"""
 
1962
        return _richtext.RichTextBuffer_FindHandlerByType(*args, **kwargs)
 
1963
 
 
1964
    FindHandlerByType = staticmethod(FindHandlerByType)
 
1965
    def GetExtWildcard(*args, **kwargs):
 
1966
        """
 
1967
        GetExtWildcard(self, bool combine=False, bool save=False) --> (wildcards, types)
 
1968
 
 
1969
        Gets a wildcard string for the file dialog based on all the currently
 
1970
        loaded richtext file handlers, and a list that can be used to map
 
1971
        those filter types to the file handler type.
 
1972
        """
 
1973
        return _richtext.RichTextBuffer_GetExtWildcard(*args, **kwargs)
 
1974
 
 
1975
    GetExtWildcard = staticmethod(GetExtWildcard)
 
1976
    def CleanUpHandlers(*args, **kwargs):
 
1977
        """CleanUpHandlers()"""
 
1978
        return _richtext.RichTextBuffer_CleanUpHandlers(*args, **kwargs)
 
1979
 
 
1980
    CleanUpHandlers = staticmethod(CleanUpHandlers)
 
1981
    def InitStandardHandlers(*args, **kwargs):
 
1982
        """InitStandardHandlers()"""
 
1983
        return _richtext.RichTextBuffer_InitStandardHandlers(*args, **kwargs)
 
1984
 
 
1985
    InitStandardHandlers = staticmethod(InitStandardHandlers)
 
1986
    def GetRenderer(*args, **kwargs):
 
1987
        """GetRenderer() -> RichTextRenderer"""
 
1988
        return _richtext.RichTextBuffer_GetRenderer(*args, **kwargs)
 
1989
 
 
1990
    GetRenderer = staticmethod(GetRenderer)
 
1991
    def SetRenderer(*args, **kwargs):
 
1992
        """SetRenderer(RichTextRenderer renderer)"""
 
1993
        return _richtext.RichTextBuffer_SetRenderer(*args, **kwargs)
 
1994
 
 
1995
    SetRenderer = staticmethod(SetRenderer)
 
1996
    def GetBulletRightMargin(*args, **kwargs):
 
1997
        """GetBulletRightMargin() -> int"""
 
1998
        return _richtext.RichTextBuffer_GetBulletRightMargin(*args, **kwargs)
 
1999
 
 
2000
    GetBulletRightMargin = staticmethod(GetBulletRightMargin)
 
2001
    def SetBulletRightMargin(*args, **kwargs):
 
2002
        """SetBulletRightMargin(int margin)"""
 
2003
        return _richtext.RichTextBuffer_SetBulletRightMargin(*args, **kwargs)
 
2004
 
 
2005
    SetBulletRightMargin = staticmethod(SetBulletRightMargin)
 
2006
    def GetBulletProportion(*args, **kwargs):
 
2007
        """GetBulletProportion() -> float"""
 
2008
        return _richtext.RichTextBuffer_GetBulletProportion(*args, **kwargs)
 
2009
 
 
2010
    GetBulletProportion = staticmethod(GetBulletProportion)
 
2011
    def SetBulletProportion(*args, **kwargs):
 
2012
        """SetBulletProportion(float prop)"""
 
2013
        return _richtext.RichTextBuffer_SetBulletProportion(*args, **kwargs)
 
2014
 
 
2015
    SetBulletProportion = staticmethod(SetBulletProportion)
 
2016
    def GetScale(*args, **kwargs):
 
2017
        """GetScale(self) -> double"""
 
2018
        return _richtext.RichTextBuffer_GetScale(*args, **kwargs)
 
2019
 
 
2020
    def SetScale(*args, **kwargs):
 
2021
        """SetScale(self, double scale)"""
 
2022
        return _richtext.RichTextBuffer_SetScale(*args, **kwargs)
 
2023
 
 
2024
_richtext.RichTextBuffer_swigregister(RichTextBuffer)
 
2025
 
 
2026
def RichTextBuffer_GetHandlers(*args):
 
2027
  """RichTextBuffer_GetHandlers() -> wxRichTextFileHandlerList_t"""
 
2028
  return _richtext.RichTextBuffer_GetHandlers(*args)
 
2029
 
 
2030
def RichTextBuffer_AddHandler(*args, **kwargs):
 
2031
  """RichTextBuffer_AddHandler(RichTextFileHandler handler)"""
 
2032
  return _richtext.RichTextBuffer_AddHandler(*args, **kwargs)
 
2033
 
 
2034
def RichTextBuffer_InsertHandler(*args, **kwargs):
 
2035
  """RichTextBuffer_InsertHandler(RichTextFileHandler handler)"""
 
2036
  return _richtext.RichTextBuffer_InsertHandler(*args, **kwargs)
 
2037
 
 
2038
def RichTextBuffer_RemoveHandler(*args, **kwargs):
 
2039
  """RichTextBuffer_RemoveHandler(String name) -> bool"""
 
2040
  return _richtext.RichTextBuffer_RemoveHandler(*args, **kwargs)
 
2041
 
 
2042
def RichTextBuffer_FindHandlerByName(*args, **kwargs):
 
2043
  """RichTextBuffer_FindHandlerByName(String name) -> RichTextFileHandler"""
 
2044
  return _richtext.RichTextBuffer_FindHandlerByName(*args, **kwargs)
 
2045
 
 
2046
def RichTextBuffer_FindHandlerByExtension(*args, **kwargs):
 
2047
  """RichTextBuffer_FindHandlerByExtension(String extension, int imageType) -> RichTextFileHandler"""
 
2048
  return _richtext.RichTextBuffer_FindHandlerByExtension(*args, **kwargs)
 
2049
 
 
2050
def RichTextBuffer_FindHandlerByFilename(*args, **kwargs):
 
2051
  """RichTextBuffer_FindHandlerByFilename(String filename, int imageType) -> RichTextFileHandler"""
 
2052
  return _richtext.RichTextBuffer_FindHandlerByFilename(*args, **kwargs)
 
2053
 
 
2054
def RichTextBuffer_FindHandlerByType(*args, **kwargs):
 
2055
  """RichTextBuffer_FindHandlerByType(int imageType) -> RichTextFileHandler"""
 
2056
  return _richtext.RichTextBuffer_FindHandlerByType(*args, **kwargs)
 
2057
 
 
2058
def RichTextBuffer_GetExtWildcard(*args, **kwargs):
 
2059
  """
 
2060
    GetExtWildcard(self, bool combine=False, bool save=False) --> (wildcards, types)
 
2061
 
 
2062
    Gets a wildcard string for the file dialog based on all the currently
 
2063
    loaded richtext file handlers, and a list that can be used to map
 
2064
    those filter types to the file handler type.
 
2065
    """
 
2066
  return _richtext.RichTextBuffer_GetExtWildcard(*args, **kwargs)
 
2067
 
 
2068
def RichTextBuffer_CleanUpHandlers(*args):
 
2069
  """RichTextBuffer_CleanUpHandlers()"""
 
2070
  return _richtext.RichTextBuffer_CleanUpHandlers(*args)
 
2071
 
 
2072
def RichTextBuffer_InitStandardHandlers(*args):
 
2073
  """RichTextBuffer_InitStandardHandlers()"""
 
2074
  return _richtext.RichTextBuffer_InitStandardHandlers(*args)
 
2075
 
 
2076
def RichTextBuffer_GetRenderer(*args):
 
2077
  """RichTextBuffer_GetRenderer() -> RichTextRenderer"""
 
2078
  return _richtext.RichTextBuffer_GetRenderer(*args)
 
2079
 
 
2080
def RichTextBuffer_SetRenderer(*args, **kwargs):
 
2081
  """RichTextBuffer_SetRenderer(RichTextRenderer renderer)"""
 
2082
  return _richtext.RichTextBuffer_SetRenderer(*args, **kwargs)
 
2083
 
 
2084
def RichTextBuffer_GetBulletRightMargin(*args):
 
2085
  """RichTextBuffer_GetBulletRightMargin() -> int"""
 
2086
  return _richtext.RichTextBuffer_GetBulletRightMargin(*args)
 
2087
 
 
2088
def RichTextBuffer_SetBulletRightMargin(*args, **kwargs):
 
2089
  """RichTextBuffer_SetBulletRightMargin(int margin)"""
 
2090
  return _richtext.RichTextBuffer_SetBulletRightMargin(*args, **kwargs)
 
2091
 
 
2092
def RichTextBuffer_GetBulletProportion(*args):
 
2093
  """RichTextBuffer_GetBulletProportion() -> float"""
 
2094
  return _richtext.RichTextBuffer_GetBulletProportion(*args)
 
2095
 
 
2096
def RichTextBuffer_SetBulletProportion(*args, **kwargs):
 
2097
  """RichTextBuffer_SetBulletProportion(float prop)"""
 
2098
  return _richtext.RichTextBuffer_SetBulletProportion(*args, **kwargs)
 
2099
 
 
2100
#---------------------------------------------------------------------------
 
2101
 
 
2102
RICHTEXT_HANDLER_INCLUDE_STYLESHEET = _richtext.RICHTEXT_HANDLER_INCLUDE_STYLESHEET
 
2103
RICHTEXT_HANDLER_SAVE_IMAGES_TO_MEMORY = _richtext.RICHTEXT_HANDLER_SAVE_IMAGES_TO_MEMORY
 
2104
RICHTEXT_HANDLER_SAVE_IMAGES_TO_FILES = _richtext.RICHTEXT_HANDLER_SAVE_IMAGES_TO_FILES
 
2105
RICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64 = _richtext.RICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64
 
2106
RICHTEXT_HANDLER_NO_HEADER_FOOTER = _richtext.RICHTEXT_HANDLER_NO_HEADER_FOOTER
 
2107
class RichTextFileHandler(_core.Object):
 
2108
    """Base class for file handlers"""
 
2109
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
2110
    def __init__(self): raise AttributeError, "No constructor defined"
 
2111
    __repr__ = _swig_repr
 
2112
    __swig_destroy__ = _richtext.delete_RichTextFileHandler
 
2113
    __del__ = lambda self : None;
 
2114
    def LoadStream(*args, **kwargs):
 
2115
        """LoadStream(self, RichTextBuffer buffer, InputStream stream) -> bool"""
 
2116
        return _richtext.RichTextFileHandler_LoadStream(*args, **kwargs)
 
2117
 
 
2118
    def SaveStream(*args, **kwargs):
 
2119
        """SaveStream(self, RichTextBuffer buffer, wxOutputStream stream) -> bool"""
 
2120
        return _richtext.RichTextFileHandler_SaveStream(*args, **kwargs)
 
2121
 
 
2122
    def LoadFile(*args, **kwargs):
 
2123
        """LoadFile(self, RichTextBuffer buffer, String filename) -> bool"""
 
2124
        return _richtext.RichTextFileHandler_LoadFile(*args, **kwargs)
 
2125
 
 
2126
    def SaveFile(*args, **kwargs):
 
2127
        """SaveFile(self, RichTextBuffer buffer, String filename) -> bool"""
 
2128
        return _richtext.RichTextFileHandler_SaveFile(*args, **kwargs)
 
2129
 
 
2130
    def CanHandle(*args, **kwargs):
 
2131
        """CanHandle(self, String filename) -> bool"""
 
2132
        return _richtext.RichTextFileHandler_CanHandle(*args, **kwargs)
 
2133
 
 
2134
    def CanSave(*args, **kwargs):
 
2135
        """CanSave(self) -> bool"""
 
2136
        return _richtext.RichTextFileHandler_CanSave(*args, **kwargs)
 
2137
 
 
2138
    def CanLoad(*args, **kwargs):
 
2139
        """CanLoad(self) -> bool"""
 
2140
        return _richtext.RichTextFileHandler_CanLoad(*args, **kwargs)
 
2141
 
 
2142
    def IsVisible(*args, **kwargs):
 
2143
        """IsVisible(self) -> bool"""
 
2144
        return _richtext.RichTextFileHandler_IsVisible(*args, **kwargs)
 
2145
 
 
2146
    def SetVisible(*args, **kwargs):
 
2147
        """SetVisible(self, bool visible)"""
 
2148
        return _richtext.RichTextFileHandler_SetVisible(*args, **kwargs)
 
2149
 
 
2150
    def SetName(*args, **kwargs):
 
2151
        """SetName(self, String name)"""
 
2152
        return _richtext.RichTextFileHandler_SetName(*args, **kwargs)
 
2153
 
 
2154
    def GetName(*args, **kwargs):
 
2155
        """GetName(self) -> String"""
 
2156
        return _richtext.RichTextFileHandler_GetName(*args, **kwargs)
 
2157
 
 
2158
    Name = property(GetName,SetName) 
 
2159
    def SetExtension(*args, **kwargs):
 
2160
        """SetExtension(self, String ext)"""
 
2161
        return _richtext.RichTextFileHandler_SetExtension(*args, **kwargs)
 
2162
 
 
2163
    def GetExtension(*args, **kwargs):
 
2164
        """GetExtension(self) -> String"""
 
2165
        return _richtext.RichTextFileHandler_GetExtension(*args, **kwargs)
 
2166
 
 
2167
    Extension = property(GetExtension,SetExtension) 
 
2168
    def SetType(*args, **kwargs):
 
2169
        """SetType(self, int type)"""
 
2170
        return _richtext.RichTextFileHandler_SetType(*args, **kwargs)
 
2171
 
 
2172
    def GetType(*args, **kwargs):
 
2173
        """GetType(self) -> int"""
 
2174
        return _richtext.RichTextFileHandler_GetType(*args, **kwargs)
 
2175
 
 
2176
    Type = property(GetType,SetType) 
 
2177
    def SetFlags(*args, **kwargs):
 
2178
        """SetFlags(self, int flags)"""
 
2179
        return _richtext.RichTextFileHandler_SetFlags(*args, **kwargs)
 
2180
 
 
2181
    def GetFlags(*args, **kwargs):
 
2182
        """GetFlags(self) -> int"""
 
2183
        return _richtext.RichTextFileHandler_GetFlags(*args, **kwargs)
 
2184
 
 
2185
    Flags = property(GetFlags,SetFlags) 
 
2186
    def SetEncoding(*args, **kwargs):
 
2187
        """SetEncoding(self, String encoding)"""
 
2188
        return _richtext.RichTextFileHandler_SetEncoding(*args, **kwargs)
 
2189
 
 
2190
    def GetEncoding(*args, **kwargs):
 
2191
        """GetEncoding(self) -> String"""
 
2192
        return _richtext.RichTextFileHandler_GetEncoding(*args, **kwargs)
 
2193
 
 
2194
    Encoding = property(GetEncoding,SetEncoding) 
 
2195
_richtext.RichTextFileHandler_swigregister(RichTextFileHandler)
 
2196
 
 
2197
class RichTextPlainTextHandler(RichTextFileHandler):
 
2198
    """Proxy of C++ RichTextPlainTextHandler class"""
 
2199
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
2200
    __repr__ = _swig_repr
 
2201
    def __init__(self, *args, **kwargs): 
 
2202
        """__init__(self, String name=TextName, String ext=TextExt, int type=RICHTEXT_TYPE_TEXT) -> RichTextPlainTextHandler"""
 
2203
        _richtext.RichTextPlainTextHandler_swiginit(self,_richtext.new_RichTextPlainTextHandler(*args, **kwargs))
 
2204
_richtext.RichTextPlainTextHandler_swigregister(RichTextPlainTextHandler)
 
2205
TextName = cvar.TextName
 
2206
TextExt = cvar.TextExt
 
2207
 
 
2208
#---------------------------------------------------------------------------
 
2209
 
 
2210
class RichTextRenderer(_core.Object):
 
2211
    """Proxy of C++ RichTextRenderer class"""
 
2212
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
2213
    def __init__(self): raise AttributeError, "No constructor defined"
 
2214
    __repr__ = _swig_repr
 
2215
    __swig_destroy__ = _richtext.delete_RichTextRenderer
 
2216
    __del__ = lambda self : None;
 
2217
    def DrawStandardBullet(*args, **kwargs):
 
2218
        """
 
2219
        DrawStandardBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr, 
 
2220
            Rect rect) -> bool
 
2221
        """
 
2222
        return _richtext.RichTextRenderer_DrawStandardBullet(*args, **kwargs)
 
2223
 
 
2224
    def DrawTextBullet(*args, **kwargs):
 
2225
        """
 
2226
        DrawTextBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr, 
 
2227
            Rect rect, String text) -> bool
 
2228
        """
 
2229
        return _richtext.RichTextRenderer_DrawTextBullet(*args, **kwargs)
 
2230
 
 
2231
    def DrawBitmapBullet(*args, **kwargs):
 
2232
        """
 
2233
        DrawBitmapBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr, 
 
2234
            Rect rect) -> bool
 
2235
        """
 
2236
        return _richtext.RichTextRenderer_DrawBitmapBullet(*args, **kwargs)
 
2237
 
 
2238
    def EnumerateStandardBulletNames(*args, **kwargs):
 
2239
        """EnumerateStandardBulletNames(self, wxArrayString bulletNames) -> bool"""
 
2240
        return _richtext.RichTextRenderer_EnumerateStandardBulletNames(*args, **kwargs)
 
2241
 
 
2242
_richtext.RichTextRenderer_swigregister(RichTextRenderer)
 
2243
 
 
2244
class RichTextStdRenderer(RichTextRenderer):
 
2245
    """Proxy of C++ RichTextStdRenderer class"""
 
2246
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
2247
    __repr__ = _swig_repr
 
2248
    def __init__(self, *args, **kwargs): 
 
2249
        """__init__(self) -> RichTextStdRenderer"""
 
2250
        _richtext.RichTextStdRenderer_swiginit(self,_richtext.new_RichTextStdRenderer(*args, **kwargs))
 
2251
_richtext.RichTextStdRenderer_swigregister(RichTextStdRenderer)
 
2252
 
 
2253
#---------------------------------------------------------------------------
 
2254
 
 
2255
RE_READONLY = _richtext.RE_READONLY
 
2256
RE_MULTILINE = _richtext.RE_MULTILINE
 
2257
RICHTEXT_SHIFT_DOWN = _richtext.RICHTEXT_SHIFT_DOWN
 
2258
RICHTEXT_CTRL_DOWN = _richtext.RICHTEXT_CTRL_DOWN
 
2259
RICHTEXT_ALT_DOWN = _richtext.RICHTEXT_ALT_DOWN
 
2260
RICHTEXT_SELECTED = _richtext.RICHTEXT_SELECTED
 
2261
RICHTEXT_TAGGED = _richtext.RICHTEXT_TAGGED
 
2262
RICHTEXT_FOCUSSED = _richtext.RICHTEXT_FOCUSSED
 
2263
RICHTEXT_IS_FOCUS = _richtext.RICHTEXT_IS_FOCUS
574
2264
class RichTextCtrl(_windows.ScrolledWindow):
575
2265
    """Proxy of C++ RichTextCtrl class"""
576
2266
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
579
2269
        """
580
2270
        __init__(self, Window parent, int id=-1, String value=EmptyString, 
581
2271
            Point pos=DefaultPosition, Size size=DefaultSize, 
582
 
            long style=RE_MULTILINE) -> RichTextCtrl
 
2272
            long style=RE_MULTILINE, Validator validator=DefaultValidator, 
 
2273
            String name=RichTextCtrlNameStr) -> RichTextCtrl
583
2274
        """
584
2275
        _richtext.RichTextCtrl_swiginit(self,_richtext.new_RichTextCtrl(*args, **kwargs))
585
2276
        self._setOORInfo(self)
588
2279
        """
589
2280
        Create(self, Window parent, int id=-1, String value=EmptyString, 
590
2281
            Point pos=DefaultPosition, Size size=DefaultSize, 
591
 
            long style=RE_MULTILINE) -> bool
 
2282
            long style=RE_MULTILINE, Validator validator=DefaultValidator, 
 
2283
            String name=RichTextCtrlNameStr) -> bool
592
2284
        """
593
2285
        return _richtext.RichTextCtrl_Create(*args, **kwargs)
594
2286
 
761
2453
 
762
2454
    def SetStyle(*args, **kwargs):
763
2455
        """
764
 
        SetStyle(self, RichTextRange range, RichTextAttr style) -> bool
 
2456
        SetStyle(self, RichTextRange range, TextAttrEx style) -> bool
765
2457
 
766
2458
        Set the style for the text in ``range`` to ``style``
767
2459
        """
768
2460
        return _richtext.RichTextCtrl_SetStyle(*args, **kwargs)
769
2461
 
 
2462
    def GetStyle(*args, **kwargs):
 
2463
        """
 
2464
        GetStyle(self, long position, TextAttrEx style) -> bool
 
2465
 
 
2466
        Retrieve the style used at the given position.  Copies the style
 
2467
        values at ``position`` into the ``style`` parameter and returns ``True``
 
2468
        if successful.  Returns ``False`` otherwise.
 
2469
        """
 
2470
        return _richtext.RichTextCtrl_GetStyle(*args, **kwargs)
 
2471
 
 
2472
    def GetStyleForRange(*args, **kwargs):
 
2473
        """
 
2474
        GetStyleForRange(self, RichTextRange range, TextAttrEx style) -> bool
 
2475
 
 
2476
        Get the common set of styles for the range
 
2477
        """
 
2478
        return _richtext.RichTextCtrl_GetStyleForRange(*args, **kwargs)
 
2479
 
770
2480
    def SetStyleEx(*args, **kwargs):
771
2481
        """
772
 
        SetStyleEx(self, RichTextRange range, RichTextAttr style, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
 
2482
        SetStyleEx(self, RichTextRange range, TextAttrEx style, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
773
2483
 
774
2484
        Extended style setting operation with flags including:
775
2485
        RICHTEXT_SETSTYLE_WITH_UNDO, RICHTEXT_SETSTYLE_OPTIMIZE,
777
2487
        """
778
2488
        return _richtext.RichTextCtrl_SetStyleEx(*args, **kwargs)
779
2489
 
780
 
    def GetStyle(*args, **kwargs):
781
 
        """
782
 
        GetStyle(self, long position, RichTextAttr style) -> bool
783
 
 
784
 
        Retrieve the style used at the given position.  Copies the style
785
 
        values at ``position`` into the ``style`` parameter and returns ``True``
786
 
        if successful.  Returns ``False`` otherwise.
787
 
        """
788
 
        return _richtext.RichTextCtrl_GetStyle(*args, **kwargs)
789
 
 
790
2490
    def GetUncombinedStyle(*args, **kwargs):
791
2491
        """
792
 
        GetUncombinedStyle(self, long position, RichTextAttr style) -> bool
 
2492
        GetUncombinedStyle(self, long position, TextAttrEx style) -> bool
793
2493
 
794
2494
        Get the content (uncombined) attributes for this position.  Copies the
795
2495
        style values at ``position`` into the ``style`` parameter and returns
799
2499
 
800
2500
    def SetDefaultStyle(*args, **kwargs):
801
2501
        """
802
 
        SetDefaultStyle(self, RichTextAttr style) -> bool
 
2502
        SetDefaultStyle(self, TextAttrEx style) -> bool
803
2503
 
804
2504
        Set the style used by default for the rich text document.
805
2505
        """
807
2507
 
808
2508
    def GetDefaultStyle(*args, **kwargs):
809
2509
        """
810
 
        GetDefaultStyle(self) -> RichTextAttr
 
2510
        GetDefaultStyle(self) -> TextAttrEx
811
2511
 
812
2512
        Retrieves a copy of the default style object.
813
2513
        """
814
2514
        return _richtext.RichTextCtrl_GetDefaultStyle(*args, **kwargs)
815
2515
 
 
2516
    def SetListStyle(*args, **kwargs):
 
2517
        """
 
2518
        SetListStyle(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO, 
 
2519
            int startFrom=1, int specifiedLevel=-1) -> bool
 
2520
        """
 
2521
        return _richtext.RichTextCtrl_SetListStyle(*args, **kwargs)
 
2522
 
 
2523
    def ClearListStyle(*args, **kwargs):
 
2524
        """ClearListStyle(self, RichTextRange range, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool"""
 
2525
        return _richtext.RichTextCtrl_ClearListStyle(*args, **kwargs)
 
2526
 
 
2527
    def NumberList(*args, **kwargs):
 
2528
        """
 
2529
        NumberList(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO, 
 
2530
            int startFrom=1, int specifiedLevel=-1) -> bool
 
2531
        """
 
2532
        return _richtext.RichTextCtrl_NumberList(*args, **kwargs)
 
2533
 
 
2534
    def PromoteList(*args, **kwargs):
 
2535
        """
 
2536
        PromoteList(self, int promoteBy, RichTextRange range, String defName, 
 
2537
            int flags=RICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel=-1) -> bool
 
2538
        """
 
2539
        return _richtext.RichTextCtrl_PromoteList(*args, **kwargs)
 
2540
 
 
2541
    def Delete(*args, **kwargs):
 
2542
        """Delete(self, RichTextRange range) -> bool"""
 
2543
        return _richtext.RichTextCtrl_Delete(*args, **kwargs)
 
2544
 
816
2545
    def XYToPosition(*args, **kwargs):
817
2546
        """
818
2547
        XYToPosition(self, long x, long y) -> long
1022
2751
        return _richtext.RichTextCtrl_HasSelection(*args, **kwargs)
1023
2752
 
1024
2753
    def WriteImage(*args, **kwargs):
1025
 
        """WriteImage(self, Image image, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
 
2754
        """
 
2755
        WriteImage(self, Image image, int bitmapType=BITMAP_TYPE_PNG) -> bool
 
2756
 
 
2757
        Write an image at the current insertion point. Supply optional type to
 
2758
        use for internal and file storage of the raw data.
 
2759
 
 
2760
        """
1026
2761
        return _richtext.RichTextCtrl_WriteImage(*args, **kwargs)
1027
2762
 
1028
2763
    def WriteBitmap(*args, **kwargs):
1029
 
        """WriteBitmap(self, Bitmap bitmap, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
 
2764
        """
 
2765
        WriteBitmap(self, Bitmap bitmap, int bitmapType=BITMAP_TYPE_PNG) -> bool
 
2766
 
 
2767
        Write a bitmap at the current insertion point. Supply optional type to
 
2768
        use for internal and file storage of the raw data.
 
2769
        """
1030
2770
        return _richtext.RichTextCtrl_WriteBitmap(*args, **kwargs)
1031
2771
 
1032
2772
    def WriteImageFile(*args, **kwargs):
1033
 
        """WriteImageFile(self, String filename, int bitmapType) -> bool"""
 
2773
        """
 
2774
        WriteImageFile(self, String filename, int bitmapType) -> bool
 
2775
 
 
2776
        Load an image from file and write at the current insertion point.
 
2777
        """
1034
2778
        return _richtext.RichTextCtrl_WriteImageFile(*args, **kwargs)
1035
2779
 
1036
2780
    def WriteImageBlock(*args, **kwargs):
1037
 
        """WriteImageBlock(self, wxRichTextImageBlock imageBlock) -> bool"""
 
2781
        """
 
2782
        WriteImageBlock(self, wxRichTextImageBlock imageBlock) -> bool
 
2783
 
 
2784
        Write an image block at the current insertion point.
 
2785
        """
1038
2786
        return _richtext.RichTextCtrl_WriteImageBlock(*args, **kwargs)
1039
2787
 
1040
2788
    def Newline(*args, **kwargs):
1041
 
        """Newline(self) -> bool"""
 
2789
        """
 
2790
        Newline(self) -> bool
 
2791
 
 
2792
        Insert a newline (actually paragraph) at the current insertion point.
 
2793
        """
1042
2794
        return _richtext.RichTextCtrl_Newline(*args, **kwargs)
1043
2795
 
 
2796
    def LineBreak(*args, **kwargs):
 
2797
        """
 
2798
        LineBreak(self) -> bool
 
2799
 
 
2800
        Insert a line break at the current insertion point.
 
2801
        """
 
2802
        return _richtext.RichTextCtrl_LineBreak(*args, **kwargs)
 
2803
 
1044
2804
    def SetBasicStyle(*args, **kwargs):
1045
 
        """SetBasicStyle(self, RichTextAttr style)"""
 
2805
        """SetBasicStyle(self, TextAttrEx style)"""
1046
2806
        return _richtext.RichTextCtrl_SetBasicStyle(*args, **kwargs)
1047
2807
 
 
2808
    def GetBasicStyle(*args, **kwargs):
 
2809
        """
 
2810
        GetBasicStyle(self) -> TextAttrEx
 
2811
 
 
2812
        Get basic (overall) style
 
2813
        """
 
2814
        return _richtext.RichTextCtrl_GetBasicStyle(*args, **kwargs)
 
2815
 
 
2816
    def BeginStyle(*args, **kwargs):
 
2817
        """
 
2818
        BeginStyle(self, TextAttrEx style) -> bool
 
2819
 
 
2820
        Begin using a style
 
2821
        """
 
2822
        return _richtext.RichTextCtrl_BeginStyle(*args, **kwargs)
 
2823
 
1048
2824
    def EndStyle(*args, **kwargs):
1049
 
        """EndStyle(self) -> bool"""
 
2825
        """
 
2826
        EndStyle(self) -> bool
 
2827
 
 
2828
        End the style
 
2829
        """
1050
2830
        return _richtext.RichTextCtrl_EndStyle(*args, **kwargs)
1051
2831
 
1052
2832
    def EndAllStyles(*args, **kwargs):
1053
 
        """EndAllStyles(self) -> bool"""
 
2833
        """
 
2834
        EndAllStyles(self) -> bool
 
2835
 
 
2836
        End all styles
 
2837
        """
1054
2838
        return _richtext.RichTextCtrl_EndAllStyles(*args, **kwargs)
1055
2839
 
1056
2840
    def BeginBold(*args, **kwargs):
1057
 
        """BeginBold(self) -> bool"""
 
2841
        """
 
2842
        BeginBold(self) -> bool
 
2843
 
 
2844
        Begin using bold
 
2845
        """
1058
2846
        return _richtext.RichTextCtrl_BeginBold(*args, **kwargs)
1059
2847
 
1060
2848
    def EndBold(*args, **kwargs):
1061
 
        """EndBold(self) -> bool"""
 
2849
        """
 
2850
        EndBold(self) -> bool
 
2851
 
 
2852
        End using bold
 
2853
        """
1062
2854
        return _richtext.RichTextCtrl_EndBold(*args, **kwargs)
1063
2855
 
1064
2856
    def BeginItalic(*args, **kwargs):
1065
 
        """BeginItalic(self) -> bool"""
 
2857
        """
 
2858
        BeginItalic(self) -> bool
 
2859
 
 
2860
        Begin using italic
 
2861
        """
1066
2862
        return _richtext.RichTextCtrl_BeginItalic(*args, **kwargs)
1067
2863
 
1068
2864
    def EndItalic(*args, **kwargs):
1069
 
        """EndItalic(self) -> bool"""
 
2865
        """
 
2866
        EndItalic(self) -> bool
 
2867
 
 
2868
        End using italic
 
2869
        """
1070
2870
        return _richtext.RichTextCtrl_EndItalic(*args, **kwargs)
1071
2871
 
1072
2872
    def BeginUnderline(*args, **kwargs):
1073
 
        """BeginUnderline(self) -> bool"""
 
2873
        """
 
2874
        BeginUnderline(self) -> bool
 
2875
 
 
2876
        Begin using underline
 
2877
        """
1074
2878
        return _richtext.RichTextCtrl_BeginUnderline(*args, **kwargs)
1075
2879
 
1076
2880
    def EndUnderline(*args, **kwargs):
1077
 
        """EndUnderline(self) -> bool"""
 
2881
        """
 
2882
        EndUnderline(self) -> bool
 
2883
 
 
2884
        End using underline
 
2885
        """
1078
2886
        return _richtext.RichTextCtrl_EndUnderline(*args, **kwargs)
1079
2887
 
1080
2888
    def BeginFontSize(*args, **kwargs):
1081
 
        """BeginFontSize(self, int pointSize) -> bool"""
 
2889
        """
 
2890
        BeginFontSize(self, int pointSize) -> bool
 
2891
 
 
2892
        Begin using point size
 
2893
        """
1082
2894
        return _richtext.RichTextCtrl_BeginFontSize(*args, **kwargs)
1083
2895
 
1084
2896
    def EndFontSize(*args, **kwargs):
1085
 
        """EndFontSize(self) -> bool"""
 
2897
        """
 
2898
        EndFontSize(self) -> bool
 
2899
 
 
2900
        End using point size
 
2901
        """
1086
2902
        return _richtext.RichTextCtrl_EndFontSize(*args, **kwargs)
1087
2903
 
1088
2904
    def BeginFont(*args, **kwargs):
1089
 
        """BeginFont(self, Font font) -> bool"""
 
2905
        """
 
2906
        BeginFont(self, Font font) -> bool
 
2907
 
 
2908
        Begin using this font
 
2909
        """
1090
2910
        return _richtext.RichTextCtrl_BeginFont(*args, **kwargs)
1091
2911
 
1092
2912
    def EndFont(*args, **kwargs):
1093
 
        """EndFont(self) -> bool"""
 
2913
        """
 
2914
        EndFont(self) -> bool
 
2915
 
 
2916
        End using a font
 
2917
        """
1094
2918
        return _richtext.RichTextCtrl_EndFont(*args, **kwargs)
1095
2919
 
1096
2920
    def BeginTextColour(*args, **kwargs):
1097
 
        """BeginTextColour(self, Colour colour) -> bool"""
 
2921
        """
 
2922
        BeginTextColour(self, Colour colour) -> bool
 
2923
 
 
2924
        Begin using this colour
 
2925
        """
1098
2926
        return _richtext.RichTextCtrl_BeginTextColour(*args, **kwargs)
1099
2927
 
1100
2928
    def EndTextColour(*args, **kwargs):
1101
 
        """EndTextColour(self) -> bool"""
 
2929
        """
 
2930
        EndTextColour(self) -> bool
 
2931
 
 
2932
        End using a colour
 
2933
        """
1102
2934
        return _richtext.RichTextCtrl_EndTextColour(*args, **kwargs)
1103
2935
 
1104
2936
    def BeginAlignment(*args, **kwargs):
1105
 
        """BeginAlignment(self, int alignment) -> bool"""
 
2937
        """
 
2938
        BeginAlignment(self, int alignment) -> bool
 
2939
 
 
2940
        Begin using alignment
 
2941
        """
1106
2942
        return _richtext.RichTextCtrl_BeginAlignment(*args, **kwargs)
1107
2943
 
1108
2944
    def EndAlignment(*args, **kwargs):
1109
 
        """EndAlignment(self) -> bool"""
 
2945
        """
 
2946
        EndAlignment(self) -> bool
 
2947
 
 
2948
        End alignment
 
2949
        """
1110
2950
        return _richtext.RichTextCtrl_EndAlignment(*args, **kwargs)
1111
2951
 
1112
2952
    def BeginLeftIndent(*args, **kwargs):
1113
 
        """BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
 
2953
        """
 
2954
        BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool
 
2955
 
 
2956
        Begin left indent
 
2957
        """
1114
2958
        return _richtext.RichTextCtrl_BeginLeftIndent(*args, **kwargs)
1115
2959
 
1116
2960
    def EndLeftIndent(*args, **kwargs):
1117
 
        """EndLeftIndent(self) -> bool"""
 
2961
        """
 
2962
        EndLeftIndent(self) -> bool
 
2963
 
 
2964
        End left indent
 
2965
        """
1118
2966
        return _richtext.RichTextCtrl_EndLeftIndent(*args, **kwargs)
1119
2967
 
1120
2968
    def BeginRightIndent(*args, **kwargs):
1121
 
        """BeginRightIndent(self, int rightIndent) -> bool"""
 
2969
        """
 
2970
        BeginRightIndent(self, int rightIndent) -> bool
 
2971
 
 
2972
        Begin right indent
 
2973
        """
1122
2974
        return _richtext.RichTextCtrl_BeginRightIndent(*args, **kwargs)
1123
2975
 
1124
2976
    def EndRightIndent(*args, **kwargs):
1125
 
        """EndRightIndent(self) -> bool"""
 
2977
        """
 
2978
        EndRightIndent(self) -> bool
 
2979
 
 
2980
        End right indent
 
2981
        """
1126
2982
        return _richtext.RichTextCtrl_EndRightIndent(*args, **kwargs)
1127
2983
 
1128
2984
    def BeginParagraphSpacing(*args, **kwargs):
1129
 
        """BeginParagraphSpacing(self, int before, int after) -> bool"""
 
2985
        """
 
2986
        BeginParagraphSpacing(self, int before, int after) -> bool
 
2987
 
 
2988
        Begin paragraph spacing
 
2989
        """
1130
2990
        return _richtext.RichTextCtrl_BeginParagraphSpacing(*args, **kwargs)
1131
2991
 
1132
2992
    def EndParagraphSpacing(*args, **kwargs):
1133
 
        """EndParagraphSpacing(self) -> bool"""
 
2993
        """
 
2994
        EndParagraphSpacing(self) -> bool
 
2995
 
 
2996
        End paragraph spacing
 
2997
        """
1134
2998
        return _richtext.RichTextCtrl_EndParagraphSpacing(*args, **kwargs)
1135
2999
 
1136
3000
    def BeginLineSpacing(*args, **kwargs):
1137
 
        """BeginLineSpacing(self, int lineSpacing) -> bool"""
 
3001
        """
 
3002
        BeginLineSpacing(self, int lineSpacing) -> bool
 
3003
 
 
3004
        Begin line spacing
 
3005
        """
1138
3006
        return _richtext.RichTextCtrl_BeginLineSpacing(*args, **kwargs)
1139
3007
 
1140
3008
    def EndLineSpacing(*args, **kwargs):
1141
 
        """EndLineSpacing(self) -> bool"""
 
3009
        """
 
3010
        EndLineSpacing(self) -> bool
 
3011
 
 
3012
        End line spacing
 
3013
        """
1142
3014
        return _richtext.RichTextCtrl_EndLineSpacing(*args, **kwargs)
1143
3015
 
1144
3016
    def BeginNumberedBullet(*args, **kwargs):
1145
3017
        """
1146
3018
        BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent, 
1147
3019
            int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
 
3020
 
 
3021
        Begin numbered bullet
1148
3022
        """
1149
3023
        return _richtext.RichTextCtrl_BeginNumberedBullet(*args, **kwargs)
1150
3024
 
1151
3025
    def EndNumberedBullet(*args, **kwargs):
1152
 
        """EndNumberedBullet(self) -> bool"""
 
3026
        """
 
3027
        EndNumberedBullet(self) -> bool
 
3028
 
 
3029
        End numbered bullet
 
3030
        """
1153
3031
        return _richtext.RichTextCtrl_EndNumberedBullet(*args, **kwargs)
1154
3032
 
1155
3033
    def BeginSymbolBullet(*args, **kwargs):
1156
 
        """BeginSymbolBullet(self, String symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
 
3034
        """
 
3035
        BeginSymbolBullet(self, String symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool
 
3036
 
 
3037
        Begin symbol bullet
 
3038
        """
1157
3039
        return _richtext.RichTextCtrl_BeginSymbolBullet(*args, **kwargs)
1158
3040
 
1159
3041
    def EndSymbolBullet(*args, **kwargs):
1160
 
        """EndSymbolBullet(self) -> bool"""
 
3042
        """
 
3043
        EndSymbolBullet(self) -> bool
 
3044
 
 
3045
        End symbol bullet
 
3046
        """
1161
3047
        return _richtext.RichTextCtrl_EndSymbolBullet(*args, **kwargs)
1162
3048
 
 
3049
    def BeginStandardBullet(*args, **kwargs):
 
3050
        """
 
3051
        BeginStandardBullet(self, String bulletName, int leftIndent, int leftSubIndent, 
 
3052
            int bulletStyle=TEXT_ATTR_BULLET_STYLE_STANDARD) -> bool
 
3053
 
 
3054
        Begin standard bullet
 
3055
        """
 
3056
        return _richtext.RichTextCtrl_BeginStandardBullet(*args, **kwargs)
 
3057
 
 
3058
    def EndStandardBullet(*args, **kwargs):
 
3059
        """
 
3060
        EndStandardBullet(self) -> bool
 
3061
 
 
3062
        End standard bullet
 
3063
        """
 
3064
        return _richtext.RichTextCtrl_EndStandardBullet(*args, **kwargs)
 
3065
 
1163
3066
    def BeginCharacterStyle(*args, **kwargs):
1164
 
        """BeginCharacterStyle(self, String characterStyle) -> bool"""
 
3067
        """
 
3068
        BeginCharacterStyle(self, String characterStyle) -> bool
 
3069
 
 
3070
        Begin named character style
 
3071
        """
1165
3072
        return _richtext.RichTextCtrl_BeginCharacterStyle(*args, **kwargs)
1166
3073
 
1167
3074
    def EndCharacterStyle(*args, **kwargs):
1168
 
        """EndCharacterStyle(self) -> bool"""
 
3075
        """
 
3076
        EndCharacterStyle(self) -> bool
 
3077
 
 
3078
        End named character style
 
3079
        """
1169
3080
        return _richtext.RichTextCtrl_EndCharacterStyle(*args, **kwargs)
1170
3081
 
1171
3082
    def BeginParagraphStyle(*args, **kwargs):
1172
 
        """BeginParagraphStyle(self, String paragraphStyle) -> bool"""
 
3083
        """
 
3084
        BeginParagraphStyle(self, String paragraphStyle) -> bool
 
3085
 
 
3086
        Begin named paragraph style
 
3087
        """
1173
3088
        return _richtext.RichTextCtrl_BeginParagraphStyle(*args, **kwargs)
1174
3089
 
1175
3090
    def EndParagraphStyle(*args, **kwargs):
1176
 
        """EndParagraphStyle(self) -> bool"""
 
3091
        """
 
3092
        EndParagraphStyle(self) -> bool
 
3093
 
 
3094
        End named character style
 
3095
        """
1177
3096
        return _richtext.RichTextCtrl_EndParagraphStyle(*args, **kwargs)
1178
3097
 
1179
3098
    def BeginListStyle(*args, **kwargs):
1209
3128
        return _richtext.RichTextCtrl_EndURL(*args, **kwargs)
1210
3129
 
1211
3130
    def SetDefaultStyleToCursorStyle(*args, **kwargs):
1212
 
        """SetDefaultStyleToCursorStyle(self) -> bool"""
 
3131
        """
 
3132
        SetDefaultStyleToCursorStyle(self) -> bool
 
3133
 
 
3134
        Sets the default style to the style under the cursor
 
3135
        """
1213
3136
        return _richtext.RichTextCtrl_SetDefaultStyleToCursorStyle(*args, **kwargs)
1214
3137
 
1215
3138
    def SelectNone(*args, **kwargs):
1216
 
        """SelectNone(self)"""
 
3139
        """
 
3140
        SelectNone(self)
 
3141
 
 
3142
        Clear the selection
 
3143
        """
1217
3144
        return _richtext.RichTextCtrl_SelectNone(*args, **kwargs)
1218
3145
 
1219
3146
    def SelectWord(*args, **kwargs):
1220
 
        """SelectWord(self, long position) -> bool"""
 
3147
        """
 
3148
        SelectWord(self, long position) -> bool
 
3149
 
 
3150
        Select the word at the given character position
 
3151
        """
1221
3152
        return _richtext.RichTextCtrl_SelectWord(*args, **kwargs)
1222
3153
 
1223
3154
    def GetSelectionRange(*args, **kwargs):
1224
 
        """GetSelectionRange(self) -> RichTextRange"""
 
3155
        """
 
3156
        GetSelectionRange(self) -> RichTextRange
 
3157
 
 
3158
        Get the selection range in character positions.
 
3159
        """
1225
3160
        return _richtext.RichTextCtrl_GetSelectionRange(*args, **kwargs)
1226
3161
 
1227
3162
    def SetSelectionRange(*args, **kwargs):
1228
 
        """SetSelectionRange(self, RichTextRange range)"""
 
3163
        """
 
3164
        SetSelectionRange(self, RichTextRange range)
 
3165
 
 
3166
        Set the selection range in character positions. -1, -1 means no selection.
 
3167
        """
1229
3168
        return _richtext.RichTextCtrl_SetSelectionRange(*args, **kwargs)
1230
3169
 
1231
3170
    def GetInternalSelectionRange(*args, **kwargs):
1232
 
        """GetInternalSelectionRange(self) -> RichTextRange"""
 
3171
        """
 
3172
        GetInternalSelectionRange(self) -> RichTextRange
 
3173
 
 
3174
        Get the selection range in character positions. -1, -1 means no
 
3175
        selection.  The range is in internal format, i.e. a single character
 
3176
        selection is denoted by (n, n).
 
3177
 
 
3178
        """
1233
3179
        return _richtext.RichTextCtrl_GetInternalSelectionRange(*args, **kwargs)
1234
3180
 
1235
3181
    def SetInternalSelectionRange(*args, **kwargs):
1236
 
        """SetInternalSelectionRange(self, RichTextRange range)"""
 
3182
        """
 
3183
        SetInternalSelectionRange(self, RichTextRange range)
 
3184
 
 
3185
        Set the selection range in character positions. -1, -1 means no
 
3186
        selection.  The range is in internal format, i.e. a single character
 
3187
        selection is denoted by (n, n).
 
3188
        """
1237
3189
        return _richtext.RichTextCtrl_SetInternalSelectionRange(*args, **kwargs)
1238
3190
 
1239
3191
    def AddParagraph(*args, **kwargs):
1240
 
        """AddParagraph(self, String text) -> RichTextRange"""
 
3192
        """
 
3193
        AddParagraph(self, String text) -> RichTextRange
 
3194
 
 
3195
        Add a new paragraph of text to the end of the buffer
 
3196
        """
1241
3197
        return _richtext.RichTextCtrl_AddParagraph(*args, **kwargs)
1242
3198
 
1243
3199
    def AddImage(*args, **kwargs):
1244
 
        """AddImage(self, Image image) -> RichTextRange"""
 
3200
        """
 
3201
        AddImage(self, Image image) -> RichTextRange
 
3202
 
 
3203
        Add an image
 
3204
        """
1245
3205
        return _richtext.RichTextCtrl_AddImage(*args, **kwargs)
1246
3206
 
1247
3207
    def LayoutContent(*args, **kwargs):
1248
 
        """LayoutContent(self, bool onlyVisibleRect=False) -> bool"""
 
3208
        """
 
3209
        LayoutContent(self, bool onlyVisibleRect=False) -> bool
 
3210
 
 
3211
        Layout the buffer: which we must do before certain operations, such as
 
3212
        setting the caret position.
 
3213
        """
1249
3214
        return _richtext.RichTextCtrl_LayoutContent(*args, **kwargs)
1250
3215
 
1251
3216
    def MoveCaret(*args, **kwargs):
1252
 
        """MoveCaret(self, long pos, bool showAtLineStart=False) -> bool"""
 
3217
        """
 
3218
        MoveCaret(self, long pos, bool showAtLineStart=False) -> bool
 
3219
 
 
3220
        Move the caret to the given character position
 
3221
        """
1253
3222
        return _richtext.RichTextCtrl_MoveCaret(*args, **kwargs)
1254
3223
 
1255
3224
    def MoveRight(*args, **kwargs):
1256
 
        """MoveRight(self, int noPositions=1, int flags=0) -> bool"""
 
3225
        """
 
3226
        MoveRight(self, int noPositions=1, int flags=0) -> bool
 
3227
 
 
3228
        Move right
 
3229
        """
1257
3230
        return _richtext.RichTextCtrl_MoveRight(*args, **kwargs)
1258
3231
 
1259
3232
    def MoveLeft(*args, **kwargs):
1260
 
        """MoveLeft(self, int noPositions=1, int flags=0) -> bool"""
 
3233
        """
 
3234
        MoveLeft(self, int noPositions=1, int flags=0) -> bool
 
3235
 
 
3236
        Move left
 
3237
        """
1261
3238
        return _richtext.RichTextCtrl_MoveLeft(*args, **kwargs)
1262
3239
 
1263
3240
    def MoveUp(*args, **kwargs):
1264
 
        """MoveUp(self, int noLines=1, int flags=0) -> bool"""
 
3241
        """
 
3242
        MoveUp(self, int noLines=1, int flags=0) -> bool
 
3243
 
 
3244
        Move up
 
3245
        """
1265
3246
        return _richtext.RichTextCtrl_MoveUp(*args, **kwargs)
1266
3247
 
1267
3248
    def MoveDown(*args, **kwargs):
1268
 
        """MoveDown(self, int noLines=1, int flags=0) -> bool"""
 
3249
        """
 
3250
        MoveDown(self, int noLines=1, int flags=0) -> bool
 
3251
 
 
3252
        Move down
 
3253
        """
1269
3254
        return _richtext.RichTextCtrl_MoveDown(*args, **kwargs)
1270
3255
 
1271
3256
    def MoveToLineEnd(*args, **kwargs):
1272
 
        """MoveToLineEnd(self, int flags=0) -> bool"""
 
3257
        """
 
3258
        MoveToLineEnd(self, int flags=0) -> bool
 
3259
 
 
3260
        Move to the end of the line
 
3261
        """
1273
3262
        return _richtext.RichTextCtrl_MoveToLineEnd(*args, **kwargs)
1274
3263
 
1275
3264
    def MoveToLineStart(*args, **kwargs):
1276
 
        """MoveToLineStart(self, int flags=0) -> bool"""
 
3265
        """
 
3266
        MoveToLineStart(self, int flags=0) -> bool
 
3267
 
 
3268
        Move to the start of the line
 
3269
        """
1277
3270
        return _richtext.RichTextCtrl_MoveToLineStart(*args, **kwargs)
1278
3271
 
1279
3272
    def MoveToParagraphEnd(*args, **kwargs):
1280
 
        """MoveToParagraphEnd(self, int flags=0) -> bool"""
 
3273
        """
 
3274
        MoveToParagraphEnd(self, int flags=0) -> bool
 
3275
 
 
3276
        Move to the end of the paragraph
 
3277
        """
1281
3278
        return _richtext.RichTextCtrl_MoveToParagraphEnd(*args, **kwargs)
1282
3279
 
1283
3280
    def MoveToParagraphStart(*args, **kwargs):
1284
 
        """MoveToParagraphStart(self, int flags=0) -> bool"""
 
3281
        """
 
3282
        MoveToParagraphStart(self, int flags=0) -> bool
 
3283
 
 
3284
        Move to the start of the paragraph
 
3285
        """
1285
3286
        return _richtext.RichTextCtrl_MoveToParagraphStart(*args, **kwargs)
1286
3287
 
1287
3288
    def MoveHome(*args, **kwargs):
1288
 
        """MoveHome(self, int flags=0) -> bool"""
 
3289
        """
 
3290
        MoveHome(self, int flags=0) -> bool
 
3291
 
 
3292
        Move to the start of the buffer
 
3293
        """
1289
3294
        return _richtext.RichTextCtrl_MoveHome(*args, **kwargs)
1290
3295
 
1291
3296
    def MoveEnd(*args, **kwargs):
1292
 
        """MoveEnd(self, int flags=0) -> bool"""
 
3297
        """
 
3298
        MoveEnd(self, int flags=0) -> bool
 
3299
 
 
3300
        Move to the end of the buffer
 
3301
        """
1293
3302
        return _richtext.RichTextCtrl_MoveEnd(*args, **kwargs)
1294
3303
 
1295
3304
    def PageUp(*args, **kwargs):
1296
 
        """PageUp(self, int noPages=1, int flags=0) -> bool"""
 
3305
        """
 
3306
        PageUp(self, int noPages=1, int flags=0) -> bool
 
3307
 
 
3308
        Move n pages up
 
3309
        """
1297
3310
        return _richtext.RichTextCtrl_PageUp(*args, **kwargs)
1298
3311
 
1299
3312
    def PageDown(*args, **kwargs):
1300
 
        """PageDown(self, int noPages=1, int flags=0) -> bool"""
 
3313
        """
 
3314
        PageDown(self, int noPages=1, int flags=0) -> bool
 
3315
 
 
3316
        Move n pages down
 
3317
        """
1301
3318
        return _richtext.RichTextCtrl_PageDown(*args, **kwargs)
1302
3319
 
1303
3320
    def WordLeft(*args, **kwargs):
1304
 
        """WordLeft(self, int noPages=1, int flags=0) -> bool"""
 
3321
        """
 
3322
        WordLeft(self, int noPages=1, int flags=0) -> bool
 
3323
 
 
3324
        Move n words left
 
3325
        """
1305
3326
        return _richtext.RichTextCtrl_WordLeft(*args, **kwargs)
1306
3327
 
1307
3328
    def WordRight(*args, **kwargs):
1308
 
        """WordRight(self, int noPages=1, int flags=0) -> bool"""
 
3329
        """
 
3330
        WordRight(self, int noPages=1, int flags=0) -> bool
 
3331
 
 
3332
        Move n words right
 
3333
        """
1309
3334
        return _richtext.RichTextCtrl_WordRight(*args, **kwargs)
1310
3335
 
1311
3336
    def GetBuffer(*args, **kwargs):
1312
 
        """GetBuffer(self) -> wxRichTextBuffer"""
 
3337
        """
 
3338
        GetBuffer(self) -> RichTextBuffer
 
3339
 
 
3340
        Returns the buffer associated with the control.
 
3341
 
 
3342
        """
1313
3343
        return _richtext.RichTextCtrl_GetBuffer(*args, **kwargs)
1314
3344
 
1315
3345
    def BeginBatchUndo(*args, **kwargs):
1316
 
        """BeginBatchUndo(self, String cmdName) -> bool"""
 
3346
        """
 
3347
        BeginBatchUndo(self, String cmdName) -> bool
 
3348
 
 
3349
        Start batching undo history for commands
 
3350
        """
1317
3351
        return _richtext.RichTextCtrl_BeginBatchUndo(*args, **kwargs)
1318
3352
 
1319
3353
    def EndBatchUndo(*args, **kwargs):
1320
 
        """EndBatchUndo(self) -> bool"""
 
3354
        """
 
3355
        EndBatchUndo(self) -> bool
 
3356
 
 
3357
        End batching undo history for commands.
 
3358
        """
1321
3359
        return _richtext.RichTextCtrl_EndBatchUndo(*args, **kwargs)
1322
3360
 
1323
3361
    def BatchingUndo(*args, **kwargs):
1324
 
        """BatchingUndo(self) -> bool"""
 
3362
        """
 
3363
        BatchingUndo(self) -> bool
 
3364
 
 
3365
        Are we batching undo history for commands?
 
3366
        """
1325
3367
        return _richtext.RichTextCtrl_BatchingUndo(*args, **kwargs)
1326
3368
 
1327
3369
    def BeginSuppressUndo(*args, **kwargs):
1328
 
        """BeginSuppressUndo(self) -> bool"""
 
3370
        """
 
3371
        BeginSuppressUndo(self) -> bool
 
3372
 
 
3373
        Start suppressing undo history for commands.
 
3374
        """
1329
3375
        return _richtext.RichTextCtrl_BeginSuppressUndo(*args, **kwargs)
1330
3376
 
1331
3377
    def EndSuppressUndo(*args, **kwargs):
1332
 
        """EndSuppressUndo(self) -> bool"""
 
3378
        """
 
3379
        EndSuppressUndo(self) -> bool
 
3380
 
 
3381
        End suppressing undo history for commands.
 
3382
        """
1333
3383
        return _richtext.RichTextCtrl_EndSuppressUndo(*args, **kwargs)
1334
3384
 
1335
3385
    def SuppressingUndo(*args, **kwargs):
1336
 
        """SuppressingUndo(self) -> bool"""
 
3386
        """
 
3387
        SuppressingUndo(self) -> bool
 
3388
 
 
3389
        Are we suppressing undo history for commands?
 
3390
        """
1337
3391
        return _richtext.RichTextCtrl_SuppressingUndo(*args, **kwargs)
1338
3392
 
1339
3393
    def HasCharacterAttributes(*args, **kwargs):
1340
 
        """HasCharacterAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
 
3394
        """
 
3395
        HasCharacterAttributes(self, RichTextRange range, TextAttrEx style) -> bool
 
3396
 
 
3397
        Test if this whole range has character attributes of the specified
 
3398
        kind. If any of the attributes are different within the range, the
 
3399
        test fails. You can use this to implement, for example, bold button
 
3400
        updating. style must have flags indicating which attributes are of
 
3401
        interest.
 
3402
 
 
3403
        """
1341
3404
        return _richtext.RichTextCtrl_HasCharacterAttributes(*args, **kwargs)
1342
3405
 
1343
3406
    def HasParagraphAttributes(*args, **kwargs):
1344
 
        """HasParagraphAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
 
3407
        """
 
3408
        HasParagraphAttributes(self, RichTextRange range, TextAttrEx style) -> bool
 
3409
 
 
3410
        Test if this whole range has paragraph attributes of the specified
 
3411
        kind. If any of the attributes are different within the range, the
 
3412
        test fails. You can use this to implement, for example, centering
 
3413
        button updating. style must have flags indicating which attributes are
 
3414
        of interest.
 
3415
 
 
3416
        """
1345
3417
        return _richtext.RichTextCtrl_HasParagraphAttributes(*args, **kwargs)
1346
3418
 
1347
3419
    def IsSelectionBold(*args, **kwargs):
1348
 
        """IsSelectionBold(self) -> bool"""
 
3420
        """
 
3421
        IsSelectionBold(self) -> bool
 
3422
 
 
3423
        Is all of the selection bold?
 
3424
        """
1349
3425
        return _richtext.RichTextCtrl_IsSelectionBold(*args, **kwargs)
1350
3426
 
1351
3427
    def IsSelectionItalics(*args, **kwargs):
1352
 
        """IsSelectionItalics(self) -> bool"""
 
3428
        """
 
3429
        IsSelectionItalics(self) -> bool
 
3430
 
 
3431
        Is all of the selection italics?
 
3432
        """
1353
3433
        return _richtext.RichTextCtrl_IsSelectionItalics(*args, **kwargs)
1354
3434
 
1355
3435
    def IsSelectionUnderlined(*args, **kwargs):
1356
 
        """IsSelectionUnderlined(self) -> bool"""
 
3436
        """
 
3437
        IsSelectionUnderlined(self) -> bool
 
3438
 
 
3439
        Is all of the selection underlined?
 
3440
        """
1357
3441
        return _richtext.RichTextCtrl_IsSelectionUnderlined(*args, **kwargs)
1358
3442
 
1359
3443
    def IsSelectionAligned(*args, **kwargs):
1360
 
        """IsSelectionAligned(self, int alignment) -> bool"""
 
3444
        """
 
3445
        IsSelectionAligned(self, int alignment) -> bool
 
3446
 
 
3447
        Is all of the selection aligned according to the specified flag?
 
3448
        """
1361
3449
        return _richtext.RichTextCtrl_IsSelectionAligned(*args, **kwargs)
1362
3450
 
1363
3451
    def ApplyBoldToSelection(*args, **kwargs):
1364
 
        """ApplyBoldToSelection(self) -> bool"""
 
3452
        """
 
3453
        ApplyBoldToSelection(self) -> bool
 
3454
 
 
3455
        Apply bold to the selection
 
3456
        """
1365
3457
        return _richtext.RichTextCtrl_ApplyBoldToSelection(*args, **kwargs)
1366
3458
 
1367
3459
    def ApplyItalicToSelection(*args, **kwargs):
1368
 
        """ApplyItalicToSelection(self) -> bool"""
 
3460
        """
 
3461
        ApplyItalicToSelection(self) -> bool
 
3462
 
 
3463
        Apply italic to the selection
 
3464
        """
1369
3465
        return _richtext.RichTextCtrl_ApplyItalicToSelection(*args, **kwargs)
1370
3466
 
1371
3467
    def ApplyUnderlineToSelection(*args, **kwargs):
1372
 
        """ApplyUnderlineToSelection(self) -> bool"""
 
3468
        """
 
3469
        ApplyUnderlineToSelection(self) -> bool
 
3470
 
 
3471
        Apply underline to the selection
 
3472
        """
1373
3473
        return _richtext.RichTextCtrl_ApplyUnderlineToSelection(*args, **kwargs)
1374
3474
 
1375
3475
    def ApplyAlignmentToSelection(*args, **kwargs):
1376
 
        """ApplyAlignmentToSelection(self, int alignment) -> bool"""
 
3476
        """
 
3477
        ApplyAlignmentToSelection(self, int alignment) -> bool
 
3478
 
 
3479
        Apply alignment to the selection
 
3480
        """
1377
3481
        return _richtext.RichTextCtrl_ApplyAlignmentToSelection(*args, **kwargs)
1378
3482
 
 
3483
    def ApplyStyle(*args, **kwargs):
 
3484
        """
 
3485
        ApplyStyle(self, wxRichTextStyleDefinition def) -> bool
 
3486
 
 
3487
        Apply a named style to the selection
 
3488
        """
 
3489
        return _richtext.RichTextCtrl_ApplyStyle(*args, **kwargs)
 
3490
 
1379
3491
    def SetStyleSheet(*args, **kwargs):
1380
 
        """SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
 
3492
        """
 
3493
        SetStyleSheet(self, wxRichTextStyleSheet styleSheet)
 
3494
 
 
3495
        Set style sheet, if any.
 
3496
        """
1381
3497
        return _richtext.RichTextCtrl_SetStyleSheet(*args, **kwargs)
1382
3498
 
1383
3499
    def GetStyleSheet(*args, **kwargs):
1384
3500
        """GetStyleSheet(self) -> wxRichTextStyleSheet"""
1385
3501
        return _richtext.RichTextCtrl_GetStyleSheet(*args, **kwargs)
1386
3502
 
 
3503
    def PushStyleSheet(*args, **kwargs):
 
3504
        """
 
3505
        PushStyleSheet(self, wxRichTextStyleSheet styleSheet) -> bool
 
3506
 
 
3507
        Push style sheet to top of stack
 
3508
        """
 
3509
        return _richtext.RichTextCtrl_PushStyleSheet(*args, **kwargs)
 
3510
 
 
3511
    def PopStyleSheet(*args, **kwargs):
 
3512
        """
 
3513
        PopStyleSheet(self) -> wxRichTextStyleSheet
 
3514
 
 
3515
        Pop style sheet from top of stack
 
3516
        """
 
3517
        return _richtext.RichTextCtrl_PopStyleSheet(*args, **kwargs)
 
3518
 
1387
3519
    def ApplyStyleSheet(*args, **kwargs):
1388
 
        """ApplyStyleSheet(self, wxRichTextStyleSheet styleSheet=None) -> bool"""
 
3520
        """
 
3521
        ApplyStyleSheet(self, wxRichTextStyleSheet styleSheet=None) -> bool
 
3522
 
 
3523
        Apply the style sheet to the buffer, for example if the styles have
 
3524
        changed.
 
3525
        """
1389
3526
        return _richtext.RichTextCtrl_ApplyStyleSheet(*args, **kwargs)
1390
3527
 
1391
3528
    Buffer = property(GetBuffer,doc="See `GetBuffer`") 
1402
3539
    StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") 
1403
3540
    Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") 
1404
3541
_richtext.RichTextCtrl_swigregister(RichTextCtrl)
 
3542
RichTextCtrlNameStr = cvar.RichTextCtrlNameStr
1405
3543
 
1406
3544
def PreRichTextCtrl(*args, **kwargs):
1407
3545
    """PreRichTextCtrl() -> RichTextCtrl"""
1408
3546
    val = _richtext.new_PreRichTextCtrl(*args, **kwargs)
1409
3547
    return val
1410
3548
 
 
3549
#---------------------------------------------------------------------------
 
3550
 
1411
3551
wxEVT_COMMAND_RICHTEXT_LEFT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
1412
3552
wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
1413
3553
wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
1414
3554
wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
1415
3555
wxEVT_COMMAND_RICHTEXT_RETURN = _richtext.wxEVT_COMMAND_RICHTEXT_RETURN
 
3556
wxEVT_COMMAND_RICHTEXT_CHARACTER = _richtext.wxEVT_COMMAND_RICHTEXT_CHARACTER
 
3557
wxEVT_COMMAND_RICHTEXT_DELETE = _richtext.wxEVT_COMMAND_RICHTEXT_DELETE
1416
3558
wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING
1417
3559
wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED
1418
3560
wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING
1419
3561
wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED
1420
 
wxEVT_COMMAND_RICHTEXT_CHARACTER = _richtext.wxEVT_COMMAND_RICHTEXT_CHARACTER
1421
 
wxEVT_COMMAND_RICHTEXT_DELETE = _richtext.wxEVT_COMMAND_RICHTEXT_DELETE
 
3562
wxEVT_COMMAND_RICHTEXT_CONTENT_INSERTED = _richtext.wxEVT_COMMAND_RICHTEXT_CONTENT_INSERTED
 
3563
wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED = _richtext.wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED
 
3564
wxEVT_COMMAND_RICHTEXT_STYLE_CHANGED = _richtext.wxEVT_COMMAND_RICHTEXT_STYLE_CHANGED
 
3565
wxEVT_COMMAND_RICHTEXT_SELECTION_CHANGED = _richtext.wxEVT_COMMAND_RICHTEXT_SELECTION_CHANGED
1422
3566
EVT_RICHTEXT_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK, 1)
1423
3567
EVT_RICHTEXT_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK, 1)
1424
3568
EVT_RICHTEXT_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK, 1)
1425
3569
EVT_RICHTEXT_LEFT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK, 1)
1426
3570
EVT_RICHTEXT_RETURN = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN, 1)
 
3571
EVT_RICHTEXT_CHARACTER = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CHARACTER, 1)
 
3572
EVT_RICHTEXT_DELETE = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_DELETE, 1)
 
3573
 
1427
3574
EVT_RICHTEXT_STYLESHEET_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING, 1)
1428
3575
EVT_RICHTEXT_STYLESHEET_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED, 1)
1429
3576
EVT_RICHTEXT_STYLESHEET_REPLACING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING, 1)
1430
3577
EVT_RICHTEXT_STYLESHEET_REPLACED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED, 1)
1431
 
EVT_RICHTEXT_CHARACTER = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CHARACTER, 1)
1432
 
EVT_RICHTEXT_DELETE = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_DELETE, 1)
 
3578
 
 
3579
EVT_RICHTEXT_CONTENT_INSERTED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CONTENT_INSERTED, 1)
 
3580
EVT_RICHTEXT_CONTENT_DELETED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED, 1)
 
3581
EVT_RICHTEXT_STYLE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLE_CHANGED, 1)
 
3582
EVT_RICHTEXT_SELECTION_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_SELECTION_CHANGED, 1)    
1433
3583
 
1434
3584
class RichTextEvent(_core.NotifyEvent):
1435
3585
    """Proxy of C++ RichTextEvent class"""
1454
3604
        """SetFlags(self, int flags)"""
1455
3605
        return _richtext.RichTextEvent_SetFlags(*args, **kwargs)
1456
3606
 
1457
 
    Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
1458
 
    Index = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`") 
 
3607
    def GetOldStyleSheet(*args, **kwargs):
 
3608
        """GetOldStyleSheet(self) -> wxRichTextStyleSheet"""
 
3609
        return _richtext.RichTextEvent_GetOldStyleSheet(*args, **kwargs)
 
3610
 
 
3611
    def SetOldStyleSheet(*args, **kwargs):
 
3612
        """SetOldStyleSheet(self, wxRichTextStyleSheet sheet)"""
 
3613
        return _richtext.RichTextEvent_SetOldStyleSheet(*args, **kwargs)
 
3614
 
 
3615
    def GetNewStyleSheet(*args, **kwargs):
 
3616
        """GetNewStyleSheet(self) -> wxRichTextStyleSheet"""
 
3617
        return _richtext.RichTextEvent_GetNewStyleSheet(*args, **kwargs)
 
3618
 
 
3619
    def SetNewStyleSheet(*args, **kwargs):
 
3620
        """SetNewStyleSheet(self, wxRichTextStyleSheet sheet)"""
 
3621
        return _richtext.RichTextEvent_SetNewStyleSheet(*args, **kwargs)
 
3622
 
 
3623
    def GetRange(*args, **kwargs):
 
3624
        """GetRange(self) -> RichTextRange"""
 
3625
        return _richtext.RichTextEvent_GetRange(*args, **kwargs)
 
3626
 
 
3627
    def SetRange(*args, **kwargs):
 
3628
        """SetRange(self, RichTextRange range)"""
 
3629
        return _richtext.RichTextEvent_SetRange(*args, **kwargs)
 
3630
 
 
3631
    def GetCharacter(*args, **kwargs):
 
3632
        """GetCharacter(self) -> wxChar"""
 
3633
        return _richtext.RichTextEvent_GetCharacter(*args, **kwargs)
 
3634
 
 
3635
    def SetCharacter(*args, **kwargs):
 
3636
        """SetCharacter(self, wxChar ch)"""
 
3637
        return _richtext.RichTextEvent_SetCharacter(*args, **kwargs)
 
3638
 
 
3639
    Flags = property(GetFlags,SetFlags) 
 
3640
    Index = property(GetPosition,SetPosition) 
 
3641
    OldStyleSheet = property(GetOldStyleSheet,SetOldStyleSheet) 
 
3642
    NewStyleSheet = property(GetNewStyleSheet,SetNewStyleSheet) 
 
3643
    Range = property(GetRange,SetRange) 
 
3644
    Character = property(GetCharacter,SetCharacter) 
1459
3645
_richtext.RichTextEvent_swigregister(RichTextEvent)
1460
3646
 
 
3647
#---------------------------------------------------------------------------
 
3648
 
 
3649
class RichTextHTMLHandler(RichTextFileHandler):
 
3650
    """Proxy of C++ RichTextHTMLHandler class"""
 
3651
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
3652
    __repr__ = _swig_repr
 
3653
    def __init__(self, *args, **kwargs): 
 
3654
        """__init__(self, String name=HtmlName, String ext=HtmlExt, int type=RICHTEXT_TYPE_HTML) -> RichTextHTMLHandler"""
 
3655
        _richtext.RichTextHTMLHandler_swiginit(self,_richtext.new_RichTextHTMLHandler(*args, **kwargs))
 
3656
    def SetTemporaryImageLocations(*args, **kwargs):
 
3657
        """
 
3658
        SetTemporaryImageLocations(self, wxArrayString locations)
 
3659
 
 
3660
        Set the list of image locations generated by the last operation
 
3661
        """
 
3662
        return _richtext.RichTextHTMLHandler_SetTemporaryImageLocations(*args, **kwargs)
 
3663
 
 
3664
    def GetTemporaryImageLocations(*args, **kwargs):
 
3665
        """
 
3666
        GetTemporaryImageLocations(self) -> wxArrayString
 
3667
 
 
3668
        Get the list of image locations generated by the last operation
 
3669
        """
 
3670
        return _richtext.RichTextHTMLHandler_GetTemporaryImageLocations(*args, **kwargs)
 
3671
 
 
3672
    TemporaryImageLocations = property(GetTemporaryImageLocations,SetTemporaryImageLocations) 
 
3673
    def ClearTemporaryImageLocations(*args, **kwargs):
 
3674
        """
 
3675
        ClearTemporaryImageLocations(self)
 
3676
 
 
3677
        Clear the image locations generated by the last operation
 
3678
        """
 
3679
        return _richtext.RichTextHTMLHandler_ClearTemporaryImageLocations(*args, **kwargs)
 
3680
 
 
3681
    def DeleteTemporaryImages(*args, **kwargs):
 
3682
        """
 
3683
        DeleteTemporaryImages(self) -> bool
 
3684
 
 
3685
        Delete the in-memory or temporary files generated by the last operation
 
3686
        """
 
3687
        return _richtext.RichTextHTMLHandler_DeleteTemporaryImages(*args, **kwargs)
 
3688
 
 
3689
    def SetFileCounter(*args, **kwargs):
 
3690
        """
 
3691
        SetFileCounter(int counter)
 
3692
 
 
3693
        Reset the file counter, in case, for example, the same names are required each
 
3694
        time
 
3695
        """
 
3696
        return _richtext.RichTextHTMLHandler_SetFileCounter(*args, **kwargs)
 
3697
 
 
3698
    SetFileCounter = staticmethod(SetFileCounter)
 
3699
    def SetTempDir(*args, **kwargs):
 
3700
        """
 
3701
        SetTempDir(self, String tempDir)
 
3702
 
 
3703
        Set the directory for storing temporary files. If empty, the system temporary
 
3704
        directory will be used.
 
3705
        """
 
3706
        return _richtext.RichTextHTMLHandler_SetTempDir(*args, **kwargs)
 
3707
 
 
3708
    def GetTempDir(*args, **kwargs):
 
3709
        """
 
3710
        GetTempDir(self) -> String
 
3711
 
 
3712
        Get the directory for storing temporary files. If empty, the system temporary
 
3713
        directory will be used.
 
3714
        """
 
3715
        return _richtext.RichTextHTMLHandler_GetTempDir(*args, **kwargs)
 
3716
 
 
3717
    TempDir = property(GetTempDir,SetTempDir) 
 
3718
    def SetFontSizeMapping(*args, **kwargs):
 
3719
        """
 
3720
        SetFontSizeMapping(self, wxArrayInt fontSizeMapping)
 
3721
 
 
3722
        Set mapping from point size to HTML font size. There should be 7 elements, one
 
3723
        for each HTML font size, each element specifying the maximum point size for
 
3724
        that HTML font size. E.g. 8, 10, 13, 17, 22, 29, 100
 
3725
 
 
3726
        """
 
3727
        return _richtext.RichTextHTMLHandler_SetFontSizeMapping(*args, **kwargs)
 
3728
 
 
3729
    def GetFontSizeMapping(*args, **kwargs):
 
3730
        """
 
3731
        GetFontSizeMapping(self) -> wxArrayInt
 
3732
 
 
3733
        Get mapping deom point size to HTML font size.
 
3734
        """
 
3735
        return _richtext.RichTextHTMLHandler_GetFontSizeMapping(*args, **kwargs)
 
3736
 
 
3737
    FontSizeMapping = property(GetFontSizeMapping,SetFontSizeMapping) 
 
3738
_richtext.RichTextHTMLHandler_swigregister(RichTextHTMLHandler)
 
3739
HtmlName = cvar.HtmlName
 
3740
HtmlExt = cvar.HtmlExt
 
3741
 
 
3742
def RichTextHTMLHandler_SetFileCounter(*args, **kwargs):
 
3743
  """
 
3744
    RichTextHTMLHandler_SetFileCounter(int counter)
 
3745
 
 
3746
    Reset the file counter, in case, for example, the same names are required each
 
3747
    time
 
3748
    """
 
3749
  return _richtext.RichTextHTMLHandler_SetFileCounter(*args, **kwargs)
 
3750
 
 
3751
#---------------------------------------------------------------------------
 
3752
 
 
3753
class RichTextXMLHandler(RichTextFileHandler):
 
3754
    """Proxy of C++ RichTextXMLHandler class"""
 
3755
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
3756
    __repr__ = _swig_repr
 
3757
    def __init__(self, *args, **kwargs): 
 
3758
        """__init__(self, String name=XmlName, String ext=XmlExt, int type=RICHTEXT_TYPE_XML) -> RichTextXMLHandler"""
 
3759
        _richtext.RichTextXMLHandler_swiginit(self,_richtext.new_RichTextXMLHandler(*args, **kwargs))
 
3760
_richtext.RichTextXMLHandler_swigregister(RichTextXMLHandler)
 
3761
XmlName = cvar.XmlName
 
3762
XmlExt = cvar.XmlExt
 
3763
 
1461
3764
 
1462
3765