diff -r 6a3eadfc3fb6 -r fd4722a8f782 eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py --- a/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Thu Aug 19 18:36:06 2021 +0200 +++ b/eric7/Plugins/ViewManagerPlugins/Listspace/Listspace.py Thu Aug 19 18:37:26 2021 +0200 @@ -280,6 +280,9 @@ self.__contextMenuOpenRejections) self.__menu.addSeparator() self.__menu.addAction( + UI.PixmapCache.getIcon("printPreview"), + self.tr("Print Preview"), self.__contextMenuPrintPreviewFile) + self.__menu.addAction( UI.PixmapCache.getIcon("print"), self.tr('Print'), self.__contextMenuPrintFile) self.__menu.addSeparator() @@ -851,7 +854,14 @@ """ if self.contextMenuEditor: self.printEditor(self.contextMenuEditor) - + + def __contextMenuPrintPreviewFile(self): + """ + Private method to show a print preview of the selected editor. + """ + if self.contextMenuEditor: + self.printPreviewEditor(self.contextMenuEditor) + def __contextMenuCopyPathToClipboard(self): """ Private method to copy the file name of the selected editor to the