#include <format.hxx>
Collaboration diagram for SmFormat:
Public Member Functions | |
SmFormat () | |
SmFormat (const SmFormat &rFormat) | |
const Size & | GetBaseSize () const |
void | SetBaseSize (const Size &rSize) |
const SmFace & | GetFont (USHORT nIdent) const |
void | SetFont (USHORT nIdent, const SmFace &rFont, BOOL bDefault=FALSE) |
void | SetFontSize (USHORT nIdent, const Size &rSize) |
void | SetDefaultFont (USHORT nIdent, BOOL bVal) |
BOOL | IsDefaultFont (USHORT nIdent) const |
USHORT | GetRelSize (USHORT nIdent) const |
void | SetRelSize (USHORT nIdent, USHORT nVal) |
USHORT | GetDistance (USHORT nIdent) const |
void | SetDistance (USHORT nIdent, USHORT nVal) |
SmHorAlign | GetHorAlign () const |
void | SetHorAlign (SmHorAlign eAlign) |
BOOL | IsTextmode () const |
void | SetTextmode (BOOL bVal) |
BOOL | IsScaleNormalBrackets () const |
void | SetScaleNormalBrackets (BOOL bVal) |
long | GetVersion () const |
void | SetVersion (long nVer) |
at time (5.1) use only the lower byte!!! | |
SmFormat & | operator= (const SmFormat &rFormat) |
BOOL | operator== (const SmFormat &rFormat) const |
BOOL | operator!= (const SmFormat &rFormat) const |
void | RequestApplyChanges () const |
Private Attributes | |
SmFace | vFont [FNT_END+1] |
BOOL | bDefaultFont [FNT_END+1] |
Size | aBaseSize |
long | nVersion |
USHORT | vSize [SIZ_END+1] |
USHORT | vDist [DIS_END+1] |
SmHorAlign | eHorAlign |
BOOL | bIsTextmode |
BOOL | bScaleNormalBrackets |
Definition at line 120 of file format.hxx.
SmFormat::SmFormat | ( | ) |
Definition at line 127 of file format.cxx.
References aBaseSize, AlignCenter, bDefaultFont, bIsTextmode, bScaleNormalBrackets, C2S, DIS_BOTTOMSPACE, DIS_BRACKETSIZE, DIS_BRACKETSPACE, DIS_DENOMINATOR, DIS_FRACTION, DIS_HORIZONTAL, DIS_LEFTSPACE, DIS_LOWERLIMIT, DIS_MATRIXCOL, DIS_MATRIXROW, DIS_NORMALBRACKETSIZE, DIS_NUMERATOR, DIS_OPERATORSIZE, DIS_OPERATORSPACE, DIS_ORNAMENTSIZE, DIS_ORNAMENTSPACE, DIS_RIGHTSPACE, DIS_ROOT, DIS_STROKEWIDTH, DIS_SUBSCRIPT, DIS_SUPERSCRIPT, DIS_TOPSPACE, DIS_UPPERLIMIT, DIS_VERTICAL, eHorAlign, FNT_BEGIN, FNT_END, FNT_FIXED, FNT_FUNCTION, FNT_MATH, FNT_NUMBER, FNT_SANS, FNT_SERIF, FNT_TEXT, FNT_VARIABLE, FNTNAME_COUR, FNTNAME_HELV, FNTNAME_MATH, FNTNAME_TIMES, nVersion, SIZ_FUNCTION, SIZ_INDEX, SIZ_LIMITS, SIZ_OPERATOR, SIZ_TEXT, SM_FMT_VERSION_NOW, vDist, vFont, and vSize.
SmFormat::SmFormat | ( | const SmFormat & | rFormat | ) | [inline] |
Definition at line 134 of file format.hxx.
const Size& SmFormat::GetBaseSize | ( | ) | const [inline] |
Definition at line 136 of file format.hxx.
References aBaseSize.
Referenced by SmBraceNode::Arrange(), SmSubSupNode::Arrange(), SmMathConfig::LoadFormat(), operator=(), SmFontSizeDialog::ReadFrom(), SmMathConfig::SaveFormat(), and SmFontSizeDialog::WriteTo().
void SmFormat::SetBaseSize | ( | const Size & | rSize | ) | [inline] |
Definition at line 137 of file format.hxx.
References aBaseSize.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmFontSizeDialog::WriteTo().
const SmFace& SmFormat::GetFont | ( | USHORT | nIdent | ) | const [inline] |
Definition at line 139 of file format.hxx.
References vFont.
Referenced by SmMathConfig::LoadFormat(), operator=(), SmBlankNode::Prepare(), SmSpecialNode::Prepare(), SmTextNode::Prepare(), SmFontNode::Prepare(), SmLineNode::Prepare(), SmNode::Prepare(), SmFontTypeDialog::ReadFrom(), SmMathConfig::SaveFormat(), and SmMathConfig::StripFontFormatList().
void SmFormat::SetFont | ( | USHORT | nIdent, | |
const SmFace & | rFont, | |||
BOOL | bDefault = FALSE | |||
) |
Definition at line 196 of file format.cxx.
References bDefaultFont, and vFont.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmFontTypeDialog::WriteTo().
void SmFormat::SetFontSize | ( | USHORT | nIdent, | |
const Size & | rSize | |||
) | [inline] |
Definition at line 141 of file format.hxx.
References SmFace::SetSize(), and vFont.
Referenced by SmFontSizeDialog::WriteTo().
void SmFormat::SetDefaultFont | ( | USHORT | nIdent, | |
BOOL | bVal | |||
) | [inline] |
BOOL SmFormat::IsDefaultFont | ( | USHORT | nIdent | ) | const [inline] |
Definition at line 144 of file format.hxx.
References bDefaultFont.
Referenced by operator=(), and SmMathConfig::SaveFormat().
USHORT SmFormat::GetRelSize | ( | USHORT | nIdent | ) | const [inline] |
Definition at line 146 of file format.hxx.
References vSize.
Referenced by SmMathSymbolNode::Arrange(), SmTextNode::Arrange(), SmVerticalBraceNode::Arrange(), SmSubSupNode::Arrange(), SmBinVerNode::Arrange(), SmBinHorNode::Arrange(), SmRootNode::Arrange(), SmUnHorNode::Arrange(), operator=(), SmFontSizeDialog::ReadFrom(), and SmMathConfig::SaveFormat().
void SmFormat::SetRelSize | ( | USHORT | nIdent, | |
USHORT | nVal | |||
) | [inline] |
Definition at line 147 of file format.hxx.
References vSize.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmFontSizeDialog::WriteTo().
USHORT SmFormat::GetDistance | ( | USHORT | nIdent | ) | const [inline] |
Definition at line 149 of file format.hxx.
References vDist.
Referenced by SmMatrixNode::Arrange(), SmPolyLineNode::Arrange(), SmAttributNode::Arrange(), SmOperNode::Arrange(), SmVerticalBraceNode::Arrange(), SmBracebodyNode::Arrange(), SmBraceNode::Arrange(), SmSubSupNode::Arrange(), SmBinVerNode::Arrange(), SmBinHorNode::Arrange(), SmRootNode::Arrange(), SmLineNode::Arrange(), SmTableNode::Arrange(), SmRect::BuildRect(), SmDocShell::Draw(), SmDocShell::GetSize(), operator=(), SmDistanceDialog::ReadFrom(), and SmMathConfig::SaveFormat().
void SmFormat::SetDistance | ( | USHORT | nIdent, | |
USHORT | nVal | |||
) | [inline] |
Definition at line 150 of file format.hxx.
References vDist.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmDistanceDialog::WriteTo().
SmHorAlign SmFormat::GetHorAlign | ( | ) | const [inline] |
Definition at line 152 of file format.hxx.
References eHorAlign.
Referenced by operator=(), SmNode::Prepare(), SmAlignDialog::ReadFrom(), and SmMathConfig::SaveFormat().
void SmFormat::SetHorAlign | ( | SmHorAlign | eAlign | ) | [inline] |
Definition at line 153 of file format.hxx.
References eHorAlign.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmAlignDialog::WriteTo().
BOOL SmFormat::IsTextmode | ( | ) | const [inline] |
Definition at line 155 of file format.hxx.
References bIsTextmode.
Referenced by SmSubSupNode::Arrange(), SmBinVerNode::Arrange(), operator=(), and SmMathConfig::SaveFormat().
void SmFormat::SetTextmode | ( | BOOL | bVal | ) | [inline] |
Definition at line 156 of file format.hxx.
References bIsTextmode.
Referenced by SmDocShell::Execute(), SmMathConfig::LoadFormat(), and operator=().
BOOL SmFormat::IsScaleNormalBrackets | ( | ) | const [inline] |
Definition at line 158 of file format.hxx.
References bScaleNormalBrackets.
Referenced by SmBracebodyNode::Arrange(), SmBraceNode::Arrange(), operator=(), SmDistanceDialog::ReadFrom(), and SmMathConfig::SaveFormat().
void SmFormat::SetScaleNormalBrackets | ( | BOOL | bVal | ) | [inline] |
Definition at line 159 of file format.hxx.
References bScaleNormalBrackets.
Referenced by SmMathConfig::LoadFormat(), operator=(), and SmDistanceDialog::WriteTo().
long SmFormat::GetVersion | ( | ) | const [inline] |
void SmFormat::SetVersion | ( | long | nVer | ) | [inline] |
at time (5.1) use only the lower byte!!!
Definition at line 164 of file format.hxx.
References nVersion.
Referenced by operator=().
Definition at line 205 of file format.cxx.
References DIS_BEGIN, DIS_END, FNT_BEGIN, FNT_END, GetBaseSize(), GetDistance(), GetFont(), GetHorAlign(), GetRelSize(), GetVersion(), IsDefaultFont(), IsScaleNormalBrackets(), IsTextmode(), SetBaseSize(), SetDefaultFont(), SetDistance(), SetFont(), SetHorAlign(), SetRelSize(), SetScaleNormalBrackets(), SetTextmode(), SetVersion(), SIZ_BEGIN, and SIZ_END.
BOOL SmFormat::operator== | ( | const SmFormat & | rFormat | ) | const |
Definition at line 228 of file format.cxx.
References aBaseSize, bDefaultFont, bIsTextmode, bScaleNormalBrackets, DIS_END, eHorAlign, FNT_END, SIZ_END, vDist, vFont, and vSize.
BOOL SmFormat::operator!= | ( | const SmFormat & | rFormat | ) | const [inline] |
Definition at line 178 of file format.hxx.
void SmFormat::RequestApplyChanges | ( | ) | const [inline] |
Definition at line 171 of file format.hxx.
References HINT_FORMATCHANGED.
Referenced by SmAlignDialog::WriteTo(), SmDistanceDialog::WriteTo(), SmFontTypeDialog::WriteTo(), and SmFontSizeDialog::WriteTo().
SmFace SmFormat::vFont[FNT_END+1] [private] |
Definition at line 122 of file format.hxx.
Referenced by GetFont(), operator==(), SetFont(), SetFontSize(), and SmFormat().
BOOL SmFormat::bDefaultFont[FNT_END+1] [private] |
Definition at line 123 of file format.hxx.
Referenced by IsDefaultFont(), operator==(), SetDefaultFont(), SetFont(), and SmFormat().
Size SmFormat::aBaseSize [private] |
Definition at line 124 of file format.hxx.
Referenced by GetBaseSize(), operator==(), SetBaseSize(), and SmFormat().
long SmFormat::nVersion [private] |
Definition at line 125 of file format.hxx.
Referenced by GetVersion(), SetVersion(), and SmFormat().
USHORT SmFormat::vSize[SIZ_END+1] [private] |
Definition at line 126 of file format.hxx.
Referenced by GetRelSize(), operator==(), SetRelSize(), and SmFormat().
USHORT SmFormat::vDist[DIS_END+1] [private] |
Definition at line 127 of file format.hxx.
Referenced by GetDistance(), operator==(), SetDistance(), and SmFormat().
SmHorAlign SmFormat::eHorAlign [private] |
Definition at line 128 of file format.hxx.
Referenced by GetHorAlign(), operator==(), SetHorAlign(), and SmFormat().
BOOL SmFormat::bIsTextmode [private] |
Definition at line 129 of file format.hxx.
Referenced by IsTextmode(), operator==(), SetTextmode(), and SmFormat().
BOOL SmFormat::bScaleNormalBrackets [private] |
Definition at line 129 of file format.hxx.
Referenced by IsScaleNormalBrackets(), operator==(), SetScaleNormalBrackets(), and SmFormat().