filters

kword13paragraph.cpp
1
2#include "kword13paragraph.h"
3
4KWord13Paragraph::KWord13Paragraph( void )
5{
6 m_formats.setAutoDelete ( true );
7}
8
9KWord13Paragraph::~KWord13Paragraph( void )
10{
11}
12
13void KWord13Paragraph::xmldump( TQTextStream& iostream )
14{
15 iostream << " <paragraph>\n";
16 iostream << " <text>" << m_text << "</text>\n";
17 m_layout.xmldump( iostream );
18 iostream << " </paragraph>\n";
19}
20
21void KWord13Paragraph::setText( const TQString& str)
22{
23 m_text = str;
24}
25
26void KWord13Paragraph::appendText( const TQString& str)
27{
28 m_text += str;
29}
30
31TQString KWord13Paragraph::text( void ) const
32{
33 return m_text;
34}
35
36
37void KWord13ParagraphGroup::xmldump( TQTextStream& iostream )
38{
39 iostream << " <paragraphgroup>\n";
40
41 for( TQValueList <KWord13Paragraph>::Iterator it = begin();
42 it != end(); ++it )
43 {
44 (*it).xmldump( iostream );
45 }
46
47 iostream << " </paragraphgroup>\n";
48}
49
TQPtrList< KWord13Format > m_formats
<FORMATS>
KWord13Layout m_layout
<LAYOUT>