22 typedef QPair<QString, QString> RemoveItem;
26 typedef QPair<QString, QString> StyleName;
52 virtual QTabWidget*
widget() = 0;
76 virtual QList<StyleName>
styles(
bool reloadFromDoc =
true) = 0;
99 virtual void selected(
const QStringList &styleNames) = 0;
116 virtual void toSelection(
const QString &styleName)
const = 0;
130 virtual QString
newStyle(
const QString &fromStyle) = 0;
142 virtual void apply() = 0;
157 virtual QString
shortcut(
const QString &stylename)
const = 0;
169 virtual void deleteStyles(
const QList<RemoveItem> &removeList) = 0;
172 virtual void nameChanged(
const QString &newName) = 0;
virtual QTabWidget * widget()=0
return the QWidget for editing style's properties
virtual void nameChanged(const QString &newName)=0
Called when the currently selected style's name has changed.
virtual void editMode(bool isOn)
When SM switches to or away from edit mode this function is called.
Definition: styleitem.h:148
virtual void selected(const QStringList &styleNames)=0
Whenever this function is called StyleItem must update the main.
virtual QString newStyle()=0
Create a new temp. style with default values and return the.
virtual void setDefaultStyle(bool ids)=0
set if the style is a default style
virtual QList< StyleName > styles(bool reloadFromDoc=true)=0
existing styles in this category
Represents a style type that can be added to the Style Manager.
Definition: styleitem.h:37
virtual void apply()=0
apply changes made to the currently selected style(s)
the Document Class
Definition: scribusdoc.h:90
virtual bool isDefaultStyle(const QString &stylename) const =0
returns if the style is a default style
virtual QString typeNamePlural()=0
name of the style (plural) (Paragraph Styles, Character Styles...)
virtual void reload()=0
Reload styles and remove all cached (and possibly changed ones).
virtual void toSelection(const QString &styleName) const =0
Apply style called styleName to the documents current selection.
virtual void deleteStyles(const QList< RemoveItem > &removeList)=0
User has requested to delete all the selected styles.
virtual void setShortcut(const QString &shortcut)=0
set the key combination for the selected style's shortcut
virtual void setCurrentDoc(ScribusDoc *doc)=0
Whenever style manager is shown attached StyleItems get the current doc.
virtual void unitChange()=0
document unit has been changed, upgrade widgets
virtual QString typeNameSingular()=0
name of the style (singular) (Paragraph Style, Character Style...)
virtual QString shortcut(const QString &stylename) const =0
returns the key combination for the style's shortcut
virtual QString fromSelection() const =0
Return the name of the style in this category applied to the.
virtual void languageChange()=0
reload all the gui strings whenever this method is called
virtual QString getUniqueName(const QString &base)=0
Return a unique name for a style using the base in the name.