11 #include "styleitem.h"
12 #include "styles/styleset.h"
13 #include "styles/paragraphstyle.h"
31 QList<StyleName>
styles(
bool reloadFromDoc =
true);
33 void selected(
const QStringList &styleNames);
37 QString
newStyle(
const QString &fromStyle);
42 QString
shortcut(
const QString &stylename)
const;
52 void selectionDirty();
57 bool m_selectionIsDirty;
61 QList<ParagraphStyle*> m_selection;
62 QList<RemoveItem> m_deleted;
64 void setupConnections();
65 void removeConnections();
66 void updateStyleList();
67 void reloadTmpStyles();
68 QList<CharStyle> getCharStyles();
72 void slotLineSpacingMode(
int mode);
73 void slotLineSpacing();
74 void slotParentParaEffects();
75 void slotDropCap(
bool isOn);
76 void slotDropCapLines(
int lines);
77 void slotParEffectOffset();
78 void slotParEffectIndent(
bool);
79 void slotParEffectCharStyle(
int);
80 void slotBullet(
bool isOn);
81 void slotBulletStr(
const QString &str);
82 void slotNumeration(
bool isOn);
83 void slotNumName(
const QString &str);
85 void slotSelectionDirty();
86 void slotNumFormat(
int numFormat);
87 void slotNumLevel(
int level);
88 void slotNumPrefix(
const QString &str);
89 void slotNumSuffix(
const QString &str);
90 void slotNumStart(
int start);
91 void slotNumRestart(
int restart);
92 void slotNumOther(
bool isOn);
93 void slotNumHigher(
bool isOn);
94 void slotSpaceAbove();
95 void slotSpaceBelow();
97 void slotOpticalMargin(
int i);
98 void slotOpticalMarginSelector();
99 void slotParentOpticalMargin();
101 void slotMinGlyphExt();
102 void slotMaxGlyphExt();
103 void handleKeepLinesStart();
104 void handleKeepLinesEnd();
105 void handleKeepTogether();
106 void handleKeepWithNext();
108 void slotLeftIndent();
109 void slotRightIndent();
110 void slotFirstLine();
113 void slotEffects(
int e);
114 void slotEffectProperties();
115 void slotFillColor();
116 void slotFillShade();
117 void slotStrokeColor();
118 void slotStrokeShade();
123 void slotWordTracking();
124 void slotBaselineOffset();
125 void slotFont(QString s);
126 void slotParentChanged(
const QString &parent);
127 void slotCharParentChanged(
const QString &parent);
141 QList<StyleName>
styles(
bool reloadFromDoc =
true);
143 void selected(
const QStringList &styleNames);
147 QString
newStyle(
const QString &fromStyle);
152 QString
shortcut(
const QString &stylename)
const;
162 void selectionDirty();
165 QTabWidget *m_widget;
166 SMCStyleWidget *m_page;
169 QList<CharStyle*> m_selection;
170 QList<RemoveItem> m_deleted;
171 bool m_selectionIsDirty;
173 void reloadTmpStyles();
174 void setupConnections();
175 void removeConnections();
179 void slotEffects(
int e);
180 void slotEffectProperties();
181 void slotFillColor();
182 void slotFillShade();
183 void slotStrokeColor();
184 void slotStrokeShade();
189 void slotWordTracking();
190 void slotBaselineOffset();
191 void slotFont(QString s);
192 void slotParentChanged(
const QString &parent);
void setDefaultStyle(bool ids)
set if the style is a default style
Definition: smtextstyles.cpp:2094
Definition: charstyle.h:78
void nameChanged(const QString &newName)
Called when the currently selected style's name has changed.
Definition: smtextstyles.cpp:413
QString newStyle()
Create a new temp. style with default values and return the.
Definition: smtextstyles.cpp:1983
bool isDefaultStyle(const QString &stylename) const
returns if the style is a default style
Definition: smtextstyles.cpp:323
QString typeNamePlural()
name of the style (plural) (Paragraph Styles, Character Styles...)
Definition: smtextstyles.cpp:1838
QList< StyleName > styles(bool reloadFromDoc=true)
existing styles in this category
Definition: smtextstyles.cpp:1876
void reload()
Reload styles and remove all cached (and possibly changed ones).
Definition: smtextstyles.cpp:134
void unitChange()
document unit has been changed, upgrade widgets
Definition: smtextstyles.cpp:470
Definition: smtextstyles.h:20
Represents a style type that can be added to the Style Manager.
Definition: styleitem.h:37
void setShortcut(const QString &shortcut)
set the key combination for the selected style's shortcut
Definition: smtextstyles.cpp:2128
void reload()
Reload styles and remove all cached (and possibly changed ones).
Definition: smtextstyles.cpp:1907
QString typeNamePlural()
name of the style (plural) (Paragraph Styles, Character Styles...)
Definition: smtextstyles.cpp:57
void setCurrentDoc(ScribusDoc *doc)
Whenever style manager is shown attached StyleItems get the current doc.
Definition: smtextstyles.cpp:67
void setCurrentDoc(ScribusDoc *doc)
Whenever style manager is shown attached StyleItems get the current doc.
Definition: smtextstyles.cpp:1848
bool isDefaultStyle(const QString &stylename) const
returns if the style is a default style
Definition: smtextstyles.cpp:2076
the Document Class
Definition: scribusdoc.h:90
void selected(const QStringList &styleNames)
Whenever this function is called StyleItem must update the main.
Definition: smtextstyles.cpp:139
void editMode(bool isOn)
When SM switches to or away from edit mode this function is called.
Definition: smtextstyles.cpp:317
void apply()
apply changes made to the currently selected style(s)
Definition: smtextstyles.cpp:2046
QString typeNameSingular()
name of the style (singular) (Paragraph Style, Character Style...)
Definition: smtextstyles.cpp:62
void setDefaultStyle(bool ids)
set if the style is a default style
Definition: smtextstyles.cpp:341
QString typeNameSingular()
name of the style (singular) (Paragraph Style, Character Style...)
Definition: smtextstyles.cpp:1843
void deleteStyles(const QList< RemoveItem > &removeList)
User has requested to delete all the selected styles.
Definition: smtextstyles.cpp:2143
void selected(const QStringList &styleNames)
Whenever this function is called StyleItem must update the main.
Definition: smtextstyles.cpp:1912
void nameChanged(const QString &newName)
Called when the currently selected style's name has changed.
Definition: smtextstyles.cpp:2163
void setShortcut(const QString &shortcut)
set the key combination for the selected style's shortcut
Definition: smtextstyles.cpp:377
QString shortcut(const QString &stylename) const
returns the key combination for the style's shortcut
Definition: smtextstyles.cpp:2109
Definition: smtextstyles.h:130
void languageChange()
reload all the gui strings whenever this method is called
Definition: smtextstyles.cpp:2211
QList< StyleName > styles(bool reloadFromDoc=true)
existing styles in this category
Definition: smtextstyles.cpp:99
void unitChange()
document unit has been changed, upgrade widgets
Definition: smtextstyles.cpp:2220
void languageChange()
reload all the gui strings whenever this method is called
Definition: smtextstyles.cpp:461
QString fromSelection() const
Return the name of the style in this category applied to the.
Definition: smtextstyles.cpp:185
void toSelection(const QString &styleName) const
Apply style called styleName to the documents current selection.
Definition: smtextstyles.cpp:1964
QString getUniqueName(const QString &name)
Return a unique name for a style using the base in the name.
Definition: smtextstyles.cpp:2019
void toSelection(const QString &styleName) const
Apply style called styleName to the documents current selection.
Definition: smtextstyles.cpp:211
void deleteStyles(const QList< RemoveItem > &removeList)
User has requested to delete all the selected styles.
Definition: smtextstyles.cpp:392
void editMode(bool isOn)
When SM switches to or away from edit mode this function is called.
Definition: smtextstyles.cpp:2070
void apply()
apply changes made to the currently selected style(s)
Definition: smtextstyles.cpp:295
QTabWidget * widget()
return the QWidget for editing style's properties
Definition: smtextstyles.cpp:1833
QString getUniqueName(const QString &name)
Return a unique name for a style using the base in the name.
Definition: smtextstyles.cpp:268
QString shortcut(const QString &stylename) const
returns the key combination for the style's shortcut
Definition: smtextstyles.cpp:356
QString fromSelection() const
Return the name of the style in this category applied to the.
Definition: smtextstyles.cpp:1938
QTabWidget * widget()
return the QWidget for editing style's properties
Definition: smtextstyles.cpp:52
QString newStyle()
Create a new temp. style with default values and return the.
Definition: smtextstyles.cpp:230