diff -r 6a3eadfc3fb6 -r fd4722a8f782 eric7/ViewManager/ViewManager.py --- a/eric7/ViewManager/ViewManager.py Thu Aug 19 18:36:06 2021 +0200 +++ b/eric7/ViewManager/ViewManager.py Thu Aug 19 18:37:26 2021 +0200 @@ -5138,12 +5138,11 @@ Public slot to print an editor. @param editor editor to be printed + @type Editor """ if editor: editor.printFile() - else: - return - + def printCurrentEditor(self): """ Public slot to print the contents of the current editor. @@ -5151,6 +5150,16 @@ aw = self.activeWindow() self.printEditor(aw) + def printPreviewEditor(self, editor): + """ + Public slot to show a print preview of an editor. + + @param editor editor to be printed + @type Editor + """ + if editor: + editor.printPreviewFile() + def printPreviewCurrentEditor(self): """ Public slot to show a print preview of the current editor.