19#ifndef KOUSERSTYLECOLLECTION_H
20#define KOUSERSTYLECOLLECTION_H
23#include <koffice_export.h>
24#include <tqstringlist.h>
56 bool isEmpty() const { return m_styleList.isEmpty(); }
60 int count() const { return m_styleList.count(); }
69 TQValueList<KoUserStyle *> styleList() const { return m_styleList; }
76 TQString generateUniqueName() const;
81 TQStringList displayNameList() const;
89 KoUserStyle* findStyle( const TQString & name, const TQString& defaultStyleName ) const;
98 KoUserStyle* findStyleByDisplayName( const TQString& displayName ) const;
111 void updateStyleListOrder( const TQStringList& list );
139 TQValueList<KoUserStyle *> m_styleList;
142 TQValueList<KoUserStyle *> m_deletedStyles;
143 const TQString m_prefix;
TQValueList< KoUserStyle * > styleList() const Return the list of all styles in the collection.
int indexOf(KoUserStyle *style) const
void clear() Erase all styles.
KoUserStyleCollection(const TQString &prefix) Constructor.
void setDefault(bool d) Set whether this collection only holds the default styles provided by the application.
KoUserStyleCollection(const KoUserStyleCollection &rhs) forbidden
void operator=(const KoUserStyleCollection &rhs) forbidden
Base class for any kind of style that the user can create/modify/delete/display.
|