[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project

src/klfmime_p.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   file klfmime_p.h
00003  *   This file is part of the KLatexFormula Project.
00004  *   Copyright (C) 2010 by Philippe Faist
00005  *   philippe.faist at bluewin.ch
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 /* $Id: klfmime_p.h 555 2010-11-14 10:06:33Z philippe $ */
00023 
00024 #ifndef KLFMIME_P_H
00025 #define KLFMIME_P_H
00026 
00027 #include <QObject>
00028 
00029 #include "klfmime.h"
00030 
00044 class KLF_EXPORT KLFMimeExporterImage : public QObject, public KLFMimeExporter
00045 {
00046   Q_OBJECT
00047 public:
00048   KLFMimeExporterImage(QObject *parent) : QObject(parent) { }
00049   virtual ~KLFMimeExporterImage() { }
00050 
00051   virtual QString exporterName() const { return QString::fromLatin1("KLFMimeExporterImage"); }
00052 
00053   virtual QStringList keys() const;
00054   virtual QByteArray data(const QString& key, const KLFBackend::klfOutput& klfoutput);
00055 
00056   virtual QString windowsFormatName(const QString& key) const;
00057 
00058 private:
00059   static QMap<QString,QByteArray> imageFormats;
00060 };
00061 
00065 class KLF_EXPORT KLFMimeExporterUrilist : public QObject, public KLFMimeExporter
00066 {
00067   Q_OBJECT
00068 public:
00069   KLFMimeExporterUrilist(QObject *parent) : QObject(parent) { }
00070   virtual ~KLFMimeExporterUrilist() { }
00071 
00072   virtual QString exporterName() const { return QString::fromLatin1("KLFMimeExporterUrilist"); }
00073 
00074   virtual QStringList keys() const;
00075   virtual QByteArray data(const QString& key, const KLFBackend::klfOutput& klfoutput);
00076 
00077   virtual QString windowsFormatName(const QString& key) const;
00078 
00079   static QString tempFileForOutput(const KLFBackend::klfOutput& klfoutput);
00080 
00081 private:
00082   static QMap<qint64,QString> tempFilesForImageCacheKey;
00083 };
00084 
00086 class KLF_EXPORT KLFMimeExporterHTML : public QObject, public KLFMimeExporter
00087 {
00088   Q_OBJECT
00089 public:
00090   KLFMimeExporterHTML(QObject *parent) : QObject(parent) { }
00091   virtual ~KLFMimeExporterHTML() { }
00092 
00093   virtual QString exporterName() const { return QString::fromLatin1("KLFMimeExporterHTML"); }
00094 
00095   virtual QStringList keys() const;
00096   virtual QByteArray data(const QString& key, const KLFBackend::klfOutput& klfoutput);
00097 
00098   virtual QString windowsFormatName(const QString& key) const;
00099 };
00100 
00101 
00105 class KLF_EXPORT KLFMimeExporterLibFmts : public QObject, public KLFMimeExporter
00106 {
00107   Q_OBJECT
00108 public:
00109   KLFMimeExporterLibFmts(QObject *parent) : QObject(parent) { }
00110   virtual ~KLFMimeExporterLibFmts() { }
00111 
00112   virtual QString exporterName() const { return QString::fromLatin1("KLFMimeExporterLibFmts"); }
00113 
00114   virtual QStringList keys() const;
00115   virtual QByteArray data(const QString& key, const KLFBackend::klfOutput& klfoutput);
00116 
00117 };
00118 
00119 
00120 
00121 
00123 class KLFMimeExporterGlowImage : public QObject, public KLFMimeExporter
00124 {
00125   Q_OBJECT
00126 public:
00127   KLFMimeExporterGlowImage(QObject *parent) : QObject(parent) { }
00128 
00129   virtual QString exporterName() const { return QString::fromLatin1("KLFMimeExporterGlowImage"); }
00130 
00131   virtual QStringList keys() const;
00132   virtual QByteArray data(const QString& key, const KLFBackend::klfOutput& klfoutput);
00133 
00134 };
00135 
00136 
00137 #endif

Generated by doxygen 1.7.3