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

#include <ElementsDockingWindow.hxx>

Collaboration diagram for SmElementsControl:
[legend]

Public Member Functions

 SmElementsControl (std::unique_ptr< weld::IconView > pIconView)
 
 ~SmElementsControl ()
 
void setElementSetIndex (int nSetIndex)
 
void setSmSyntaxVersion (sal_uInt16 nSmSyntaxVersion)
 
void SetSelectHdl (const Link< OUString, void > &rLink)
 

Static Public Member Functions

static const std::vector< TranslateId > & categories ()
 
static Color GetTextColor ()
 
static Color GetControlBackground ()
 

Private Member Functions

void addElement (const OUString &aElementVisual, const OUString &aElementSource, const OUString &aHelpText)
 
void addElements (int nCategory)
 
void build ()
 
 DECL_LINK (QueryTooltipHandler, const weld::TreeIter &, OUString)
 
 DECL_LINK (ElementActivatedHandler, weld::IconView &, bool)
 

Static Private Member Functions

static OUString GetElementSource (const OUString &itemId)
 
static OUString GetElementHelpText (const OUString &itemId)
 

Private Attributes

std::unique_ptr< AbstractSmParsermaParser
 
SmDocShellmpDocShell
 
SmFormat maFormat
 
int mnCurrentSetIndex
 
sal_uInt16 m_nSmSyntaxVersion
 
std::vector< std::unique_ptr< ElementData > > maItemDatas
 
std::unique_ptr< weld::IconViewmpIconView
 
Link< OUString, void > maSelectHdlLink
 

Detailed Description

Definition at line 37 of file ElementsDockingWindow.hxx.

Constructor & Destructor Documentation

◆ SmElementsControl()

SmElementsControl::SmElementsControl ( std::unique_ptr< weld::IconView pIconView)
explicit

◆ ~SmElementsControl()

SmElementsControl::~SmElementsControl ( )

Definition at line 479 of file ElementsDockingWindow.cxx.

References SfxObjectShell::DoClose(), and mpDocShell.

Member Function Documentation

◆ addElement()

void SmElementsControl::addElement ( const OUString &  aElementVisual,
const OUString &  aElementSource,
const OUString &  aHelpText 
)
private

◆ addElements()

void SmElementsControl::addElements ( int  nCategory)
private

Definition at line 575 of file ElementsDockingWindow.cxx.

References addElement(), i, maItemDatas, o3tl::make_unsigned(), mpIconView, and SmResId().

Referenced by build().

◆ build()

void SmElementsControl::build ( )
private

◆ categories()

const std::vector< TranslateId > & SmElementsControl::categories ( )
static

◆ DECL_LINK() [1/2]

SmElementsControl::DECL_LINK ( ElementActivatedHandler  ,
weld::IconView ,
bool   
)
private

◆ DECL_LINK() [2/2]

SmElementsControl::DECL_LINK ( QueryTooltipHandler  ,
const weld::TreeIter ,
OUString   
)
private

◆ GetControlBackground()

Color SmElementsControl::GetControlBackground ( )
static

◆ GetElementHelpText()

OUString SmElementsControl::GetElementHelpText ( const OUString &  itemId)
staticprivate

Definition at line 562 of file ElementsDockingWindow.cxx.

◆ GetElementSource()

OUString SmElementsControl::GetElementSource ( const OUString &  itemId)
staticprivate

Definition at line 557 of file ElementsDockingWindow.cxx.

◆ GetTextColor()

Color SmElementsControl::GetTextColor ( )
static

◆ setElementSetIndex()

void SmElementsControl::setElementSetIndex ( int  nSetIndex)

Definition at line 567 of file ElementsDockingWindow.cxx.

References build(), and mnCurrentSetIndex.

◆ SetSelectHdl()

void SmElementsControl::SetSelectHdl ( const Link< OUString, void > &  rLink)
inline

Definition at line 72 of file ElementsDockingWindow.hxx.

References maSelectHdlLink.

◆ setSmSyntaxVersion()

void SmElementsControl::setSmSyntaxVersion ( sal_uInt16  nSmSyntaxVersion)

Member Data Documentation

◆ m_nSmSyntaxVersion

sal_uInt16 SmElementsControl::m_nSmSyntaxVersion
private

Definition at line 44 of file ElementsDockingWindow.hxx.

Referenced by build(), setSmSyntaxVersion(), and SmElementsControl().

◆ maFormat

SmFormat SmElementsControl::maFormat
private

Definition at line 42 of file ElementsDockingWindow.hxx.

Referenced by addElement().

◆ maItemDatas

std::vector<std::unique_ptr<ElementData> > SmElementsControl::maItemDatas
private

Definition at line 46 of file ElementsDockingWindow.hxx.

Referenced by addElement(), and addElements().

◆ maParser

std::unique_ptr<AbstractSmParser> SmElementsControl::maParser
private

Definition at line 39 of file ElementsDockingWindow.hxx.

Referenced by addElement(), setSmSyntaxVersion(), and SmElementsControl().

◆ maSelectHdlLink

Link<OUString, void> SmElementsControl::maSelectHdlLink
private

Definition at line 49 of file ElementsDockingWindow.hxx.

Referenced by SetSelectHdl().

◆ mnCurrentSetIndex

int SmElementsControl::mnCurrentSetIndex
private

Definition at line 43 of file ElementsDockingWindow.hxx.

Referenced by build(), and setElementSetIndex().

◆ mpDocShell

SmDocShell* SmElementsControl::mpDocShell
private

Definition at line 41 of file ElementsDockingWindow.hxx.

Referenced by addElement(), and ~SmElementsControl().

◆ mpIconView

std::unique_ptr<weld::IconView> SmElementsControl::mpIconView
private

Definition at line 47 of file ElementsDockingWindow.hxx.

Referenced by addElement(), addElements(), and SmElementsControl().


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