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 |