[KLF Application]
[KLF Tools]
[KLF Backend]
[KLF Home]
KLatexFormula Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
klfmime_p.h
Go to the documentation of this file.
1
/***************************************************************************
2
* file klfmime_p.h
3
* This file is part of the KLatexFormula Project.
4
* Copyright (C) 2011 by Philippe Faist
5
* philippe.faist at bluewin.ch
6
* *
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program; if not, write to the *
19
* Free Software Foundation, Inc., *
20
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
***************************************************************************/
22
/* $Id: klfmime_p.h 603 2011-02-26 23:14:55Z phfaist $ */
23
24
#ifndef KLFMIME_P_H
25
#define KLFMIME_P_H
26
27
#include <QObject>
28
29
#include "
klfmime.h
"
30
44
class
KLF_EXPORT
KLFMimeExporterImage
:
public
QObject
,
public
KLFMimeExporter
45
{
46
Q_OBJECT
47
public
:
48
KLFMimeExporterImage
(
QObject
*parent) :
QObject
(parent) { }
49
virtual
~KLFMimeExporterImage
() { }
50
51
virtual
QString
exporterName
()
const
{
return
QString::fromLatin1
(
"KLFMimeExporterImage"
); }
52
53
virtual
QStringList
keys
()
const
;
54
virtual
QByteArray
data
(
const
QString
& key,
const
KLFBackend::klfOutput
& klfoutput);
55
56
virtual
QString
windowsFormatName
(
const
QString
& key)
const
;
57
58
private
:
59
static
QMap<QString,QByteArray>
imageFormats;
60
};
61
65
class
KLF_EXPORT
KLFMimeExporterUrilist
:
public
QObject
,
public
KLFMimeExporter
66
{
67
Q_OBJECT
68
public
:
69
KLFMimeExporterUrilist
(
QObject
*parent) :
QObject
(parent) { }
70
virtual
~KLFMimeExporterUrilist
() { }
71
72
virtual
QString
exporterName
()
const
{
return
QString::fromLatin1
(
"KLFMimeExporterUrilist"
); }
73
74
virtual
QStringList
keys
()
const
;
75
virtual
QByteArray
data
(
const
QString
& key,
const
KLFBackend::klfOutput
& klfoutput);
76
77
virtual
QString
windowsFormatName
(
const
QString
& key)
const
;
78
79
static
QString
tempFileForOutput(
const
KLFBackend::klfOutput
& klfoutput);
80
81
private
:
82
static
QMap<qint64,QString>
tempFilesForImageCacheKey;
83
};
84
86
class
KLF_EXPORT
KLFMimeExporterHTML
:
public
QObject
,
public
KLFMimeExporter
87
{
88
Q_OBJECT
89
public
:
90
KLFMimeExporterHTML
(
QObject
*parent) :
QObject
(parent) { }
91
virtual
~KLFMimeExporterHTML
() { }
92
93
virtual
QString
exporterName
()
const
{
return
QString::fromLatin1
(
"KLFMimeExporterHTML"
); }
94
95
virtual
QStringList
keys
()
const
;
96
virtual
QByteArray
data
(
const
QString
& key,
const
KLFBackend::klfOutput
& klfoutput);
97
98
virtual
QString
windowsFormatName
(
const
QString
& key)
const
;
99
};
100
101
105
class
KLF_EXPORT
KLFMimeExporterLibFmts
:
public
QObject
,
public
KLFMimeExporter
106
{
107
Q_OBJECT
108
public
:
109
KLFMimeExporterLibFmts
(
QObject
*parent) :
QObject
(parent) { }
110
virtual
~KLFMimeExporterLibFmts
() { }
111
112
virtual
QString
exporterName
()
const
{
return
QString::fromLatin1
(
"KLFMimeExporterLibFmts"
); }
113
114
virtual
QStringList
keys
()
const
;
115
virtual
QByteArray
data
(
const
QString
& key,
const
KLFBackend::klfOutput
& klfoutput);
116
117
};
118
119
120
121
123
class
KLFMimeExporterGlowImage
:
public
QObject
,
public
KLFMimeExporter
124
{
125
Q_OBJECT
126
public
:
127
KLFMimeExporterGlowImage
(
QObject
*
parent
) :
QObject
(parent) { }
128
129
virtual
QString
exporterName
()
const
{
return
QString::fromLatin1
(
"KLFMimeExporterGlowImage"
); }
130
131
virtual
QStringList
keys
()
const
;
132
virtual
QByteArray
data
(
const
QString
& key,
const
KLFBackend::klfOutput
& klfoutput);
133
134
};
135
136
137
#endif
Generated by
doxygen
1.8.2