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

#include <attribute.hxx>

Collaboration diagram for SmMlAttribute:
[legend]

Public Member Functions

 SmMlAttribute ()
 
 ~SmMlAttribute ()
 
 SmMlAttribute (SmMlAttributeValueType)
 
 SmMlAttribute (const SmMlAttribute &aMlAttribute)
 
 SmMlAttribute (const SmMlAttribute *aMlAttribute)
 
bool isSet () const
 Check if the attribute has been set. More...
 
void setSet (bool bSet)
 Set if the attribute has been set. More...
 
SmMlAttributeValueType getMlAttributeValueType () const
 Returns the type of attribute we are dealing with. More...
 
bool isNullAttribute () const
 Checks if the attribute contains information. More...
 
bool isMlAttributeValueType (SmMlAttributeValueType aAttributeValueType) const
 Compares the type of attribute with a given one. More...
 
void setMlAttributeValueType (SmMlAttributeValueType aAttributeValueType)
 Set the type of attribute we are dealing with. More...
 
void setMlAttributeValue (const SmMlAttribute &aMlAttribute)
 
void setMlAttributeValue (const SmMlAttribute *aMlAttribute)
 
const struct SmMlAccentgetMlAccent () const
 
const struct SmMlDirgetMlDir () const
 
const struct SmMlDisplaystylegetMlDisplaystyle () const
 
const struct SmMlFencegetMlFence () const
 
const struct SmMlFormgetMlForm () const
 
const struct SmMlHrefgetMlHref () const
 
const struct SmMlLspacegetMlLspace () const
 
const struct SmMlMathbackgroundgetMlMathbackground () const
 
const struct SmMlMathcolorgetMlMathcolor () const
 
const struct SmMlMathsizegetMlMathsize () const
 
const struct SmMlMathvariantgetMlMathvariant () const
 
const struct SmMlMaxsizegetMlMaxsize () const
 
const struct SmMlMinsizegetMlMinsize () const
 
const struct SmMlMovablelimitsgetMlMovablelimits () const
 
const struct SmMlRspacegetMlRspace () const
 
const struct SmMlSeparatorgetMlSeparator () const
 
const struct SmMlStretchygetMlStretchy () const
 
const struct SmMlSymmetricgetMlSymmetric () const
 
void setMlAccent (const SmMlAccent *aAccent)
 
void setMlDir (const SmMlDir *aDir)
 
void setMlDisplaystyle (const SmMlDisplaystyle *aDisplaystyle)
 
void setMlFence (const SmMlFence *aFence)
 
void setMlForm (const SmMlForm *aForm)
 
void setMlHref (const SmMlHref *aHref)
 
void setMlLspace (const SmMlLspace *aLspace)
 
void setMlMathbackground (const SmMlMathbackground *aMathbackground)
 
void setMlMathcolor (const SmMlMathcolor *aMathcolor)
 
void setMlMathsize (const SmMlMathsize *aMathsize)
 
void setMlMathvariant (const SmMlMathvariant *aMathvariant)
 
void setMlMaxsize (const SmMlMaxsize *aMaxsize)
 
void setMlMinsize (const SmMlMinsize *aMinSize)
 
void setMlMovablelimits (const SmMlMovablelimits *aMovablelimits)
 
void setMlRspace (const SmMlRspace *aRspace)
 
void setMlSeparator (const SmMlSeparator *aSeparator)
 
void setMlStretchy (const SmMlStretchy *aStretchy)
 
void setMlSymmetric (const SmMlSymmetric *aSymmetric)
 

Private Member Functions

void clearPreviousAttributeValue ()
 
void setDefaultAttributeValue ()
 
void setAttributeValue (const SmMlAttribute *aMlAttribute)
 

Private Attributes

SmMlAttributeValueType m_aSmMlAttributeValueType
 
SmMlAttributeValue m_aAttributeValue
 
bool m_bSet
 

Detailed Description

Definition at line 47 of file attribute.hxx.

Constructor & Destructor Documentation

◆ SmMlAttribute() [1/4]

SmMlAttribute::SmMlAttribute ( )
inline

Definition at line 60 of file attribute.hxx.

◆ ~SmMlAttribute()

SmMlAttribute::~SmMlAttribute ( )
inline

Definition at line 64 of file attribute.hxx.

References clearPreviousAttributeValue().

◆ SmMlAttribute() [2/4]

SmMlAttribute::SmMlAttribute ( SmMlAttributeValueType  )
inline

Definition at line 66 of file attribute.hxx.

References setDefaultAttributeValue().

◆ SmMlAttribute() [3/4]

SmMlAttribute::SmMlAttribute ( const SmMlAttribute aMlAttribute)
inline

Definition at line 73 of file attribute.hxx.

References setAttributeValue().

◆ SmMlAttribute() [4/4]

SmMlAttribute::SmMlAttribute ( const SmMlAttribute aMlAttribute)
inline

Definition at line 80 of file attribute.hxx.

References setAttributeValue().

Member Function Documentation

◆ clearPreviousAttributeValue()

void SmMlAttribute::clearPreviousAttributeValue ( )
private

◆ getMlAccent()

const struct SmMlAccent * SmMlAttribute::getMlAccent ( ) const

◆ getMlAttributeValueType()

SmMlAttributeValueType SmMlAttribute::getMlAttributeValueType ( ) const
inline

Returns the type of attribute we are dealing with.

Attribute Value Type

Definition at line 101 of file attribute.hxx.

References m_aSmMlAttributeValueType.

Referenced by SmMLExport::exportMlAttributes(), SmMlElement::setAttribute(), and setAttributeValue().

◆ getMlDir()

const struct SmMlDir * SmMlAttribute::getMlDir ( ) const

◆ getMlDisplaystyle()

const struct SmMlDisplaystyle * SmMlAttribute::getMlDisplaystyle ( ) const

◆ getMlFence()

const struct SmMlFence * SmMlAttribute::getMlFence ( ) const

◆ getMlForm()

const struct SmMlForm * SmMlAttribute::getMlForm ( ) const

◆ getMlHref()

const struct SmMlHref * SmMlAttribute::getMlHref ( ) const

◆ getMlLspace()

const struct SmMlLspace * SmMlAttribute::getMlLspace ( ) const

◆ getMlMathbackground()

const struct SmMlMathbackground * SmMlAttribute::getMlMathbackground ( ) const

◆ getMlMathcolor()

const struct SmMlMathcolor * SmMlAttribute::getMlMathcolor ( ) const

◆ getMlMathsize()

const struct SmMlMathsize * SmMlAttribute::getMlMathsize ( ) const

◆ getMlMathvariant()

const struct SmMlMathvariant * SmMlAttribute::getMlMathvariant ( ) const

◆ getMlMaxsize()

const struct SmMlMaxsize * SmMlAttribute::getMlMaxsize ( ) const

◆ getMlMinsize()

const struct SmMlMinsize * SmMlAttribute::getMlMinsize ( ) const

◆ getMlMovablelimits()

const struct SmMlMovablelimits * SmMlAttribute::getMlMovablelimits ( ) const

◆ getMlRspace()

const struct SmMlRspace * SmMlAttribute::getMlRspace ( ) const

◆ getMlSeparator()

const struct SmMlSeparator * SmMlAttribute::getMlSeparator ( ) const

◆ getMlStretchy()

const struct SmMlStretchy * SmMlAttribute::getMlStretchy ( ) const

◆ getMlSymmetric()

const struct SmMlSymmetric * SmMlAttribute::getMlSymmetric ( ) const

◆ isMlAttributeValueType()

bool SmMlAttribute::isMlAttributeValueType ( SmMlAttributeValueType  aAttributeValueType) const
inline

Compares the type of attribute with a given one.

Attribute Value Type

Definition at line 116 of file attribute.hxx.

References m_aSmMlAttributeValueType.

◆ isNullAttribute()

bool SmMlAttribute::isNullAttribute ( ) const
inline

Checks if the attribute contains information.

Attribute Value Type

Definition at line 107 of file attribute.hxx.

References m_aSmMlAttributeValueType, and NMlEmpty.

◆ isSet()

bool SmMlAttribute::isSet ( ) const
inline

Check if the attribute has been set.

Definition at line 90 of file attribute.hxx.

References m_bSet.

Referenced by SmMLExport::exportMlAttributes().

◆ setAttributeValue()

void SmMlAttribute::setAttributeValue ( const SmMlAttribute aMlAttribute)
private

◆ setDefaultAttributeValue()

void SmMlAttribute::setDefaultAttributeValue ( )
private

Definition at line 47 of file attribute.cxx.

References SmMlAttributeValue::m_aAccent, SmMlAccent::m_aAccent, m_aAttributeValue, SmMlAttributeValue::m_aDir, SmMlDir::m_aDir, SmMlAttributeValue::m_aDisplaystyle, SmMlDisplaystyle::m_aDisplaystyle, SmMlAttributeValue::m_aFence, SmMlFence::m_aFence, SmMlAttributeValue::m_aForm, SmMlForm::m_aForm, SmMlAttributeValue::m_aHref, SmMlHref::m_aHref, SmLengthValue::m_aLengthUnit, SmLengthValue::m_aLengthValue, SmMlLspace::m_aLengthValue, SmMlMathsize::m_aLengthValue, SmMlMaxsize::m_aLengthValue, SmMlMinsize::m_aLengthValue, SmMlRspace::m_aLengthValue, SmMlHref::m_aLnk, SmMlAttributeValue::m_aLspace, SmMlAttributeValue::m_aMathbackground, SmMlMathbackground::m_aMathbackground, SmMlAttributeValue::m_aMathcolor, SmMlMathcolor::m_aMathcolor, SmMlAttributeValue::m_aMathsize, SmMlAttributeValue::m_aMathvariant, SmMlMathvariant::m_aMathvariant, SmMlAttributeValue::m_aMaxsize, SmMlMaxsize::m_aMaxsize, SmMlAttributeValue::m_aMinsize, SmMlAttributeValue::m_aMovablelimits, SmMlMovablelimits::m_aMovablelimits, SmLengthValue::m_aOriginalText, SmMlAttributeValue::m_aRspace, SmMlAttributeValue::m_aSeparator, SmMlSeparator::m_aSeparator, m_aSmMlAttributeValueType, SmMlAttributeValue::m_aStretchy, SmMlStretchy::m_aStretchy, SmMlAttributeValue::m_aSymmetric, SmMlSymmetric::m_aSymmetric, MlAccent, MlDefault, MlDir, MlDisplaystyle, MlEm, MlFalse, MlFence, MlForm, MlHref, MlInfinity, MlInfix, MlLspace, MlLtr, MlMathbackground, MlMathcolor, MlMathsize, MlMathvariant, MlMaxsize, MlMinsize, MlMovablelimits, MlP, MlRspace, MlSeparator, MlStretchy, MlSymmetric, MlTransparent, NMlEmpty, normal, and u.

Referenced by setMlAttributeValueType(), and SmMlAttribute().

◆ setMlAccent()

void SmMlAttribute::setMlAccent ( const SmMlAccent aAccent)

◆ setMlAttributeValue() [1/2]

void SmMlAttribute::setMlAttributeValue ( const SmMlAttribute aMlAttribute)
inline

Definition at line 132 of file attribute.hxx.

References m_bSet, and setAttributeValue().

◆ setMlAttributeValue() [2/2]

void SmMlAttribute::setMlAttributeValue ( const SmMlAttribute aMlAttribute)
inline

Definition at line 138 of file attribute.hxx.

References m_bSet, and setAttributeValue().

◆ setMlAttributeValueType()

void SmMlAttribute::setMlAttributeValueType ( SmMlAttributeValueType  aAttributeValueType)
inline

Set the type of attribute we are dealing with.

Parameters
AttributeValue Type

Definition at line 125 of file attribute.hxx.

References clearPreviousAttributeValue(), m_aSmMlAttributeValueType, and setDefaultAttributeValue().

◆ setMlDir()

void SmMlAttribute::setMlDir ( const SmMlDir aDir)

◆ setMlDisplaystyle()

void SmMlAttribute::setMlDisplaystyle ( const SmMlDisplaystyle aDisplaystyle)

◆ setMlFence()

void SmMlAttribute::setMlFence ( const SmMlFence aFence)

◆ setMlForm()

void SmMlAttribute::setMlForm ( const SmMlForm aForm)

◆ setMlHref()

void SmMlAttribute::setMlHref ( const SmMlHref aHref)

◆ setMlLspace()

void SmMlAttribute::setMlLspace ( const SmMlLspace aLspace)

◆ setMlMathbackground()

void SmMlAttribute::setMlMathbackground ( const SmMlMathbackground aMathbackground)

◆ setMlMathcolor()

void SmMlAttribute::setMlMathcolor ( const SmMlMathcolor aMathcolor)

◆ setMlMathsize()

void SmMlAttribute::setMlMathsize ( const SmMlMathsize aMathsize)

◆ setMlMathvariant()

void SmMlAttribute::setMlMathvariant ( const SmMlMathvariant aMathvariant)

◆ setMlMaxsize()

void SmMlAttribute::setMlMaxsize ( const SmMlMaxsize aMaxsize)

◆ setMlMinsize()

void SmMlAttribute::setMlMinsize ( const SmMlMinsize aMinSize)

◆ setMlMovablelimits()

void SmMlAttribute::setMlMovablelimits ( const SmMlMovablelimits aMovablelimits)

◆ setMlRspace()

void SmMlAttribute::setMlRspace ( const SmMlRspace aRspace)

◆ setMlSeparator()

void SmMlAttribute::setMlSeparator ( const SmMlSeparator aSeparator)

◆ setMlStretchy()

void SmMlAttribute::setMlStretchy ( const SmMlStretchy aStretchy)

◆ setMlSymmetric()

void SmMlAttribute::setMlSymmetric ( const SmMlSymmetric aSymmetric)

◆ setSet()

void SmMlAttribute::setSet ( bool  bSet)
inline

Set if the attribute has been set.

Definition at line 94 of file attribute.hxx.

References m_bSet.

Member Data Documentation

◆ m_aAttributeValue

SmMlAttributeValue SmMlAttribute::m_aAttributeValue
private

◆ m_aSmMlAttributeValueType

SmMlAttributeValueType SmMlAttribute::m_aSmMlAttributeValueType
private

◆ m_bSet

bool SmMlAttribute::m_bSet
private

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