KoUserStyleCollection.cpp
30KoUserStyle* KoUserStyleCollection::findStyle( const TQString & _name, const TQString& defaultStyleName ) const
82 for ( TQValueList<KoUserStyle *>::const_iterator styleIt = m_styleList.begin(), styleEnd = m_styleList.end() ; styleIt != styleEnd ; ++styleIt )
TQString generateUniqueName() const
Generate a new unique name, to create a style whose internal name differs from the internal name of a...
Definition KoUserStyleCollection.cpp:64
void updateStyleListOrder(const TQStringList &list)
Reorder the styles in the collection.
Definition KoUserStyleCollection.cpp:132
KoUserStyle * findStyleByDisplayName(const TQString &displayName) const
Find style based on the display name displayName.
Definition KoUserStyleCollection.cpp:49
TQStringList displayNameList() const
Return the list composed of the display-name of each style in the collection.
Definition KoUserStyleCollection.cpp:91
KoUserStyle * findStyle(const TQString &name, const TQString &defaultStyleName) const
Find style based on the internal name name.
Definition KoUserStyleCollection.cpp:30
KoUserStyle * addStyle(KoUserStyle *sty)
Try adding sty to the collection.
Definition KoUserStyleCollection.cpp:99
void removeStyle(KoUserStyle *style)
Remove style from the collection.
Definition KoUserStyleCollection.cpp:123
Base class for any kind of style that the user can create/modify/delete/display.
Definition KoUserStyle.h:34
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 displayName() const
The user-visible name (e.g. translated, or set by the user).
Definition KoUserStyle.cpp:27
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
