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 @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
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 Feb 21 2025 11:52:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.