5136 def printEditor(self, editor): |
5136 def printEditor(self, editor): |
5137 """ |
5137 """ |
5138 Public slot to print an editor. |
5138 Public slot to print an editor. |
5139 |
5139 |
5140 @param editor editor to be printed |
5140 @param editor editor to be printed |
|
5141 @type Editor |
5141 """ |
5142 """ |
5142 if editor: |
5143 if editor: |
5143 editor.printFile() |
5144 editor.printFile() |
5144 else: |
5145 |
5145 return |
|
5146 |
|
5147 def printCurrentEditor(self): |
5146 def printCurrentEditor(self): |
5148 """ |
5147 """ |
5149 Public slot to print the contents of the current editor. |
5148 Public slot to print the contents of the current editor. |
5150 """ |
5149 """ |
5151 aw = self.activeWindow() |
5150 aw = self.activeWindow() |
5152 self.printEditor(aw) |
5151 self.printEditor(aw) |
5153 |
5152 |
|
5153 def printPreviewEditor(self, editor): |
|
5154 """ |
|
5155 Public slot to show a print preview of an editor. |
|
5156 |
|
5157 @param editor editor to be printed |
|
5158 @type Editor |
|
5159 """ |
|
5160 if editor: |
|
5161 editor.printPreviewFile() |
|
5162 |
5154 def printPreviewCurrentEditor(self): |
5163 def printPreviewCurrentEditor(self): |
5155 """ |
5164 """ |
5156 Public slot to show a print preview of the current editor. |
5165 Public slot to show a print preview of the current editor. |
5157 """ |
5166 """ |
5158 aw = self.activeWindow() |
5167 aw = self.activeWindow() |