123 |
123 |
124 html += '''<style type="text/css">\n''' |
124 html += '''<style type="text/css">\n''' |
125 if lex: |
125 if lex: |
126 istyle = 0 |
126 istyle = 0 |
127 while istyle <= QsciScintilla.STYLE_MAX: |
127 while istyle <= QsciScintilla.STYLE_MAX: |
128 if (istyle <= QsciScintilla.STYLE_DEFAULT or \ |
128 if (istyle <= QsciScintilla.STYLE_DEFAULT or |
129 istyle > QsciScintilla.STYLE_LASTPREDEFINED) and \ |
129 istyle > QsciScintilla.STYLE_LASTPREDEFINED) and \ |
130 styleIsUsed[istyle]: |
130 styleIsUsed[istyle]: |
131 if lex.description(istyle) or \ |
131 if lex.description(istyle) or \ |
132 istyle == QsciScintilla.STYLE_DEFAULT: |
132 istyle == QsciScintilla.STYLE_DEFAULT: |
133 font = lex.font(istyle) |
133 font = lex.font(istyle) |
407 E5MessageBox.critical( |
407 E5MessageBox.critical( |
408 self.editor, |
408 self.editor, |
409 self.trUtf8("Export source"), |
409 self.trUtf8("Export source"), |
410 self.trUtf8( |
410 self.trUtf8( |
411 """<p>The source could not be exported to""" |
411 """<p>The source could not be exported to""" |
412 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")\ |
412 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") |
413 .format(filename, str(err))) |
413 .format(filename, str(err))) |
414 finally: |
414 finally: |
415 QApplication.restoreOverrideCursor() |
415 QApplication.restoreOverrideCursor() |