Messagelib
9#include "interfaces/htmlwriter.h"
11#include <KMime/Content>
13#include <QApplication>
15using namespace MessageViewer;
17HTMLBlock::HTMLBlock() =
default;
19HTMLBlock::~HTMLBlock() =
default;
26QString HTMLBlock::enter()
35QString HTMLBlock::exit()
44AttachmentMarkBlock::AttachmentMarkBlock(
HtmlWriter *writer, KMime::Content *node)
51AttachmentMarkBlock::~AttachmentMarkBlock()
56void AttachmentMarkBlock::internalEnter()
59 mWriter->write(enter());
63void AttachmentMarkBlock::internalExit()
66 mWriter->write(exit());
70QString AttachmentMarkBlock::enterString()
const
72 const QString index = mNode->index().toString();
73 return QStringLiteral(
"<a name=\"att%1\"></a>").arg(index) + QStringLiteral(
"<div id=\"attachmentDiv%1\">\n").arg(index);
76QString AttachmentMarkBlock::exitString()
const
78 return QStringLiteral(
"</div>");
88RootBlock::~RootBlock()
93void RootBlock::internalEnter()
96 mWriter->write(enter());
100void RootBlock::internalExit()
103 mWriter->write(exit());
107QString RootBlock::enterString()
const
109 return QStringLiteral(
"<div style=\"position: relative; word-wrap: break-word\">\n");
112QString RootBlock::exitString()
const
114 return QStringLiteral(
"</div>\n");
An interface for HTML sinks.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:05:41 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.