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
13namespace KTextEditor
14{
15class DocumentPrivate;
16class ViewPrivate;
17}
18
19namespace KatePrinter
20{
21/**
22 * Launches print dialog for specified @view
23 * @returns true if document was successfully printed
24 */
25bool print(KTextEditor::ViewPrivate *view);
26
27/**
28 * Launches print preview dialog for specified @view
29 * @returns true if document was printed
30 */
31bool 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 */
38bool 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 */
45bool printPreview(KTextEditor::DocumentPrivate *doc);
46}
47
48#endif
49

source code of ktexteditor/src/printing/kateprinter.h