File indexing completed on 2024-05-05 04:43:21
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com) 0003 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk) 0004 * 0005 * This library is free software; you can redistribute it and/or 0006 * modify it under the terms of the GNU Lesser General Public 0007 * License as published by the Free Software Foundation; either 0008 * version 2.1 of the License, or (at your option) any later version. 0009 * 0010 * This library is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 * Lesser General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Lesser General Public 0016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 #ifndef KREPORTHTMLCSSRENDERER_H 0019 #define KREPORTHTMLCSSRENDERER_H 0020 0021 #include "KReportRendererBase.h" 0022 0023 class ORODocument; 0024 0025 namespace KReportPrivate { 0026 0027 class HTMLCSSRenderer : public KReportRendererBase 0028 { 0029 public: 0030 HTMLCSSRenderer(); 0031 0032 ~HTMLCSSRenderer() override; 0033 0034 bool render(const KReportRendererContext&, ORODocument *document, int page = -1) override; 0035 0036 private: 0037 QString renderCSS(ORODocument*); 0038 0039 //! This is the directory name that will go inside the HTML files 0040 QString m_actualDirName; 0041 0042 //! This is the directory where the image and other files will be temporarily stored 0043 QString m_tempDirName; 0044 }; 0045 0046 } 0047 0048 #endif