lib

KoUserStyle.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KOUSERSTYLE_H
20#define KOUSERSTYLE_H
21
22#include <koffice_export.h>
23#include <tqstring.h>
24
33class KOTEXT_EXPORT KoUserStyle
34{
35public:
36 KoUserStyle( const TQString & name );
37
40 TQString name() const { return m_name; }
43 void setName( const TQString & name ) { m_name = name; }
44
46 TQString displayName() const;
48 void setDisplayName( const TQString& name );
49
50protected:
51 TQString m_name;
52 TQString m_displayName;
53};
54
55#endif
void setName(const TQString &name)
Set the internal name - see generateUniqueName() if needed Should be unique in a given style collecti...
Definition KoUserStyle.h:43
TQString name() const
The internal name (used for loading/saving, but not shown to the user) Should be unique in a given st...
Definition KoUserStyle.h:40