filters
kword13paragraph.cpp
00001 00002 #include "kword13paragraph.h" 00003 00004 KWord13Paragraph::KWord13Paragraph( void ) 00005 { 00006 m_formats.setAutoDelete ( true ); 00007 } 00008 00009 KWord13Paragraph::~KWord13Paragraph( void ) 00010 { 00011 } 00012 00013 void KWord13Paragraph::xmldump( QTextStream& iostream ) 00014 { 00015 iostream << " <paragraph>\n"; 00016 iostream << " <text>" << m_text << "</text>\n"; 00017 m_layout.xmldump( iostream ); 00018 iostream << " </paragraph>\n"; 00019 } 00020 00021 void KWord13Paragraph::setText( const QString& str) 00022 { 00023 m_text = str; 00024 } 00025 00026 void KWord13Paragraph::appendText( const QString& str) 00027 { 00028 m_text += str; 00029 } 00030 00031 QString KWord13Paragraph::text( void ) const 00032 { 00033 return m_text; 00034 } 00035 00036 00037 void KWord13ParagraphGroup::xmldump( QTextStream& iostream ) 00038 { 00039 iostream << " <paragraphgroup>\n"; 00040 00041 for( QValueList <KWord13Paragraph>::Iterator it = begin(); 00042 it != end(); ++it ) 00043 { 00044 (*it).xmldump( iostream ); 00045 } 00046 00047 iostream << " </paragraphgroup>\n"; 00048 } 00049