38 @return reference to the instanciated exporter object |
38 @return reference to the instanciated exporter object |
39 (QScintilla.Exporter.Exporter) |
39 (QScintilla.Exporter.Exporter) |
40 """ |
40 """ |
41 try: |
41 try: |
42 if exporterFormat == "HTML": |
42 if exporterFormat == "HTML": |
43 from .ExporterHTML import ExporterHTML |
43 from .ExporterHTML import ExporterHTML # __IGNORE_WARNING_I101__ |
44 |
44 |
45 return ExporterHTML(editor) |
45 return ExporterHTML(editor) |
46 elif exporterFormat == "PDF": |
46 elif exporterFormat == "PDF": |
47 from .ExporterPDF import ExporterPDF |
47 from .ExporterPDF import ExporterPDF # __IGNORE_WARNING_I101__ |
48 |
48 |
49 return ExporterPDF(editor) |
49 return ExporterPDF(editor) |
50 elif exporterFormat == "RTF": |
50 elif exporterFormat == "RTF": |
51 from .ExporterRTF import ExporterRTF |
51 from .ExporterRTF import ExporterRTF # __IGNORE_WARNING_I101__ |
52 |
52 |
53 return ExporterRTF(editor) |
53 return ExporterRTF(editor) |
54 elif exporterFormat == "TeX": |
54 elif exporterFormat == "TeX": |
55 from .ExporterTEX import ExporterTEX |
55 from .ExporterTEX import ExporterTEX # __IGNORE_WARNING_I101__ |
56 |
56 |
57 return ExporterTEX(editor) |
57 return ExporterTEX(editor) |
58 elif exporterFormat == "ODT": |
58 elif exporterFormat == "ODT": |
59 from .ExporterODT import ExporterODT |
59 from .ExporterODT import ExporterODT # __IGNORE_WARNING_I101__ |
60 |
60 |
61 return ExporterODT(editor) |
61 return ExporterODT(editor) |
62 except ImportError: |
62 except ImportError: |
63 return None |
63 return None |