summaryrefslogtreecommitdiff
path: root/include/sax
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-12-02 19:20:59 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-12-02 19:32:28 -0500
commit532b2f48185c9ee3f389f1a3fbdfffcf113c15c0 (patch)
tree896dc46717b963601188efd001830c7a130e0249 /include/sax
parent2130fd9d610bf12b09fe29bafd46a673b21e064d (diff)
Add a means to check if a namespace exists.
Useful when we just need to check if the stream has a certain namespace defined. Calling getNamespaceURL() may throw SAXException in such case. Change-Id: Ib2b7b202492390158270d87bab95d1793c9d8a70
Diffstat (limited to 'include/sax')
-rw-r--r--include/sax/fastparser.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sax/fastparser.hxx b/include/sax/fastparser.hxx
index 3a8ae5302073..217893c47362 100644
--- a/include/sax/fastparser.hxx
+++ b/include/sax/fastparser.hxx
@@ -140,9 +140,12 @@ public:
void pushEntity( const Entity& rEntity );
void popEntity();
Entity& getEntity();
+ const Entity& getEntity() const;
void parse();
void produce( CallbackType aType );
+ bool hasNamespaceURL( const OUString& rPrefix ) const;
+
private:
bool consume(EventList *);
void deleteUsedEvents();