Warning, file /libraries/kreport/src/items/image/KReportItemImage.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2007-2008 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 KREPORTITEMIMAGE_H 0019 #define KREPORTITEMIMAGE_H 0020 0021 #include "KReportItemBase.h" 0022 0023 class QDomNode; 0024 0025 namespace Scripting 0026 { 0027 class Image; 0028 } 0029 0030 class KReportItemImage : public KReportItemBase 0031 { 0032 Q_OBJECT 0033 public: 0034 KReportItemImage(); 0035 explicit KReportItemImage(const QDomNode & element); 0036 ~KReportItemImage() override; 0037 0038 QString typeName() const override; 0039 int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, 0040 const QVariant &data, KReportScriptHandler *script) override; 0041 0042 protected: 0043 KProperty* m_resizeMode; 0044 KProperty* m_staticImage; 0045 0046 void setMode(const QString&); 0047 void setInlineImageData(const QByteArray &dat, const QString& = QString()); 0048 QString mode() const; 0049 bool isInline() const; 0050 QByteArray inlineImageData() const; 0051 0052 private: 0053 void createProperties() override; 0054 0055 friend class Scripting::Image; 0056 }; 0057 0058 #endif