KTextEditor

kateprinter.h
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
Backend of KTextEditor::Document related public KTextEditor interfaces.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 25 2025 11:52:17 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.