You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.2 KiB
82 lines
2.2 KiB
/*
|
|
This file is part of the KDE project
|
|
Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef KWORD_1_3_FORMAT_ONE
|
|
#define KWORD_1_3_FORMAT_ONE
|
|
|
|
class TQTextStream;
|
|
|
|
#include <tqstring.h>
|
|
#include <tqmap.h>
|
|
|
|
#include "kword13format.h"
|
|
|
|
/**
|
|
* Contains the data of the \<FORMAT id="1"\> children
|
|
* also the grand-children of \<STYLE\> and \<LAYOUT\>
|
|
*/
|
|
class KWord13FormatOneData
|
|
{
|
|
public:
|
|
KWord13FormatOneData( void );
|
|
~KWord13FormatOneData( void );
|
|
|
|
public:
|
|
void xmldump( TQTextStream& iostream );
|
|
|
|
/**
|
|
* @brief Get a key representating the properties
|
|
*
|
|
* This key helps to categorize the automatic styles
|
|
*/
|
|
TQString key( void ) const;
|
|
|
|
TQString getProperty( const TQString& name ) const;
|
|
|
|
public:
|
|
TQMap<TQString,TQString> m_properties;
|
|
public: // OASIS-specific
|
|
TQString m_autoStyleName; ///< Name of the OASIS automatic style
|
|
};
|
|
|
|
/**
|
|
* \brief class for \<FORMAT id="1"\>
|
|
*/
|
|
class KWord13FormatOne : public KWord13Format
|
|
{
|
|
public:
|
|
KWord13FormatOne(void);
|
|
virtual ~KWord13FormatOne(void);
|
|
public:
|
|
/// Get length of format
|
|
virtual int length( void );
|
|
/**
|
|
* Get a pointer to the data correponding to \<FORMAT id="1"\>
|
|
*
|
|
* \note The returned pointer MUST NOT be deleted!
|
|
*/
|
|
virtual KWord13FormatOneData* getFormatOneData(void);
|
|
public:
|
|
int m_length; ///< Length of format
|
|
KWord13FormatOneData m_formatOne; ///< Data of children of \<FORMAT id="1"\>
|
|
};
|
|
|
|
#endif // KWORD_1_3_FORMAT_ONE
|