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