#include <Styles.h>
Inheritance diagram for mcStyle:
Definition at line 134 of file Styles.h.
Public Member Functions | |
mcStyle (const wxColour *fg, const wxColour *bk, const wxString *fnt) | |
Initializes this class with the given strings. | |
mcStyle () | |
virtual | ~mcStyle () |
bool | Ok () |
Checks if this style is correctly set up. | |
void | gui_Select (wxDC &hDC, const mcElement &e) const |
gui_Select this style in the given DC; uses the given pointer to detect which text settings should be used. | |
void | DeepCopy (const mcStyle *p) |
void | ScaleSize (float f) |
GET functions. | |
int | GetIndexFor (mcElementType t) const |
Returns the index of the m_pTextSettings array for the given element type. | |
int | GetIndexFor (const mcElement &) const |
See #GetIndexFor(mcElementType). | |
const mcTextSettings * | GetTextSettingsFor (mcElementType t) const |
Returns the text-settings for the given element (type). | |
const mcTextSettings * | GetTextSettingsFor (const mcElement &p) const |
Returns the text-settings for the given element (type). | |
const mcTextSettings * | GetTextSettings (int n) const |
Returns the n-th entry of the text settings array. | |
const mcTextSettings * | GetSpecialTextSettings () const |
Returns the special entry of the text settings array. | |
SET functions. | |
void | SetTextSettingsFor (mcElementType t, const wxColour fg=*wxBLACK, const wxColour bk=*wxWHITE, const wxString &str=wxEmptyString) |
Sets the text-settings for the given element (type). | |
void | SetFontFor (mcElementType t, const wxString &str) |
Sets the font attributes for the given element (type). | |
void | SetSpecialTextSettings (const wxColour fg=*wxBLACK, const wxColour bk=*wxWHITE, const wxString &str=wxEmptyString) |
Sets the special text-settings entry in m_pTextSettings array. | |
void | SetSpecialFont (const wxString &str) |
Sets the font attributes for the special text-settings entry. | |
void | Set (const wxColour *fg, const wxColour *bk, const wxString *fnt) |
Sets the text-settings for this class. | |
void | SetFonts (const wxString *fnt) |
Changes the font attributes for this class. | |
void | SetColours (const wxColour *fg, const wxColour *bk) |
Changes the colors for this class. | |
Protected Attributes | |
mcTextSettings | m_pTextSettings [mcSTYLE_TEXTSETTINGS_NUM] |
The text settings for MathCore basic classes. |
|
Initializes this class with the given strings. Each string (except for the first) should be divided by '|' to specify the individual settings respectively for NUMBERS, FUNCTIONS, SYMBOLS, OPERATORS, SUBSCRIPTS.
Definition at line 161 of file Styles.h. References Set(). |
|
|
|
|
|
Definition at line 178 of file Styles.h. References mcTextSettings::DeepCopy(), m_pTextSettings, and mcSTYLE_TEXTSETTINGS_NUM. Referenced by mcStyleArray::DeepCopy(), and mcStyleArray::Set(). |
|
See #GetIndexFor(mcElementType).
Definition at line 257 of file MathHelpers.cpp. References GetIndexFor(), mcET_SYMBOL, and mcSTYLE_SPECIAL_SETTINGS. |
|
Returns the index of the m_pTextSettings array for the given element type.
Definition at line 232 of file MathHelpers.cpp. References mcET_FUNCTION, mcET_MATHANDSYSTEM, mcET_MATHMNG, mcET_MATHORSYSTEM, mcET_NUMBER, mcET_SYMBOL, and mcET_TEXT. Referenced by GetIndexFor(), GetTextSettingsFor(), gui_Select(), SetFontFor(), and SetTextSettingsFor(). |
|
Returns the special entry of the text settings array.
Definition at line 217 of file Styles.h. References m_pTextSettings, and mcSTYLE_SPECIAL_SETTINGS. Referenced by mcMathMngHelpers::gui_SelectSeparatorStyle(). |
|
Returns the n-th entry of the text settings array.
Definition at line 212 of file Styles.h. References m_pTextSettings. |
|
Returns the text-settings for the given element (type).
Definition at line 207 of file Styles.h. References GetIndexFor(), and m_pTextSettings. |
|
Returns the text-settings for the given element (type).
Definition at line 202 of file Styles.h. References GetIndexFor(), and m_pTextSettings. |
|
gui_Select this style in the given DC; uses the given pointer to detect which text settings should be used.
Definition at line 174 of file Styles.h. References GetIndexFor(), mcTextSettings::gui_Select(), and m_pTextSettings. Referenced by mcOperatorHelpers::gui_DoRecalcSize(), and mcElementHelpers::gui_SelectStyle(). |
|
Checks if this style is correctly set up.
Definition at line 221 of file MathHelpers.cpp. References m_pTextSettings, mcSTYLE_TEXTSETTINGS_NUM, and mcTextSettings::Ok(). Referenced by mcElementHelpers::gui_InitDefaultStyles(). |
|
Definition at line 183 of file Styles.h. References m_pTextSettings, mcSTYLE_TEXTSETTINGS_NUM, and mcTextSettings::ScaleSize(). Referenced by mcStyleArray::ScaleSize(). |
|
Sets the text-settings for this class.
Definition at line 255 of file Styles.h. References m_pTextSettings, mcSTYLE_TEXTSETTINGS_NUM, and mcTextSettings::Set(). Referenced by mcOperatorHelpers::gui_DoRecalcSize(), and mcStyle(). |
|
Changes the colors for this class.
Definition at line 268 of file Styles.h. References m_pTextSettings, mcSTYLE_TEXTSETTINGS_NUM, and mcTextSettings::SetColours(). |
|
Sets the font attributes for the given element (type).
Definition at line 238 of file Styles.h. References GetIndexFor(), m_pTextSettings, and mcTextSettings::SetFont(). |
|
Changes the font attributes for this class.
Definition at line 262 of file Styles.h. References m_pTextSettings, mcSTYLE_TEXTSETTINGS_NUM, and mcTextSettings::SetFont(). |
|
Sets the font attributes for the special text-settings entry.
Definition at line 250 of file Styles.h. References m_pTextSettings, mcSTYLE_SPECIAL_SETTINGS, and mcTextSettings::SetFont(). |
|
Sets the special text-settings entry in m_pTextSettings array.
Definition at line 244 of file Styles.h. References m_pTextSettings, mcSTYLE_SPECIAL_SETTINGS, and mcTextSettings::Set(). Referenced by mcElementHelpers::gui_InitDefaultStyles(). |
|
Sets the text-settings for the given element (type). See mcTextSettings::Set() for more info.
Definition at line 232 of file Styles.h. References GetIndexFor(), m_pTextSettings, and mcTextSettings::Set(). Referenced by mcElementHelpers::gui_InitDefaultStyles(). |
|
The text settings for MathCore basic classes.
Definition at line 149 of file Styles.h. Referenced by DeepCopy(), GetSpecialTextSettings(), GetTextSettings(), GetTextSettingsFor(), gui_Select(), Ok(), ScaleSize(), Set(), SetColours(), SetFontFor(), SetFonts(), SetSpecialFont(), SetSpecialTextSettings(), and SetTextSettingsFor(). |
[ Top ] |