summaryrefslogtreecommitdiff
path: root/xmlreader/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-15 15:48:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-17 16:06:27 +0100
commit794a7c67e89be302cb65ea95d7b12a1da34839c0 (patch)
tree027c7c9160785a4d8c0f4a3fecbf4ee92893457f /xmlreader/inc
parent239847102b632a4976f50d99b38b3c79b95e56aa (diff)
allow XmlReader to parse a string
Change-Id: I3433e6f3766c1ea54ad53896c4e4d142d1e319a5
Diffstat (limited to 'xmlreader/inc')
-rw-r--r--xmlreader/inc/xmlreader/xmlreader.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmlreader/inc/xmlreader/xmlreader.hxx b/xmlreader/inc/xmlreader/xmlreader.hxx
index b6de02734e84..1d3faf05c0c2 100644
--- a/xmlreader/inc/xmlreader/xmlreader.hxx
+++ b/xmlreader/inc/xmlreader/xmlreader.hxx
@@ -44,6 +44,10 @@ public:
com::sun::star::container::NoSuchElementException,
com::sun::star::uno::RuntimeException));
+ //string is not copied so must persist for lifetime
+ //of XmlReader
+ explicit XmlReader(const char * str, sal_uInt64 len) SAL_THROW(());
+
~XmlReader();
enum { NAMESPACE_NONE = -2, NAMESPACE_UNKNOWN = -1, NAMESPACE_XML = 0 };
@@ -170,6 +174,8 @@ private:
SAL_DLLPRIVATE int toNamespaceId(NamespaceIris::size_type pos);
+ SAL_DLLPRIVATE void init();
+
rtl::OUString fileUrl_;
oslFileHandle fileHandle_;
sal_uInt64 fileSize_;