diff --git a/samples/DOMPrint/DOMPrintFilter.cpp b/samples/DOMPrint/DOMPrintFilter.cpp index 26a73d09d58e4f7a3a8027285d4ef303a8ebd75b..4c13e8ee0d009dadbf99a75dd90301971b5dda0c 100644 --- a/samples/DOMPrint/DOMPrintFilter.cpp +++ b/samples/DOMPrint/DOMPrintFilter.cpp @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.3 2002/06/04 14:22:51 peiyongz + * Implement setter/getter from DOMWriterFilter + * * Revision 1.2 2002/06/03 22:40:07 peiyongz * *** empty log message *** * @@ -80,7 +83,7 @@ static const XMLCh element_link[]= }; DOMPrintFilter::DOMPrintFilter(unsigned long whatToShow) -:DOMWriterFilter(whatToShow) +:fWhatToShow(whatToShow) {} short DOMPrintFilter::acceptNode(const DOMNode* node) const diff --git a/samples/DOMPrint/DOMPrintFilter.hpp b/samples/DOMPrint/DOMPrintFilter.hpp index 0016ad4f3dd5a5178b6bba664be5958bc17af4a5..f0e57b226ff3971290c20ee00d0efea9676bbb25 100644 --- a/samples/DOMPrint/DOMPrintFilter.hpp +++ b/samples/DOMPrint/DOMPrintFilter.hpp @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.3 2002/06/04 14:22:51 peiyongz + * Implement setter/getter from DOMWriterFilter + * * Revision 1.2 2002/06/03 22:40:07 peiyongz * *** empty log message *** * @@ -90,11 +93,17 @@ public: virtual short acceptNode(const DOMNode*) const; //@{ + virtual unsigned long getWhatToShow() const {return fWhatToShow;}; + + virtual void setWhatToShow(unsigned long toShow) {fWhatToShow = toShow;}; + private: // unimplemented copy ctor and assignement operator DOMPrintFilter(const DOMPrintFilter&); DOMPrintFilter & operator = (const DOMPrintFilter&); + unsigned long fWhatToShow; + }; #endif