1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #ifndef INCLUDED_SVTOOLS_HTMLWRITER_HXX
12 #define INCLUDED_SVTOOLS_HTMLWRITER_HXX
14 #include <rtl/string.hxx>
15 #include <rtl/ustring.hxx>
17 #include <svtools/svtdllapi.h>
21 class SVT_DLLPUBLIC HtmlWriter final
24 std::vector
<OString
> maElementStack
;
29 bool mbCharactersWritten
;
31 /// XML namespace, in case of XHTML.
35 HtmlWriter(SvStream
& rStream
, const OString
& rNamespace
= OString());
38 void prettyPrint(bool b
);
40 void start(const OString
& aElement
);
46 void attribute(const OString
& aAttribute
, const char* aValue
);
47 void attribute(const OString
& aAttribute
, sal_Int32 aValue
);
48 void attribute(const OString
& aAttribute
, const OString
& aValue
);
49 void attribute(const OString
& aAttribute
, const OUString
& aValue
);
50 // boolean attribute e.g. <img ismap>
51 void attribute(const OString
& aAttribute
);
53 void single(const OString
& aContent
);
56 /// Writes character data.
57 void characters(const OString
& rChars
);
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */