36 #include "teehtmlwriter.h"
40 #include <tqvaluelist.h>
44 TeeHtmlWriter::TeeHtmlWriter( HtmlWriter * writer1, HtmlWriter * writer2 )
48 mWriters.append( writer1 );
50 mWriters.append( writer2 );
53 TeeHtmlWriter::~TeeHtmlWriter() {
54 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
58 void TeeHtmlWriter::addHtmlWriter( HtmlWriter * writer ) {
60 mWriters.append( writer );
63 void TeeHtmlWriter::begin( const TQString & css ) {
64 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
68 void TeeHtmlWriter::end() {
69 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
73 void TeeHtmlWriter::reset() {
74 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
78 void TeeHtmlWriter::write( const TQString & str ) {
79 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
83 void TeeHtmlWriter::queue( const TQString & str ) {
84 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
88 void TeeHtmlWriter::flush() {
89 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
93 void TeeHtmlWriter::embedPart( const TQCString & contentId, const TQString & url ) {
94 for ( TQValueListIterator<HtmlWriter*> it = mWriters.begin(); it != mWriters.end(); ++it )
95 (*it)->embedPart( contentId, url );
|