LibreOffice Module starmath (master) 1
Public Member Functions | Private Attributes | List of all members
SmFormat Class Referencefinal

#include <format.hxx>

Inheritance diagram for SmFormat:
[legend]
Collaboration diagram for SmFormat:
[legend]

Public Member Functions

 SmFormat ()
 
 SmFormat (const SmFormat &rFormat)
 
const SizeGetBaseSize () const
 
void SetBaseSize (const Size &rSize)
 
const SmFaceGetFont (sal_uInt16 nIdent) const
 
void SetFont (sal_uInt16 nIdent, const SmFace &rFont, bool bDefault=false)
 
void SetFontSize (sal_uInt16 nIdent, const Size &rSize)
 
void SetDefaultFont (sal_uInt16 nIdent, bool bVal)
 
bool IsDefaultFont (sal_uInt16 nIdent) const
 
sal_uInt16 GetRelSize (sal_uInt16 nIdent) const
 
void SetRelSize (sal_uInt16 nIdent, sal_uInt16 nVal)
 
sal_uInt16 GetDistance (sal_uInt16 nIdent) const
 
void SetDistance (sal_uInt16 nIdent, sal_uInt16 nVal)
 
SmHorAlign GetHorAlign () const
 
void SetHorAlign (SmHorAlign eAlign)
 
bool IsTextmode () const
 
void SetTextmode (bool bVal)
 
sal_Int16 GetGreekCharStyle () const
 
void SetGreekCharStyle (sal_Int16 nVal)
 
bool IsScaleNormalBrackets () const
 
void SetScaleNormalBrackets (bool bVal)
 
SmFormatoperator= (const SmFormat &rFormat)
 
bool operator== (const SmFormat &rFormat) const
 
bool operator!= (const SmFormat &rFormat) const
 
void RequestApplyChanges ()
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Private Attributes

SmFace vFont [FNT_END+1]
 
bool bDefaultFont [FNT_END+1]
 
Size aBaseSize
 
sal_uInt16 vSize [SIZ_END+1]
 
sal_uInt16 vDist [DIS_END+1]
 
SmHorAlign eHorAlign
 
sal_Int16 nGreekCharStyle
 
bool bIsTextmode
 
bool bScaleNormalBrackets
 

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Detailed Description

Definition at line 91 of file format.hxx.

Constructor & Destructor Documentation

◆ SmFormat() [1/2]

SmFormat::SmFormat ( )

◆ SmFormat() [2/2]

SmFormat::SmFormat ( const SmFormat rFormat)
inline

Definition at line 105 of file format.hxx.

Member Function Documentation

◆ GetBaseSize()

const Size & SmFormat::GetBaseSize ( ) const
inline

◆ GetDistance()

sal_uInt16 SmFormat::GetDistance ( sal_uInt16  nIdent) const
inline

◆ GetFont()

const SmFace & SmFormat::GetFont ( sal_uInt16  nIdent) const
inline

◆ GetGreekCharStyle()

sal_Int16 SmFormat::GetGreekCharStyle ( ) const
inline

Definition at line 129 of file format.hxx.

Referenced by SmModel::_getPropertyValues(), operator=(), and SmSpecialNode::Prepare().

◆ GetHorAlign()

SmHorAlign SmFormat::GetHorAlign ( ) const
inline

◆ GetRelSize()

sal_uInt16 SmFormat::GetRelSize ( sal_uInt16  nIdent) const
inline

◆ IsDefaultFont()

bool SmFormat::IsDefaultFont ( sal_uInt16  nIdent) const
inline

Definition at line 115 of file format.hxx.

Referenced by operator=().

◆ IsScaleNormalBrackets()

bool SmFormat::IsScaleNormalBrackets ( ) const
inline

◆ IsTextmode()

bool SmFormat::IsTextmode ( ) const
inline

◆ operator!=()

bool SmFormat::operator!= ( const SmFormat rFormat) const
inline

Definition at line 147 of file format.hxx.

◆ operator=()

SmFormat & SmFormat::operator= ( const SmFormat rFormat)

◆ operator==()

bool SmFormat::operator== ( const SmFormat rFormat) const

◆ RequestApplyChanges()

void SmFormat::RequestApplyChanges ( )
inline

◆ SetBaseSize()

void SmFormat::SetBaseSize ( const Size rSize)
inline

Definition at line 108 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), operator=(), and SmFontSizeDialog::WriteTo().

◆ SetDefaultFont()

void SmFormat::SetDefaultFont ( sal_uInt16  nIdent,
bool  bVal 
)
inline

Definition at line 114 of file format.hxx.

Referenced by operator=().

◆ SetDistance()

void SmFormat::SetDistance ( sal_uInt16  nIdent,
sal_uInt16  nVal 
)
inline

Definition at line 121 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), operator=(), and SmDistanceDialog::WriteTo().

◆ SetFont()

void SmFormat::SetFont ( sal_uInt16  nIdent,
const SmFace rFont,
bool  bDefault = false 
)

◆ SetFontSize()

void SmFormat::SetFontSize ( sal_uInt16  nIdent,
const Size rSize 
)
inline

Definition at line 112 of file format.hxx.

References SmFace::SetSize().

Referenced by SmModel::_setPropertyValues(), and SmFontSizeDialog::WriteTo().

◆ SetGreekCharStyle()

void SmFormat::SetGreekCharStyle ( sal_Int16  nVal)
inline

◆ SetHorAlign()

void SmFormat::SetHorAlign ( SmHorAlign  eAlign)
inline

Definition at line 124 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), operator=(), and SmAlignDialog::WriteTo().

◆ SetRelSize()

void SmFormat::SetRelSize ( sal_uInt16  nIdent,
sal_uInt16  nVal 
)
inline

Definition at line 118 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), operator=(), and SmFontSizeDialog::WriteTo().

◆ SetScaleNormalBrackets()

void SmFormat::SetScaleNormalBrackets ( bool  bVal)
inline

Definition at line 133 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), operator=(), and SmDistanceDialog::WriteTo().

◆ SetTextmode()

void SmFormat::SetTextmode ( bool  bVal)
inline

Definition at line 127 of file format.hxx.

Referenced by SmModel::_setPropertyValues(), SmDocShell::Execute(), and operator=().

Member Data Documentation

◆ aBaseSize

Size SmFormat::aBaseSize
private

Definition at line 95 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ bDefaultFont

bool SmFormat::bDefaultFont[FNT_END+1]
private

Definition at line 94 of file format.hxx.

Referenced by operator==(), SetFont(), and SmFormat().

◆ bIsTextmode

bool SmFormat::bIsTextmode
private

Definition at line 100 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ bScaleNormalBrackets

bool SmFormat::bScaleNormalBrackets
private

Definition at line 101 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ eHorAlign

SmHorAlign SmFormat::eHorAlign
private

Definition at line 98 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ nGreekCharStyle

sal_Int16 SmFormat::nGreekCharStyle
private

Definition at line 99 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ vDist

sal_uInt16 SmFormat::vDist[DIS_END+1]
private

Definition at line 97 of file format.hxx.

Referenced by operator==(), and SmFormat().

◆ vFont

SmFace SmFormat::vFont[FNT_END+1]
private

Definition at line 93 of file format.hxx.

Referenced by operator==(), SetFont(), and SmFormat().

◆ vSize

sal_uInt16 SmFormat::vSize[SIZ_END+1]
private

Definition at line 96 of file format.hxx.

Referenced by operator==(), and SmFormat().


The documentation for this class was generated from the following files: