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

#include <utility.hxx>

Inheritance diagram for SmFontPickList:
[legend]

Public Member Functions

 SmFontPickList (sal_uInt16 nMax=5)
 
virtual ~SmFontPickList ()
 
virtual void Insert (const vcl::Font &rFont)
 
void Clear ()
 
vcl::Font Get (sal_uInt16 nPos=0) const
 
SmFontPickListoperator= (const SmFontPickList &rList)
 
void ReadFrom (const SmFontDialog &rDialog)
 
void WriteTo (SmFontDialog &rDialog) const
 

Protected Attributes

sal_uInt16 nMaxItems
 
std::deque< vcl::FontaFontVec
 

Detailed Description

Definition at line 82 of file utility.hxx.

Constructor & Destructor Documentation

◆ SmFontPickList()

SmFontPickList::SmFontPickList ( sal_uInt16  nMax = 5)
inlineexplicit

Definition at line 89 of file utility.hxx.

◆ ~SmFontPickList()

virtual SmFontPickList::~SmFontPickList ( )
inlinevirtual

Definition at line 90 of file utility.hxx.

References Clear().

Member Function Documentation

◆ Clear()

void SmFontPickList::Clear ( )

Definition at line 49 of file utility.cxx.

References aFontVec.

Referenced by operator=(), and ~SmFontPickList().

◆ Get()

vcl::Font SmFontPickList::Get ( sal_uInt16  nPos = 0) const

Definition at line 63 of file utility.cxx.

References aFontVec, and nPos.

Referenced by WriteTo().

◆ Insert()

void SmFontPickList::Insert ( const vcl::Font rFont)
virtual

Reimplemented in SmFontPickListBox.

Definition at line 97 of file utility.cxx.

References aFontVec, nMaxItems, and nPos.

Referenced by IMPL_LINK_NOARG(), SmFontPickListBox::Insert(), and ReadFrom().

◆ operator=()

SmFontPickList & SmFontPickList::operator= ( const SmFontPickList rList)

Definition at line 54 of file utility.cxx.

References aFontVec, Clear(), and nMaxItems.

◆ ReadFrom()

void SmFontPickList::ReadFrom ( const SmFontDialog rDialog)

Definition at line 114 of file utility.cxx.

References SmFontDialog::GetFont(), and Insert().

Referenced by IMPL_LINK().

◆ WriteTo()

void SmFontPickList::WriteTo ( SmFontDialog rDialog) const

Definition at line 119 of file utility.cxx.

References Get(), and SmFontDialog::SetFont().

Referenced by IMPL_LINK().

Member Data Documentation

◆ aFontVec

std::deque<vcl::Font> SmFontPickList::aFontVec
protected

◆ nMaxItems

sal_uInt16 SmFontPickList::nMaxItems
protected

Definition at line 85 of file utility.hxx.

Referenced by Insert(), SmFontPickListBox::Insert(), and operator=().


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