src/eric7/QScintilla/Exporters/ExporterTEX.py

branch
eric7
changeset 9487
78cb053591c9
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- a/src/eric7/QScintilla/Exporters/ExporterTEX.py	Tue Nov 08 11:50:50 2022 +0100
+++ b/src/eric7/QScintilla/Exporters/ExporterTEX.py	Tue Nov 08 12:19:25 2022 +0100
@@ -295,3 +295,17 @@
                         """ <b>{0}</b>.</p><p>Reason: {1}</p>"""
                     ).format(filename, str(err)),
                 )
+
+
+def createExporter(editor, parent=None):
+    """
+    Function to instantiate an exporter object.
+
+    @param editor reference to the editor object
+    @type QScintilla.Editor.Editor
+    @param parent parent object of the exporter (defaults to None)
+    @type QObject (optional)
+    @return exporter object
+    @rtype ExporterTEX
+    """
+    return ExporterTEX(editor, parent=parent)

eric ide

mercurial