LibreOffice Module svtools (master) 1
|
#include <HtmlWriter.hxx>
Public Member Functions | |
HtmlWriter (SvStream &rStream, std::string_view rNamespace=std::string_view()) | |
~HtmlWriter () | |
void | prettyPrint (bool b) |
void | start (const OString &aElement) |
bool | end (const OString &aElement) |
void | end () |
void | flushStack () |
void | attribute (std::string_view aAttribute, const char *aValue) |
void | attribute (std::string_view aAttribute, sal_Int32 aValue) |
void | attribute (std::string_view aAttribute, std::string_view aValue) |
void | attribute (std::string_view aAttribute, std::u16string_view aValue) |
void | attribute (std::string_view aAttribute) |
void | single (const OString &aContent) |
void | endAttribute () |
void | characters (std::string_view rChars) |
Writes character data. More... | |
Static Public Member Functions | |
static void | writeAttribute (SvStream &rStream, std::string_view aAttribute, sal_Int32 aValue) |
static void | writeAttribute (SvStream &rStream, std::string_view aAttribute, std::string_view aValue) |
Private Attributes | |
std::vector< OString > | maElementStack |
SvStream & | mrStream |
bool | mbElementOpen |
bool | mbCharactersWritten |
bool | mbPrettyPrint |
OString | maNamespace |
XML namespace, in case of XHTML. More... | |
Definition at line 20 of file HtmlWriter.hxx.
HtmlWriter::HtmlWriter | ( | SvStream & | rStream, |
std::string_view | rNamespace = std::string_view() |
||
) |
Definition at line 16 of file HtmlWriter.cxx.
References maNamespace.
HtmlWriter::~HtmlWriter | ( | ) |
Definition at line 29 of file HtmlWriter.cxx.
void HtmlWriter::attribute | ( | std::string_view | aAttribute | ) |
Definition at line 159 of file HtmlWriter.cxx.
References mbElementOpen, mrStream, SvStream::WriteChar(), and SvStream::WriteOString().
void HtmlWriter::attribute | ( | std::string_view | aAttribute, |
const char * | aValue | ||
) |
Definition at line 149 of file HtmlWriter.cxx.
References attribute().
Referenced by HtmlWriterHelper::applyColor(), HtmlWriterHelper::applyEvents(), and attribute().
void HtmlWriter::attribute | ( | std::string_view | aAttribute, |
sal_Int32 | aValue | ||
) |
Definition at line 144 of file HtmlWriter.cxx.
References attribute().
void HtmlWriter::attribute | ( | std::string_view | aAttribute, |
std::string_view | aValue | ||
) |
Definition at line 135 of file HtmlWriter.cxx.
References mbElementOpen, mrStream, writeAttribute(), and SvStream::WriteChar().
void HtmlWriter::attribute | ( | std::string_view | aAttribute, |
std::u16string_view | aValue | ||
) |
Definition at line 154 of file HtmlWriter.cxx.
References attribute(), and OUStringToOString().
void HtmlWriter::characters | ( | std::string_view | rChars | ) |
Writes character data.
Definition at line 168 of file HtmlWriter.cxx.
References mbCharactersWritten, mrStream, and SvStream::WriteOString().
void HtmlWriter::end | ( | ) |
Definition at line 93 of file HtmlWriter.cxx.
References i, maElementStack, maNamespace, mbCharactersWritten, mbElementOpen, mbPrettyPrint, mrStream, and SvStream::WriteOString().
Referenced by end(), flushStack(), and single().
bool HtmlWriter::end | ( | const OString & | aElement | ) |
Definition at line 85 of file HtmlWriter.cxx.
References end(), maElementStack, and SAL_WARN_IF.
void HtmlWriter::endAttribute | ( | ) |
Definition at line 66 of file HtmlWriter.cxx.
References mbElementOpen, mbPrettyPrint, mrStream, and SvStream::WriteOString().
void HtmlWriter::flushStack | ( | ) |
Definition at line 77 of file HtmlWriter.cxx.
References end(), and maElementStack.
void HtmlWriter::prettyPrint | ( | bool | b | ) |
Definition at line 32 of file HtmlWriter.cxx.
References mbPrettyPrint.
void HtmlWriter::single | ( | const OString & | aContent | ) |
Definition at line 60 of file HtmlWriter.cxx.
void HtmlWriter::start | ( | const OString & | aElement | ) |
Definition at line 37 of file HtmlWriter.cxx.
References i, maElementStack, maNamespace, mbElementOpen, mbPrettyPrint, mrStream, SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by single().
|
static |
Definition at line 121 of file HtmlWriter.cxx.
References writeAttribute().
Referenced by attribute(), and writeAttribute().
|
static |
Definition at line 126 of file HtmlWriter.cxx.
References HTMLOutFuncs::Out_String(), SvStream::WriteChar(), and SvStream::WriteOString().
|
private |
Definition at line 23 of file HtmlWriter.hxx.
Referenced by end(), flushStack(), and start().
|
private |
XML namespace, in case of XHTML.
Definition at line 31 of file HtmlWriter.hxx.
Referenced by end(), HtmlWriter(), and start().
|
private |
Definition at line 28 of file HtmlWriter.hxx.
Referenced by characters(), and end().
|
private |
Definition at line 27 of file HtmlWriter.hxx.
Referenced by attribute(), end(), endAttribute(), and start().
|
private |
Definition at line 29 of file HtmlWriter.hxx.
Referenced by end(), endAttribute(), prettyPrint(), and start().
|
private |
Definition at line 25 of file HtmlWriter.hxx.
Referenced by attribute(), characters(), end(), endAttribute(), and start().