File indexing completed on 2024-05-12 16:42:16
0001 /* 0002 SPDX-FileCopyrightText: 2019 Thomas Baumgart <tbaumgart@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KMM_PRINTER 0007 #define KMM_PRINTER 0008 0009 #include <QPrinter> 0010 #include <kmm_printer_export.h> 0011 0012 class QPrintDialog; 0013 0014 class KMM_PRINTER_EXPORT KMyMoneyPrinter 0015 { 0016 KMyMoneyPrinter(); 0017 protected: 0018 static QPrintDialog* dialog(); 0019 static QPrinter* instance(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); 0020 0021 public: 0022 static QPrinter* startPrint(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); 0023 static void cleanup(); 0024 }; 0025 0026 #endif