#include <KoCharacterStyle.h>
Graphe de collaboration de KoCharacterStyle:
Types publics | |
enum | Property { StyleId = QTextFormat::UserProperty+1 } |
Fonctions membres publiques | |
KoCharacterStyle (QObject *parent=0) | |
~KoCharacterStyle () | |
void | setFontFamily (const QString &family) |
See similar named method on QCharFormat. | |
QString | fontFamily () const |
See similar named method on QCharFormat. | |
void | setFontPointSize (qreal size) |
See similar named method on QCharFormat. | |
double | fontPointSize () const |
See similar named method on QCharFormat. | |
void | setFontWeight (int weight) |
See similar named method on QCharFormat. | |
int | fontWeight () const |
See similar named method on QCharFormat. | |
void | setFontItalic (bool italic) |
See similar named method on QCharFormat. | |
bool | fontItalic () const |
See similar named method on QCharFormat. | |
void | setFontOverline (bool overline) |
See similar named method on QCharFormat. | |
bool | fontOverline () const |
See similar named method on QCharFormat. | |
void | setFontStrikeOut (bool strikeOut) |
See similar named method on QCharFormat. | |
bool | fontStrikeOut () const |
See similar named method on QCharFormat. | |
void | setUnderlineColor (const QColor &color) |
See similar named method on QCharFormat. | |
QColor | underlineColor () const |
See similar named method on QCharFormat. | |
void | setFontFixedPitch (bool fixedPitch) |
See similar named method on QCharFormat. | |
bool | fontFixedPitch () const |
See similar named method on QCharFormat. | |
void | setUnderlineStyle (QTextCharFormat::UnderlineStyle style) |
See similar named method on QCharFormat. | |
QTextCharFormat::UnderlineStyle | underlineStyle () const |
See similar named method on QCharFormat. | |
void | setVerticalAlignment (QTextCharFormat::VerticalAlignment alignment) |
See similar named method on QCharFormat. | |
QTextCharFormat::VerticalAlignment | verticalAlignment () const |
See similar named method on QCharFormat. | |
void | setTextOutline (const QPen &pen) |
See similar named method on QCharFormat. | |
QPen | textOutline () const |
See similar named method on QCharFormat. | |
void | setBackground (const QBrush &brush) |
See similar named method on QCharFormat. | |
QBrush | background () const |
See similar named method on QCharFormat. | |
void | clearBackground () |
See similar named method on QCharFormat. | |
void | setForeground (const QBrush &brush) |
See similar named method on QCharFormat. | |
QBrush | foreground () const |
See similar named method on QCharFormat. | |
void | clearForeground () |
See similar named method on QCharFormat. | |
const QString & | name () const |
return the name of the style. | |
void | setName (const QString &name) |
set a user-visible name on the style. | |
int | styleId () const |
each style has a unique ID (non persistent) given out by the styleManager | |
void | setStyleId (int id) |
each style has a unique ID (non persistent) given out by the styleManager | |
void | applyStyle (QTextCharFormat &format) const |
void | applyStyle (QTextBlock &block) const |
void | applyStyle (QTextCursor *selection) const |
Fonctions membres privées | |
void | setProperty (int key, const QVariant &value) |
const QVariant * | get (int key) const |
double | propertyDouble (int key) const |
int | propertyInt (int key) const |
QString | propertyString (int key) const |
bool | propertyBoolean (int key) const |
Attributs privés | |
QString | m_name |
StylePrivate * | m_stylesPrivate |
Définition à la ligne 42 du fichier KoCharacterStyle.h.
KoCharacterStyle::KoCharacterStyle | ( | QObject * | parent = 0 |
) |
Définition à la ligne 26 du fichier KoCharacterStyle.cpp.
Références m_stylesPrivate, KFormula::Normal, setFontPointSize(), setFontWeight(), setForeground(), setTextOutline(), et setVerticalAlignment().
Voici le graphe d'appel pour cette fonction :
KoCharacterStyle::~KoCharacterStyle | ( | ) |
Définition à la ligne 37 du fichier KoCharacterStyle.cpp.
void KoCharacterStyle::setFontFamily | ( | const QString & | family | ) | [inline] |
QString KoCharacterStyle::fontFamily | ( | ) | const [inline] |
void KoCharacterStyle::setFontPointSize | ( | qreal | size | ) | [inline] |
See similar named method on QCharFormat.
Définition à la ligne 62 du fichier KoCharacterStyle.h.
Référencé par KoCharacterStyle().
Voici le graphe d'appel pour cette fonction :
double KoCharacterStyle::fontPointSize | ( | ) | const [inline] |
void KoCharacterStyle::setFontWeight | ( | int | weight | ) | [inline] |
See similar named method on QCharFormat.
Définition à la ligne 66 du fichier KoCharacterStyle.h.
Référencé par KoCharacterStyle().
Voici le graphe d'appel pour cette fonction :
int KoCharacterStyle::fontWeight | ( | ) | const [inline] |
void KoCharacterStyle::setFontItalic | ( | bool | italic | ) | [inline] |
bool KoCharacterStyle::fontItalic | ( | ) | const [inline] |
void KoCharacterStyle::setFontOverline | ( | bool | overline | ) | [inline] |
bool KoCharacterStyle::fontOverline | ( | ) | const [inline] |
void KoCharacterStyle::setFontStrikeOut | ( | bool | strikeOut | ) | [inline] |
bool KoCharacterStyle::fontStrikeOut | ( | ) | const [inline] |
void KoCharacterStyle::setUnderlineColor | ( | const QColor & | color | ) | [inline] |
QColor KoCharacterStyle::underlineColor | ( | ) | const |
See similar named method on QCharFormat.
Définition à la ligne 64 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setFontFixedPitch | ( | bool | fixedPitch | ) | [inline] |
bool KoCharacterStyle::fontFixedPitch | ( | ) | const [inline] |
void KoCharacterStyle::setUnderlineStyle | ( | QTextCharFormat::UnderlineStyle | style | ) | [inline] |
QTextCharFormat::UnderlineStyle KoCharacterStyle::underlineStyle | ( | ) | const [inline] |
void KoCharacterStyle::setVerticalAlignment | ( | QTextCharFormat::VerticalAlignment | alignment | ) | [inline] |
See similar named method on QCharFormat.
Définition à la ligne 98 du fichier KoCharacterStyle.h.
Référencé par KoCharacterStyle().
Voici le graphe d'appel pour cette fonction :
QTextCharFormat::VerticalAlignment KoCharacterStyle::verticalAlignment | ( | ) | const [inline] |
void KoCharacterStyle::setTextOutline | ( | const QPen & | pen | ) | [inline] |
See similar named method on QCharFormat.
Définition à la ligne 106 du fichier KoCharacterStyle.h.
Référencé par KoCharacterStyle().
Voici le graphe d'appel pour cette fonction :
QPen KoCharacterStyle::textOutline | ( | ) | const |
See similar named method on QCharFormat.
Définition à la ligne 55 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setBackground | ( | const QBrush & | brush | ) | [inline] |
QBrush KoCharacterStyle::background | ( | ) | const |
See similar named method on QCharFormat.
Définition à la ligne 73 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::clearBackground | ( | ) |
See similar named method on QCharFormat.
Définition à la ligne 82 du fichier KoCharacterStyle.cpp.
Références m_stylesPrivate, et StylePrivate::remove().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setForeground | ( | const QBrush & | brush | ) | [inline] |
See similar named method on QCharFormat.
Définition à la ligne 118 du fichier KoCharacterStyle.h.
Référencé par KoCharacterStyle().
Voici le graphe d'appel pour cette fonction :
QBrush KoCharacterStyle::foreground | ( | ) | const |
See similar named method on QCharFormat.
Définition à la ligne 86 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::clearForeground | ( | ) |
See similar named method on QCharFormat.
Définition à la ligne 95 du fichier KoCharacterStyle.cpp.
Références m_stylesPrivate, et StylePrivate::remove().
Voici le graphe d'appel pour cette fonction :
const QString& KoCharacterStyle::name | ( | ) | const [inline] |
return the name of the style.
Définition à la ligne 126 du fichier KoCharacterStyle.h.
Référencé par KoStyleManager::characterStyle().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setName | ( | const QString & | name | ) | [inline] |
int KoCharacterStyle::styleId | ( | ) | const [inline] |
each style has a unique ID (non persistent) given out by the styleManager
Définition à la ligne 132 du fichier KoCharacterStyle.h.
Référencé par KoStyleManager::alteredStyle(), et KoStyleManager::characterStyle().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setStyleId | ( | int | id | ) | [inline] |
each style has a unique ID (non persistent) given out by the styleManager
Définition à la ligne 135 du fichier KoCharacterStyle.h.
Référencé par KoStyleManager::add().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::applyStyle | ( | QTextCharFormat & | format | ) | const |
Apply this style to a blockFormat by copying all properties from this style to the target char format.
Définition à la ligne 113 du fichier KoCharacterStyle.cpp.
Référencé par KoParagraphStyle::applyStyle(), applyStyle(), et ChangeFollower::processUpdates().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::applyStyle | ( | QTextBlock & | block | ) | const |
Apply this style to the textBlock by copying all properties from this style to the target block formats.
Définition à la ligne 130 du fichier KoCharacterStyle.cpp.
Références applyStyle().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::applyStyle | ( | QTextCursor * | selection | ) | const |
Reset any styles and apply this style on the whole selection.
Définition à la ligne 143 du fichier KoCharacterStyle.cpp.
Références applyStyle().
Voici le graphe d'appel pour cette fonction :
void KoCharacterStyle::setProperty | ( | int | key, | |
const QVariant & | value | |||
) | [private] |
Définition à la ligne 40 du fichier KoCharacterStyle.cpp.
Références StylePrivate::add(), et m_stylesPrivate.
Voici le graphe d'appel pour cette fonction :
const QVariant * KoCharacterStyle::get | ( | int | key | ) | const [private] |
Définition à la ligne 44 du fichier KoCharacterStyle.cpp.
Références StylePrivate::get(), et m_stylesPrivate.
Référencé par applyStyle(), background(), foreground(), propertyBoolean(), propertyDouble(), propertyInt(), textOutline(), et underlineColor().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
double KoCharacterStyle::propertyDouble | ( | int | key | ) | const [private] |
Définition à la ligne 48 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
int KoCharacterStyle::propertyInt | ( | int | key | ) | const [private] |
Définition à la ligne 99 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
QString KoCharacterStyle::propertyString | ( | int | key | ) | const [private] |
Définition à la ligne 149 du fichier KoCharacterStyle.cpp.
Références StylePrivate::get(), et m_stylesPrivate.
Voici le graphe d'appel pour cette fonction :
bool KoCharacterStyle::propertyBoolean | ( | int | key | ) | const [private] |
Définition à la ligne 106 du fichier KoCharacterStyle.cpp.
Références get().
Voici le graphe d'appel pour cette fonction :
QString KoCharacterStyle::m_name [private] |
Définition à la ligne 161 du fichier KoCharacterStyle.h.
StylePrivate* KoCharacterStyle::m_stylesPrivate [private] |
Définition à la ligne 162 du fichier KoCharacterStyle.h.
Référencé par clearBackground(), clearForeground(), get(), KoCharacterStyle(), propertyString(), et setProperty().