#include <contextstyle.h>
Graphe d'héritage de ContextStyle:
Types publics | |
enum | Alignment { left, center, right } |
enum | TextStyle { displayStyle = 0, textStyle = 1, scriptStyle = 2, scriptScriptStyle = 3 } |
enum | IndexStyle { normal, cramped } |
Fonctions membres publiques | |
ContextStyle () | |
~ContextStyle () | |
void | init (bool init=true) |
void | readConfig (KConfig *config, bool init=true) |
bool | edit () const |
void | setEdit (bool e) |
const SymbolTable & | symbolTable () const |
const FontStyle & | fontStyle () const |
double | pixelToLayoutUnitX (double x) const |
double | pixelToLayoutUnitY (double y) const |
double | ptToPixelX (double pt) const |
double | ptToPixelY (double pt) const |
double | ptToLayoutUnitPt (double pt) const |
double | ptToLayoutUnitPixX (double x_pt) const |
double | ptToLayoutUnitPixY (double y_pt) const |
double | pixelYToPt (double y) const |
double | layoutUnitPtToPt (double lupt) const |
double | layoutUnitToPixelX (double lupix) const |
double | layoutUnitToPixelY (double lupix) const |
double | pixelXToPt (double x) const |
QPointF | pixelToLayoutUnit (const QPointF &p) const |
QRectF | pixelToLayoutUnit (const QRectF &r) const |
double | layoutUnitToFontSize (double luSize, bool) const |
double | layoutUnitPtToPt (double lupt) |
QPoint | layoutUnitToPixel (const QPoint &p) const |
void | setZoomAndResolution (int zoom, int dpiX, int dpiY) |
bool | setZoomAndResolution (int zoom, double zoomX, double zoomY, bool updateViews, bool forPrint) |
bool | syntaxHighlighting () const |
void | setSyntaxHighlighting (bool highlight) |
QColor | getDefaultColor () const |
QColor | getNumberColorPlain () const |
QColor | getOperatorColorPlain () const |
QColor | getErrorColorPlain () const |
QColor | getEmptyColorPlain () const |
QColor | getHelpColorPlain () const |
QColor | getNumberColor () const |
QColor | getOperatorColor () const |
QColor | getErrorColor () const |
QColor | getEmptyColor () const |
QColor | getHelpColor () const |
void | setDefaultColor (const QColor &) |
void | setNumberColor (const QColor &) |
void | setOperatorColor (const QColor &) |
void | setErrorColor (const QColor &) |
void | setEmptyColor (const QColor &) |
void | setHelpColor (const QColor &) |
QString | getFontStyle () const |
void | setFontStyle (const QString &fontStyle, bool init=true) |
QFont | getMathFont () const |
QFont | getBracketFont () const |
QFont | getDefaultFont () const |
QFont | getNameFont () const |
QFont | getNumberFont () const |
QFont | getOperatorFont () const |
QFont | getSymbolFont () const |
void | setMathFont (QFont f) |
void | setBracketFont (QFont f) |
void | setDefaultFont (QFont f) |
void | setNameFont (QFont f) |
void | setNumberFont (QFont f) |
void | setOperatorFont (QFont f) |
double | getReductionFactor (TextStyle tstyle) const |
luPt | getBaseSize () const |
int | baseSize () const |
void | setBaseSize (int pointSize) |
void | setSizeFactor (double factor) |
TextStyle | getBaseTextStyle () const |
bool | isScript (TextStyle tstyle) const |
luPixel | getSpace (TextStyle tstyle, SpaceWidth space, double factor) const |
luPixel | getThinSpace (TextStyle tstyle, double factor) const |
luPixel | getMediumSpace (TextStyle tstyle, double factor) const |
luPixel | getThickSpace (TextStyle tstyle, double factor) const |
luPixel | getQuadSpace (TextStyle tstyle, double factor) const |
luPixel | axisHeight (TextStyle tstyle, double factor) const |
luPt | getAdjustedSize (TextStyle tstyle, double factor) const |
luPixel | getLineWidth (double factor) const |
luPixel | getEmptyRectWidth (double factor) const |
luPixel | getEmptyRectHeight (double factor) const |
Alignment | getMatrixAlignment () const |
bool | getCenterSymbol () const |
TextStyle | convertTextStyleFraction (TextStyle tstyle) const |
TextStyle | convertTextStyleIndex (TextStyle tstyle) const |
IndexStyle | convertIndexStyleUpper (IndexStyle istyle) const |
IndexStyle | convertIndexStyleLower (IndexStyle) const |
Fonctions membres privées | |
void | setup () |
Attributs privés | |
TextStyleValues | textStyleValues [4] |
QFont | mathFont |
QFont | bracketFont |
QFont | defaultFont |
QFont | nameFont |
QFont | numberFont |
QFont | operatorFont |
QFont | symbolFont |
QColor | defaultColor |
QColor | numberColor |
QColor | operatorColor |
QColor | errorColor |
QColor | emptyColor |
QColor | helpColor |
bool | linearMovement |
int | m_baseSize |
double | m_sizeFactor |
TextStyle | m_baseTextStyle |
pt | lineWidth |
luPt | quad |
luPixel | m_axisHeight |
bool | centerSymbol |
bool | m_syntaxHighlighting |
bool | m_edit |
FontStyle * | m_fontStyle |
QString | m_fontStyleName |
Classes | |
struct | TextStyleValues |
All distances are stored in point. Most methods return pixel values.
Définition à la ligne 50 du fichier contextstyle.h.
Textstyles like in TeX. In the remaining documentation, the styles are abbreviated like this:
displayStyle: D
textStyle: T
scriptStyle: S
scriptScriptStyle: SS
Définition à la ligne 68 du fichier contextstyle.h.
KFORMULA_NAMESPACE_BEGIN ContextStyle::ContextStyle | ( | ) |
Build a default context style
Définition à la ligne 36 du fichier contextstyle.cc.
Références centerSymbol, displayStyle, linearMovement, lineWidth, m_baseTextStyle, m_fontStyle, m_syntaxHighlighting, scriptScriptStyle, scriptStyle, ContextStyle::TextStyleValues::setup(), textStyle, et textStyleValues.
Voici le graphe d'appel pour cette fonction :
ContextStyle::~ContextStyle | ( | ) |
void ContextStyle::init | ( | bool | init = true |
) |
init | if true fonts may be installed if needed. |
Définition à la ligne 64 du fichier contextstyle.cc.
Références m_fontStyleName, setFontStyle(), et setup().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::readConfig | ( | KConfig * | config, | |
bool | init = true | |||
) |
init | true if initialization may take place. This may cause font installation. Mark as false when this is not intended (i. e. creating configuration dialog from another component) |
Définition à la ligne 86 du fichier contextstyle.cc.
Références baseSize(), bracketFont, DEBUGID, defaultColor, defaultFont, emptyColor, errorColor, helpColor, m_baseSize, m_syntaxHighlighting, mathFont, FontStyle::missingFonts(), nameFont, numberColor, numberFont, et operatorColor.
Voici le graphe d'appel pour cette fonction :
bool ContextStyle::edit | ( | ) | const [inline] |
Définition à la ligne 95 du fichier contextstyle.h.
Références m_edit.
Référencé par KFormula::MatrixRowElement::draw(), getEmptyColor(), getErrorColor(), getHelpColor(), getNumberColor(), et getOperatorColor().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setEdit | ( | bool | e | ) | [inline] |
const SymbolTable & ContextStyle::symbolTable | ( | ) | const |
Définition à la ligne 80 du fichier contextstyle.cc.
Références m_fontStyle, et FontStyle::symbolTable().
Référencé par Artwork::calcCharSize(), Artwork::calcCurlyBracket(), Artwork::calcRoundBracket(), Artwork::drawBigCurlyBracket(), Artwork::drawBigRoundBracket(), et Artwork::drawCharacter().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
const FontStyle& ContextStyle::fontStyle | ( | ) | const [inline] |
Définition à la ligne 103 du fichier contextstyle.h.
Références m_fontStyle.
Référencé par KFormula::TextElement::getRealCharacter().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::pixelToLayoutUnitX | ( | double | x | ) | const |
Définition à la ligne 366 du fichier contextstyle.cc.
Références KoZoomHandler::m_resolutionX, et KoZoomHandler::m_zoomedResolutionX.
Référencé par KFormula::PaddedElement::calcSize(), et pixelToLayoutUnit().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::pixelToLayoutUnitY | ( | double | y | ) | const |
Définition à la ligne 376 du fichier contextstyle.cc.
Références KoZoomHandler::m_resolutionY, et KoZoomHandler::m_zoomedResolutionY.
Référencé par pixelToLayoutUnit().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::ptToPixelX | ( | double | pt | ) | const [inline] |
Définition à la ligne 108 du fichier contextstyle.h.
Références KoZoomHandler::m_resolutionX.
Référencé par KFormula::PaddedElement::calcSizes(), getMediumSpace(), getQuadSpace(), getThickSpace(), getThinSpace(), et ptToLayoutUnitPixX().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::ptToPixelY | ( | double | pt | ) | const [inline] |
Définition à la ligne 110 du fichier contextstyle.h.
Références KoZoomHandler::m_resolutionY.
Référencé par KFormula::MatrixRowElement::calcSizes(), et ptToLayoutUnitPixY().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::ptToLayoutUnitPt | ( | double | pt | ) | const [inline] |
Définition à la ligne 112 du fichier contextstyle.h.
Référencé par CMArtwork::calcCMDelimiterSize(), Artwork::calcCurlyBracket(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), Artwork::calcRoundBracket(), KFormula::PaddedElement::calcSize(), KFormula::MatrixRowElement::calcSizes(), KFormula::GlyphElement::calcSizes(), getAdjustedSize(), getBaseSize(), ptToLayoutUnitPixX(), ptToLayoutUnitPixY(), et setup().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::ptToLayoutUnitPixX | ( | double | x_pt | ) | const [inline] |
Définition à la ligne 117 du fichier contextstyle.h.
Références ptToLayoutUnitPt(), et ptToPixelX().
Référencé par getEmptyRectHeight(), getEmptyRectWidth(), et getLineWidth().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
double ContextStyle::ptToLayoutUnitPixY | ( | double | y_pt | ) | const [inline] |
Définition à la ligne 119 du fichier contextstyle.h.
Références ptToLayoutUnitPt(), et ptToPixelY().
Référencé par setup().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
double ContextStyle::pixelYToPt | ( | double | y | ) | const [inline] |
Définition à la ligne 121 du fichier contextstyle.h.
Références KoZoomHandler::m_resolutionY.
Référencé par setup().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::layoutUnitPtToPt | ( | double | lupt | ) | const [inline] |
Définition à la ligne 123 du fichier contextstyle.h.
Référencé par CMArtwork::calcCMDelimiterSize(), Artwork::calcCurlyBracket(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), Artwork::calcRoundBracket(), KFormula::MatrixRowElement::calcSizes(), KFormula::GlyphElement::calcSizes(), et layoutUnitToFontSize().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::layoutUnitToPixelX | ( | double | lupix | ) | const |
Définition à la ligne 385 du fichier contextstyle.cc.
Références KoZoomHandler::m_resolutionX, et KoZoomHandler::m_zoomedResolutionX.
Référencé par KFormula::MatrixRowElement::draw(), KFormula::GlyphElement::draw(), ErrorElement::draw(), KFormula::BracketElement::draw(), Artwork::drawBigCurlyBracket(), Artwork::drawBigRoundBracket(), CMArtwork::drawCMDelimiter(), EsstixArtwork::drawEsstixDelimiter(), et layoutUnitToPixel().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::layoutUnitToPixelY | ( | double | lupix | ) | const |
Définition à la ligne 394 du fichier contextstyle.cc.
Références KoZoomHandler::m_resolutionY, et KoZoomHandler::m_zoomedResolutionY.
Référencé par KFormula::MatrixRowElement::draw(), KFormula::GlyphElement::draw(), ErrorElement::draw(), KFormula::BracketElement::draw(), Artwork::drawBigCurlyBracket(), Artwork::drawBigRoundBracket(), CMArtwork::drawCMDelimiter(), EsstixArtwork::drawEsstixDelimiter(), et layoutUnitToPixel().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::pixelXToPt | ( | double | x | ) | const [inline] |
QPointF ContextStyle::pixelToLayoutUnit | ( | const QPointF & | p | ) | const [inline] |
Définition à la ligne 129 du fichier contextstyle.h.
Références pixelToLayoutUnitX(), et pixelToLayoutUnitY().
Voici le graphe d'appel pour cette fonction :
QRectF ContextStyle::pixelToLayoutUnit | ( | const QRectF & | r | ) | const [inline] |
Définition à la ligne 132 du fichier contextstyle.h.
Références KoPageFormat::height(), pixelToLayoutUnitX(), pixelToLayoutUnitY(), et KoPageFormat::width().
Voici le graphe d'appel pour cette fonction :
double ContextStyle::layoutUnitToFontSize | ( | double | luSize, | |
bool | ||||
) | const |
Définition à la ligne 403 du fichier contextstyle.cc.
Références layoutUnitPtToPt(), et KoZoomHandler::m_zoomedResolutionY.
Référencé par KFormula::GlyphElement::draw(), Artwork::drawBigCurlyBracket(), Artwork::drawBigRoundBracket(), CMArtwork::drawCMDelimiter(), et EsstixArtwork::drawEsstixDelimiter().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
double ContextStyle::layoutUnitPtToPt | ( | double | lupt | ) | [inline] |
Définition à la ligne 140 du fichier contextstyle.h.
QPoint ContextStyle::layoutUnitToPixel | ( | const QPoint & | p | ) | const [inline] |
Définition à la ligne 142 du fichier contextstyle.h.
Références layoutUnitToPixelX(), et layoutUnitToPixelY().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setZoomAndResolution | ( | int | zoom, | |
int | dpiX, | |||
int | dpiY | |||
) | [virtual] |
Change the zoom factor to z
(e.g. 150 for 150%) and/or change the resolution of the output device, given in DPI. This is done on startup, when zooming, and when printing. The same call combines both so that all the updating done behind the scenes is done only once, even if both zoom and DPI must be changed.
Réimplémentée à partir de KoZoomHandler.
Définition à la ligne 118 du fichier contextstyle.cc.
Références KoZoomHandler::setZoomAndResolution().
Voici le graphe d'appel pour cette fonction :
bool ContextStyle::setZoomAndResolution | ( | int | zoom, | |
double | zoomX, | |||
double | zoomY, | |||
bool | updateViews, | |||
bool | forPrint | |||
) |
Sets the zoom by hand. This is to be used in paintContent
.
Définition à la ligne 123 du fichier contextstyle.cc.
Références KoZoomHandler::m_zoom, KoZoomHandler::m_zoomedResolutionX, et KoZoomHandler::m_zoomedResolutionY.
bool ContextStyle::syntaxHighlighting | ( | ) | const [inline] |
Définition à la ligne 155 du fichier contextstyle.h.
Références m_syntaxHighlighting.
Référencé par getEmptyColor(), getErrorColor(), getHelpColor(), getNumberColor(), et getOperatorColor().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setSyntaxHighlighting | ( | bool | highlight | ) | [inline] |
QColor ContextStyle::getDefaultColor | ( | ) | const [inline] |
Définition à la ligne 158 du fichier contextstyle.h.
Références defaultColor.
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), CMArtwork::draw(), getEmptyColor(), getErrorColor(), getHelpColor(), getNumberColor(), et getOperatorColor().
Voici le graphe d'appel pour cette fonction :
QColor ContextStyle::getNumberColorPlain | ( | ) | const [inline] |
QColor ContextStyle::getOperatorColorPlain | ( | ) | const [inline] |
QColor ContextStyle::getErrorColorPlain | ( | ) | const [inline] |
QColor ContextStyle::getEmptyColorPlain | ( | ) | const [inline] |
QColor ContextStyle::getHelpColorPlain | ( | ) | const [inline] |
QColor ContextStyle::getNumberColor | ( | ) | const |
Définition à la ligne 132 du fichier contextstyle.cc.
Références edit(), getDefaultColor(), numberColor, et syntaxHighlighting().
Voici le graphe d'appel pour cette fonction :
QColor ContextStyle::getOperatorColor | ( | ) | const |
Définition à la ligne 140 du fichier contextstyle.cc.
Références edit(), getDefaultColor(), operatorColor, et syntaxHighlighting().
Voici le graphe d'appel pour cette fonction :
QColor ContextStyle::getErrorColor | ( | ) | const |
Définition à la ligne 148 du fichier contextstyle.cc.
Références edit(), errorColor, getDefaultColor(), et syntaxHighlighting().
Référencé par KFormula::GlyphElement::draw(), et ErrorElement::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QColor ContextStyle::getEmptyColor | ( | ) | const |
Définition à la ligne 156 du fichier contextstyle.cc.
Références edit(), emptyColor, getDefaultColor(), et syntaxHighlighting().
Voici le graphe d'appel pour cette fonction :
QColor ContextStyle::getHelpColor | ( | ) | const |
Définition à la ligne 164 du fichier contextstyle.cc.
Références edit(), getDefaultColor(), helpColor, et syntaxHighlighting().
Référencé par KFormula::MatrixRowElement::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setDefaultColor | ( | const QColor & | ) |
void ContextStyle::setNumberColor | ( | const QColor & | ) |
void ContextStyle::setOperatorColor | ( | const QColor & | ) |
void ContextStyle::setErrorColor | ( | const QColor & | ) |
void ContextStyle::setEmptyColor | ( | const QColor & | ) |
void ContextStyle::setHelpColor | ( | const QColor & | ) |
QString ContextStyle::getFontStyle | ( | ) | const [inline] |
void ContextStyle::setFontStyle | ( | const QString & | fontStyle, | |
bool | init = true | |||
) |
Définition à la ligne 71 du fichier contextstyle.cc.
Références FontStyle::init(), m_fontStyle, et m_fontStyleName.
Référencé par init().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QFont ContextStyle::getMathFont | ( | ) | const [inline] |
QFont ContextStyle::getBracketFont | ( | ) | const [inline] |
QFont ContextStyle::getDefaultFont | ( | ) | const [inline] |
Définition à la ligne 182 du fichier contextstyle.h.
Références defaultFont.
Référencé par KFormula::MatrixRowElement::calcSizes(), KFormula::GlyphElement::calcSizes(), et KFormula::GlyphElement::draw().
Voici le graphe d'appel pour cette fonction :
QFont ContextStyle::getNameFont | ( | ) | const [inline] |
QFont ContextStyle::getNumberFont | ( | ) | const [inline] |
QFont ContextStyle::getOperatorFont | ( | ) | const [inline] |
QFont ContextStyle::getSymbolFont | ( | ) | const [inline] |
void ContextStyle::setMathFont | ( | QFont | f | ) | [inline] |
void ContextStyle::setBracketFont | ( | QFont | f | ) | [inline] |
void ContextStyle::setDefaultFont | ( | QFont | f | ) | [inline] |
void ContextStyle::setNameFont | ( | QFont | f | ) | [inline] |
void ContextStyle::setNumberFont | ( | QFont | f | ) | [inline] |
void ContextStyle::setOperatorFont | ( | QFont | f | ) | [inline] |
double ContextStyle::getReductionFactor | ( | TextStyle | tstyle | ) | const |
Définition à la ligne 210 du fichier contextstyle.cc.
Références ContextStyle::TextStyleValues::reductionFactor, et textStyleValues.
Référencé par getAdjustedSize().
Voici le graphe d'appel pour cette fonction :
luPt ContextStyle::getBaseSize | ( | ) | const |
Définition à la ligne 269 du fichier contextstyle.cc.
Références m_baseSize, m_sizeFactor, et ptToLayoutUnitPt().
Voici le graphe d'appel pour cette fonction :
int ContextStyle::baseSize | ( | ) | const [inline] |
Définition à la ligne 201 du fichier contextstyle.h.
Références m_baseSize.
Référencé par KFormula::FormulaElement::calcSizes(), KFormula::FormulaElement::draw(), et readConfig().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setBaseSize | ( | int | pointSize | ) |
Définition à la ligne 274 du fichier contextstyle.cc.
Références m_baseSize, et setup().
Voici le graphe d'appel pour cette fonction :
void ContextStyle::setSizeFactor | ( | double | factor | ) |
Définition à la ligne 283 du fichier contextstyle.cc.
Références m_sizeFactor.
Référencé par KFormula::FormulaElement::calcSizes(), et KFormula::FormulaElement::draw().
Voici le graphe d'appel pour cette fonction :
TextStyle ContextStyle::getBaseTextStyle | ( | ) | const [inline] |
Définition à la ligne 205 du fichier contextstyle.h.
Références m_baseTextStyle.
Référencé par KFormula::FormulaElement::calcSizes(), et KFormula::FormulaElement::draw().
Voici le graphe d'appel pour cette fonction :
bool ContextStyle::isScript | ( | TextStyle | tstyle | ) | const [inline] |
luPixel ContextStyle::getSpace | ( | TextStyle | tstyle, | |
SpaceWidth | space, | |||
double | factor | |||
) | const |
TeX like spacings.
Définition à la ligne 221 du fichier contextstyle.cc.
Références getMediumSpace(), getQuadSpace(), getThickSpace(), getThinSpace(), MEDIUM, NEGTHIN, QUAD, THICK, et THIN.
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 233 du fichier contextstyle.cc.
Références m_sizeFactor, ptToPixelX(), quad, et textStyleValues.
Référencé par KFormula::MatrixRowElement::calcSizes(), et getSpace().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 240 du fichier contextstyle.cc.
Références m_sizeFactor, ptToPixelX(), quad, et textStyleValues.
Référencé par getSpace().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 247 du fichier contextstyle.cc.
Références m_sizeFactor, ptToPixelX(), quad, et textStyleValues.
Référencé par getSpace().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 254 du fichier contextstyle.cc.
Références m_sizeFactor, ptToPixelX(), quad, et textStyleValues.
Référencé par getSpace().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Définition à la ligne 261 du fichier contextstyle.cc.
Références ContextStyle::TextStyleValues::axisHeight(), m_axisHeight, m_sizeFactor, et textStyleValues.
Référencé par KFormula::BasicElement::axis(), et KFormula::MatrixRowElement::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Calculates the font size corresponding to the given TextStyle.
Définition à la ligne 215 du fichier contextstyle.cc.
Références getReductionFactor(), m_baseSize, m_sizeFactor, et ptToLayoutUnitPt().
Référencé par SymbolArtwork::calcSizes(), KFormula::MatrixRowElement::calcSizes(), KFormula::GlyphElement::calcSizes(), EsstixArtwork::calcSizes(), CMArtwork::calcSizes(), SymbolArtwork::draw(), KFormula::GlyphElement::draw(), EsstixArtwork::draw(), et CMArtwork::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
luPixel ContextStyle::getLineWidth | ( | double | factor | ) | const |
All simple lines like the one that makes up a fraction.
Définition à la ligne 289 du fichier contextstyle.cc.
Références lineWidth, m_sizeFactor, et ptToLayoutUnitPixX().
Voici le graphe d'appel pour cette fonction :
luPixel ContextStyle::getEmptyRectWidth | ( | double | factor | ) | const |
Définition à la ligne 294 du fichier contextstyle.cc.
Références m_baseSize, m_sizeFactor, et ptToLayoutUnitPixX().
Référencé par KFormula::PaddedElement::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
luPixel ContextStyle::getEmptyRectHeight | ( | double | factor | ) | const |
Définition à la ligne 299 du fichier contextstyle.cc.
Références m_baseSize, m_sizeFactor, et ptToLayoutUnitPixX().
Référencé par KFormula::PaddedElement::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Alignment ContextStyle::getMatrixAlignment | ( | ) | const [inline] |
bool ContextStyle::getCenterSymbol | ( | ) | const [inline] |
ContextStyle::TextStyle ContextStyle::convertTextStyleFraction | ( | TextStyle | tstyle | ) | const |
Font-conversions a la TeX.
For fractions (and also matrices), we have the following conversions: D->T, T->S, S,SS->SS
Définition à la ligne 305 du fichier contextstyle.cc.
Références displayStyle, testguiform::result, scriptScriptStyle, scriptStyle, et textStyle.
ContextStyle::TextStyle ContextStyle::convertTextStyleIndex | ( | TextStyle | tstyle | ) | const |
Font-conversions a la TeX.
For indices, we have the following conversions: D->S, T->S, S,SS->SS
Définition à la ligne 325 du fichier contextstyle.cc.
Références displayStyle, testguiform::result, scriptScriptStyle, scriptStyle, et textStyle.
IndexStyle ContextStyle::convertIndexStyleUpper | ( | IndexStyle | istyle | ) | const [inline] |
Index-style-conversions a la TeX.
The function convertIndexStyleUpper is responsible for everything that ends 'up', like nominators of fractions, or upper indices.
We have the following rule: normal->normal, cramped->cramped
Définition à la ligne 262 du fichier contextstyle.h.
IndexStyle ContextStyle::convertIndexStyleLower | ( | IndexStyle | ) | const [inline] |
Index-style-conversions a la TeX.
The function convertIndexStyleLower is responsible for everything that ends 'down', like nominators of fractions, or upper indices.
We have the following rule: normal->cramped, cramped->cramped
Définition à la ligne 275 du fichier contextstyle.h.
Références cramped.
void ContextStyle::setup | ( | ) | [private] |
Définition à la ligne 345 du fichier contextstyle.cc.
Références defaultFont, m_axisHeight, m_baseSize, pixelYToPt(), ptToLayoutUnitPixY(), ptToLayoutUnitPt(), quad, testguiform::size, et symbolFont.
Référencé par init(), et setBaseSize().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
TextStyleValues ContextStyle::textStyleValues[4] [private] |
Définition à la ligne 295 du fichier contextstyle.h.
Référencé par axisHeight(), ContextStyle(), getMediumSpace(), getQuadSpace(), getReductionFactor(), getThickSpace(), et getThinSpace().
QFont ContextStyle::mathFont [private] |
QFont ContextStyle::bracketFont [private] |
Définition à la ligne 298 du fichier contextstyle.h.
Référencé par getBracketFont(), readConfig(), et setBracketFont().
QFont ContextStyle::defaultFont [private] |
Définition à la ligne 299 du fichier contextstyle.h.
Référencé par getDefaultFont(), readConfig(), setDefaultFont(), setMathFont(), et setup().
QFont ContextStyle::nameFont [private] |
Définition à la ligne 300 du fichier contextstyle.h.
Référencé par getNameFont(), readConfig(), et setNameFont().
QFont ContextStyle::numberFont [private] |
Définition à la ligne 301 du fichier contextstyle.h.
Référencé par getNumberFont(), readConfig(), et setNumberFont().
QFont ContextStyle::operatorFont [private] |
Définition à la ligne 302 du fichier contextstyle.h.
Référencé par getOperatorFont(), et setOperatorFont().
QFont ContextStyle::symbolFont [private] |
QColor ContextStyle::defaultColor [private] |
Définition à la ligne 307 du fichier contextstyle.h.
Référencé par getDefaultColor(), readConfig(), et setDefaultColor().
QColor ContextStyle::numberColor [private] |
Définition à la ligne 308 du fichier contextstyle.h.
Référencé par getNumberColor(), getNumberColorPlain(), readConfig(), et setNumberColor().
QColor ContextStyle::operatorColor [private] |
Définition à la ligne 309 du fichier contextstyle.h.
Référencé par getOperatorColor(), getOperatorColorPlain(), readConfig(), et setOperatorColor().
QColor ContextStyle::errorColor [private] |
Définition à la ligne 310 du fichier contextstyle.h.
Référencé par getErrorColor(), getErrorColorPlain(), readConfig(), et setErrorColor().
QColor ContextStyle::emptyColor [private] |
Définition à la ligne 311 du fichier contextstyle.h.
Référencé par getEmptyColor(), getEmptyColorPlain(), readConfig(), et setEmptyColor().
QColor ContextStyle::helpColor [private] |
Définition à la ligne 312 du fichier contextstyle.h.
Référencé par getHelpColor(), getHelpColorPlain(), readConfig(), et setHelpColor().
bool ContextStyle::linearMovement [private] |
The cursors movement style. You need to notify each cursor if you change this.
Définition à la ligne 318 du fichier contextstyle.h.
Référencé par ContextStyle().
int ContextStyle::m_baseSize [private] |
The (font) size of the formula's main sequence.
Définition à la ligne 323 du fichier contextstyle.h.
Référencé par baseSize(), getAdjustedSize(), getBaseSize(), getEmptyRectHeight(), getEmptyRectWidth(), readConfig(), setBaseSize(), et setup().
double ContextStyle::m_sizeFactor [private] |
Hack! Each formula might set this to a value not too far from one to get a size different from the default one.
Définition à la ligne 329 du fichier contextstyle.h.
Référencé par axisHeight(), getAdjustedSize(), getBaseSize(), getEmptyRectHeight(), getEmptyRectWidth(), getLineWidth(), getMediumSpace(), getQuadSpace(), getThickSpace(), getThinSpace(), et setSizeFactor().
TextStyle ContextStyle::m_baseTextStyle [private] |
The base text style of the formula.
Définition à la ligne 334 du fichier contextstyle.h.
Référencé par ContextStyle(), et getBaseTextStyle().
pt ContextStyle::lineWidth [private] |
The thickness of our lines.
Définition à la ligne 339 du fichier contextstyle.h.
Référencé par ContextStyle(), et getLineWidth().
luPt ContextStyle::quad [private] |
Size of one quad.
Définition à la ligne 344 du fichier contextstyle.h.
Référencé par getMediumSpace(), getQuadSpace(), getThickSpace(), getThinSpace(), et setup().
luPixel ContextStyle::m_axisHeight [private] |
Distance between base line and axis.
Définition à la ligne 349 du fichier contextstyle.h.
Référencé par axisHeight(), et setup().
bool ContextStyle::centerSymbol [private] |
true means to center the symbol between its indexes. false means alignment to the right.
Définition à la ligne 355 du fichier contextstyle.h.
Référencé par ContextStyle(), et getCenterSymbol().
bool ContextStyle::m_syntaxHighlighting [private] |
Whether we want colored formulae.
Définition à la ligne 360 du fichier contextstyle.h.
Référencé par ContextStyle(), readConfig(), setSyntaxHighlighting(), et syntaxHighlighting().
bool ContextStyle::m_edit [private] |
Whether we are in edit mode.
Définition à la ligne 365 du fichier contextstyle.h.
FontStyle* ContextStyle::m_fontStyle [private] |
The symbols/names that are "known" to the system.
Définition à la ligne 372 du fichier contextstyle.h.
Référencé par ContextStyle(), fontStyle(), setFontStyle(), symbolTable(), et ~ContextStyle().
QString ContextStyle::m_fontStyleName [private] |
Définition à la ligne 373 du fichier contextstyle.h.
Référencé par getFontStyle(), init(), et setFontStyle().