filters

kword13formatone.h
1/*
2 This file is part of the KDE project
3 Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KWORD_1_3_FORMAT_ONE
22#define KWORD_1_3_FORMAT_ONE
23
24class TQTextStream;
25
26#include <tqstring.h>
27#include <tqmap.h>
28
29#include "kword13format.h"
30
35class KWord13FormatOneData
36{
37public:
38 KWord13FormatOneData( void );
39 ~KWord13FormatOneData( void );
40
41public:
42 void xmldump( TQTextStream& iostream );
43
49 TQString key( void ) const;
50
51 TQString getProperty( const TQString& name ) const;
52
53public:
54 TQMap<TQString,TQString> m_properties;
55public: // OASIS-specific
56 TQString m_autoStyleName;
57};
58
62class KWord13FormatOne : public KWord13Format
63{
64public:
65 KWord13FormatOne(void);
66 virtual ~KWord13FormatOne(void);
67public:
69 virtual int length( void );
76public:
79};
80
81#endif // KWORD_1_3_FORMAT_ONE
Contains the data of the <FORMAT id="1"> children also the grand-children of <STYLE> and <LAYOUT>.
TQString m_autoStyleName
Name of the OASIS automatic style.
TQString key(void) const
Get a key representating the properties.
virtual int length(void)
Get length of format.
int m_length
Length of format.
KWord13FormatOneData m_formatOne
Data of children of <FORMAT id="1">.
virtual KWord13FormatOneData * getFormatOneData(void)
Get a pointer to the data correponding to <FORMAT id="1">.