eric6.QScintilla.Exporters.ExporterRTF
Module implementing an exporter for RTF.
Global Attributes
Classes
Functions
ExporterRTF
Class implementing an exporter for RTF.
Derived from
ExporterBase
Class Attributes
RTF_BODYCLOSE |
RTF_BODYOPEN |
RTF_BOLD_OFF |
RTF_BOLD_ON |
RTF_COLOR |
RTF_COLORDEF |
RTF_COLORDEFCLOSE |
RTF_COLORDEFOPEN |
RTF_COMMENT |
RTF_CREATED |
RTF_EOLN |
RTF_FONTDEF |
RTF_FONTDEFCLOSE |
RTF_FONTDEFOPEN |
RTF_HEADERCLOSE |
RTF_HEADEROPEN |
RTF_INFOCLOSE |
RTF_INFOOPEN |
RTF_ITALIC_OFF |
RTF_ITALIC_ON |
RTF_SETBACKGROUND |
RTF_SETCOLOR |
RTF_SETFONTFACE |
RTF_SETFONTSIZE |
RTF_TAB |
Class Methods
Methods
Static Methods
ExporterRTF (Constructor)
ExporterRTF(editor, parent=None)
Constructor
- editor
-
reference to the editor object (QScintilla.Editor.Editor)
- parent
-
parent object of the exporter (QObject)
ExporterRTF.__GetRTFNextControl
__GetRTFNextControl(pos, style)
Private method to extract the next RTF control word from style.
- pos
-
position to start search (integer)
- style
-
style definition to search in (string)
- Returns:
-
tuple of new start position and control word found
(integer, string)
ExporterRTF.__GetRTFStyleChange
__GetRTFStyleChange(last, current)
Private method to extract control words that are different between two
styles.
- last
-
least recently used style (string)
- current
-
current style (string)
- Returns:
-
string containing the delta between these styles (string)
ExporterRTF.exportSource
exportSource()
Public method performing the export.