Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeemptysource.cpp
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "objecttreeemptysource.h" | 20 | #include "objecttreeemptysource.h" | ||
21 | #include "viewer/viewer_p.h" | 21 | #include "viewer/viewer_p.h" | ||
22 | #include "viewer/csshelperbase.h" | 22 | #include "viewer/csshelperbase.h" | ||
23 | 23 | | |||
24 | #include <MimeTreeParser/AttachmentStrategy> | 24 | #include <MimeTreeParser/AttachmentStrategy> | ||
25 | #include <MimeTreeParser/BodyPartFormatter> | 25 | #include <MimeTreeParser/BodyPartFormatter> | ||
26 | #include <MimeTreeParser/BodyPartFormatterFactory> | ||||
26 | 27 | | |||
27 | #include "messagepartthemes/default/defaultrenderer.h" | 28 | #include "messagepartthemes/default/defaultrenderer.h" | ||
28 | 29 | | |||
29 | #include "bodypartformatterfactorysingleton.h" | | |||
30 | | ||||
31 | using namespace MessageViewer; | 30 | using namespace MessageViewer; | ||
32 | 31 | | |||
33 | namespace MessageViewer { | 32 | namespace MessageViewer { | ||
34 | class EmptySourcePrivate | 33 | class EmptySourcePrivate | ||
35 | { | 34 | { | ||
36 | public: | 35 | public: | ||
37 | EmptySourcePrivate() | 36 | EmptySourcePrivate() | ||
38 | : mAllowDecryption(false) | 37 | : mAllowDecryption(false) | ||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 124 | { | |||
126 | return false; | 125 | return false; | ||
127 | } | 126 | } | ||
128 | 127 | | |||
129 | bool EmptySource::showExpandQuotesMark() const | 128 | bool EmptySource::showExpandQuotesMark() const | ||
130 | { | 129 | { | ||
131 | return false; | 130 | return false; | ||
132 | } | 131 | } | ||
133 | 132 | | |||
134 | const MimeTreeParser::BodyPartFormatterBaseFactory *EmptySource::bodyPartFormatterFactory() | 133 | const MimeTreeParser::BodyPartFormatterFactory *EmptySource::bodyPartFormatterFactory() | ||
135 | { | 134 | { | ||
136 | return bodyPartFormatterBaseFactoryInstance(); | 135 | return MimeTreeParser::BodyPartFormatterFactory::instance(); | ||
137 | } | 136 | } | ||
138 | 137 | | |||
139 | bool EmptySource::isPrinting() const | 138 | bool EmptySource::isPrinting() const | ||
140 | { | 139 | { | ||
141 | return false; | 140 | return false; | ||
142 | } | 141 | } | ||
143 | 142 | | |||
144 | void EmptySource::render(const MimeTreeParser::MessagePartPtr &msgPart, MimeTreeParser::HtmlWriter *htmlWriter) | 143 | void EmptySource::render(const MimeTreeParser::MessagePartPtr &msgPart, MimeTreeParser::HtmlWriter *htmlWriter) | ||
145 | { | 144 | { | ||
146 | DefaultRenderer(msgPart, cssHelper(), htmlWriter); | 145 | DefaultRenderer(msgPart, cssHelper(), htmlWriter); | ||
147 | } | 146 | } |