Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/bodyformatter/texthtml.cpp
Show All 33 Lines | |||||
34 | const Interface::BodyPartFormatter *TextHtmlBodyPartFormatter::create() | 34 | const Interface::BodyPartFormatter *TextHtmlBodyPartFormatter::create() | ||
35 | { | 35 | { | ||
36 | if (!self) { | 36 | if (!self) { | ||
37 | self = new TextHtmlBodyPartFormatter(); | 37 | self = new TextHtmlBodyPartFormatter(); | ||
38 | } | 38 | } | ||
39 | return self; | 39 | return self; | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | Interface::MessagePart::Ptr TextHtmlBodyPartFormatter::process(Interface::BodyPart &part) const | 42 | MessagePart::Ptr TextHtmlBodyPartFormatter::process(Interface::BodyPart &part) const | ||
43 | { | 43 | { | ||
44 | KMime::Content *node = part.content(); | 44 | KMime::Content *node = part.content(); | ||
45 | HtmlMessagePart::Ptr mp(new HtmlMessagePart(part.objectTreeParser(), node, part.source())); | 45 | HtmlMessagePart::Ptr mp(new HtmlMessagePart(part.objectTreeParser(), node, part.source())); | ||
46 | return mp; | 46 | return mp; | ||
47 | } | 47 | } |