Warning, file /office/calligra/filters/karbon/wmf/WmfExport.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 * SPDX-FileCopyrightText: 2003 thierry lorthiois <lorthioist@wanadoo.fr> 0003 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #ifndef WMFEXPORT_H 0009 #define WMFEXPORT_H 0010 0011 #include <QPen> 0012 #include <KoFilter.h> 0013 #include <QVariantList> 0014 0015 #include <WmfWriter.h> 0016 0017 class KarbonDocument; 0018 class KoShape; 0019 class KoShapeStrokeModel; 0020 0021 class WmfExport : public KoFilter 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 WmfExport(QObject* parent, const QVariantList&); 0027 ~WmfExport() override; 0028 0029 KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to) override; 0030 0031 private: 0032 void paintDocument(KarbonDocument* document); 0033 void paintShape(KoShape* shape); 0034 0035 QPen getPen(const KoShapeStrokeModel *stroke); 0036 0037 // coordinate transformation 0038 // scale to wmf size 0039 int coordX(double left); 0040 int coordY(double top); 0041 0042 private: 0043 Libwmf::WmfWriter *mWmf; 0044 int mDpi; 0045 double mScaleX; 0046 double mScaleY; 0047 }; 0048 0049 #endif