File indexing completed on 2024-04-21 03:57:31
0001 /* 0002 SPDX-FileCopyrightText: 2002-2010 Anders Lund <anders@alweb.dk> 0003 0004 Rewritten based on code of: 0005 SPDX-FileCopyrightText: 2002 Michael Goffioul <kdeprint@swing.be> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #ifndef KATE_PRINTER_H 0011 #define KATE_PRINTER_H 0012 0013 namespace KTextEditor 0014 { 0015 class DocumentPrivate; 0016 class ViewPrivate; 0017 } 0018 0019 namespace KatePrinter 0020 { 0021 /** 0022 * Launches print dialog for specified @view 0023 * @returns true if document was successfully printed 0024 */ 0025 bool print(KTextEditor::ViewPrivate *view); 0026 0027 /** 0028 * Launches print preview dialog for specified @view 0029 * @returns true if document was printed 0030 */ 0031 bool printPreview(KTextEditor::ViewPrivate *view); 0032 0033 /** 0034 * Overloaded print function for document 0035 * Useful when there is no view for the document. Consequently this function 0036 * cannot print only selected portion of document. 0037 */ 0038 bool print(KTextEditor::DocumentPrivate *doc); 0039 0040 /** 0041 * Overloaded print function for document 0042 * Useful when there is no view for the document. Consequently this function 0043 * cannot print only selected portion of document. 0044 */ 0045 bool printPreview(KTextEditor::DocumentPrivate *doc); 0046 } 0047 0048 #endif