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

#include <cfgitem.hxx>

Public Member Functions

 SmFontFormatList ()
 
void Clear ()
 
void AddFontFormat (const OUString &rFntFmtId, const SmFontFormat &rFntFmt)
 
void RemoveFontFormat (std::u16string_view rFntFmtId)
 
const SmFontFormatGetFontFormat (std::u16string_view rFntFmtId) const
 
const SmFontFormatGetFontFormat (size_t nPos) const
 
OUString GetFontFormatId (const SmFontFormat &rFntFmt) const
 
OUString GetFontFormatId (const SmFontFormat &rFntFmt, bool bAdd)
 
OUString GetFontFormatId (size_t nPos) const
 
OUString GetNewFontFormatId () const
 
size_t GetCount () const
 
bool IsModified () const
 
void SetModified (bool bVal)
 

Private Member Functions

 SmFontFormatList (const SmFontFormatList &)=delete
 
SmFontFormatListoperator= (const SmFontFormatList &)=delete
 

Private Attributes

std::vector< SmFntFmtListEntryaEntries
 
bool bModified
 

Detailed Description

Definition at line 70 of file cfgitem.hxx.

Constructor & Destructor Documentation

◆ SmFontFormatList() [1/2]

SmFontFormatList::SmFontFormatList ( const SmFontFormatList )
privatedelete

◆ SmFontFormatList() [2/2]

SmFontFormatList::SmFontFormatList ( )

Definition at line 229 of file cfgitem.cxx.

Member Function Documentation

◆ AddFontFormat()

void SmFontFormatList::AddFontFormat ( const OUString &  rFntFmtId,
const SmFontFormat rFntFmt 
)

Definition at line 245 of file cfgitem.cxx.

References aEntries, GetFontFormat(), and SetModified().

Referenced by GetFontFormatId().

◆ Clear()

void SmFontFormatList::Clear ( )

Definition at line 235 of file cfgitem.cxx.

References aEntries, and SetModified().

◆ GetCount()

size_t SmFontFormatList::GetCount ( ) const
inline

◆ GetFontFormat() [1/2]

const SmFontFormat * SmFontFormatList::GetFontFormat ( size_t  nPos) const

Definition at line 293 of file cfgitem.cxx.

References aEntries, and nPos.

◆ GetFontFormat() [2/2]

const SmFontFormat * SmFontFormatList::GetFontFormat ( std::u16string_view  rFntFmtId) const

◆ GetFontFormatId() [1/3]

OUString SmFontFormatList::GetFontFormatId ( const SmFontFormat rFntFmt) const

◆ GetFontFormatId() [2/3]

OUString SmFontFormatList::GetFontFormatId ( const SmFontFormat rFntFmt,
bool  bAdd 
)

Definition at line 319 of file cfgitem.cxx.

References AddFontFormat(), GetFontFormatId(), and GetNewFontFormatId().

◆ GetFontFormatId() [3/3]

OUString SmFontFormatList::GetFontFormatId ( size_t  nPos) const

Definition at line 331 of file cfgitem.cxx.

References aEntries, and nPos.

◆ GetNewFontFormatId()

OUString SmFontFormatList::GetNewFontFormatId ( ) const

Definition at line 340 of file cfgitem.cxx.

References GetCount(), GetFontFormat(), and i.

Referenced by GetFontFormatId().

◆ IsModified()

bool SmFontFormatList::IsModified ( ) const
inline

Definition at line 93 of file cfgitem.hxx.

References bModified.

Referenced by SmMathConfig::SaveFontFormatList().

◆ operator=()

SmFontFormatList & SmFontFormatList::operator= ( const SmFontFormatList )
privatedelete

◆ RemoveFontFormat()

void SmFontFormatList::RemoveFontFormat ( std::u16string_view  rFntFmtId)

Definition at line 259 of file cfgitem.cxx.

References aEntries, i, and SetModified().

Referenced by SmMathConfig::StripFontFormatList().

◆ SetModified()

void SmFontFormatList::SetModified ( bool  bVal)
inline

Definition at line 94 of file cfgitem.hxx.

References bModified.

Referenced by AddFontFormat(), Clear(), RemoveFontFormat(), and SmMathConfig::SaveFontFormatList().

Member Data Documentation

◆ aEntries

std::vector<SmFntFmtListEntry> SmFontFormatList::aEntries
private

◆ bModified

bool SmFontFormatList::bModified
private

Definition at line 73 of file cfgitem.hxx.

Referenced by IsModified(), and SetModified().


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