eric7.QScintilla.Exporters.ExporterTEX

Module implementing an exporter for TeX.

Global Attributes

None

Classes

ExporterTEX Class implementing an exporter for TeX.

Functions

createExporter Function to instantiate an exporter object.


ExporterTEX

Class implementing an exporter for TeX.

Derived from

ExporterBase

Class Attributes

CHARZ

Class Methods

None

Methods

ExporterTEX Constructor
__defineTexStyle Private method to define a new TeX style.
__getTexRGB Private method to convert a color object to a TeX color string.
__texStyle Private method to calculate a style name string for a given style number.
exportSource Public method performing the export.

Static Methods

None

ExporterTEX (Constructor)

ExporterTEX(editor, parent=None)

Constructor

editor (QScintilla.Editor.Editor)
reference to the editor object
parent (QObject)
parent object of the exporter

ExporterTEX.__defineTexStyle

__defineTexStyle(font, color, paper, file, istyle)

Private method to define a new TeX style.

font (QFont)
the font to be used
color (QColor)
the foreground color to be used
paper (QColor)
the background color to be used
file (file)
reference to the open file to write to
istyle (int)
style number

ExporterTEX.__getTexRGB

__getTexRGB(color)

Private method to convert a color object to a TeX color string.

color (QColor)
color object to convert
Return:
TeX color string
Return Type:
str

ExporterTEX.__texStyle

__texStyle(style)

Private method to calculate a style name string for a given style number.

style (int)
style number
Return:
style name string
Return Type:
str

ExporterTEX.exportSource

exportSource()

Public method performing the export.

Up


createExporter

createExporter(editor, parent=None)

Function to instantiate an exporter object.

editor (QScintilla.Editor.Editor)
reference to the editor object
parent (QObject (optional))
parent object of the exporter (defaults to None)
Return:
exporter object
Return Type:
ExporterTEX
Up