mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-15 15:40:56 +01:00
made *Handler member functions public rather than private. Thanks to Isak Johnsson for pointing this out
This commit is contained in:
parent
65bcac5d31
commit
e7fdb6e546
1 changed files with 6 additions and 4 deletions
|
@ -16,8 +16,8 @@ namespace SAX {
|
||||||
|
|
||||||
template<class string_type>
|
template<class string_type>
|
||||||
class basic_Writer : public basic_XMLFilterImpl<string_type>,
|
class basic_Writer : public basic_XMLFilterImpl<string_type>,
|
||||||
private basic_LexicalHandler<string_type>,
|
public basic_LexicalHandler<string_type>,
|
||||||
private basic_DeclHandler<string_type>
|
public basic_DeclHandler<string_type>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef string_type stringT;
|
typedef string_type stringT;
|
||||||
|
@ -42,6 +42,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
|
||||||
typedef typename XMLReaderT::template Property<declHandlerT*> getDeclHandlerT;
|
typedef typename XMLReaderT::template Property<declHandlerT*> getDeclHandlerT;
|
||||||
typedef typename XMLReaderT::template Property<declHandlerT&> setDeclHandlerT;
|
typedef typename XMLReaderT::template Property<declHandlerT&> setDeclHandlerT;
|
||||||
using XMLFilterT::getParent;
|
using XMLFilterT::getParent;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
basic_Writer(ostreamT& stream, unsigned int indent = 2) :
|
basic_Writer(ostreamT& stream, unsigned int indent = 2) :
|
||||||
inCDATA_(false),
|
inCDATA_(false),
|
||||||
|
@ -116,6 +117,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
|
||||||
virtual std::auto_ptr<PropertyBaseT> doGetProperty(const stringT& name);
|
virtual std::auto_ptr<PropertyBaseT> doGetProperty(const stringT& name);
|
||||||
virtual void doSetProperty(const stringT& name, std::auto_ptr<PropertyBaseT> value);
|
virtual void doSetProperty(const stringT& name, std::auto_ptr<PropertyBaseT> value);
|
||||||
|
|
||||||
|
public:
|
||||||
// ContentHandler
|
// ContentHandler
|
||||||
virtual void startDocument();
|
virtual void startDocument();
|
||||||
virtual void endDocument();
|
virtual void endDocument();
|
||||||
|
@ -148,14 +150,14 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
|
||||||
virtual void internalEntityDecl(const stringT& name, const stringT& value);
|
virtual void internalEntityDecl(const stringT& name, const stringT& value);
|
||||||
virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId);
|
virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId);
|
||||||
|
|
||||||
|
protected:
|
||||||
/////////////////
|
/////////////////
|
||||||
void startEntityDecl(const stringT& name);
|
void startEntityDecl(const stringT& name);
|
||||||
void publicAndSystem(const stringT& publicId, const stringT& systemId);
|
void publicAndSystem(const stringT& publicId, const stringT& systemId);
|
||||||
void doIndent();
|
void doIndent();
|
||||||
bool isDtd(const stringT& name);
|
bool isDtd(const stringT& name);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool inCDATA_;
|
bool inCDATA_;
|
||||||
bool inDTD_;
|
bool inDTD_;
|
||||||
bool internalSubset_;
|
bool internalSubset_;
|
||||||
|
|
Loading…
Reference in a new issue