268
315
__repr__ = _swig_repr
269
316
def __init__(self, *args, **kwargs):
271
__init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
272
int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
318
__init__(self) -> TextAttrEx
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
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)
285
def GetFontAttributes(*args, **kwargs):
286
"""GetFontAttributes(self, Font font) -> bool"""
287
return _richtext.RichTextAttr_GetFontAttributes(*args, **kwargs)
290
return self.CreateFont()
291
def SetFont(self, font):
292
return self.GetFontAttributes(font)
327
def Init(*args, **kwargs):
329
return _richtext.TextAttrEx_Init(*args, **kwargs)
331
def Copy(*args, **kwargs):
332
"""Copy(self, TextAttrEx attr)"""
333
return _richtext.TextAttrEx_Copy(*args, **kwargs)
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)
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)
343
def SetFont(*args, **kwargs):
344
"""SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
345
return _richtext.TextAttrEx_SetFont(*args, **kwargs)
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)
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)
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)
314
359
def SetRightIndent(*args, **kwargs):
315
360
"""SetRightIndent(self, int indent)"""
316
return _richtext.RichTextAttr_SetRightIndent(*args, **kwargs)
318
def SetFontSize(*args, **kwargs):
319
"""SetFontSize(self, int pointSize)"""
320
return _richtext.RichTextAttr_SetFontSize(*args, **kwargs)
322
def SetFontStyle(*args, **kwargs):
323
"""SetFontStyle(self, int fontStyle)"""
324
return _richtext.RichTextAttr_SetFontStyle(*args, **kwargs)
326
def SetFontWeight(*args, **kwargs):
327
"""SetFontWeight(self, int fontWeight)"""
328
return _richtext.RichTextAttr_SetFontWeight(*args, **kwargs)
330
def SetFontFaceName(*args, **kwargs):
331
"""SetFontFaceName(self, String faceName)"""
332
return _richtext.RichTextAttr_SetFontFaceName(*args, **kwargs)
334
def SetFontUnderlined(*args, **kwargs):
335
"""SetFontUnderlined(self, bool underlined)"""
336
return _richtext.RichTextAttr_SetFontUnderlined(*args, **kwargs)
361
return _richtext.TextAttrEx_SetRightIndent(*args, **kwargs)
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)
367
def HasTextColour(*args, **kwargs):
368
"""HasTextColour(self) -> bool"""
369
return _richtext.TextAttrEx_HasTextColour(*args, **kwargs)
371
def HasBackgroundColour(*args, **kwargs):
372
"""HasBackgroundColour(self) -> bool"""
373
return _richtext.TextAttrEx_HasBackgroundColour(*args, **kwargs)
375
def HasFont(*args, **kwargs):
376
"""HasFont(self) -> bool"""
377
return _richtext.TextAttrEx_HasFont(*args, **kwargs)
379
def HasAlignment(*args, **kwargs):
380
"""HasAlignment(self) -> bool"""
381
return _richtext.TextAttrEx_HasAlignment(*args, **kwargs)
383
def HasTabs(*args, **kwargs):
384
"""HasTabs(self) -> bool"""
385
return _richtext.TextAttrEx_HasTabs(*args, **kwargs)
387
def HasLeftIndent(*args, **kwargs):
388
"""HasLeftIndent(self) -> bool"""
389
return _richtext.TextAttrEx_HasLeftIndent(*args, **kwargs)
391
def HasRightIndent(*args, **kwargs):
392
"""HasRightIndent(self) -> bool"""
393
return _richtext.TextAttrEx_HasRightIndent(*args, **kwargs)
395
def HasFlag(*args, **kwargs):
396
"""HasFlag(self, long flag) -> bool"""
397
return _richtext.TextAttrEx_HasFlag(*args, **kwargs)
399
def GetTextColour(*args, **kwargs):
400
"""GetTextColour(self) -> Colour"""
401
return _richtext.TextAttrEx_GetTextColour(*args, **kwargs)
403
def GetBackgroundColour(*args, **kwargs):
404
"""GetBackgroundColour(self) -> Colour"""
405
return _richtext.TextAttrEx_GetBackgroundColour(*args, **kwargs)
407
def GetFont(*args, **kwargs):
408
"""GetFont(self) -> Font"""
409
return _richtext.TextAttrEx_GetFont(*args, **kwargs)
411
def GetAlignment(*args, **kwargs):
412
"""GetAlignment(self) -> int"""
413
return _richtext.TextAttrEx_GetAlignment(*args, **kwargs)
415
def GetTabs(*args, **kwargs):
416
"""GetTabs(self) -> wxArrayInt"""
417
return _richtext.TextAttrEx_GetTabs(*args, **kwargs)
419
def GetLeftIndent(*args, **kwargs):
420
"""GetLeftIndent(self) -> long"""
421
return _richtext.TextAttrEx_GetLeftIndent(*args, **kwargs)
423
def GetLeftSubIndent(*args, **kwargs):
424
"""GetLeftSubIndent(self) -> long"""
425
return _richtext.TextAttrEx_GetLeftSubIndent(*args, **kwargs)
427
def GetRightIndent(*args, **kwargs):
428
"""GetRightIndent(self) -> long"""
429
return _richtext.TextAttrEx_GetRightIndent(*args, **kwargs)
431
def GetFlags(*args, **kwargs):
432
"""GetFlags(self) -> long"""
433
return _richtext.TextAttrEx_GetFlags(*args, **kwargs)
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)
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)
443
def SetListStyleName(*args, **kwargs):
444
"""SetListStyleName(self, String name)"""
445
return _richtext.TextAttrEx_SetListStyleName(*args, **kwargs)
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)
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)
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)
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)
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)
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)
471
def SetBulletName(*args, **kwargs):
472
"""SetBulletName(self, String name)"""
473
return _richtext.TextAttrEx_SetBulletName(*args, **kwargs)
374
475
def SetBulletFont(*args, **kwargs):
375
476
"""SetBulletFont(self, String bulletFont)"""
376
return _richtext.RichTextAttr_SetBulletFont(*args, **kwargs)
378
def GetTextColour(*args, **kwargs):
379
"""GetTextColour(self) -> Colour"""
380
return _richtext.RichTextAttr_GetTextColour(*args, **kwargs)
382
def GetBackgroundColour(*args, **kwargs):
383
"""GetBackgroundColour(self) -> Colour"""
384
return _richtext.RichTextAttr_GetBackgroundColour(*args, **kwargs)
386
def GetAlignment(*args, **kwargs):
387
"""GetAlignment(self) -> int"""
388
return _richtext.RichTextAttr_GetAlignment(*args, **kwargs)
390
def GetTabs(*args, **kwargs):
391
"""GetTabs(self) -> wxArrayInt"""
392
return _richtext.RichTextAttr_GetTabs(*args, **kwargs)
394
def GetLeftIndent(*args, **kwargs):
395
"""GetLeftIndent(self) -> long"""
396
return _richtext.RichTextAttr_GetLeftIndent(*args, **kwargs)
398
def GetLeftSubIndent(*args, **kwargs):
399
"""GetLeftSubIndent(self) -> long"""
400
return _richtext.RichTextAttr_GetLeftSubIndent(*args, **kwargs)
402
def GetRightIndent(*args, **kwargs):
403
"""GetRightIndent(self) -> long"""
404
return _richtext.RichTextAttr_GetRightIndent(*args, **kwargs)
406
def GetFlags(*args, **kwargs):
407
"""GetFlags(self) -> long"""
408
return _richtext.RichTextAttr_GetFlags(*args, **kwargs)
410
def GetFontSize(*args, **kwargs):
411
"""GetFontSize(self) -> int"""
412
return _richtext.RichTextAttr_GetFontSize(*args, **kwargs)
414
def GetFontStyle(*args, **kwargs):
415
"""GetFontStyle(self) -> int"""
416
return _richtext.RichTextAttr_GetFontStyle(*args, **kwargs)
418
def GetFontWeight(*args, **kwargs):
419
"""GetFontWeight(self) -> int"""
420
return _richtext.RichTextAttr_GetFontWeight(*args, **kwargs)
422
def GetFontUnderlined(*args, **kwargs):
423
"""GetFontUnderlined(self) -> bool"""
424
return _richtext.RichTextAttr_GetFontUnderlined(*args, **kwargs)
426
def GetFontFaceName(*args, **kwargs):
427
"""GetFontFaceName(self) -> String"""
428
return _richtext.RichTextAttr_GetFontFaceName(*args, **kwargs)
477
return _richtext.TextAttrEx_SetBulletFont(*args, **kwargs)
479
def SetURL(*args, **kwargs):
480
"""SetURL(self, String url)"""
481
return _richtext.TextAttrEx_SetURL(*args, **kwargs)
483
def SetPageBreak(*args, **kwargs):
484
"""SetPageBreak(self, bool pageBreak=True)"""
485
return _richtext.TextAttrEx_SetPageBreak(*args, **kwargs)
487
def SetTextEffects(*args, **kwargs):
488
"""SetTextEffects(self, int effects)"""
489
return _richtext.TextAttrEx_SetTextEffects(*args, **kwargs)
491
def SetTextEffectFlags(*args, **kwargs):
492
"""SetTextEffectFlags(self, int effects)"""
493
return _richtext.TextAttrEx_SetTextEffectFlags(*args, **kwargs)
495
def SetOutlineLevel(*args, **kwargs):
496
"""SetOutlineLevel(self, int level)"""
497
return _richtext.TextAttrEx_SetOutlineLevel(*args, **kwargs)
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)
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)
507
def GetListStyleName(*args, **kwargs):
508
"""GetListStyleName(self) -> String"""
509
return _richtext.TextAttrEx_GetListStyleName(*args, **kwargs)
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)
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)
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)
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)
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)
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)
535
def GetBulletName(*args, **kwargs):
536
"""GetBulletName(self) -> String"""
537
return _richtext.TextAttrEx_GetBulletName(*args, **kwargs)
462
539
def GetBulletFont(*args, **kwargs):
463
540
"""GetBulletFont(self) -> String"""
464
return _richtext.RichTextAttr_GetBulletFont(*args, **kwargs)
466
def HasTextColour(*args, **kwargs):
467
"""HasTextColour(self) -> bool"""
468
return _richtext.RichTextAttr_HasTextColour(*args, **kwargs)
470
def HasBackgroundColour(*args, **kwargs):
471
"""HasBackgroundColour(self) -> bool"""
472
return _richtext.RichTextAttr_HasBackgroundColour(*args, **kwargs)
474
def HasAlignment(*args, **kwargs):
475
"""HasAlignment(self) -> bool"""
476
return _richtext.RichTextAttr_HasAlignment(*args, **kwargs)
478
def HasTabs(*args, **kwargs):
479
"""HasTabs(self) -> bool"""
480
return _richtext.RichTextAttr_HasTabs(*args, **kwargs)
482
def HasLeftIndent(*args, **kwargs):
483
"""HasLeftIndent(self) -> bool"""
484
return _richtext.RichTextAttr_HasLeftIndent(*args, **kwargs)
486
def HasRightIndent(*args, **kwargs):
487
"""HasRightIndent(self) -> bool"""
488
return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
490
def HasFont(*args, **kwargs):
491
"""HasFont(self) -> bool"""
492
return _richtext.RichTextAttr_HasFont(*args, **kwargs)
541
return _richtext.TextAttrEx_GetBulletFont(*args, **kwargs)
543
def GetURL(*args, **kwargs):
544
"""GetURL(self) -> String"""
545
return _richtext.TextAttrEx_GetURL(*args, **kwargs)
547
def GetTextEffects(*args, **kwargs):
548
"""GetTextEffects(self) -> int"""
549
return _richtext.TextAttrEx_GetTextEffects(*args, **kwargs)
551
def GetTextEffectFlags(*args, **kwargs):
552
"""GetTextEffectFlags(self) -> int"""
553
return _richtext.TextAttrEx_GetTextEffectFlags(*args, **kwargs)
555
def GetOutlineLevel(*args, **kwargs):
556
"""GetOutlineLevel(self) -> int"""
557
return _richtext.TextAttrEx_GetOutlineLevel(*args, **kwargs)
559
def HasFontWeight(*args, **kwargs):
560
"""HasFontWeight(self) -> bool"""
561
return _richtext.TextAttrEx_HasFontWeight(*args, **kwargs)
563
def HasFontSize(*args, **kwargs):
564
"""HasFontSize(self) -> bool"""
565
return _richtext.TextAttrEx_HasFontSize(*args, **kwargs)
567
def HasFontItalic(*args, **kwargs):
568
"""HasFontItalic(self) -> bool"""
569
return _richtext.TextAttrEx_HasFontItalic(*args, **kwargs)
571
def HasFontUnderlined(*args, **kwargs):
572
"""HasFontUnderlined(self) -> bool"""
573
return _richtext.TextAttrEx_HasFontUnderlined(*args, **kwargs)
575
def HasFontFaceName(*args, **kwargs):
576
"""HasFontFaceName(self) -> bool"""
577
return _richtext.TextAttrEx_HasFontFaceName(*args, **kwargs)
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)
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)
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)
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)
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)
599
def HasListStyleName(*args, **kwargs):
600
"""HasListStyleName(self) -> bool"""
601
return _richtext.TextAttrEx_HasListStyleName(*args, **kwargs)
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)
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)
522
611
def HasBulletText(*args, **kwargs):
523
612
"""HasBulletText(self) -> bool"""
524
return _richtext.RichTextAttr_HasBulletText(*args, **kwargs)
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)
615
def HasBulletName(*args, **kwargs):
616
"""HasBulletName(self) -> bool"""
617
return _richtext.TextAttrEx_HasBulletName(*args, **kwargs)
619
def HasURL(*args, **kwargs):
620
"""HasURL(self) -> bool"""
621
return _richtext.TextAttrEx_HasURL(*args, **kwargs)
623
def HasPageBreak(*args, **kwargs):
624
"""HasPageBreak(self) -> bool"""
625
return _richtext.TextAttrEx_HasPageBreak(*args, **kwargs)
627
def HasTextEffects(*args, **kwargs):
628
"""HasTextEffects(self) -> bool"""
629
return _richtext.TextAttrEx_HasTextEffects(*args, **kwargs)
631
def HasTextEffect(*args, **kwargs):
632
"""HasTextEffect(self, int effect) -> bool"""
633
return _richtext.TextAttrEx_HasTextEffect(*args, **kwargs)
635
def HasOutlineLevel(*args, **kwargs):
636
"""HasOutlineLevel(self) -> bool"""
637
return _richtext.TextAttrEx_HasOutlineLevel(*args, **kwargs)
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)
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)
538
647
def IsDefault(*args, **kwargs):
539
648
"""IsDefault(self) -> bool"""
540
return _richtext.RichTextAttr_IsDefault(*args, **kwargs)
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)
651
def CombineEx(*args, **kwargs):
652
"""CombineEx(TextAttrEx attr, TextAttrEx attrDef, RichTextCtrl text) -> TextAttrEx"""
653
return _richtext.TextAttrEx_CombineEx(*args, **kwargs)
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
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)
689
# an alias for compatibility
690
RichTextAttr = TextAttrEx
692
class RichTextObject(_core.Object):
694
This is the base class for all drawable objects in a `RichTextCtrl`.
696
The data displayed in a `RichTextCtrl` is handled by `RichTextBuffer`,
697
and a `RichTextCtrl` always has one such buffer.
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.
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
713
Each object maintains a range (start and end position) measured from
714
the start of the main parent object.
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.
723
When the buffer is modified, a range is invalidated (marked as
724
requiring layout), so that only the minimum amount of layout is
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
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!)
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):
750
Draw(self, DC dc, RichTextRange range, RichTextRange selectionRange,
751
Rect rect, int descent, int style) -> bool
753
return _richtext.RichTextObject_Draw(*args, **kwargs)
755
def Layout(*args, **kwargs):
756
"""Layout(self, DC dc, Rect rect, int style) -> bool"""
757
return _richtext.RichTextObject_Layout(*args, **kwargs)
759
def HitTest(*args, **kwargs):
760
"""HitTest(self, DC dc, Point pt, long OUTPUT) -> int"""
761
return _richtext.RichTextObject_HitTest(*args, **kwargs)
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)
767
def GetBestSize(*args, **kwargs):
768
"""GetBestSize(self) -> Size"""
769
return _richtext.RichTextObject_GetBestSize(*args, **kwargs)
771
def GetRangeSize(*args, **kwargs):
773
GetRangeSize(self, RichTextRange range, Size OUTPUT, int OUTPUT, DC dc,
774
int flags, Point position=wxPoint(0,0)) -> bool
776
return _richtext.RichTextObject_GetRangeSize(*args, **kwargs)
778
def DoSplit(*args, **kwargs):
779
"""DoSplit(self, long pos) -> RichTextObject"""
780
return _richtext.RichTextObject_DoSplit(*args, **kwargs)
782
def CalculateRange(*args, **kwargs):
783
"""CalculateRange(self, long start, long OUTPUT)"""
784
return _richtext.RichTextObject_CalculateRange(*args, **kwargs)
786
def DeleteRange(*args, **kwargs):
787
"""DeleteRange(self, RichTextRange range) -> bool"""
788
return _richtext.RichTextObject_DeleteRange(*args, **kwargs)
790
def IsEmpty(*args, **kwargs):
791
"""IsEmpty(self) -> bool"""
792
return _richtext.RichTextObject_IsEmpty(*args, **kwargs)
794
def GetTextForRange(*args, **kwargs):
795
"""GetTextForRange(self, RichTextRange range) -> String"""
796
return _richtext.RichTextObject_GetTextForRange(*args, **kwargs)
798
def CanMerge(*args, **kwargs):
799
"""CanMerge(self, RichTextObject object) -> bool"""
800
return _richtext.RichTextObject_CanMerge(*args, **kwargs)
802
def Merge(*args, **kwargs):
803
"""Merge(self, RichTextObject object) -> bool"""
804
return _richtext.RichTextObject_Merge(*args, **kwargs)
806
def Dump(*args, **kwargs):
807
"""Dump(self) -> String"""
808
return _richtext.RichTextObject_Dump(*args, **kwargs)
810
def GetCachedSize(*args, **kwargs):
811
"""GetCachedSize(self) -> Size"""
812
return _richtext.RichTextObject_GetCachedSize(*args, **kwargs)
814
def SetCachedSize(*args, **kwargs):
815
"""SetCachedSize(self, Size sz)"""
816
return _richtext.RichTextObject_SetCachedSize(*args, **kwargs)
818
CachedSize = property(GetCachedSize,SetCachedSize)
819
def GetPosition(*args, **kwargs):
820
"""GetPosition(self) -> Point"""
821
return _richtext.RichTextObject_GetPosition(*args, **kwargs)
823
def SetPosition(*args, **kwargs):
824
"""SetPosition(self, Point pos)"""
825
return _richtext.RichTextObject_SetPosition(*args, **kwargs)
827
Position = property(GetPosition,SetPosition)
828
def GetRect(*args, **kwargs):
829
"""GetRect(self) -> Rect"""
830
return _richtext.RichTextObject_GetRect(*args, **kwargs)
832
Rect = property(GetRect)
833
def SetRange(*args, **kwargs):
834
"""SetRange(self, RichTextRange range)"""
835
return _richtext.RichTextObject_SetRange(*args, **kwargs)
837
def GetRange(*args, **kwargs):
838
"""GetRange(self) -> RichTextRange"""
839
return _richtext.RichTextObject_GetRange(*args, **kwargs)
841
Range = property(GetRange,SetRange)
842
def GetDirty(*args, **kwargs):
843
"""GetDirty(self) -> bool"""
844
return _richtext.RichTextObject_GetDirty(*args, **kwargs)
846
def SetDirty(*args, **kwargs):
847
"""SetDirty(self, bool dirty)"""
848
return _richtext.RichTextObject_SetDirty(*args, **kwargs)
850
Dirty = property(GetDirty,SetDirty)
851
def IsComposite(*args, **kwargs):
852
"""IsComposite(self) -> bool"""
853
return _richtext.RichTextObject_IsComposite(*args, **kwargs)
855
def GetParent(*args, **kwargs):
856
"""GetParent(self) -> RichTextObject"""
857
return _richtext.RichTextObject_GetParent(*args, **kwargs)
859
def SetParent(*args, **kwargs):
860
"""SetParent(self, RichTextObject parent)"""
861
return _richtext.RichTextObject_SetParent(*args, **kwargs)
863
Parent = property(GetParent,SetParent)
864
def SetSameMargins(*args, **kwargs):
865
"""SetSameMargins(self, int margin)"""
866
return _richtext.RichTextObject_SetSameMargins(*args, **kwargs)
868
def SetMargins(*args, **kwargs):
869
"""SetMargins(self, int leftMargin, int rightMargin, int topMargin, int bottomMargin)"""
870
return _richtext.RichTextObject_SetMargins(*args, **kwargs)
872
def GetLeftMargin(*args, **kwargs):
873
"""GetLeftMargin(self) -> int"""
874
return _richtext.RichTextObject_GetLeftMargin(*args, **kwargs)
876
def GetRightMargin(*args, **kwargs):
877
"""GetRightMargin(self) -> int"""
878
return _richtext.RichTextObject_GetRightMargin(*args, **kwargs)
880
def GetTopMargin(*args, **kwargs):
881
"""GetTopMargin(self) -> int"""
882
return _richtext.RichTextObject_GetTopMargin(*args, **kwargs)
884
def GetBottomMargin(*args, **kwargs):
885
"""GetBottomMargin(self) -> int"""
886
return _richtext.RichTextObject_GetBottomMargin(*args, **kwargs)
888
def SetAttributes(*args, **kwargs):
889
"""SetAttributes(self, TextAttrEx attr)"""
890
return _richtext.RichTextObject_SetAttributes(*args, **kwargs)
892
def GetAttributes(*args, **kwargs):
893
"""GetAttributes(self) -> TextAttrEx"""
894
return _richtext.RichTextObject_GetAttributes(*args, **kwargs)
896
Attributes = property(GetAttributes,SetAttributes)
897
def SetDescent(*args, **kwargs):
898
"""SetDescent(self, int descent)"""
899
return _richtext.RichTextObject_SetDescent(*args, **kwargs)
901
def GetDescent(*args, **kwargs):
902
"""GetDescent(self) -> int"""
903
return _richtext.RichTextObject_GetDescent(*args, **kwargs)
905
Descent = property(GetDescent,SetDescent)
906
def GetBuffer(*args, **kwargs):
907
"""GetBuffer(self) -> RichTextBuffer"""
908
return _richtext.RichTextObject_GetBuffer(*args, **kwargs)
910
def Clone(*args, **kwargs):
911
"""Clone(self) -> RichTextObject"""
912
return _richtext.RichTextObject_Clone(*args, **kwargs)
914
def Copy(*args, **kwargs):
915
"""Copy(self, RichTextObject obj)"""
916
return _richtext.RichTextObject_Copy(*args, **kwargs)
918
def Reference(*args, **kwargs):
919
"""Reference(self)"""
920
return _richtext.RichTextObject_Reference(*args, **kwargs)
922
def Dereference(*args, **kwargs):
923
"""Dereference(self)"""
924
return _richtext.RichTextObject_Dereference(*args, **kwargs)
926
def ConvertTenthsMMToPixelsDC(*args, **kwargs):
927
"""ConvertTenthsMMToPixelsDC(self, DC dc, int units) -> int"""
928
return _richtext.RichTextObject_ConvertTenthsMMToPixelsDC(*args, **kwargs)
930
def ConvertTenthsMMToPixels(*args, **kwargs):
931
"""ConvertTenthsMMToPixels(int ppi, int units) -> int"""
932
return _richtext.RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs)
934
ConvertTenthsMMToPixels = staticmethod(ConvertTenthsMMToPixels)
935
_richtext.RichTextObject_swigregister(RichTextObject)
937
def RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs):
938
"""RichTextObject_ConvertTenthsMMToPixels(int ppi, int units) -> int"""
939
return _richtext.RichTextObject_ConvertTenthsMMToPixels(*args, **kwargs)
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)
952
_richtext.RichTextObjectList_iterator_swigregister(RichTextObjectList_iterator)
954
class RichTextObjectList(object):
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.
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)
969
def __getitem__(*args, **kwargs):
970
"""__getitem__(self, size_t index) -> RichTextObject"""
971
return _richtext.RichTextObjectList___getitem__(*args, **kwargs)
973
def __contains__(*args, **kwargs):
974
"""__contains__(self, RichTextObject obj) -> bool"""
975
return _richtext.RichTextObjectList___contains__(*args, **kwargs)
977
def __iter__(*args, **kwargs):
978
"""__iter__(self) -> RichTextObjectList_iterator"""
979
return _richtext.RichTextObjectList___iter__(*args, **kwargs)
981
def index(*args, **kwargs):
982
"""index(self, RichTextObject obj) -> int"""
983
return _richtext.RichTextObjectList_index(*args, **kwargs)
986
return "wxRichTextObjectList: " + repr(list(self))
988
_richtext.RichTextObjectList_swigregister(RichTextObjectList)
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)
1001
def GetChildCount(*args, **kwargs):
1002
"""GetChildCount(self) -> size_t"""
1003
return _richtext.RichTextCompositeObject_GetChildCount(*args, **kwargs)
1005
def GetChild(*args, **kwargs):
1006
"""GetChild(self, size_t n) -> RichTextObject"""
1007
return _richtext.RichTextCompositeObject_GetChild(*args, **kwargs)
1009
def Copy(*args, **kwargs):
1010
"""Copy(self, RichTextCompositeObject obj)"""
1011
return _richtext.RichTextCompositeObject_Copy(*args, **kwargs)
1013
def AppendChild(*args, **kwargs):
1014
"""AppendChild(self, RichTextObject child) -> size_t"""
1015
return _richtext.RichTextCompositeObject_AppendChild(*args, **kwargs)
1017
def InsertChild(*args, **kwargs):
1018
"""InsertChild(self, RichTextObject child, RichTextObject inFrontOf) -> bool"""
1019
return _richtext.RichTextCompositeObject_InsertChild(*args, **kwargs)
1021
def RemoveChild(self, child, deleteChild=False):
1022
val = _richtext.RichTextCompositeObject_RemoveChild(self, child, deleteChild)
1023
self.this.own(not deleteChild)
1027
def DeleteChildren(*args, **kwargs):
1028
"""DeleteChildren(self) -> bool"""
1029
return _richtext.RichTextCompositeObject_DeleteChildren(*args, **kwargs)
1031
def Defragment(*args, **kwargs):
1032
"""Defragment(self) -> bool"""
1033
return _richtext.RichTextCompositeObject_Defragment(*args, **kwargs)
1035
_richtext.RichTextCompositeObject_swigregister(RichTextCompositeObject)
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):
1043
__init__(self, RichTextObject parent=None) -> RichTextBox
1045
This defines a 2D space to lay out objects.
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)
1052
_richtext.RichTextBox_swigregister(RichTextBox)
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)
1065
def GetRichTextCtrl(*args, **kwargs):
1066
"""GetRichTextCtrl(self) -> RichTextCtrl"""
1067
return _richtext.RichTextParagraphLayoutBox_GetRichTextCtrl(*args, **kwargs)
1069
def SetPartialParagraph(*args, **kwargs):
1070
"""SetPartialParagraph(self, bool partialPara)"""
1071
return _richtext.RichTextParagraphLayoutBox_SetPartialParagraph(*args, **kwargs)
1073
def GetPartialParagraph(*args, **kwargs):
1074
"""GetPartialParagraph(self) -> bool"""
1075
return _richtext.RichTextParagraphLayoutBox_GetPartialParagraph(*args, **kwargs)
1077
def GetStyleSheet(*args, **kwargs):
1078
"""GetStyleSheet(self) -> wxRichTextStyleSheet"""
1079
return _richtext.RichTextParagraphLayoutBox_GetStyleSheet(*args, **kwargs)
1081
def Init(*args, **kwargs):
1083
return _richtext.RichTextParagraphLayoutBox_Init(*args, **kwargs)
1085
def Clear(*args, **kwargs):
1087
return _richtext.RichTextParagraphLayoutBox_Clear(*args, **kwargs)
1089
def Reset(*args, **kwargs):
1091
return _richtext.RichTextParagraphLayoutBox_Reset(*args, **kwargs)
1093
def AddParagraph(*args, **kwargs):
1094
"""AddParagraph(self, String text, TextAttrEx paraStyle=None) -> RichTextRange"""
1095
return _richtext.RichTextParagraphLayoutBox_AddParagraph(*args, **kwargs)
1097
def AddImage(*args, **kwargs):
1098
"""AddImage(self, Image image, TextAttrEx paraStyle=None) -> RichTextRange"""
1099
return _richtext.RichTextParagraphLayoutBox_AddImage(*args, **kwargs)
1101
def AddParagraphs(*args, **kwargs):
1102
"""AddParagraphs(self, String text, TextAttrEx paraStyle=None) -> RichTextRange"""
1103
return _richtext.RichTextParagraphLayoutBox_AddParagraphs(*args, **kwargs)
1105
def GetLineAtPosition(*args, **kwargs):
1106
"""GetLineAtPosition(self, long pos, bool caretPosition=False) -> RichTextLine"""
1107
return _richtext.RichTextParagraphLayoutBox_GetLineAtPosition(*args, **kwargs)
1109
def GetLineAtYPosition(*args, **kwargs):
1110
"""GetLineAtYPosition(self, int y) -> RichTextLine"""
1111
return _richtext.RichTextParagraphLayoutBox_GetLineAtYPosition(*args, **kwargs)
1113
def GetParagraphAtPosition(*args, **kwargs):
1114
"""GetParagraphAtPosition(self, long pos, bool caretPosition=False) -> RichTextParagraph"""
1115
return _richtext.RichTextParagraphLayoutBox_GetParagraphAtPosition(*args, **kwargs)
1117
def GetLineSizeAtPosition(*args, **kwargs):
1118
"""GetLineSizeAtPosition(self, long pos, bool caretPosition=False) -> Size"""
1119
return _richtext.RichTextParagraphLayoutBox_GetLineSizeAtPosition(*args, **kwargs)
1121
def GetVisibleLineNumber(*args, **kwargs):
1122
"""GetVisibleLineNumber(self, long pos, bool caretPosition=False, bool startOfLine=False) -> long"""
1123
return _richtext.RichTextParagraphLayoutBox_GetVisibleLineNumber(*args, **kwargs)
1125
def GetLineForVisibleLineNumber(*args, **kwargs):
1126
"""GetLineForVisibleLineNumber(self, long lineNumber) -> RichTextLine"""
1127
return _richtext.RichTextParagraphLayoutBox_GetLineForVisibleLineNumber(*args, **kwargs)
1129
def GetLeafObjectAtPosition(*args, **kwargs):
1130
"""GetLeafObjectAtPosition(self, long position) -> RichTextObject"""
1131
return _richtext.RichTextParagraphLayoutBox_GetLeafObjectAtPosition(*args, **kwargs)
1133
def GetParagraphAtLine(*args, **kwargs):
1134
"""GetParagraphAtLine(self, long paragraphNumber) -> RichTextParagraph"""
1135
return _richtext.RichTextParagraphLayoutBox_GetParagraphAtLine(*args, **kwargs)
1137
def GetParagraphForLine(*args, **kwargs):
1138
"""GetParagraphForLine(self, RichTextLine line) -> RichTextParagraph"""
1139
return _richtext.RichTextParagraphLayoutBox_GetParagraphForLine(*args, **kwargs)
1141
def GetParagraphLength(*args, **kwargs):
1142
"""GetParagraphLength(self, long paragraphNumber) -> int"""
1143
return _richtext.RichTextParagraphLayoutBox_GetParagraphLength(*args, **kwargs)
1145
def GetParagraphCount(*args, **kwargs):
1146
"""GetParagraphCount(self) -> int"""
1147
return _richtext.RichTextParagraphLayoutBox_GetParagraphCount(*args, **kwargs)
1149
def GetLineCount(*args, **kwargs):
1150
"""GetLineCount(self) -> int"""
1151
return _richtext.RichTextParagraphLayoutBox_GetLineCount(*args, **kwargs)
1153
def GetParagraphText(*args, **kwargs):
1154
"""GetParagraphText(self, long paragraphNumber) -> String"""
1155
return _richtext.RichTextParagraphLayoutBox_GetParagraphText(*args, **kwargs)
1157
def XYToPosition(*args, **kwargs):
1158
"""XYToPosition(self, long x, long y) -> long"""
1159
return _richtext.RichTextParagraphLayoutBox_XYToPosition(*args, **kwargs)
1161
def PositionToXY(*args, **kwargs):
1162
"""PositionToXY(self, long pos, long x, long y) -> bool"""
1163
return _richtext.RichTextParagraphLayoutBox_PositionToXY(*args, **kwargs)
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)
1169
def GetStyle(*args, **kwargs):
1170
"""GetStyle(self, long position, TextAttrEx style) -> bool"""
1171
return _richtext.RichTextParagraphLayoutBox_GetStyle(*args, **kwargs)
1173
def GetUncombinedStyle(*args, **kwargs):
1174
"""GetUncombinedStyle(self, long position, TextAttrEx style) -> bool"""
1175
return _richtext.RichTextParagraphLayoutBox_GetUncombinedStyle(*args, **kwargs)
1177
def GetStyleForRange(*args, **kwargs):
1178
"""GetStyleForRange(self, RichTextRange range, TextAttrEx style) -> bool"""
1179
return _richtext.RichTextParagraphLayoutBox_GetStyleForRange(*args, **kwargs)
1181
def CollectStyle(*args, **kwargs):
1183
CollectStyle(self, TextAttrEx currentStyle, TextAttrEx style, long multipleStyleAttributes,
1184
int multipleTextEffectAttributes) -> bool
1186
return _richtext.RichTextParagraphLayoutBox_CollectStyle(*args, **kwargs)
1188
def SetListStyle(*args, **kwargs):
1190
SetListStyle(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO,
1191
int startFrom=1, int specifiedLevel=-1) -> bool
1193
return _richtext.RichTextParagraphLayoutBox_SetListStyle(*args, **kwargs)
1195
def ClearListStyle(*args, **kwargs):
1196
"""ClearListStyle(self, RichTextRange range, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool"""
1197
return _richtext.RichTextParagraphLayoutBox_ClearListStyle(*args, **kwargs)
1199
def NumberList(*args, **kwargs):
1201
NumberList(self, RichTextRange range, String defName, int flags=RICHTEXT_SETSTYLE_WITH_UNDO,
1202
int startFrom=1, int specifiedLevel=-1) -> bool
1204
return _richtext.RichTextParagraphLayoutBox_NumberList(*args, **kwargs)
1206
def PromoteList(*args, **kwargs):
1208
PromoteList(self, int promoteBy, RichTextRange range, String defName,
1209
int flags=RICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel=-1) -> bool
1211
return _richtext.RichTextParagraphLayoutBox_PromoteList(*args, **kwargs)
1213
def DoNumberList(*args, **kwargs):
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
1220
return _richtext.RichTextParagraphLayoutBox_DoNumberList(*args, **kwargs)
1222
def FindNextParagraphNumber(*args, **kwargs):
1223
"""FindNextParagraphNumber(self, RichTextParagraph previousParagraph, TextAttrEx attr) -> bool"""
1224
return _richtext.RichTextParagraphLayoutBox_FindNextParagraphNumber(*args, **kwargs)
1226
def HasCharacterAttributes(*args, **kwargs):
1227
"""HasCharacterAttributes(self, RichTextRange range, TextAttrEx style) -> bool"""
1228
return _richtext.RichTextParagraphLayoutBox_HasCharacterAttributes(*args, **kwargs)
1230
def HasParagraphAttributes(*args, **kwargs):
1231
"""HasParagraphAttributes(self, RichTextRange range, TextAttrEx style) -> bool"""
1232
return _richtext.RichTextParagraphLayoutBox_HasParagraphAttributes(*args, **kwargs)
1234
def InsertFragment(*args, **kwargs):
1235
"""InsertFragment(self, long position, RichTextParagraphLayoutBox fragment) -> bool"""
1236
return _richtext.RichTextParagraphLayoutBox_InsertFragment(*args, **kwargs)
1238
def CopyFragment(*args, **kwargs):
1239
"""CopyFragment(self, RichTextRange range, RichTextParagraphLayoutBox fragment) -> bool"""
1240
return _richtext.RichTextParagraphLayoutBox_CopyFragment(*args, **kwargs)
1242
def ApplyStyleSheet(*args, **kwargs):
1243
"""ApplyStyleSheet(self, wxRichTextStyleSheet styleSheet) -> bool"""
1244
return _richtext.RichTextParagraphLayoutBox_ApplyStyleSheet(*args, **kwargs)
1246
def Copy(*args, **kwargs):
1247
"""Copy(self, RichTextParagraphLayoutBox obj)"""
1248
return _richtext.RichTextParagraphLayoutBox_Copy(*args, **kwargs)
1250
def UpdateRanges(*args, **kwargs):
1251
"""UpdateRanges(self)"""
1252
return _richtext.RichTextParagraphLayoutBox_UpdateRanges(*args, **kwargs)
1254
def GetText(*args, **kwargs):
1255
"""GetText(self) -> String"""
1256
return _richtext.RichTextParagraphLayoutBox_GetText(*args, **kwargs)
1258
def SetDefaultStyle(*args, **kwargs):
1259
"""SetDefaultStyle(self, TextAttrEx style) -> bool"""
1260
return _richtext.RichTextParagraphLayoutBox_SetDefaultStyle(*args, **kwargs)
1262
def GetDefaultStyle(*args, **kwargs):
1263
"""GetDefaultStyle(self) -> TextAttrEx"""
1264
return _richtext.RichTextParagraphLayoutBox_GetDefaultStyle(*args, **kwargs)
1266
def SetBasicStyle(*args, **kwargs):
1267
"""SetBasicStyle(self, TextAttrEx style)"""
1268
return _richtext.RichTextParagraphLayoutBox_SetBasicStyle(*args, **kwargs)
1270
def GetBasicStyle(*args, **kwargs):
1271
"""GetBasicStyle(self) -> TextAttrEx"""
1272
return _richtext.RichTextParagraphLayoutBox_GetBasicStyle(*args, **kwargs)
1274
def Invalidate(*args, **kwargs):
1275
"""Invalidate(self, RichTextRange invalidRange=wxRICHTEXT_ALL)"""
1276
return _richtext.RichTextParagraphLayoutBox_Invalidate(*args, **kwargs)
1278
def GetInvalidRange(*args, **kwargs):
1279
"""GetInvalidRange(self, bool wholeParagraphs=False) -> RichTextRange"""
1280
return _richtext.RichTextParagraphLayoutBox_GetInvalidRange(*args, **kwargs)
1282
_richtext.RichTextParagraphLayoutBox_swigregister(RichTextParagraphLayoutBox)
1284
class RichTextLine(object):
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
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):
1294
__init__(self, RichTextParagraph parent) -> RichTextLine
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
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)
1307
def GetParent(*args, **kwargs):
1308
"""GetParent(self) -> RichTextParagraph"""
1309
return _richtext.RichTextLine_GetParent(*args, **kwargs)
1311
def GetRange(*args, **kwargs):
1312
"""GetRange(self) -> RichTextRange"""
1313
return _richtext.RichTextLine_GetRange(*args, **kwargs)
1315
def GetAbsoluteRange(*args, **kwargs):
1316
"""GetAbsoluteRange(self) -> RichTextRange"""
1317
return _richtext.RichTextLine_GetAbsoluteRange(*args, **kwargs)
1319
def GetSize(*args, **kwargs):
1320
"""GetSize(self) -> Size"""
1321
return _richtext.RichTextLine_GetSize(*args, **kwargs)
1323
def SetSize(*args, **kwargs):
1324
"""SetSize(self, Size sz)"""
1325
return _richtext.RichTextLine_SetSize(*args, **kwargs)
1327
def GetPosition(*args, **kwargs):
1328
"""GetPosition(self) -> Point"""
1329
return _richtext.RichTextLine_GetPosition(*args, **kwargs)
1331
def SetPosition(*args, **kwargs):
1332
"""SetPosition(self, Point pos)"""
1333
return _richtext.RichTextLine_SetPosition(*args, **kwargs)
1335
def GetAbsolutePosition(*args, **kwargs):
1336
"""GetAbsolutePosition(self) -> Point"""
1337
return _richtext.RichTextLine_GetAbsolutePosition(*args, **kwargs)
1339
def GetRect(*args, **kwargs):
1340
"""GetRect(self) -> Rect"""
1341
return _richtext.RichTextLine_GetRect(*args, **kwargs)
1343
def SetDescent(*args, **kwargs):
1344
"""SetDescent(self, int descent)"""
1345
return _richtext.RichTextLine_SetDescent(*args, **kwargs)
1347
def GetDescent(*args, **kwargs):
1348
"""GetDescent(self) -> int"""
1349
return _richtext.RichTextLine_GetDescent(*args, **kwargs)
1351
def Init(*args, **kwargs):
1352
"""Init(self, RichTextParagraph parent)"""
1353
return _richtext.RichTextLine_Init(*args, **kwargs)
1355
def Copy(*args, **kwargs):
1356
"""Copy(self, RichTextLine obj)"""
1357
return _richtext.RichTextLine_Copy(*args, **kwargs)
1359
def Clone(*args, **kwargs):
1360
"""Clone(self) -> RichTextLine"""
1361
return _richtext.RichTextLine_Clone(*args, **kwargs)
1363
_richtext.RichTextLine_swigregister(RichTextLine)
1365
class RichTextParagraph(RichTextBox):
1367
This object represents a single paragraph (or in a straight text
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):
1374
__init__(self, String text, RichTextObject parent=None, TextAttrEx paraStyle=None,
1375
TextAttrEx charStyle=None) -> RichTextParagraph
1377
This object represents a single paragraph (or in a straight text
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)
1387
def Copy(*args, **kwargs):
1388
"""Copy(self, RichTextParagraph obj)"""
1389
return _richtext.RichTextParagraph_Copy(*args, **kwargs)
1391
def ClearLines(*args, **kwargs):
1392
"""ClearLines(self)"""
1393
return _richtext.RichTextParagraph_ClearLines(*args, **kwargs)
1395
def ApplyParagraphStyle(*args, **kwargs):
1396
"""ApplyParagraphStyle(self, TextAttrEx attr, Rect rect)"""
1397
return _richtext.RichTextParagraph_ApplyParagraphStyle(*args, **kwargs)
1399
def InsertText(*args, **kwargs):
1400
"""InsertText(self, long pos, String text) -> bool"""
1401
return _richtext.RichTextParagraph_InsertText(*args, **kwargs)
1403
def SplitAt(*args, **kwargs):
1404
"""SplitAt(self, long pos, RichTextObject previousObject=None) -> RichTextObject"""
1405
return _richtext.RichTextParagraph_SplitAt(*args, **kwargs)
1407
def MoveToList(*args, **kwargs):
1408
"""MoveToList(self, RichTextObject obj, wxList list)"""
1409
return _richtext.RichTextParagraph_MoveToList(*args, **kwargs)
1411
def MoveFromList(*args, **kwargs):
1412
"""MoveFromList(self, wxList list)"""
1413
return _richtext.RichTextParagraph_MoveFromList(*args, **kwargs)
1415
def GetContiguousPlainText(*args, **kwargs):
1416
"""GetContiguousPlainText(self, String text, RichTextRange range, bool fromStart=True) -> bool"""
1417
return _richtext.RichTextParagraph_GetContiguousPlainText(*args, **kwargs)
1419
def FindWrapPosition(*args, **kwargs):
1420
"""FindWrapPosition(self, RichTextRange range, DC dc, int availableSpace, long wrapPosition) -> bool"""
1421
return _richtext.RichTextParagraph_FindWrapPosition(*args, **kwargs)
1423
def FindObjectAtPosition(*args, **kwargs):
1424
"""FindObjectAtPosition(self, long position) -> RichTextObject"""
1425
return _richtext.RichTextParagraph_FindObjectAtPosition(*args, **kwargs)
1427
def GetBulletText(*args, **kwargs):
1428
"""GetBulletText(self) -> String"""
1429
return _richtext.RichTextParagraph_GetBulletText(*args, **kwargs)
1431
def AllocateLine(*args, **kwargs):
1432
"""AllocateLine(self, int pos) -> RichTextLine"""
1433
return _richtext.RichTextParagraph_AllocateLine(*args, **kwargs)
1435
def ClearUnusedLines(*args, **kwargs):
1436
"""ClearUnusedLines(self, int lineCount) -> bool"""
1437
return _richtext.RichTextParagraph_ClearUnusedLines(*args, **kwargs)
1439
def GetCombinedAttributes(*args, **kwargs):
1440
"""GetCombinedAttributes(self, TextAttrEx contentStyle=None) -> TextAttrEx"""
1441
return _richtext.RichTextParagraph_GetCombinedAttributes(*args, **kwargs)
1443
def GetFirstLineBreakPosition(*args, **kwargs):
1444
"""GetFirstLineBreakPosition(self, long pos) -> long"""
1445
return _richtext.RichTextParagraph_GetFirstLineBreakPosition(*args, **kwargs)
1447
def InitDefaultTabs(*args, **kwargs):
1448
"""InitDefaultTabs()"""
1449
return _richtext.RichTextParagraph_InitDefaultTabs(*args, **kwargs)
1451
InitDefaultTabs = staticmethod(InitDefaultTabs)
1452
def ClearDefaultTabs(*args, **kwargs):
1453
"""ClearDefaultTabs()"""
1454
return _richtext.RichTextParagraph_ClearDefaultTabs(*args, **kwargs)
1456
ClearDefaultTabs = staticmethod(ClearDefaultTabs)
1457
def GetDefaultTabs(*args, **kwargs):
1458
"""GetDefaultTabs() -> wxArrayInt"""
1459
return _richtext.RichTextParagraph_GetDefaultTabs(*args, **kwargs)
1461
GetDefaultTabs = staticmethod(GetDefaultTabs)
1462
_richtext.RichTextParagraph_swigregister(RichTextParagraph)
1464
def RichTextParagraph_InitDefaultTabs(*args):
1465
"""RichTextParagraph_InitDefaultTabs()"""
1466
return _richtext.RichTextParagraph_InitDefaultTabs(*args)
1468
def RichTextParagraph_ClearDefaultTabs(*args):
1469
"""RichTextParagraph_ClearDefaultTabs()"""
1470
return _richtext.RichTextParagraph_ClearDefaultTabs(*args)
1472
def RichTextParagraph_GetDefaultTabs(*args):
1473
"""RichTextParagraph_GetDefaultTabs() -> wxArrayInt"""
1474
return _richtext.RichTextParagraph_GetDefaultTabs(*args)
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):
1482
__init__(self, String text=wxEmptyString, RichTextObject parent=None,
1483
TextAttrEx style=None) -> RichTextPlainText
1485
This object represents a single piece of text.
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)
1492
def GetText(*args, **kwargs):
1493
"""GetText(self) -> String"""
1494
return _richtext.RichTextPlainText_GetText(*args, **kwargs)
1496
def SetText(*args, **kwargs):
1497
"""SetText(self, String text)"""
1498
return _richtext.RichTextPlainText_SetText(*args, **kwargs)
1500
def Copy(*args, **kwargs):
1501
"""Copy(self, RichTextPlainText obj)"""
1502
return _richtext.RichTextPlainText_Copy(*args, **kwargs)
1504
_richtext.RichTextPlainText_swigregister(RichTextPlainText)
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):
1512
__init__(self, RichTextObject parent=None) -> RichTextImage
1514
This object represents an image.
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)
1521
def SetImage(*args, **kwargs):
1522
"""SetImage(self, Image image)"""
1523
return _richtext.RichTextImage_SetImage(*args, **kwargs)
1525
def GetImageBlock(*args, **kwargs):
1526
"""GetImageBlock(self) -> wxRichTextImageBlock"""
1527
return _richtext.RichTextImage_GetImageBlock(*args, **kwargs)
1529
def Copy(*args, **kwargs):
1530
"""Copy(self, RichTextImage obj)"""
1531
return _richtext.RichTextImage_Copy(*args, **kwargs)
1533
def LoadFromBlock(*args, **kwargs):
1534
"""LoadFromBlock(self) -> bool"""
1535
return _richtext.RichTextImage_LoadFromBlock(*args, **kwargs)
1537
def MakeBlock(*args, **kwargs):
1538
"""MakeBlock(self) -> bool"""
1539
return _richtext.RichTextImage_MakeBlock(*args, **kwargs)
1541
_richtext.RichTextImage_swigregister(RichTextImage)
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)
1554
_richtext.RichTextFileHandlerList_iterator_swigregister(RichTextFileHandlerList_iterator)
1556
class RichTextFileHandlerList(object):
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.
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)
1571
def __getitem__(*args, **kwargs):
1572
"""__getitem__(self, size_t index) -> RichTextFileHandler"""
1573
return _richtext.RichTextFileHandlerList___getitem__(*args, **kwargs)
1575
def __contains__(*args, **kwargs):
1576
"""__contains__(self, RichTextFileHandler obj) -> bool"""
1577
return _richtext.RichTextFileHandlerList___contains__(*args, **kwargs)
1579
def __iter__(*args, **kwargs):
1580
"""__iter__(self) -> RichTextFileHandlerList_iterator"""
1581
return _richtext.RichTextFileHandlerList___iter__(*args, **kwargs)
1584
return "wxRichTextFileHandlerList: " + repr(list(self))
1586
_richtext.RichTextFileHandlerList_swigregister(RichTextFileHandlerList)
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):
1594
__init__(self) -> RichTextBuffer
1596
This is a kind of box, used to represent the whole buffer.
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)
1605
def SetStyleSheet(*args, **kwargs):
1606
"""SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
1607
return _richtext.RichTextBuffer_SetStyleSheet(*args, **kwargs)
1609
def SetStyleSheetAndNotify(*args, **kwargs):
1610
"""SetStyleSheetAndNotify(self, wxRichTextStyleSheet sheet) -> bool"""
1611
return _richtext.RichTextBuffer_SetStyleSheetAndNotify(*args, **kwargs)
1613
def PushStyleSheet(*args, **kwargs):
1614
"""PushStyleSheet(self, wxRichTextStyleSheet styleSheet) -> bool"""
1615
return _richtext.RichTextBuffer_PushStyleSheet(*args, **kwargs)
1617
def PopStyleSheet(*args, **kwargs):
1618
"""PopStyleSheet(self) -> wxRichTextStyleSheet"""
1619
return _richtext.RichTextBuffer_PopStyleSheet(*args, **kwargs)
1621
def Init(*args, **kwargs):
1623
return _richtext.RichTextBuffer_Init(*args, **kwargs)
1625
def ResetAndClearCommands(*args, **kwargs):
1626
"""ResetAndClearCommands(self)"""
1627
return _richtext.RichTextBuffer_ResetAndClearCommands(*args, **kwargs)
1629
def LoadFile(*args, **kwargs):
1630
"""LoadFile(self, String filename, int type=RICHTEXT_TYPE_ANY) -> bool"""
1631
return _richtext.RichTextBuffer_LoadFile(*args, **kwargs)
1633
def SaveFile(*args, **kwargs):
1634
"""SaveFile(self, String filename, int type=RICHTEXT_TYPE_ANY) -> bool"""
1635
return _richtext.RichTextBuffer_SaveFile(*args, **kwargs)
1637
def LoadStream(*args, **kwargs):
1638
"""LoadStream(self, InputStream stream, int type=RICHTEXT_TYPE_ANY) -> bool"""
1639
return _richtext.RichTextBuffer_LoadStream(*args, **kwargs)
1641
def SaveStream(*args, **kwargs):
1642
"""SaveStream(self, wxOutputStream stream, int type=RICHTEXT_TYPE_ANY) -> bool"""
1643
return _richtext.RichTextBuffer_SaveStream(*args, **kwargs)
1645
def SetHandlerFlags(*args, **kwargs):
1646
"""SetHandlerFlags(self, int flags)"""
1647
return _richtext.RichTextBuffer_SetHandlerFlags(*args, **kwargs)
1649
def GetHandlerFlags(*args, **kwargs):
1650
"""GetHandlerFlags(self) -> int"""
1651
return _richtext.RichTextBuffer_GetHandlerFlags(*args, **kwargs)
1653
def BeginBatchUndo(*args, **kwargs):
1654
"""BeginBatchUndo(self, String cmdName) -> bool"""
1655
return _richtext.RichTextBuffer_BeginBatchUndo(*args, **kwargs)
1657
def EndBatchUndo(*args, **kwargs):
1658
"""EndBatchUndo(self) -> bool"""
1659
return _richtext.RichTextBuffer_EndBatchUndo(*args, **kwargs)
1661
def BatchingUndo(*args, **kwargs):
1662
"""BatchingUndo(self) -> bool"""
1663
return _richtext.RichTextBuffer_BatchingUndo(*args, **kwargs)
1665
def SubmitAction(*args, **kwargs):
1666
"""SubmitAction(self, RichTextAction action) -> bool"""
1667
return _richtext.RichTextBuffer_SubmitAction(*args, **kwargs)
1669
def GetBatchedCommand(*args, **kwargs):
1670
"""GetBatchedCommand(self) -> RichTextCommand"""
1671
return _richtext.RichTextBuffer_GetBatchedCommand(*args, **kwargs)
1673
def BeginSuppressUndo(*args, **kwargs):
1674
"""BeginSuppressUndo(self) -> bool"""
1675
return _richtext.RichTextBuffer_BeginSuppressUndo(*args, **kwargs)
1677
def EndSuppressUndo(*args, **kwargs):
1678
"""EndSuppressUndo(self) -> bool"""
1679
return _richtext.RichTextBuffer_EndSuppressUndo(*args, **kwargs)
1681
def SuppressingUndo(*args, **kwargs):
1682
"""SuppressingUndo(self) -> bool"""
1683
return _richtext.RichTextBuffer_SuppressingUndo(*args, **kwargs)
1685
def CopyToClipboard(*args, **kwargs):
1686
"""CopyToClipboard(self, RichTextRange range) -> bool"""
1687
return _richtext.RichTextBuffer_CopyToClipboard(*args, **kwargs)
1689
def PasteFromClipboard(*args, **kwargs):
1690
"""PasteFromClipboard(self, long position) -> bool"""
1691
return _richtext.RichTextBuffer_PasteFromClipboard(*args, **kwargs)
1693
def CanPasteFromClipboard(*args, **kwargs):
1694
"""CanPasteFromClipboard(self) -> bool"""
1695
return _richtext.RichTextBuffer_CanPasteFromClipboard(*args, **kwargs)
1697
def BeginStyle(*args, **kwargs):
1698
"""BeginStyle(self, TextAttrEx style) -> bool"""
1699
return _richtext.RichTextBuffer_BeginStyle(*args, **kwargs)
1701
def EndStyle(*args, **kwargs):
1702
"""EndStyle(self) -> bool"""
1703
return _richtext.RichTextBuffer_EndStyle(*args, **kwargs)
1705
def EndAllStyles(*args, **kwargs):
1706
"""EndAllStyles(self) -> bool"""
1707
return _richtext.RichTextBuffer_EndAllStyles(*args, **kwargs)
1709
def ClearStyleStack(*args, **kwargs):
1710
"""ClearStyleStack(self)"""
1711
return _richtext.RichTextBuffer_ClearStyleStack(*args, **kwargs)
1713
def GetStyleStackSize(*args, **kwargs):
1714
"""GetStyleStackSize(self) -> size_t"""
1715
return _richtext.RichTextBuffer_GetStyleStackSize(*args, **kwargs)
1717
def BeginBold(*args, **kwargs):
1718
"""BeginBold(self) -> bool"""
1719
return _richtext.RichTextBuffer_BeginBold(*args, **kwargs)
1721
def EndBold(*args, **kwargs):
1722
"""EndBold(self) -> bool"""
1723
return _richtext.RichTextBuffer_EndBold(*args, **kwargs)
1725
def BeginItalic(*args, **kwargs):
1726
"""BeginItalic(self) -> bool"""
1727
return _richtext.RichTextBuffer_BeginItalic(*args, **kwargs)
1729
def EndItalic(*args, **kwargs):
1730
"""EndItalic(self) -> bool"""
1731
return _richtext.RichTextBuffer_EndItalic(*args, **kwargs)
1733
def BeginUnderline(*args, **kwargs):
1734
"""BeginUnderline(self) -> bool"""
1735
return _richtext.RichTextBuffer_BeginUnderline(*args, **kwargs)
1737
def EndUnderline(*args, **kwargs):
1738
"""EndUnderline(self) -> bool"""
1739
return _richtext.RichTextBuffer_EndUnderline(*args, **kwargs)
1741
def BeginFontSize(*args, **kwargs):
1742
"""BeginFontSize(self, int pointSize) -> bool"""
1743
return _richtext.RichTextBuffer_BeginFontSize(*args, **kwargs)
1745
def EndFontSize(*args, **kwargs):
1746
"""EndFontSize(self) -> bool"""
1747
return _richtext.RichTextBuffer_EndFontSize(*args, **kwargs)
1749
def BeginFont(*args, **kwargs):
1750
"""BeginFont(self, Font font) -> bool"""
1751
return _richtext.RichTextBuffer_BeginFont(*args, **kwargs)
1753
def EndFont(*args, **kwargs):
1754
"""EndFont(self) -> bool"""
1755
return _richtext.RichTextBuffer_EndFont(*args, **kwargs)
1757
def BeginTextColour(*args, **kwargs):
1758
"""BeginTextColour(self, Colour colour) -> bool"""
1759
return _richtext.RichTextBuffer_BeginTextColour(*args, **kwargs)
1761
def EndTextColour(*args, **kwargs):
1762
"""EndTextColour(self) -> bool"""
1763
return _richtext.RichTextBuffer_EndTextColour(*args, **kwargs)
1765
def BeginAlignment(*args, **kwargs):
1766
"""BeginAlignment(self, int alignment) -> bool"""
1767
return _richtext.RichTextBuffer_BeginAlignment(*args, **kwargs)
1769
def EndAlignment(*args, **kwargs):
1770
"""EndAlignment(self) -> bool"""
1771
return _richtext.RichTextBuffer_EndAlignment(*args, **kwargs)
1773
def BeginLeftIndent(*args, **kwargs):
1774
"""BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
1775
return _richtext.RichTextBuffer_BeginLeftIndent(*args, **kwargs)
1777
def EndLeftIndent(*args, **kwargs):
1778
"""EndLeftIndent(self) -> bool"""
1779
return _richtext.RichTextBuffer_EndLeftIndent(*args, **kwargs)
1781
def BeginRightIndent(*args, **kwargs):
1782
"""BeginRightIndent(self, int rightIndent) -> bool"""
1783
return _richtext.RichTextBuffer_BeginRightIndent(*args, **kwargs)
1785
def EndRightIndent(*args, **kwargs):
1786
"""EndRightIndent(self) -> bool"""
1787
return _richtext.RichTextBuffer_EndRightIndent(*args, **kwargs)
1789
def BeginParagraphSpacing(*args, **kwargs):
1790
"""BeginParagraphSpacing(self, int before, int after) -> bool"""
1791
return _richtext.RichTextBuffer_BeginParagraphSpacing(*args, **kwargs)
1793
def EndParagraphSpacing(*args, **kwargs):
1794
"""EndParagraphSpacing(self) -> bool"""
1795
return _richtext.RichTextBuffer_EndParagraphSpacing(*args, **kwargs)
1797
def BeginLineSpacing(*args, **kwargs):
1798
"""BeginLineSpacing(self, int lineSpacing) -> bool"""
1799
return _richtext.RichTextBuffer_BeginLineSpacing(*args, **kwargs)
1801
def EndLineSpacing(*args, **kwargs):
1802
"""EndLineSpacing(self) -> bool"""
1803
return _richtext.RichTextBuffer_EndLineSpacing(*args, **kwargs)
1805
def BeginNumberedBullet(*args, **kwargs):
1807
BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent,
1808
int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
1810
return _richtext.RichTextBuffer_BeginNumberedBullet(*args, **kwargs)
1812
def EndNumberedBullet(*args, **kwargs):
1813
"""EndNumberedBullet(self) -> bool"""
1814
return _richtext.RichTextBuffer_EndNumberedBullet(*args, **kwargs)
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)
1820
def EndSymbolBullet(*args, **kwargs):
1821
"""EndSymbolBullet(self) -> bool"""
1822
return _richtext.RichTextBuffer_EndSymbolBullet(*args, **kwargs)
1824
def BeginStandardBullet(*args, **kwargs):
1826
BeginStandardBullet(self, String bulletName, int leftIndent, int leftSubIndent,
1827
int bulletStyle=TEXT_ATTR_BULLET_STYLE_STANDARD) -> bool
1829
return _richtext.RichTextBuffer_BeginStandardBullet(*args, **kwargs)
1831
def EndStandardBullet(*args, **kwargs):
1832
"""EndStandardBullet(self) -> bool"""
1833
return _richtext.RichTextBuffer_EndStandardBullet(*args, **kwargs)
1835
def BeginCharacterStyle(*args, **kwargs):
1836
"""BeginCharacterStyle(self, String characterStyle) -> bool"""
1837
return _richtext.RichTextBuffer_BeginCharacterStyle(*args, **kwargs)
1839
def EndCharacterStyle(*args, **kwargs):
1840
"""EndCharacterStyle(self) -> bool"""
1841
return _richtext.RichTextBuffer_EndCharacterStyle(*args, **kwargs)
1843
def BeginParagraphStyle(*args, **kwargs):
1844
"""BeginParagraphStyle(self, String paragraphStyle) -> bool"""
1845
return _richtext.RichTextBuffer_BeginParagraphStyle(*args, **kwargs)
1847
def EndParagraphStyle(*args, **kwargs):
1848
"""EndParagraphStyle(self) -> bool"""
1849
return _richtext.RichTextBuffer_EndParagraphStyle(*args, **kwargs)
1851
def BeginListStyle(*args, **kwargs):
1852
"""BeginListStyle(self, String listStyle, int level=1, int number=1) -> bool"""
1853
return _richtext.RichTextBuffer_BeginListStyle(*args, **kwargs)
1855
def EndListStyle(*args, **kwargs):
1856
"""EndListStyle(self) -> bool"""
1857
return _richtext.RichTextBuffer_EndListStyle(*args, **kwargs)
1859
def BeginURL(*args, **kwargs):
1860
"""BeginURL(self, String url, String characterStyle=wxEmptyString) -> bool"""
1861
return _richtext.RichTextBuffer_BeginURL(*args, **kwargs)
1863
def EndURL(*args, **kwargs):
1864
"""EndURL(self) -> bool"""
1865
return _richtext.RichTextBuffer_EndURL(*args, **kwargs)
1867
def AddEventHandler(*args, **kwargs):
1868
"""AddEventHandler(self, EvtHandler handler) -> bool"""
1869
return _richtext.RichTextBuffer_AddEventHandler(*args, **kwargs)
1871
def RemoveEventHandler(*args, **kwargs):
1872
"""RemoveEventHandler(self, EvtHandler handler, bool deleteHandler=False) -> bool"""
1873
return _richtext.RichTextBuffer_RemoveEventHandler(*args, **kwargs)
1875
def ClearEventHandlers(*args, **kwargs):
1876
"""ClearEventHandlers(self)"""
1877
return _richtext.RichTextBuffer_ClearEventHandlers(*args, **kwargs)
1879
def SendEvent(*args, **kwargs):
1880
"""SendEvent(self, Event event, bool sendToAll=True) -> bool"""
1881
return _richtext.RichTextBuffer_SendEvent(*args, **kwargs)
1883
def Copy(*args, **kwargs):
1884
"""Copy(self, RichTextBuffer obj)"""
1885
return _richtext.RichTextBuffer_Copy(*args, **kwargs)
1887
def InsertParagraphsWithUndo(*args, **kwargs):
1889
InsertParagraphsWithUndo(self, long pos, RichTextParagraphLayoutBox paragraphs, RichTextCtrl ctrl,
1890
int flags=0) -> bool
1892
return _richtext.RichTextBuffer_InsertParagraphsWithUndo(*args, **kwargs)
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)
1898
def InsertNewlineWithUndo(*args, **kwargs):
1899
"""InsertNewlineWithUndo(self, long pos, RichTextCtrl ctrl, int flags=0) -> bool"""
1900
return _richtext.RichTextBuffer_InsertNewlineWithUndo(*args, **kwargs)
1902
def InsertImageWithUndo(*args, **kwargs):
1904
InsertImageWithUndo(self, long pos, wxRichTextImageBlock imageBlock, RichTextCtrl ctrl,
1905
int flags=0) -> bool
1907
return _richtext.RichTextBuffer_InsertImageWithUndo(*args, **kwargs)
1909
def DeleteRangeWithUndo(*args, **kwargs):
1910
"""DeleteRangeWithUndo(self, RichTextRange range, RichTextCtrl ctrl) -> bool"""
1911
return _richtext.RichTextBuffer_DeleteRangeWithUndo(*args, **kwargs)
1913
def Modify(*args, **kwargs):
1914
"""Modify(self, bool modify=True)"""
1915
return _richtext.RichTextBuffer_Modify(*args, **kwargs)
1917
def IsModified(*args, **kwargs):
1918
"""IsModified(self) -> bool"""
1919
return _richtext.RichTextBuffer_IsModified(*args, **kwargs)
1921
def GetStyleForNewParagraph(*args, **kwargs):
1922
"""GetStyleForNewParagraph(self, long pos, bool caretPosition=False, bool lookUpNewParaStyle=False) -> TextAttrEx"""
1923
return _richtext.RichTextBuffer_GetStyleForNewParagraph(*args, **kwargs)
1925
def GetHandlers(*args, **kwargs):
1926
"""GetHandlers() -> wxRichTextFileHandlerList_t"""
1927
return _richtext.RichTextBuffer_GetHandlers(*args, **kwargs)
1929
GetHandlers = staticmethod(GetHandlers)
1930
def AddHandler(*args, **kwargs):
1931
"""AddHandler(RichTextFileHandler handler)"""
1932
return _richtext.RichTextBuffer_AddHandler(*args, **kwargs)
1934
AddHandler = staticmethod(AddHandler)
1935
def InsertHandler(*args, **kwargs):
1936
"""InsertHandler(RichTextFileHandler handler)"""
1937
return _richtext.RichTextBuffer_InsertHandler(*args, **kwargs)
1939
InsertHandler = staticmethod(InsertHandler)
1940
def RemoveHandler(*args, **kwargs):
1941
"""RemoveHandler(String name) -> bool"""
1942
return _richtext.RichTextBuffer_RemoveHandler(*args, **kwargs)
1944
RemoveHandler = staticmethod(RemoveHandler)
1945
def FindHandlerByName(*args, **kwargs):
1946
"""FindHandlerByName(String name) -> RichTextFileHandler"""
1947
return _richtext.RichTextBuffer_FindHandlerByName(*args, **kwargs)
1949
FindHandlerByName = staticmethod(FindHandlerByName)
1950
def FindHandlerByExtension(*args, **kwargs):
1951
"""FindHandlerByExtension(String extension, int imageType) -> RichTextFileHandler"""
1952
return _richtext.RichTextBuffer_FindHandlerByExtension(*args, **kwargs)
1954
FindHandlerByExtension = staticmethod(FindHandlerByExtension)
1955
def FindHandlerByFilename(*args, **kwargs):
1956
"""FindHandlerByFilename(String filename, int imageType) -> RichTextFileHandler"""
1957
return _richtext.RichTextBuffer_FindHandlerByFilename(*args, **kwargs)
1959
FindHandlerByFilename = staticmethod(FindHandlerByFilename)
1960
def FindHandlerByType(*args, **kwargs):
1961
"""FindHandlerByType(int imageType) -> RichTextFileHandler"""
1962
return _richtext.RichTextBuffer_FindHandlerByType(*args, **kwargs)
1964
FindHandlerByType = staticmethod(FindHandlerByType)
1965
def GetExtWildcard(*args, **kwargs):
1967
GetExtWildcard(self, bool combine=False, bool save=False) --> (wildcards, types)
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.
1973
return _richtext.RichTextBuffer_GetExtWildcard(*args, **kwargs)
1975
GetExtWildcard = staticmethod(GetExtWildcard)
1976
def CleanUpHandlers(*args, **kwargs):
1977
"""CleanUpHandlers()"""
1978
return _richtext.RichTextBuffer_CleanUpHandlers(*args, **kwargs)
1980
CleanUpHandlers = staticmethod(CleanUpHandlers)
1981
def InitStandardHandlers(*args, **kwargs):
1982
"""InitStandardHandlers()"""
1983
return _richtext.RichTextBuffer_InitStandardHandlers(*args, **kwargs)
1985
InitStandardHandlers = staticmethod(InitStandardHandlers)
1986
def GetRenderer(*args, **kwargs):
1987
"""GetRenderer() -> RichTextRenderer"""
1988
return _richtext.RichTextBuffer_GetRenderer(*args, **kwargs)
1990
GetRenderer = staticmethod(GetRenderer)
1991
def SetRenderer(*args, **kwargs):
1992
"""SetRenderer(RichTextRenderer renderer)"""
1993
return _richtext.RichTextBuffer_SetRenderer(*args, **kwargs)
1995
SetRenderer = staticmethod(SetRenderer)
1996
def GetBulletRightMargin(*args, **kwargs):
1997
"""GetBulletRightMargin() -> int"""
1998
return _richtext.RichTextBuffer_GetBulletRightMargin(*args, **kwargs)
2000
GetBulletRightMargin = staticmethod(GetBulletRightMargin)
2001
def SetBulletRightMargin(*args, **kwargs):
2002
"""SetBulletRightMargin(int margin)"""
2003
return _richtext.RichTextBuffer_SetBulletRightMargin(*args, **kwargs)
2005
SetBulletRightMargin = staticmethod(SetBulletRightMargin)
2006
def GetBulletProportion(*args, **kwargs):
2007
"""GetBulletProportion() -> float"""
2008
return _richtext.RichTextBuffer_GetBulletProportion(*args, **kwargs)
2010
GetBulletProportion = staticmethod(GetBulletProportion)
2011
def SetBulletProportion(*args, **kwargs):
2012
"""SetBulletProportion(float prop)"""
2013
return _richtext.RichTextBuffer_SetBulletProportion(*args, **kwargs)
2015
SetBulletProportion = staticmethod(SetBulletProportion)
2016
def GetScale(*args, **kwargs):
2017
"""GetScale(self) -> double"""
2018
return _richtext.RichTextBuffer_GetScale(*args, **kwargs)
2020
def SetScale(*args, **kwargs):
2021
"""SetScale(self, double scale)"""
2022
return _richtext.RichTextBuffer_SetScale(*args, **kwargs)
2024
_richtext.RichTextBuffer_swigregister(RichTextBuffer)
2026
def RichTextBuffer_GetHandlers(*args):
2027
"""RichTextBuffer_GetHandlers() -> wxRichTextFileHandlerList_t"""
2028
return _richtext.RichTextBuffer_GetHandlers(*args)
2030
def RichTextBuffer_AddHandler(*args, **kwargs):
2031
"""RichTextBuffer_AddHandler(RichTextFileHandler handler)"""
2032
return _richtext.RichTextBuffer_AddHandler(*args, **kwargs)
2034
def RichTextBuffer_InsertHandler(*args, **kwargs):
2035
"""RichTextBuffer_InsertHandler(RichTextFileHandler handler)"""
2036
return _richtext.RichTextBuffer_InsertHandler(*args, **kwargs)
2038
def RichTextBuffer_RemoveHandler(*args, **kwargs):
2039
"""RichTextBuffer_RemoveHandler(String name) -> bool"""
2040
return _richtext.RichTextBuffer_RemoveHandler(*args, **kwargs)
2042
def RichTextBuffer_FindHandlerByName(*args, **kwargs):
2043
"""RichTextBuffer_FindHandlerByName(String name) -> RichTextFileHandler"""
2044
return _richtext.RichTextBuffer_FindHandlerByName(*args, **kwargs)
2046
def RichTextBuffer_FindHandlerByExtension(*args, **kwargs):
2047
"""RichTextBuffer_FindHandlerByExtension(String extension, int imageType) -> RichTextFileHandler"""
2048
return _richtext.RichTextBuffer_FindHandlerByExtension(*args, **kwargs)
2050
def RichTextBuffer_FindHandlerByFilename(*args, **kwargs):
2051
"""RichTextBuffer_FindHandlerByFilename(String filename, int imageType) -> RichTextFileHandler"""
2052
return _richtext.RichTextBuffer_FindHandlerByFilename(*args, **kwargs)
2054
def RichTextBuffer_FindHandlerByType(*args, **kwargs):
2055
"""RichTextBuffer_FindHandlerByType(int imageType) -> RichTextFileHandler"""
2056
return _richtext.RichTextBuffer_FindHandlerByType(*args, **kwargs)
2058
def RichTextBuffer_GetExtWildcard(*args, **kwargs):
2060
GetExtWildcard(self, bool combine=False, bool save=False) --> (wildcards, types)
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.
2066
return _richtext.RichTextBuffer_GetExtWildcard(*args, **kwargs)
2068
def RichTextBuffer_CleanUpHandlers(*args):
2069
"""RichTextBuffer_CleanUpHandlers()"""
2070
return _richtext.RichTextBuffer_CleanUpHandlers(*args)
2072
def RichTextBuffer_InitStandardHandlers(*args):
2073
"""RichTextBuffer_InitStandardHandlers()"""
2074
return _richtext.RichTextBuffer_InitStandardHandlers(*args)
2076
def RichTextBuffer_GetRenderer(*args):
2077
"""RichTextBuffer_GetRenderer() -> RichTextRenderer"""
2078
return _richtext.RichTextBuffer_GetRenderer(*args)
2080
def RichTextBuffer_SetRenderer(*args, **kwargs):
2081
"""RichTextBuffer_SetRenderer(RichTextRenderer renderer)"""
2082
return _richtext.RichTextBuffer_SetRenderer(*args, **kwargs)
2084
def RichTextBuffer_GetBulletRightMargin(*args):
2085
"""RichTextBuffer_GetBulletRightMargin() -> int"""
2086
return _richtext.RichTextBuffer_GetBulletRightMargin(*args)
2088
def RichTextBuffer_SetBulletRightMargin(*args, **kwargs):
2089
"""RichTextBuffer_SetBulletRightMargin(int margin)"""
2090
return _richtext.RichTextBuffer_SetBulletRightMargin(*args, **kwargs)
2092
def RichTextBuffer_GetBulletProportion(*args):
2093
"""RichTextBuffer_GetBulletProportion() -> float"""
2094
return _richtext.RichTextBuffer_GetBulletProportion(*args)
2096
def RichTextBuffer_SetBulletProportion(*args, **kwargs):
2097
"""RichTextBuffer_SetBulletProportion(float prop)"""
2098
return _richtext.RichTextBuffer_SetBulletProportion(*args, **kwargs)
2100
#---------------------------------------------------------------------------
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)
2118
def SaveStream(*args, **kwargs):
2119
"""SaveStream(self, RichTextBuffer buffer, wxOutputStream stream) -> bool"""
2120
return _richtext.RichTextFileHandler_SaveStream(*args, **kwargs)
2122
def LoadFile(*args, **kwargs):
2123
"""LoadFile(self, RichTextBuffer buffer, String filename) -> bool"""
2124
return _richtext.RichTextFileHandler_LoadFile(*args, **kwargs)
2126
def SaveFile(*args, **kwargs):
2127
"""SaveFile(self, RichTextBuffer buffer, String filename) -> bool"""
2128
return _richtext.RichTextFileHandler_SaveFile(*args, **kwargs)
2130
def CanHandle(*args, **kwargs):
2131
"""CanHandle(self, String filename) -> bool"""
2132
return _richtext.RichTextFileHandler_CanHandle(*args, **kwargs)
2134
def CanSave(*args, **kwargs):
2135
"""CanSave(self) -> bool"""
2136
return _richtext.RichTextFileHandler_CanSave(*args, **kwargs)
2138
def CanLoad(*args, **kwargs):
2139
"""CanLoad(self) -> bool"""
2140
return _richtext.RichTextFileHandler_CanLoad(*args, **kwargs)
2142
def IsVisible(*args, **kwargs):
2143
"""IsVisible(self) -> bool"""
2144
return _richtext.RichTextFileHandler_IsVisible(*args, **kwargs)
2146
def SetVisible(*args, **kwargs):
2147
"""SetVisible(self, bool visible)"""
2148
return _richtext.RichTextFileHandler_SetVisible(*args, **kwargs)
2150
def SetName(*args, **kwargs):
2151
"""SetName(self, String name)"""
2152
return _richtext.RichTextFileHandler_SetName(*args, **kwargs)
2154
def GetName(*args, **kwargs):
2155
"""GetName(self) -> String"""
2156
return _richtext.RichTextFileHandler_GetName(*args, **kwargs)
2158
Name = property(GetName,SetName)
2159
def SetExtension(*args, **kwargs):
2160
"""SetExtension(self, String ext)"""
2161
return _richtext.RichTextFileHandler_SetExtension(*args, **kwargs)
2163
def GetExtension(*args, **kwargs):
2164
"""GetExtension(self) -> String"""
2165
return _richtext.RichTextFileHandler_GetExtension(*args, **kwargs)
2167
Extension = property(GetExtension,SetExtension)
2168
def SetType(*args, **kwargs):
2169
"""SetType(self, int type)"""
2170
return _richtext.RichTextFileHandler_SetType(*args, **kwargs)
2172
def GetType(*args, **kwargs):
2173
"""GetType(self) -> int"""
2174
return _richtext.RichTextFileHandler_GetType(*args, **kwargs)
2176
Type = property(GetType,SetType)
2177
def SetFlags(*args, **kwargs):
2178
"""SetFlags(self, int flags)"""
2179
return _richtext.RichTextFileHandler_SetFlags(*args, **kwargs)
2181
def GetFlags(*args, **kwargs):
2182
"""GetFlags(self) -> int"""
2183
return _richtext.RichTextFileHandler_GetFlags(*args, **kwargs)
2185
Flags = property(GetFlags,SetFlags)
2186
def SetEncoding(*args, **kwargs):
2187
"""SetEncoding(self, String encoding)"""
2188
return _richtext.RichTextFileHandler_SetEncoding(*args, **kwargs)
2190
def GetEncoding(*args, **kwargs):
2191
"""GetEncoding(self) -> String"""
2192
return _richtext.RichTextFileHandler_GetEncoding(*args, **kwargs)
2194
Encoding = property(GetEncoding,SetEncoding)
2195
_richtext.RichTextFileHandler_swigregister(RichTextFileHandler)
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
2208
#---------------------------------------------------------------------------
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):
2219
DrawStandardBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr,
2222
return _richtext.RichTextRenderer_DrawStandardBullet(*args, **kwargs)
2224
def DrawTextBullet(*args, **kwargs):
2226
DrawTextBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr,
2227
Rect rect, String text) -> bool
2229
return _richtext.RichTextRenderer_DrawTextBullet(*args, **kwargs)
2231
def DrawBitmapBullet(*args, **kwargs):
2233
DrawBitmapBullet(self, RichTextParagraph paragraph, DC dc, TextAttrEx attr,
2236
return _richtext.RichTextRenderer_DrawBitmapBullet(*args, **kwargs)
2238
def EnumerateStandardBulletNames(*args, **kwargs):
2239
"""EnumerateStandardBulletNames(self, wxArrayString bulletNames) -> bool"""
2240
return _richtext.RichTextRenderer_EnumerateStandardBulletNames(*args, **kwargs)
2242
_richtext.RichTextRenderer_swigregister(RichTextRenderer)
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)
2253
#---------------------------------------------------------------------------
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')