1 | /* |
2 | SPDX-FileCopyrightText: 2002-2010 Anders Lund <anders@alweb.dk> |
3 | |
4 | Rewritten based on code of: |
5 | SPDX-FileCopyrightText: 2002 Michael Goffioul <kdeprint@swing.be> |
6 | |
7 | SPDX-License-Identifier: LGPL-2.0-or-later |
8 | */ |
9 | |
10 | #ifndef KATE_PRINTER_H |
11 | #define KATE_PRINTER_H |
12 | |
13 | namespace KTextEditor |
14 | { |
15 | class DocumentPrivate; |
16 | class ViewPrivate; |
17 | } |
18 | |
19 | namespace KatePrinter |
20 | { |
21 | /** |
22 | * Launches print dialog for specified @view |
23 | * @returns true if document was successfully printed |
24 | */ |
25 | bool print(KTextEditor::ViewPrivate *view); |
26 | |
27 | /** |
28 | * Launches print preview dialog for specified @view |
29 | * @returns true if document was printed |
30 | */ |
31 | bool printPreview(KTextEditor::ViewPrivate *view); |
32 | |
33 | /** |
34 | * Overloaded print function for document |
35 | * Useful when there is no view for the document. Consequently this function |
36 | * cannot print only selected portion of document. |
37 | */ |
38 | bool print(KTextEditor::DocumentPrivate *doc); |
39 | |
40 | /** |
41 | * Overloaded print function for document |
42 | * Useful when there is no view for the document. Consequently this function |
43 | * cannot print only selected portion of document. |
44 | */ |
45 | bool printPreview(KTextEditor::DocumentPrivate *doc); |
46 | } |
47 | |
48 | #endif |
49 | |