]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/richtext.py
added more properties
[wxWidgets.git] / wxPython / src / mac / richtext.py
CommitLineData
06810ecf
RD
1# This file was created automatically by SWIG 1.3.29.
2# Don't modify this file, modify the SWIG interface instead.
3
4import _richtext
5import new
6new_instancemethod = new.instancemethod
7def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
8 if (name == "thisown"): return self.this.own(value)
9 if (name == "this"):
10 if type(value).__name__ == 'PySwigObject':
11 self.__dict__[name] = value
12 return
13 method = class_type.__swig_setmethods__.get(name,None)
14 if method: return method(self,value)
15 if (not static) or hasattr(self,name):
16 self.__dict__[name] = value
17 else:
18 raise AttributeError("You cannot add attributes to %s" % self)
19
20def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23def _swig_getattr(self,class_type,name):
24 if (name == "thisown"): return self.this.own()
25 method = class_type.__swig_getmethods__.get(name,None)
26 if method: return method(self)
27 raise AttributeError,name
28
29def _swig_repr(self):
30 try: strthis = "proxy of " + self.this.__repr__()
31 except: strthis = ""
32 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
33
34import types
35try:
36 _object = types.ObjectType
37 _newclass = 1
38except AttributeError:
39 class _object : pass
40 _newclass = 0
41del types
42
43
44def _swig_setattr_nondynamic_method(set):
45 def set_attr(self,name,value):
46 if (name == "thisown"): return self.this.own(value)
47 if hasattr(self,name) or (name == "this"):
48 set(self,name,value)
49 else:
50 raise AttributeError("You cannot add attributes to %s" % self)
51 return set_attr
52
53
54USE_TEXTATTREX = _richtext.USE_TEXTATTREX
55import _windows
56import _core
06810ecf
RD
57wx = _core
58__docfilter__ = wx.__DocFilter(globals())
59RE_READONLY = _richtext.RE_READONLY
60RE_MULTILINE = _richtext.RE_MULTILINE
61RICHTEXT_SHIFT_DOWN = _richtext.RICHTEXT_SHIFT_DOWN
62RICHTEXT_CTRL_DOWN = _richtext.RICHTEXT_CTRL_DOWN
63RICHTEXT_ALT_DOWN = _richtext.RICHTEXT_ALT_DOWN
64RICHTEXT_SELECTED = _richtext.RICHTEXT_SELECTED
65RICHTEXT_TAGGED = _richtext.RICHTEXT_TAGGED
66RICHTEXT_FOCUSSED = _richtext.RICHTEXT_FOCUSSED
67RICHTEXT_IS_FOCUS = _richtext.RICHTEXT_IS_FOCUS
68RICHTEXT_TYPE_ANY = _richtext.RICHTEXT_TYPE_ANY
69RICHTEXT_TYPE_TEXT = _richtext.RICHTEXT_TYPE_TEXT
70RICHTEXT_TYPE_XML = _richtext.RICHTEXT_TYPE_XML
71RICHTEXT_TYPE_HTML = _richtext.RICHTEXT_TYPE_HTML
72RICHTEXT_TYPE_RTF = _richtext.RICHTEXT_TYPE_RTF
73RICHTEXT_TYPE_PDF = _richtext.RICHTEXT_TYPE_PDF
74RICHTEXT_FIXED_WIDTH = _richtext.RICHTEXT_FIXED_WIDTH
75RICHTEXT_FIXED_HEIGHT = _richtext.RICHTEXT_FIXED_HEIGHT
76RICHTEXT_VARIABLE_WIDTH = _richtext.RICHTEXT_VARIABLE_WIDTH
77RICHTEXT_VARIABLE_HEIGHT = _richtext.RICHTEXT_VARIABLE_HEIGHT
78RICHTEXT_HITTEST_NONE = _richtext.RICHTEXT_HITTEST_NONE
79RICHTEXT_HITTEST_BEFORE = _richtext.RICHTEXT_HITTEST_BEFORE
80RICHTEXT_HITTEST_AFTER = _richtext.RICHTEXT_HITTEST_AFTER
81RICHTEXT_HITTEST_ON = _richtext.RICHTEXT_HITTEST_ON
82RICHTEXT_FORMATTED = _richtext.RICHTEXT_FORMATTED
83RICHTEXT_UNFORMATTED = _richtext.RICHTEXT_UNFORMATTED
84TEXT_ATTR_TEXT_COLOUR = _richtext.TEXT_ATTR_TEXT_COLOUR
85TEXT_ATTR_BACKGROUND_COLOUR = _richtext.TEXT_ATTR_BACKGROUND_COLOUR
86TEXT_ATTR_FONT_FACE = _richtext.TEXT_ATTR_FONT_FACE
87TEXT_ATTR_FONT_SIZE = _richtext.TEXT_ATTR_FONT_SIZE
88TEXT_ATTR_FONT_WEIGHT = _richtext.TEXT_ATTR_FONT_WEIGHT
89TEXT_ATTR_FONT_ITALIC = _richtext.TEXT_ATTR_FONT_ITALIC
90TEXT_ATTR_FONT_UNDERLINE = _richtext.TEXT_ATTR_FONT_UNDERLINE
91TEXT_ATTR_FONT = _richtext.TEXT_ATTR_FONT
92TEXT_ATTR_ALIGNMENT = _richtext.TEXT_ATTR_ALIGNMENT
93TEXT_ATTR_LEFT_INDENT = _richtext.TEXT_ATTR_LEFT_INDENT
94TEXT_ATTR_RIGHT_INDENT = _richtext.TEXT_ATTR_RIGHT_INDENT
95TEXT_ATTR_TABS = _richtext.TEXT_ATTR_TABS
96TEXT_ATTR_PARA_SPACING_AFTER = _richtext.TEXT_ATTR_PARA_SPACING_AFTER
97TEXT_ATTR_PARA_SPACING_BEFORE = _richtext.TEXT_ATTR_PARA_SPACING_BEFORE
98TEXT_ATTR_LINE_SPACING = _richtext.TEXT_ATTR_LINE_SPACING
99TEXT_ATTR_CHARACTER_STYLE_NAME = _richtext.TEXT_ATTR_CHARACTER_STYLE_NAME
100TEXT_ATTR_PARAGRAPH_STYLE_NAME = _richtext.TEXT_ATTR_PARAGRAPH_STYLE_NAME
101TEXT_ATTR_BULLET_STYLE = _richtext.TEXT_ATTR_BULLET_STYLE
102TEXT_ATTR_BULLET_NUMBER = _richtext.TEXT_ATTR_BULLET_NUMBER
103TEXT_ATTR_BULLET_SYMBOL = _richtext.TEXT_ATTR_BULLET_SYMBOL
104TEXT_ATTR_BULLET_STYLE_NONE = _richtext.TEXT_ATTR_BULLET_STYLE_NONE
105TEXT_ATTR_BULLET_STYLE_ARABIC = _richtext.TEXT_ATTR_BULLET_STYLE_ARABIC
106TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = _richtext.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
107TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER = _richtext.TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
108TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER = _richtext.TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
109TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER = _richtext.TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
110TEXT_ATTR_BULLET_STYLE_SYMBOL = _richtext.TEXT_ATTR_BULLET_STYLE_SYMBOL
111TEXT_ATTR_BULLET_STYLE_BITMAP = _richtext.TEXT_ATTR_BULLET_STYLE_BITMAP
112TEXT_ATTR_BULLET_STYLE_PARENTHESES = _richtext.TEXT_ATTR_BULLET_STYLE_PARENTHESES
113TEXT_ATTR_BULLET_STYLE_PERIOD = _richtext.TEXT_ATTR_BULLET_STYLE_PERIOD
114TEXT_ATTR_LINE_SPACING_NORMAL = _richtext.TEXT_ATTR_LINE_SPACING_NORMAL
115TEXT_ATTR_LINE_SPACING_HALF = _richtext.TEXT_ATTR_LINE_SPACING_HALF
116TEXT_ATTR_LINE_SPACING_TWICE = _richtext.TEXT_ATTR_LINE_SPACING_TWICE
117TEXT_ALIGNMENT_DEFAULT = _richtext.TEXT_ALIGNMENT_DEFAULT
118TEXT_ALIGNMENT_LEFT = _richtext.TEXT_ALIGNMENT_LEFT
119TEXT_ALIGNMENT_CENTRE = _richtext.TEXT_ALIGNMENT_CENTRE
120TEXT_ALIGNMENT_CENTER = _richtext.TEXT_ALIGNMENT_CENTER
121TEXT_ALIGNMENT_RIGHT = _richtext.TEXT_ALIGNMENT_RIGHT
122TEXT_ALIGNMENT_JUSTIFIED = _richtext.TEXT_ALIGNMENT_JUSTIFIED
123class RichTextRange(object):
124 """
125 RichTextRange is a data structure that represents a range of text
126 within a `RichTextCtrl`. It simply contains integer ``start`` and
127 ``end`` properties and a few operations useful for dealing with
128 ranges. In most places in wxPython where a RichTextRange is expected a
129 2-tuple containing (start, end) can be used instead.
130 """
131 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
132 __repr__ = _swig_repr
133 def __init__(self, *args, **kwargs):
134 """
135 __init__(self, long start=0, long end=0) -> RichTextRange
136
137 Creates a new range object.
138 """
139 _richtext.RichTextRange_swiginit(self,_richtext.new_RichTextRange(*args, **kwargs))
140 __swig_destroy__ = _richtext.delete_RichTextRange
141 __del__ = lambda self : None;
142 def __eq__(*args, **kwargs):
143 """
144 __eq__(self, PyObject other) -> bool
145
146 Test for equality of RichTextRange objects.
147 """
148 return _richtext.RichTextRange___eq__(*args, **kwargs)
149
150 def __sub__(*args, **kwargs):
151 """__sub__(self, RichTextRange range) -> RichTextRange"""
152 return _richtext.RichTextRange___sub__(*args, **kwargs)
153
154 def __add__(*args, **kwargs):
155 """__add__(self, RichTextRange range) -> RichTextRange"""
156 return _richtext.RichTextRange___add__(*args, **kwargs)
157
158 def SetRange(*args, **kwargs):
159 """SetRange(self, long start, long end)"""
160 return _richtext.RichTextRange_SetRange(*args, **kwargs)
161
162 def SetStart(*args, **kwargs):
163 """SetStart(self, long start)"""
164 return _richtext.RichTextRange_SetStart(*args, **kwargs)
165
166 def GetStart(*args, **kwargs):
167 """GetStart(self) -> long"""
168 return _richtext.RichTextRange_GetStart(*args, **kwargs)
169
170 start = property(GetStart, SetStart)
171 def SetEnd(*args, **kwargs):
172 """SetEnd(self, long end)"""
173 return _richtext.RichTextRange_SetEnd(*args, **kwargs)
174
175 def GetEnd(*args, **kwargs):
176 """GetEnd(self) -> long"""
177 return _richtext.RichTextRange_GetEnd(*args, **kwargs)
178
179 end = property(GetEnd, SetEnd)
180 def IsOutside(*args, **kwargs):
181 """
182 IsOutside(self, RichTextRange range) -> bool
183
184 Returns true if this range is completely outside 'range'
185 """
186 return _richtext.RichTextRange_IsOutside(*args, **kwargs)
187
188 def IsWithin(*args, **kwargs):
189 """
190 IsWithin(self, RichTextRange range) -> bool
191
192 Returns true if this range is completely within 'range'
193 """
194 return _richtext.RichTextRange_IsWithin(*args, **kwargs)
195
196 def Contains(*args, **kwargs):
197 """
198 Contains(self, long pos) -> bool
199
200 Returns true if the given position is within this range. Allow for the
201 possibility of an empty range - assume the position is within this
202 empty range.
203 """
204 return _richtext.RichTextRange_Contains(*args, **kwargs)
205
206 def LimitTo(*args, **kwargs):
207 """
208 LimitTo(self, RichTextRange range) -> bool
209
210 Limit this range to be within 'range'
211 """
212 return _richtext.RichTextRange_LimitTo(*args, **kwargs)
213
214 def GetLength(*args, **kwargs):
215 """
216 GetLength(self) -> long
217
218 Gets the length of the range
219 """
220 return _richtext.RichTextRange_GetLength(*args, **kwargs)
221
222 def Swap(*args, **kwargs):
223 """
224 Swap(self)
225
226 Swaps the start and end
227 """
228 return _richtext.RichTextRange_Swap(*args, **kwargs)
229
230 def Get(*args, **kwargs):
231 """
232 Get() -> (start,end)
233
234 Returns the start and end properties as a tuple.
235 """
236 return _richtext.RichTextRange_Get(*args, **kwargs)
237
238 def __str__(self): return str(self.Get())
239 def __repr__(self): return 'RichTextRange'+str(self.Get())
240 def __len__(self): return len(self.Get())
241 def __getitem__(self, index): return self.Get()[index]
242 def __setitem__(self, index, val):
243 if index == 0: self.start = val
244 elif index == 1: self.end = val
245 else: raise IndexError
246 def __nonzero__(self): return self.Get() != (0,0)
247 __safe_for_unpickling__ = True
248 def __reduce__(self): return (RichTextRange, self.Get())
249
250_richtext.RichTextRange_swigregister(RichTextRange)
251
252class RichTextAttr(object):
253 """
254 The RichTextAttr class stored information about the various attributes
255 for a block of text, including font, colour, indents, alignments, and
256 etc.
257 """
258 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
259 __repr__ = _swig_repr
260 def __init__(self, *args, **kwargs):
261 """
92515dfc 262 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
06810ecf
RD
263 int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
264
265 The RichTextAttr class stored information about the various attributes
266 for a block of text, including font, colour, indents, alignments, and
267 etc.
268 """
269 _richtext.RichTextAttr_swiginit(self,_richtext.new_RichTextAttr(*args, **kwargs))
270 __swig_destroy__ = _richtext.delete_RichTextAttr
271 __del__ = lambda self : None;
272 def CreateFont(*args, **kwargs):
273 """CreateFont(self) -> Font"""
274 return _richtext.RichTextAttr_CreateFont(*args, **kwargs)
275
276 def GetFontAttributes(*args, **kwargs):
277 """GetFontAttributes(self, Font font) -> bool"""
278 return _richtext.RichTextAttr_GetFontAttributes(*args, **kwargs)
279
280 def GetFont(self):
281 return self.CreateFont()
282 def SetFont(self, font):
283 return self.GetFontAttributes(font)
284
285 def SetTextColour(*args, **kwargs):
286 """SetTextColour(self, Colour colText)"""
287 return _richtext.RichTextAttr_SetTextColour(*args, **kwargs)
288
289 def SetBackgroundColour(*args, **kwargs):
290 """SetBackgroundColour(self, Colour colBack)"""
291 return _richtext.RichTextAttr_SetBackgroundColour(*args, **kwargs)
292
293 def SetAlignment(*args, **kwargs):
294 """SetAlignment(self, int alignment)"""
295 return _richtext.RichTextAttr_SetAlignment(*args, **kwargs)
296
297 def SetTabs(*args, **kwargs):
298 """SetTabs(self, wxArrayInt tabs)"""
299 return _richtext.RichTextAttr_SetTabs(*args, **kwargs)
300
301 def SetLeftIndent(*args, **kwargs):
302 """SetLeftIndent(self, int indent, int subIndent=0)"""
303 return _richtext.RichTextAttr_SetLeftIndent(*args, **kwargs)
304
305 def SetRightIndent(*args, **kwargs):
306 """SetRightIndent(self, int indent)"""
307 return _richtext.RichTextAttr_SetRightIndent(*args, **kwargs)
308
309 def SetFontSize(*args, **kwargs):
310 """SetFontSize(self, int pointSize)"""
311 return _richtext.RichTextAttr_SetFontSize(*args, **kwargs)
312
313 def SetFontStyle(*args, **kwargs):
314 """SetFontStyle(self, int fontStyle)"""
315 return _richtext.RichTextAttr_SetFontStyle(*args, **kwargs)
316
317 def SetFontWeight(*args, **kwargs):
318 """SetFontWeight(self, int fontWeight)"""
319 return _richtext.RichTextAttr_SetFontWeight(*args, **kwargs)
320
321 def SetFontFaceName(*args, **kwargs):
322 """SetFontFaceName(self, String faceName)"""
323 return _richtext.RichTextAttr_SetFontFaceName(*args, **kwargs)
324
325 def SetFontUnderlined(*args, **kwargs):
326 """SetFontUnderlined(self, bool underlined)"""
327 return _richtext.RichTextAttr_SetFontUnderlined(*args, **kwargs)
328
329 def SetFlags(*args, **kwargs):
330 """SetFlags(self, long flags)"""
331 return _richtext.RichTextAttr_SetFlags(*args, **kwargs)
332
333 def SetCharacterStyleName(*args, **kwargs):
334 """SetCharacterStyleName(self, String name)"""
335 return _richtext.RichTextAttr_SetCharacterStyleName(*args, **kwargs)
336
337 def SetParagraphStyleName(*args, **kwargs):
338 """SetParagraphStyleName(self, String name)"""
339 return _richtext.RichTextAttr_SetParagraphStyleName(*args, **kwargs)
340
341 def SetParagraphSpacingAfter(*args, **kwargs):
342 """SetParagraphSpacingAfter(self, int spacing)"""
343 return _richtext.RichTextAttr_SetParagraphSpacingAfter(*args, **kwargs)
344
345 def SetParagraphSpacingBefore(*args, **kwargs):
346 """SetParagraphSpacingBefore(self, int spacing)"""
347 return _richtext.RichTextAttr_SetParagraphSpacingBefore(*args, **kwargs)
348
349 def SetLineSpacing(*args, **kwargs):
350 """SetLineSpacing(self, int spacing)"""
351 return _richtext.RichTextAttr_SetLineSpacing(*args, **kwargs)
352
353 def SetBulletStyle(*args, **kwargs):
354 """SetBulletStyle(self, int style)"""
355 return _richtext.RichTextAttr_SetBulletStyle(*args, **kwargs)
356
357 def SetBulletNumber(*args, **kwargs):
358 """SetBulletNumber(self, int n)"""
359 return _richtext.RichTextAttr_SetBulletNumber(*args, **kwargs)
360
361 def SetBulletSymbol(*args, **kwargs):
362 """SetBulletSymbol(self, wxChar symbol)"""
363 return _richtext.RichTextAttr_SetBulletSymbol(*args, **kwargs)
364
365 def GetTextColour(*args, **kwargs):
366 """GetTextColour(self) -> Colour"""
367 return _richtext.RichTextAttr_GetTextColour(*args, **kwargs)
368
369 def GetBackgroundColour(*args, **kwargs):
370 """GetBackgroundColour(self) -> Colour"""
371 return _richtext.RichTextAttr_GetBackgroundColour(*args, **kwargs)
372
373 def GetAlignment(*args, **kwargs):
374 """GetAlignment(self) -> int"""
375 return _richtext.RichTextAttr_GetAlignment(*args, **kwargs)
376
377 def GetTabs(*args, **kwargs):
378 """GetTabs(self) -> wxArrayInt"""
379 return _richtext.RichTextAttr_GetTabs(*args, **kwargs)
380
381 def GetLeftIndent(*args, **kwargs):
382 """GetLeftIndent(self) -> long"""
383 return _richtext.RichTextAttr_GetLeftIndent(*args, **kwargs)
384
385 def GetLeftSubIndent(*args, **kwargs):
386 """GetLeftSubIndent(self) -> long"""
387 return _richtext.RichTextAttr_GetLeftSubIndent(*args, **kwargs)
388
389 def GetRightIndent(*args, **kwargs):
390 """GetRightIndent(self) -> long"""
391 return _richtext.RichTextAttr_GetRightIndent(*args, **kwargs)
392
393 def GetFlags(*args, **kwargs):
394 """GetFlags(self) -> long"""
395 return _richtext.RichTextAttr_GetFlags(*args, **kwargs)
396
397 def GetFontSize(*args, **kwargs):
398 """GetFontSize(self) -> int"""
399 return _richtext.RichTextAttr_GetFontSize(*args, **kwargs)
400
401 def GetFontStyle(*args, **kwargs):
402 """GetFontStyle(self) -> int"""
403 return _richtext.RichTextAttr_GetFontStyle(*args, **kwargs)
404
405 def GetFontWeight(*args, **kwargs):
406 """GetFontWeight(self) -> int"""
407 return _richtext.RichTextAttr_GetFontWeight(*args, **kwargs)
408
409 def GetFontUnderlined(*args, **kwargs):
410 """GetFontUnderlined(self) -> bool"""
411 return _richtext.RichTextAttr_GetFontUnderlined(*args, **kwargs)
412
413 def GetFontFaceName(*args, **kwargs):
414 """GetFontFaceName(self) -> String"""
415 return _richtext.RichTextAttr_GetFontFaceName(*args, **kwargs)
416
417 def GetCharacterStyleName(*args, **kwargs):
418 """GetCharacterStyleName(self) -> String"""
419 return _richtext.RichTextAttr_GetCharacterStyleName(*args, **kwargs)
420
421 def GetParagraphStyleName(*args, **kwargs):
422 """GetParagraphStyleName(self) -> String"""
423 return _richtext.RichTextAttr_GetParagraphStyleName(*args, **kwargs)
424
425 def GetParagraphSpacingAfter(*args, **kwargs):
426 """GetParagraphSpacingAfter(self) -> int"""
427 return _richtext.RichTextAttr_GetParagraphSpacingAfter(*args, **kwargs)
428
429 def GetParagraphSpacingBefore(*args, **kwargs):
430 """GetParagraphSpacingBefore(self) -> int"""
431 return _richtext.RichTextAttr_GetParagraphSpacingBefore(*args, **kwargs)
432
433 def GetLineSpacing(*args, **kwargs):
434 """GetLineSpacing(self) -> int"""
435 return _richtext.RichTextAttr_GetLineSpacing(*args, **kwargs)
436
437 def GetBulletStyle(*args, **kwargs):
438 """GetBulletStyle(self) -> int"""
439 return _richtext.RichTextAttr_GetBulletStyle(*args, **kwargs)
440
441 def GetBulletNumber(*args, **kwargs):
442 """GetBulletNumber(self) -> int"""
443 return _richtext.RichTextAttr_GetBulletNumber(*args, **kwargs)
444
445 def GetBulletSymbol(*args, **kwargs):
446 """GetBulletSymbol(self) -> wxChar"""
447 return _richtext.RichTextAttr_GetBulletSymbol(*args, **kwargs)
448
449 def HasTextColour(*args, **kwargs):
450 """HasTextColour(self) -> bool"""
451 return _richtext.RichTextAttr_HasTextColour(*args, **kwargs)
452
453 def HasBackgroundColour(*args, **kwargs):
454 """HasBackgroundColour(self) -> bool"""
455 return _richtext.RichTextAttr_HasBackgroundColour(*args, **kwargs)
456
457 def HasAlignment(*args, **kwargs):
458 """HasAlignment(self) -> bool"""
459 return _richtext.RichTextAttr_HasAlignment(*args, **kwargs)
460
461 def HasTabs(*args, **kwargs):
462 """HasTabs(self) -> bool"""
463 return _richtext.RichTextAttr_HasTabs(*args, **kwargs)
464
465 def HasLeftIndent(*args, **kwargs):
466 """HasLeftIndent(self) -> bool"""
467 return _richtext.RichTextAttr_HasLeftIndent(*args, **kwargs)
468
469 def HasRightIndent(*args, **kwargs):
470 """HasRightIndent(self) -> bool"""
471 return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
472
473 def HasWeight(*args, **kwargs):
474 """HasWeight(self) -> bool"""
475 return _richtext.RichTextAttr_HasWeight(*args, **kwargs)
476
477 def HasSize(*args, **kwargs):
478 """HasSize(self) -> bool"""
479 return _richtext.RichTextAttr_HasSize(*args, **kwargs)
480
481 def HasItalic(*args, **kwargs):
482 """HasItalic(self) -> bool"""
483 return _richtext.RichTextAttr_HasItalic(*args, **kwargs)
484
485 def HasUnderlined(*args, **kwargs):
486 """HasUnderlined(self) -> bool"""
487 return _richtext.RichTextAttr_HasUnderlined(*args, **kwargs)
488
489 def HasFaceName(*args, **kwargs):
490 """HasFaceName(self) -> bool"""
491 return _richtext.RichTextAttr_HasFaceName(*args, **kwargs)
492
493 def HasFont(*args, **kwargs):
494 """HasFont(self) -> bool"""
495 return _richtext.RichTextAttr_HasFont(*args, **kwargs)
496
497 def HasParagraphSpacingAfter(*args, **kwargs):
498 """HasParagraphSpacingAfter(self) -> bool"""
499 return _richtext.RichTextAttr_HasParagraphSpacingAfter(*args, **kwargs)
500
501 def HasParagraphSpacingBefore(*args, **kwargs):
502 """HasParagraphSpacingBefore(self) -> bool"""
503 return _richtext.RichTextAttr_HasParagraphSpacingBefore(*args, **kwargs)
504
505 def HasLineSpacing(*args, **kwargs):
506 """HasLineSpacing(self) -> bool"""
507 return _richtext.RichTextAttr_HasLineSpacing(*args, **kwargs)
508
509 def HasCharacterStyleName(*args, **kwargs):
510 """HasCharacterStyleName(self) -> bool"""
511 return _richtext.RichTextAttr_HasCharacterStyleName(*args, **kwargs)
512
513 def HasParagraphStyleName(*args, **kwargs):
514 """HasParagraphStyleName(self) -> bool"""
515 return _richtext.RichTextAttr_HasParagraphStyleName(*args, **kwargs)
516
517 def HasBulletStyle(*args, **kwargs):
518 """HasBulletStyle(self) -> bool"""
519 return _richtext.RichTextAttr_HasBulletStyle(*args, **kwargs)
520
521 def HasBulletNumber(*args, **kwargs):
522 """HasBulletNumber(self) -> bool"""
523 return _richtext.RichTextAttr_HasBulletNumber(*args, **kwargs)
524
525 def HasBulletSymbol(*args, **kwargs):
526 """HasBulletSymbol(self) -> bool"""
527 return _richtext.RichTextAttr_HasBulletSymbol(*args, **kwargs)
528
529 def HasFlag(*args, **kwargs):
530 """HasFlag(self, long flag) -> bool"""
531 return _richtext.RichTextAttr_HasFlag(*args, **kwargs)
532
533 def IsCharacterStyle(*args, **kwargs):
534 """IsCharacterStyle(self) -> bool"""
535 return _richtext.RichTextAttr_IsCharacterStyle(*args, **kwargs)
536
537 def IsParagraphStyle(*args, **kwargs):
538 """IsParagraphStyle(self) -> bool"""
539 return _richtext.RichTextAttr_IsParagraphStyle(*args, **kwargs)
540
541 def IsDefault(*args, **kwargs):
542 """IsDefault(self) -> bool"""
543 return _richtext.RichTextAttr_IsDefault(*args, **kwargs)
544
545_richtext.RichTextAttr_swigregister(RichTextAttr)
546cvar = _richtext.cvar
547RICHTEXT_ALL = cvar.RICHTEXT_ALL
548RICHTEXT_NONE = cvar.RICHTEXT_NONE
549
550TEXT_ATTR_CHARACTER = _richtext.TEXT_ATTR_CHARACTER
551TEXT_ATTR_PARAGRAPH = _richtext.TEXT_ATTR_PARAGRAPH
552TEXT_ATTR_ALL = _richtext.TEXT_ATTR_ALL
553class RichTextCtrl(_windows.ScrolledWindow):
554 """Proxy of C++ RichTextCtrl class"""
555 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
556 __repr__ = _swig_repr
557 def __init__(self, *args, **kwargs):
558 """
0ef86618
RD
559 __init__(self, Window parent, int id=-1, String value=EmptyString,
560 Point pos=DefaultPosition, Size size=DefaultSize,
561 long style=RE_MULTILINE) -> RichTextCtrl
06810ecf
RD
562 """
563 _richtext.RichTextCtrl_swiginit(self,_richtext.new_RichTextCtrl(*args, **kwargs))
564 self._setOORInfo(self)
565
566 def Create(*args, **kwargs):
567 """
0ef86618
RD
568 Create(self, Window parent, int id=-1, String value=EmptyString,
569 Point pos=DefaultPosition, Size size=DefaultSize,
570 long style=RE_MULTILINE) -> bool
06810ecf
RD
571 """
572 return _richtext.RichTextCtrl_Create(*args, **kwargs)
573
574 def GetValue(*args, **kwargs):
575 """GetValue(self) -> String"""
576 return _richtext.RichTextCtrl_GetValue(*args, **kwargs)
577
578 def SetValue(*args, **kwargs):
579 """SetValue(self, String value)"""
580 return _richtext.RichTextCtrl_SetValue(*args, **kwargs)
581
582 def GetRange(*args, **kwargs):
583 """GetRange(self, long from, long to) -> String"""
584 return _richtext.RichTextCtrl_GetRange(*args, **kwargs)
585
586 def GetLineLength(*args, **kwargs):
587 """GetLineLength(self, long lineNo) -> int"""
588 return _richtext.RichTextCtrl_GetLineLength(*args, **kwargs)
589
590 def GetLineText(*args, **kwargs):
591 """GetLineText(self, long lineNo) -> String"""
592 return _richtext.RichTextCtrl_GetLineText(*args, **kwargs)
593
594 def GetNumberOfLines(*args, **kwargs):
595 """GetNumberOfLines(self) -> int"""
596 return _richtext.RichTextCtrl_GetNumberOfLines(*args, **kwargs)
597
598 def IsModified(*args, **kwargs):
599 """IsModified(self) -> bool"""
600 return _richtext.RichTextCtrl_IsModified(*args, **kwargs)
601
602 def IsEditable(*args, **kwargs):
603 """IsEditable(self) -> bool"""
604 return _richtext.RichTextCtrl_IsEditable(*args, **kwargs)
605
606 def IsSingleLine(*args, **kwargs):
607 """IsSingleLine(self) -> bool"""
608 return _richtext.RichTextCtrl_IsSingleLine(*args, **kwargs)
609
610 def IsMultiLine(*args, **kwargs):
611 """IsMultiLine(self) -> bool"""
612 return _richtext.RichTextCtrl_IsMultiLine(*args, **kwargs)
613
614 def GetSelection(*args, **kwargs):
615 """
616 GetSelection() --> (start, end)
617
618 Returns the start and end positions of the current selection. If the
619 values are the same then there is no selection.
620 """
621 return _richtext.RichTextCtrl_GetSelection(*args, **kwargs)
622
623 def GetStringSelection(*args, **kwargs):
624 """GetStringSelection(self) -> String"""
625 return _richtext.RichTextCtrl_GetStringSelection(*args, **kwargs)
626
627 def GetFilename(*args, **kwargs):
628 """GetFilename(self) -> String"""
629 return _richtext.RichTextCtrl_GetFilename(*args, **kwargs)
630
631 def SetFilename(*args, **kwargs):
632 """SetFilename(self, String filename)"""
633 return _richtext.RichTextCtrl_SetFilename(*args, **kwargs)
634
635 def SetDelayedLayoutThreshold(*args, **kwargs):
636 """
637 SetDelayedLayoutThreshold(self, long threshold)
638
639 Set the threshold in character positions for doing layout optimization
640 during sizing.
641 """
642 return _richtext.RichTextCtrl_SetDelayedLayoutThreshold(*args, **kwargs)
643
644 def GetDelayedLayoutThreshold(*args, **kwargs):
645 """
646 GetDelayedLayoutThreshold(self) -> long
647
648 Get the threshold in character positions for doing layout optimization
649 during sizing.
650 """
651 return _richtext.RichTextCtrl_GetDelayedLayoutThreshold(*args, **kwargs)
652
653 def Clear(*args, **kwargs):
654 """Clear(self)"""
655 return _richtext.RichTextCtrl_Clear(*args, **kwargs)
656
657 def Replace(*args, **kwargs):
658 """Replace(self, long from, long to, String value)"""
659 return _richtext.RichTextCtrl_Replace(*args, **kwargs)
660
661 def Remove(*args, **kwargs):
662 """Remove(self, long from, long to)"""
663 return _richtext.RichTextCtrl_Remove(*args, **kwargs)
664
665 def LoadFile(*args, **kwargs):
666 """
667 LoadFile(self, String file, int type=RICHTEXT_TYPE_ANY) -> bool
668
669 Load the contents of the document from the given filename.
670 """
671 return _richtext.RichTextCtrl_LoadFile(*args, **kwargs)
672
673 def SaveFile(*args, **kwargs):
674 """
675 SaveFile(self, String file=EmptyString, int type=RICHTEXT_TYPE_ANY) -> bool
676
677 Save the contents of the document to the given filename, or if the
1d5ee749 678 empty string is passed then to the filename set with `SetFilename`.
06810ecf
RD
679 """
680 return _richtext.RichTextCtrl_SaveFile(*args, **kwargs)
681
682 def MarkDirty(*args, **kwargs):
683 """
684 MarkDirty(self)
685
686 Sets the dirty flag, meaning that the contents of the control have
687 changed and need to be saved.
688 """
689 return _richtext.RichTextCtrl_MarkDirty(*args, **kwargs)
690
691 def DiscardEdits(*args, **kwargs):
692 """
693 DiscardEdits(self)
694
695 Clears the dirty flag.
696 :see: `MarkDirty`
697 """
698 return _richtext.RichTextCtrl_DiscardEdits(*args, **kwargs)
699
700 def SetMaxLength(*args, **kwargs):
701 """
702 SetMaxLength(self, unsigned long len)
703
704 Set the max number of characters which may be entered in a single line
705 text control.
706 """
707 return _richtext.RichTextCtrl_SetMaxLength(*args, **kwargs)
708
709 def WriteText(*args, **kwargs):
710 """
711 WriteText(self, String text)
712
713 Insert text at the current position.
714 """
715 return _richtext.RichTextCtrl_WriteText(*args, **kwargs)
716
717 def AppendText(*args, **kwargs):
718 """
719 AppendText(self, String text)
720
721 Append text to the end of the document.
722 """
723 return _richtext.RichTextCtrl_AppendText(*args, **kwargs)
724
725 def SetStyle(*args, **kwargs):
726 """
727 SetStyle(self, RichTextRange range, RichTextAttr style) -> bool
728
729 Set the style for the text in ``range`` to ``style``
730 """
731 return _richtext.RichTextCtrl_SetStyle(*args, **kwargs)
732
733 def GetStyle(*args, **kwargs):
734 """
735 GetStyle(self, long position, RichTextAttr style) -> bool
736
737 Retrieve the style used at the given position. Copies the style
738 values at ``position`` into the ``style`` parameter returns ``True``
739 if successful. Returns ``False`` otherwise.
740 """
741 return _richtext.RichTextCtrl_GetStyle(*args, **kwargs)
742
743 def SetDefaultStyle(*args, **kwargs):
744 """
745 SetDefaultStyle(self, RichTextAttr style) -> bool
746
747 Set the style used by default for the rich text document.
748 """
749 return _richtext.RichTextCtrl_SetDefaultStyle(*args, **kwargs)
750
751 def GetDefaultStyle(*args, **kwargs):
752 """
753 GetDefaultStyle(self) -> RichTextAttr
754
755 Retrieves a copy of the default style object.
756 """
757 return _richtext.RichTextCtrl_GetDefaultStyle(*args, **kwargs)
758
759 def XYToPosition(*args, **kwargs):
760 """
761 XYToPosition(self, long x, long y) -> long
762
763 Translate a col,row coordinants into a document position.
764 """
765 return _richtext.RichTextCtrl_XYToPosition(*args, **kwargs)
766
767 def PositionToXY(*args, **kwargs):
768 """
769 PositionToXY(self, long pos) --> (x, y)
770
771 Retrieves the col,row for the given position within the document
772 """
773 return _richtext.RichTextCtrl_PositionToXY(*args, **kwargs)
774
775 def ShowPosition(*args, **kwargs):
776 """
777 ShowPosition(self, long position)
778
779 Ensure that the given position in the document is visible.
780 """
781 return _richtext.RichTextCtrl_ShowPosition(*args, **kwargs)
782
783 def HitTest(*args, **kwargs):
784 """
785 HitTest(self, Point pt) --> (result, pos)
786
787 Returns the character position at the given point in pixels. Note
788 that ``pt`` should be given in device coordinates, and not be adjusted
789 for the client area origin nor for scrolling. The return value is a
790 tuple of the hit test result and the position.
791 """
792 return _richtext.RichTextCtrl_HitTest(*args, **kwargs)
793
794 def HitTestXY(*args, **kwargs):
795 """
796 HitTestRC(self, Point pt) --> (result, col, row)
797
798 Returns the column and row of the given point in pixels. Note that
799 ``pt`` should be given in device coordinates, and not be adjusted for
800 the client area origin nor for scrolling. The return value is a tuple
801 of the hit test result and the column and row values.
802 """
803 return _richtext.RichTextCtrl_HitTestXY(*args, **kwargs)
804
805 def Copy(*args, **kwargs):
806 """
807 Copy(self)
808
809 Copies the selected text to the clipboard.
810 """
811 return _richtext.RichTextCtrl_Copy(*args, **kwargs)
812
813 def Cut(*args, **kwargs):
814 """
815 Cut(self)
816
817 Copies the selected text to the clipboard and removes the selection.
818 """
819 return _richtext.RichTextCtrl_Cut(*args, **kwargs)
820
821 def Paste(*args, **kwargs):
822 """
823 Paste(self)
824
825 Pastes text from the clipboard into the document at the current
826 insertion point.
827 """
828 return _richtext.RichTextCtrl_Paste(*args, **kwargs)
829
830 def DeleteSelection(*args, **kwargs):
831 """
832 DeleteSelection(self)
833
834 Remove the current selection.
835 """
836 return _richtext.RichTextCtrl_DeleteSelection(*args, **kwargs)
837
838 def CanCopy(*args, **kwargs):
839 """
840 CanCopy(self) -> bool
841
842 Returns ``True`` if the selection can be copied to the clipboard.
843 """
844 return _richtext.RichTextCtrl_CanCopy(*args, **kwargs)
845
846 def CanCut(*args, **kwargs):
847 """
848 CanCut(self) -> bool
849
850 Returns ``True`` if the selection can be cut to the clipboard.
851 """
852 return _richtext.RichTextCtrl_CanCut(*args, **kwargs)
853
854 def CanPaste(*args, **kwargs):
855 """
856 CanPaste(self) -> bool
857
858 Returns ``True`` if the current contents of the clipboard can be
859 pasted into the document.
860 """
861 return _richtext.RichTextCtrl_CanPaste(*args, **kwargs)
862
863 def CanDeleteSelection(*args, **kwargs):
864 """
865 CanDeleteSelection(self) -> bool
866
867 Returns ``True`` if the selection can be removed from the document.
868 """
869 return _richtext.RichTextCtrl_CanDeleteSelection(*args, **kwargs)
870
871 def Undo(*args, **kwargs):
872 """
873 Undo(self)
874
875 If the last operation can be undone, undoes the last operation.
876 """
877 return _richtext.RichTextCtrl_Undo(*args, **kwargs)
878
879 def Redo(*args, **kwargs):
880 """
881 Redo(self)
882
883 If the last operation can be redone, redoes the last operation.
884 """
885 return _richtext.RichTextCtrl_Redo(*args, **kwargs)
886
887 def CanUndo(*args, **kwargs):
888 """
889 CanUndo(self) -> bool
890
891 Returns ``True`` if the last operation can be undone.
892 """
893 return _richtext.RichTextCtrl_CanUndo(*args, **kwargs)
894
895 def CanRedo(*args, **kwargs):
896 """
897 CanRedo(self) -> bool
898
899 Returns ``True`` if the last operation can be redone.
900 """
901 return _richtext.RichTextCtrl_CanRedo(*args, **kwargs)
902
903 def SetInsertionPoint(*args, **kwargs):
904 """
905 SetInsertionPoint(self, long pos)
906
907 Sets the insertion point at the given position.
908 """
909 return _richtext.RichTextCtrl_SetInsertionPoint(*args, **kwargs)
910
911 def SetInsertionPointEnd(*args, **kwargs):
912 """
913 SetInsertionPointEnd(self)
914
915 Moves the insertion point to the end of the document.
916 """
917 return _richtext.RichTextCtrl_SetInsertionPointEnd(*args, **kwargs)
918
919 def GetInsertionPoint(*args, **kwargs):
920 """
921 GetInsertionPoint(self) -> long
922
923 Returns the insertion point. This is defined as the zero based index
924 of the character position to the right of the insertion point.
925 """
926 return _richtext.RichTextCtrl_GetInsertionPoint(*args, **kwargs)
927
928 def GetLastPosition(*args, **kwargs):
929 """
930 GetLastPosition(self) -> long
931
932 Returns the zero based index of the last position in the document.
933 """
934 return _richtext.RichTextCtrl_GetLastPosition(*args, **kwargs)
935
936 def SetSelection(*args, **kwargs):
937 """
938 SetSelection(self, long from, long to)
939
940 Selects the text starting at the first position up to (but not
941 including) the character at the last position. If both parameters are
942 equal to -1 then all text in the control is selected.
943 """
944 return _richtext.RichTextCtrl_SetSelection(*args, **kwargs)
945
946 def SelectAll(*args, **kwargs):
947 """
948 SelectAll(self)
949
950 Select all text in the document.
951 """
952 return _richtext.RichTextCtrl_SelectAll(*args, **kwargs)
953
954 def SetEditable(*args, **kwargs):
955 """
956 SetEditable(self, bool editable)
957
958 Makes the document editable or read-only, overriding the RE_READONLY
959 flag.
960 """
961 return _richtext.RichTextCtrl_SetEditable(*args, **kwargs)
962
963 def HasSelection(*args, **kwargs):
964 """HasSelection(self) -> bool"""
965 return _richtext.RichTextCtrl_HasSelection(*args, **kwargs)
966
967 def WriteImage(*args, **kwargs):
968 """WriteImage(self, Image image, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
969 return _richtext.RichTextCtrl_WriteImage(*args, **kwargs)
970
971 def WriteBitmap(*args, **kwargs):
972 """WriteBitmap(self, Bitmap bitmap, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
973 return _richtext.RichTextCtrl_WriteBitmap(*args, **kwargs)
974
975 def WriteImageFile(*args, **kwargs):
976 """WriteImageFile(self, String filename, int bitmapType) -> bool"""
977 return _richtext.RichTextCtrl_WriteImageFile(*args, **kwargs)
978
979 def WriteImageBlock(*args, **kwargs):
980 """WriteImageBlock(self, wxRichTextImageBlock imageBlock) -> bool"""
981 return _richtext.RichTextCtrl_WriteImageBlock(*args, **kwargs)
982
983 def Newline(*args, **kwargs):
984 """Newline(self) -> bool"""
985 return _richtext.RichTextCtrl_Newline(*args, **kwargs)
986
987 def SetBasicStyle(*args, **kwargs):
988 """SetBasicStyle(self, RichTextAttr style)"""
989 return _richtext.RichTextCtrl_SetBasicStyle(*args, **kwargs)
990
991 def EndStyle(*args, **kwargs):
992 """EndStyle(self) -> bool"""
993 return _richtext.RichTextCtrl_EndStyle(*args, **kwargs)
994
995 def EndAllStyles(*args, **kwargs):
996 """EndAllStyles(self) -> bool"""
997 return _richtext.RichTextCtrl_EndAllStyles(*args, **kwargs)
998
999 def BeginBold(*args, **kwargs):
1000 """BeginBold(self) -> bool"""
1001 return _richtext.RichTextCtrl_BeginBold(*args, **kwargs)
1002
1003 def EndBold(*args, **kwargs):
1004 """EndBold(self) -> bool"""
1005 return _richtext.RichTextCtrl_EndBold(*args, **kwargs)
1006
1007 def BeginItalic(*args, **kwargs):
1008 """BeginItalic(self) -> bool"""
1009 return _richtext.RichTextCtrl_BeginItalic(*args, **kwargs)
1010
1011 def EndItalic(*args, **kwargs):
1012 """EndItalic(self) -> bool"""
1013 return _richtext.RichTextCtrl_EndItalic(*args, **kwargs)
1014
1015 def BeginUnderline(*args, **kwargs):
1016 """BeginUnderline(self) -> bool"""
1017 return _richtext.RichTextCtrl_BeginUnderline(*args, **kwargs)
1018
1019 def EndUnderline(*args, **kwargs):
1020 """EndUnderline(self) -> bool"""
1021 return _richtext.RichTextCtrl_EndUnderline(*args, **kwargs)
1022
1023 def BeginFontSize(*args, **kwargs):
1024 """BeginFontSize(self, int pointSize) -> bool"""
1025 return _richtext.RichTextCtrl_BeginFontSize(*args, **kwargs)
1026
1027 def EndFontSize(*args, **kwargs):
1028 """EndFontSize(self) -> bool"""
1029 return _richtext.RichTextCtrl_EndFontSize(*args, **kwargs)
1030
1031 def BeginFont(*args, **kwargs):
1032 """BeginFont(self, Font font) -> bool"""
1033 return _richtext.RichTextCtrl_BeginFont(*args, **kwargs)
1034
1035 def EndFont(*args, **kwargs):
1036 """EndFont(self) -> bool"""
1037 return _richtext.RichTextCtrl_EndFont(*args, **kwargs)
1038
1039 def BeginTextColour(*args, **kwargs):
1040 """BeginTextColour(self, Colour colour) -> bool"""
1041 return _richtext.RichTextCtrl_BeginTextColour(*args, **kwargs)
1042
1043 def EndTextColour(*args, **kwargs):
1044 """EndTextColour(self) -> bool"""
1045 return _richtext.RichTextCtrl_EndTextColour(*args, **kwargs)
1046
1047 def BeginAlignment(*args, **kwargs):
1048 """BeginAlignment(self, int alignment) -> bool"""
1049 return _richtext.RichTextCtrl_BeginAlignment(*args, **kwargs)
1050
1051 def EndAlignment(*args, **kwargs):
1052 """EndAlignment(self) -> bool"""
1053 return _richtext.RichTextCtrl_EndAlignment(*args, **kwargs)
1054
1055 def BeginLeftIndent(*args, **kwargs):
1056 """BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
1057 return _richtext.RichTextCtrl_BeginLeftIndent(*args, **kwargs)
1058
1059 def EndLeftIndent(*args, **kwargs):
1060 """EndLeftIndent(self) -> bool"""
1061 return _richtext.RichTextCtrl_EndLeftIndent(*args, **kwargs)
1062
1063 def BeginRightIndent(*args, **kwargs):
1064 """BeginRightIndent(self, int rightIndent) -> bool"""
1065 return _richtext.RichTextCtrl_BeginRightIndent(*args, **kwargs)
1066
1067 def EndRightIndent(*args, **kwargs):
1068 """EndRightIndent(self) -> bool"""
1069 return _richtext.RichTextCtrl_EndRightIndent(*args, **kwargs)
1070
1071 def BeginParagraphSpacing(*args, **kwargs):
1072 """BeginParagraphSpacing(self, int before, int after) -> bool"""
1073 return _richtext.RichTextCtrl_BeginParagraphSpacing(*args, **kwargs)
1074
1075 def EndParagraphSpacing(*args, **kwargs):
1076 """EndParagraphSpacing(self) -> bool"""
1077 return _richtext.RichTextCtrl_EndParagraphSpacing(*args, **kwargs)
1078
1079 def BeginLineSpacing(*args, **kwargs):
1080 """BeginLineSpacing(self, int lineSpacing) -> bool"""
1081 return _richtext.RichTextCtrl_BeginLineSpacing(*args, **kwargs)
1082
1083 def EndLineSpacing(*args, **kwargs):
1084 """EndLineSpacing(self) -> bool"""
1085 return _richtext.RichTextCtrl_EndLineSpacing(*args, **kwargs)
1086
1087 def BeginNumberedBullet(*args, **kwargs):
1088 """
1089 BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent,
1090 int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
1091 """
1092 return _richtext.RichTextCtrl_BeginNumberedBullet(*args, **kwargs)
1093
1094 def EndNumberedBullet(*args, **kwargs):
1095 """EndNumberedBullet(self) -> bool"""
1096 return _richtext.RichTextCtrl_EndNumberedBullet(*args, **kwargs)
1097
1098 def BeginSymbolBullet(*args, **kwargs):
1099 """BeginSymbolBullet(self, char symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
1100 return _richtext.RichTextCtrl_BeginSymbolBullet(*args, **kwargs)
1101
1102 def EndSymbolBullet(*args, **kwargs):
1103 """EndSymbolBullet(self) -> bool"""
1104 return _richtext.RichTextCtrl_EndSymbolBullet(*args, **kwargs)
1105
1106 def BeginCharacterStyle(*args, **kwargs):
1107 """BeginCharacterStyle(self, String characterStyle) -> bool"""
1108 return _richtext.RichTextCtrl_BeginCharacterStyle(*args, **kwargs)
1109
1110 def EndCharacterStyle(*args, **kwargs):
1111 """EndCharacterStyle(self) -> bool"""
1112 return _richtext.RichTextCtrl_EndCharacterStyle(*args, **kwargs)
1113
1114 def BeginParagraphStyle(*args, **kwargs):
1115 """BeginParagraphStyle(self, String paragraphStyle) -> bool"""
1116 return _richtext.RichTextCtrl_BeginParagraphStyle(*args, **kwargs)
1117
1118 def EndParagraphStyle(*args, **kwargs):
1119 """EndParagraphStyle(self) -> bool"""
1120 return _richtext.RichTextCtrl_EndParagraphStyle(*args, **kwargs)
1121
1122 def SetDefaultStyleToCursorStyle(*args, **kwargs):
1123 """SetDefaultStyleToCursorStyle(self) -> bool"""
1124 return _richtext.RichTextCtrl_SetDefaultStyleToCursorStyle(*args, **kwargs)
1125
1126 def SelectNone(*args, **kwargs):
1127 """SelectNone(self)"""
1128 return _richtext.RichTextCtrl_SelectNone(*args, **kwargs)
1129
1130 def GetSelectionRange(*args, **kwargs):
1131 """GetSelectionRange(self) -> RichTextRange"""
1132 return _richtext.RichTextCtrl_GetSelectionRange(*args, **kwargs)
1133
1134 def SetSelectionRange(*args, **kwargs):
1135 """SetSelectionRange(self, RichTextRange range)"""
1136 return _richtext.RichTextCtrl_SetSelectionRange(*args, **kwargs)
1137
1138 def AddParagraph(*args, **kwargs):
1139 """AddParagraph(self, String text) -> RichTextRange"""
1140 return _richtext.RichTextCtrl_AddParagraph(*args, **kwargs)
1141
1142 def AddImage(*args, **kwargs):
1143 """AddImage(self, Image image) -> RichTextRange"""
1144 return _richtext.RichTextCtrl_AddImage(*args, **kwargs)
1145
1146 def LayoutContent(*args, **kwargs):
1147 """LayoutContent(self, bool onlyVisibleRect=False) -> bool"""
1148 return _richtext.RichTextCtrl_LayoutContent(*args, **kwargs)
1149
1150 def MoveCaret(*args, **kwargs):
1151 """MoveCaret(self, long pos, bool showAtLineStart=False) -> bool"""
1152 return _richtext.RichTextCtrl_MoveCaret(*args, **kwargs)
1153
1154 def MoveRight(*args, **kwargs):
1155 """MoveRight(self, int noPositions=1, int flags=0) -> bool"""
1156 return _richtext.RichTextCtrl_MoveRight(*args, **kwargs)
1157
1158 def MoveLeft(*args, **kwargs):
1159 """MoveLeft(self, int noPositions=1, int flags=0) -> bool"""
1160 return _richtext.RichTextCtrl_MoveLeft(*args, **kwargs)
1161
1162 def MoveUp(*args, **kwargs):
1163 """MoveUp(self, int noLines=1, int flags=0) -> bool"""
1164 return _richtext.RichTextCtrl_MoveUp(*args, **kwargs)
1165
1166 def MoveDown(*args, **kwargs):
1167 """MoveDown(self, int noLines=1, int flags=0) -> bool"""
1168 return _richtext.RichTextCtrl_MoveDown(*args, **kwargs)
1169
1170 def MoveToLineEnd(*args, **kwargs):
1171 """MoveToLineEnd(self, int flags=0) -> bool"""
1172 return _richtext.RichTextCtrl_MoveToLineEnd(*args, **kwargs)
1173
1174 def MoveToLineStart(*args, **kwargs):
1175 """MoveToLineStart(self, int flags=0) -> bool"""
1176 return _richtext.RichTextCtrl_MoveToLineStart(*args, **kwargs)
1177
1178 def MoveToParagraphEnd(*args, **kwargs):
1179 """MoveToParagraphEnd(self, int flags=0) -> bool"""
1180 return _richtext.RichTextCtrl_MoveToParagraphEnd(*args, **kwargs)
1181
1182 def MoveToParagraphStart(*args, **kwargs):
1183 """MoveToParagraphStart(self, int flags=0) -> bool"""
1184 return _richtext.RichTextCtrl_MoveToParagraphStart(*args, **kwargs)
1185
1186 def MoveHome(*args, **kwargs):
1187 """MoveHome(self, int flags=0) -> bool"""
1188 return _richtext.RichTextCtrl_MoveHome(*args, **kwargs)
1189
1190 def MoveEnd(*args, **kwargs):
1191 """MoveEnd(self, int flags=0) -> bool"""
1192 return _richtext.RichTextCtrl_MoveEnd(*args, **kwargs)
1193
1194 def PageUp(*args, **kwargs):
1195 """PageUp(self, int noPages=1, int flags=0) -> bool"""
1196 return _richtext.RichTextCtrl_PageUp(*args, **kwargs)
1197
1198 def PageDown(*args, **kwargs):
1199 """PageDown(self, int noPages=1, int flags=0) -> bool"""
1200 return _richtext.RichTextCtrl_PageDown(*args, **kwargs)
1201
1202 def WordLeft(*args, **kwargs):
1203 """WordLeft(self, int noPages=1, int flags=0) -> bool"""
1204 return _richtext.RichTextCtrl_WordLeft(*args, **kwargs)
1205
1206 def WordRight(*args, **kwargs):
1207 """WordRight(self, int noPages=1, int flags=0) -> bool"""
1208 return _richtext.RichTextCtrl_WordRight(*args, **kwargs)
1209
1210 def GetBuffer(*args, **kwargs):
1211 """GetBuffer(self) -> wxRichTextBuffer"""
1212 return _richtext.RichTextCtrl_GetBuffer(*args, **kwargs)
1213
1214 def BeginBatchUndo(*args, **kwargs):
1215 """BeginBatchUndo(self, String cmdName) -> bool"""
1216 return _richtext.RichTextCtrl_BeginBatchUndo(*args, **kwargs)
1217
1218 def EndBatchUndo(*args, **kwargs):
1219 """EndBatchUndo(self) -> bool"""
1220 return _richtext.RichTextCtrl_EndBatchUndo(*args, **kwargs)
1221
1222 def BatchingUndo(*args, **kwargs):
1223 """BatchingUndo(self) -> bool"""
1224 return _richtext.RichTextCtrl_BatchingUndo(*args, **kwargs)
1225
1226 def BeginSuppressUndo(*args, **kwargs):
1227 """BeginSuppressUndo(self) -> bool"""
1228 return _richtext.RichTextCtrl_BeginSuppressUndo(*args, **kwargs)
1229
1230 def EndSuppressUndo(*args, **kwargs):
1231 """EndSuppressUndo(self) -> bool"""
1232 return _richtext.RichTextCtrl_EndSuppressUndo(*args, **kwargs)
1233
1234 def SuppressingUndo(*args, **kwargs):
1235 """SuppressingUndo(self) -> bool"""
1236 return _richtext.RichTextCtrl_SuppressingUndo(*args, **kwargs)
1237
1238 def HasCharacterAttributes(*args, **kwargs):
1239 """HasCharacterAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1240 return _richtext.RichTextCtrl_HasCharacterAttributes(*args, **kwargs)
1241
1242 def HasParagraphAttributes(*args, **kwargs):
1243 """HasParagraphAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1244 return _richtext.RichTextCtrl_HasParagraphAttributes(*args, **kwargs)
1245
1246 def IsSelectionBold(*args, **kwargs):
1247 """IsSelectionBold(self) -> bool"""
1248 return _richtext.RichTextCtrl_IsSelectionBold(*args, **kwargs)
1249
1250 def IsSelectionItalics(*args, **kwargs):
1251 """IsSelectionItalics(self) -> bool"""
1252 return _richtext.RichTextCtrl_IsSelectionItalics(*args, **kwargs)
1253
1254 def IsSelectionUnderlined(*args, **kwargs):
1255 """IsSelectionUnderlined(self) -> bool"""
1256 return _richtext.RichTextCtrl_IsSelectionUnderlined(*args, **kwargs)
1257
1258 def IsSelectionAligned(*args, **kwargs):
1259 """IsSelectionAligned(self, int alignment) -> bool"""
1260 return _richtext.RichTextCtrl_IsSelectionAligned(*args, **kwargs)
1261
1262 def ApplyBoldToSelection(*args, **kwargs):
1263 """ApplyBoldToSelection(self) -> bool"""
1264 return _richtext.RichTextCtrl_ApplyBoldToSelection(*args, **kwargs)
1265
1266 def ApplyItalicToSelection(*args, **kwargs):
1267 """ApplyItalicToSelection(self) -> bool"""
1268 return _richtext.RichTextCtrl_ApplyItalicToSelection(*args, **kwargs)
1269
1270 def ApplyUnderlineToSelection(*args, **kwargs):
1271 """ApplyUnderlineToSelection(self) -> bool"""
1272 return _richtext.RichTextCtrl_ApplyUnderlineToSelection(*args, **kwargs)
1273
1274 def ApplyAlignmentToSelection(*args, **kwargs):
1275 """ApplyAlignmentToSelection(self, int alignment) -> bool"""
1276 return _richtext.RichTextCtrl_ApplyAlignmentToSelection(*args, **kwargs)
1277
1278 def SetStyleSheet(*args, **kwargs):
1279 """SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
1280 return _richtext.RichTextCtrl_SetStyleSheet(*args, **kwargs)
1281
1282 def GetStyleSheet(*args, **kwargs):
1283 """GetStyleSheet(self) -> wxRichTextStyleSheet"""
1284 return _richtext.RichTextCtrl_GetStyleSheet(*args, **kwargs)
1285
1286_richtext.RichTextCtrl_swigregister(RichTextCtrl)
1287
1288def PreRichTextCtrl(*args, **kwargs):
1289 """PreRichTextCtrl() -> RichTextCtrl"""
1290 val = _richtext.new_PreRichTextCtrl(*args, **kwargs)
1291 return val
1292
1293wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED = _richtext.wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
1294wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED = _richtext.wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
1295wxEVT_COMMAND_RICHTEXT_LEFT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
1296wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
1297wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
1298wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
1299wxEVT_COMMAND_RICHTEXT_RETURN = _richtext.wxEVT_COMMAND_RICHTEXT_RETURN
1300EVT_RICHTEXT_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED, 1)
1301EVT_RICHTEXT_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED, 1)
1302EVT_RICHTEXT_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK, 1)
1303EVT_RICHTEXT_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK, 1)
1304EVT_RICHTEXT_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK, 1)
1305EVT_RICHTEXT_LEFT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK, 1)
1306EVT_RICHTEXT_RETURN = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN, 1)
1307
1308class RichTextEvent(_core.NotifyEvent):
1309 """Proxy of C++ RichTextEvent class"""
1310 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1311 __repr__ = _swig_repr
1312 def __init__(self, *args, **kwargs):
1313 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> RichTextEvent"""
1314 _richtext.RichTextEvent_swiginit(self,_richtext.new_RichTextEvent(*args, **kwargs))
1315 def GetIndex(*args, **kwargs):
1316 """GetIndex(self) -> int"""
1317 return _richtext.RichTextEvent_GetIndex(*args, **kwargs)
1318
1319 def SetIndex(*args, **kwargs):
1320 """SetIndex(self, int n)"""
1321 return _richtext.RichTextEvent_SetIndex(*args, **kwargs)
1322
1323 def GetFlags(*args, **kwargs):
1324 """GetFlags(self) -> int"""
1325 return _richtext.RichTextEvent_GetFlags(*args, **kwargs)
1326
1327 def SetFlags(*args, **kwargs):
1328 """SetFlags(self, int flags)"""
1329 return _richtext.RichTextEvent_SetFlags(*args, **kwargs)
1330
1331_richtext.RichTextEvent_swigregister(RichTextEvent)
1332
1333
1334