QScintilla/Exporters/__init__.py

changeset 532
a3c0f1e2594a
parent 13
1af94a91f439
child 791
9ec2ac20e54e
equal deleted inserted replaced
531:26efb720a299 532:a3c0f1e2594a
20 supportedFormats = { 20 supportedFormats = {
21 "HTML" : QApplication.translate('Exporters', "HTML"), 21 "HTML" : QApplication.translate('Exporters', "HTML"),
22 "RTF" : QApplication.translate('Exporters', "RTF"), 22 "RTF" : QApplication.translate('Exporters', "RTF"),
23 "PDF" : QApplication.translate('Exporters', "PDF"), 23 "PDF" : QApplication.translate('Exporters', "PDF"),
24 "TeX" : QApplication.translate('Exporters', "TeX"), 24 "TeX" : QApplication.translate('Exporters', "TeX"),
25 "ODT" : QApplication.translate('Exporters', "ODT"),
25 } 26 }
26 27
27 return supportedFormats 28 return supportedFormats
28 29
29 def getExporter(format, editor): 30 def getExporter(format, editor):
45 from .ExporterRTF import ExporterRTF 46 from .ExporterRTF import ExporterRTF
46 return ExporterRTF(editor) 47 return ExporterRTF(editor)
47 elif format == "TeX": 48 elif format == "TeX":
48 from .ExporterTEX import ExporterTEX 49 from .ExporterTEX import ExporterTEX
49 return ExporterTEX(editor) 50 return ExporterTEX(editor)
51 elif format == "ODT":
52 from .ExporterODT import ExporterODT
53 return ExporterODT(editor)
50 except ImportError: 54 except ImportError:
51 return None 55 return None

eric ide

mercurial