summaryrefslogtreecommitdiffstats
path: root/include/tools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-07-04 17:18:43 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-07-06 18:26:36 +0200
commit72aa159a6fce92f47a56a8de8c7f8260577dd936 (patch)
tree2212bada2a0dc8a7fce00b5b27e159aff99c6adb /include/tools
parentCryptoTools: add HMAC, move crypto impl. details to CryptoImpl (diff)
downloadcore-72aa159a6fce92f47a56a8de8c7f8260577dd936.tar.gz
core-72aa159a6fce92f47a56a8de8c7f8260577dd936.zip
XmlWriter: support namespaces, writing of base64 attribute
Change-Id: I3c1d885d239178b46578123fd83d3aa1d7ccd023 Reviewed-on: https://gerrit.libreoffice.org/56971 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/XmlWriter.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/tools/XmlWriter.hxx b/include/tools/XmlWriter.hxx
index 8224df417f1b..6095d1379bfe 100644
--- a/include/tools/XmlWriter.hxx
+++ b/include/tools/XmlWriter.hxx
@@ -13,6 +13,7 @@
#include <tools/toolsdllapi.h>
#include <tools/stream.hxx>
#include <memory>
+#include <vector>
namespace tools
{
@@ -23,8 +24,8 @@ struct XmlWriterImpl;
* all the internal libxml2 workings and uses types that are native for LO
* development.
*
- * The codepage used for XML is always "utf-8" and the output is indented so it
- * is easier to read.
+ * The codepage used for XML is always "utf-8" and the output is indented by
+ * default so it is easier to read.
*
*/
class TOOLS_DLLPUBLIC XmlWriter final
@@ -37,15 +38,18 @@ public:
~XmlWriter();
- bool startDocument();
+ bool startDocument(sal_Int32 nIndent = 2);
void endDocument();
void startElement(const OString& sName);
+ void startElement(const OString& sPrefix, const OString& sName, const OString& sNamespaceUri);
void endElement();
void attribute(const OString& sTagName, const OString& aValue);
void attribute(const OString& sTagName, const OUString& aValue);
void attribute(const OString& sTagName, sal_Int32 aNumber);
+ void attributeBase64(const OString& sTagName, std::vector<sal_uInt8> const& rValueInBytes);
+ void attributeBase64(const OString& sTagName, std::vector<char> const& rValueInBytes);
void content(const OString& sValue);
void content(const OUString& sValue);