Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeviewersource.cpp
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | 14 | | |||
15 | You should have received a copy of the GNU General Public License along | 15 | You should have received a copy of the GNU General Public License along | ||
16 | with this program; if not, write to the Free Software Foundation, Inc., | 16 | with this program; if not, write to the Free Software Foundation, Inc., | ||
17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "objecttreeviewersource.h" | 20 | #include "objecttreeviewersource.h" | ||
21 | #include "csshelper.h" | 21 | #include "csshelper.h" | ||
22 | #include "bodypartformatterfactorysingleton.h" | 22 | #include <MimeTreeParser/BodyPartFormatterFactory> | ||
23 | 23 | | |||
24 | #include <MimeTreeParser/BodyPartFormatter> | 24 | #include <MimeTreeParser/BodyPartFormatter> | ||
25 | #include "messagepartthemes/default/defaultrenderer.h" | 25 | #include "messagepartthemes/default/defaultrenderer.h" | ||
26 | 26 | | |||
27 | #include "viewer/viewer_p.h" | 27 | #include "viewer/viewer_p.h" | ||
28 | #include "widgets/htmlstatusbar.h" | 28 | #include "widgets/htmlstatusbar.h" | ||
29 | #include "settings/messageviewersettings.h" | 29 | #include "settings/messageviewersettings.h" | ||
30 | 30 | | |||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 113 | { | |||
114 | return mViewer->showEmoticons(); | 114 | return mViewer->showEmoticons(); | ||
115 | } | 115 | } | ||
116 | 116 | | |||
117 | bool MailViewerSource::showExpandQuotesMark() const | 117 | bool MailViewerSource::showExpandQuotesMark() const | ||
118 | { | 118 | { | ||
119 | return MessageViewer::MessageViewerSettings::self()->showExpandQuotesMark(); | 119 | return MessageViewer::MessageViewerSettings::self()->showExpandQuotesMark(); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | const MimeTreeParser::BodyPartFormatterBaseFactory *MailViewerSource::bodyPartFormatterFactory() | 122 | const MimeTreeParser::BodyPartFormatterFactory *MailViewerSource::bodyPartFormatterFactory() | ||
123 | { | 123 | { | ||
124 | return bodyPartFormatterBaseFactoryInstance(); | 124 | return MimeTreeParser::BodyPartFormatterFactory::instance(); | ||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | bool MailViewerSource::isPrinting() const | 127 | bool MailViewerSource::isPrinting() const | ||
128 | { | 128 | { | ||
129 | return mViewer->mPrinting; | 129 | return mViewer->mPrinting; | ||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | void MailViewerSource::render(const MimeTreeParser::MessagePartPtr &msgPart, MimeTreeParser::HtmlWriter *htmlWriter) | 132 | void MailViewerSource::render(const MimeTreeParser::MessagePartPtr &msgPart, MimeTreeParser::HtmlWriter *htmlWriter) | ||
133 | { | 133 | { | ||
134 | DefaultRenderer(msgPart, mViewer->cssHelper(), htmlWriter); | 134 | DefaultRenderer(msgPart, mViewer->cssHelper(), htmlWriter); | ||
135 | } | 135 | } |