From e7fdb6e546df9750918f6204786531fedb0554e4 Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Tue, 27 Jun 2006 09:37:11 +0000 Subject: [PATCH] made *Handler member functions public rather than private. Thanks to Isak Johnsson for pointing this out --- SAX/filter/Writer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SAX/filter/Writer.h b/SAX/filter/Writer.h index 78748cf8..cadce6cc 100644 --- a/SAX/filter/Writer.h +++ b/SAX/filter/Writer.h @@ -16,8 +16,8 @@ namespace SAX { template class basic_Writer : public basic_XMLFilterImpl, - private basic_LexicalHandler, - private basic_DeclHandler + public basic_LexicalHandler, + public basic_DeclHandler { public: typedef string_type stringT; @@ -42,6 +42,7 @@ class basic_Writer : public basic_XMLFilterImpl, typedef typename XMLReaderT::template Property getDeclHandlerT; typedef typename XMLReaderT::template Property setDeclHandlerT; using XMLFilterT::getParent; + public: basic_Writer(ostreamT& stream, unsigned int indent = 2) : inCDATA_(false), @@ -116,6 +117,7 @@ class basic_Writer : public basic_XMLFilterImpl, virtual std::auto_ptr doGetProperty(const stringT& name); virtual void doSetProperty(const stringT& name, std::auto_ptr value); + public: // ContentHandler virtual void startDocument(); virtual void endDocument(); @@ -148,14 +150,14 @@ class basic_Writer : public basic_XMLFilterImpl, virtual void internalEntityDecl(const stringT& name, const stringT& value); virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId); - + protected: ///////////////// void startEntityDecl(const stringT& name); void publicAndSystem(const stringT& publicId, const stringT& systemId); void doIndent(); bool isDtd(const stringT& name); -private: + private: bool inCDATA_; bool inDTD_; bool internalSubset_;