Changeset View
Changeset View
Standalone View
Standalone View
src/formatter/grantleeviewformatter.h
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | along with this program; see the file COPYING. If not, write to | 15 | along with this program; see the file COPYING. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef GRANTLEEVIEWFORMATTER_H | 20 | #ifndef GRANTLEEVIEWFORMATTER_H | ||
21 | #define GRANTLEEVIEWFORMATTER_H | 21 | #define GRANTLEEVIEWFORMATTER_H | ||
22 | 22 | | |||
23 | #include "PimCommon/GenericGrantleeFormatter" | 23 | #include <GrantleeTheme/GenericFormatter> | ||
24 | #include "article.h" | 24 | #include "article.h" | ||
25 | #include "articleformatter.h" | 25 | #include "articleformatter.h" | ||
26 | #include <QUrl> | 26 | #include <QUrl> | ||
27 | namespace Akregator { | 27 | namespace Akregator { | ||
28 | class Folder; | 28 | class Folder; | ||
29 | class GrantleeViewFormatter : public PimCommon::GenericGrantleeFormatter | 29 | class GrantleeViewFormatter : public GrantleeTheme::GenericFormatter | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | | |||
32 | public: | 31 | public: | ||
33 | explicit GrantleeViewFormatter(const QString &htmlFileName, const QString &themePath, const QUrl &imageDir, int deviceDpiY, QObject *parent = nullptr); | 32 | explicit GrantleeViewFormatter(const QString &htmlFileName, const QString &themePath, const QUrl &imageDir, int deviceDpiY); | ||
34 | ~GrantleeViewFormatter(); | 33 | ~GrantleeViewFormatter(); | ||
35 | 34 | | |||
36 | QString formatArticles(const QVector<Article> &article, ArticleFormatter::IconOption icon); | 35 | QString formatArticles(const QVector<Article> &article, ArticleFormatter::IconOption icon); | ||
37 | QString formatFolder(Akregator::Folder *node); | 36 | QString formatFolder(Akregator::Folder *node); | ||
38 | QString formatFeed(Akregator::Feed *feed); | 37 | QString formatFeed(Akregator::Feed *feed); | ||
39 | private: | 38 | private: | ||
40 | void addStandardObject(QVariantHash &grantleeObject); | 39 | void addStandardObject(QVariantHash &grantleeObject); | ||
41 | int pointsToPixel(int pointSize) const; | 40 | int pointsToPixel(int pointSize) const; | ||
Show All 9 Lines |