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 @doc and optional @view
23 * @returns true if document was successfully printed
24 */
25bool print(KTextEditor::DocumentPrivate *doc, KTextEditor::ViewPrivate *view = nullptr);
26
27/**
28 * Launches print preview dialog for specified @doc and optional @view
29 * @returns true if document was printed
30 */
31bool printPreview(KTextEditor::DocumentPrivate *doc, KTextEditor::ViewPrivate *view = nullptr);
32}
33
34#endif
35

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