LibreOffice Module cui (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
CuiConfigFunctionListBox Class Reference

#include <cfgutil.hxx>

Public Member Functions

 CuiConfigFunctionListBox (std::unique_ptr< weld::TreeView > xTreeView)
 
void set_sensitive (bool bSensitive)
 
void connect_changed (const Link< weld::TreeView &, void > &rLink)
 
void connect_popup_menu (const Link< const CommandEvent &, bool > &rLink)
 
void connect_row_activated (const Link< weld::TreeView &, bool > &rLink)
 
void freeze ()
 
void thaw ()
 
void append (const OUString &rId, const OUString &rStr, const weld::TreeIter *pParent=nullptr)
 
std::unique_ptr< weld::TreeItertree_append (const OUString &rId, const OUString &rStr, const weld::TreeIter *pParent=nullptr)
 
void append (const OUString &rId, const OUString &rStr, const OUString &rImage, const weld::TreeIter *pParent=nullptr)
 
void append (const OUString &rId, const OUString &rStr, const css::uno::Reference< css::graphic::XGraphic > &rImage, const weld::TreeIter *pParent=nullptr)
 
void remove (int nPos)
 
void scroll_to_row (int pos)
 
void remove (const weld::TreeIter &rIter)
 
void expand_row (const weld::TreeIter &rIter)
 
int n_children () const
 
std::unique_ptr< weld::TreeItermake_iterator (const weld::TreeIter *pOrig=nullptr) const
 
bool iter_has_child (const weld::TreeIter &rIter) const
 
OUString get_text (int nPos) const
 
OUString get_id (const weld::TreeIter &rIter) const
 
bool get_selected (weld::TreeIter *pIter) const
 
OUString get_selected_text () const
 
OUString get_selected_id () const
 
void select (int pos)
 
void set_size_request (int nWidth, int nHeight)
 
Size get_size_request () const
 
weld::TreeViewget_widget ()
 
 ~CuiConfigFunctionListBox ()
 
void ClearAll ()
 
OUString GetSelectedScriptURI () const
 
OUString GetHelpText (bool bConsiderParent=true)
 
OUString GetCurCommand () const
 
OUString GetCurLabel () const
 
 DECL_LINK (QueryTooltip, const weld::TreeIter &rIter, OUString)
 

Private Attributes

SfxGroupInfoArr_Impl aArr
 
std::unique_ptr< weld::TreeViewm_xTreeView
 
std::unique_ptr< weld::TreeIterm_xScratchIter
 

Friends

class CuiConfigGroupListBox
 

Detailed Description

Definition at line 108 of file cfgutil.hxx.

Constructor & Destructor Documentation

◆ CuiConfigFunctionListBox()

CuiConfigFunctionListBox::CuiConfigFunctionListBox ( std::unique_ptr< weld::TreeView xTreeView)

Definition at line 282 of file cfgutil.cxx.

References LINK, and m_xTreeView.

◆ ~CuiConfigFunctionListBox()

CuiConfigFunctionListBox::~CuiConfigFunctionListBox ( )

Definition at line 291 of file cfgutil.cxx.

References ClearAll().

Member Function Documentation

◆ append() [1/3]

void CuiConfigFunctionListBox::append ( const OUString &  rId,
const OUString &  rStr,
const css::uno::Reference< css::graphic::XGraphic > &  rImage,
const weld::TreeIter pParent = nullptr 
)
inline

Definition at line 139 of file cfgutil.hxx.

References m_xScratchIter, and m_xTreeView.

◆ append() [2/3]

void CuiConfigFunctionListBox::append ( const OUString &  rId,
const OUString &  rStr,
const OUString &  rImage,
const weld::TreeIter pParent = nullptr 
)
inline

Definition at line 134 of file cfgutil.hxx.

References m_xScratchIter, and m_xTreeView.

◆ append() [3/3]

void CuiConfigFunctionListBox::append ( const OUString &  rId,
const OUString &  rStr,
const weld::TreeIter pParent = nullptr 
)
inline

◆ ClearAll()

void CuiConfigFunctionListBox::ClearAll ( )

◆ connect_changed()

void CuiConfigFunctionListBox::connect_changed ( const Link< weld::TreeView &, void > &  rLink)
inline

Definition at line 119 of file cfgutil.hxx.

References m_xTreeView.

◆ connect_popup_menu()

void CuiConfigFunctionListBox::connect_popup_menu ( const Link< const CommandEvent &, bool > &  rLink)
inline

Definition at line 120 of file cfgutil.hxx.

References m_xTreeView.

◆ connect_row_activated()

void CuiConfigFunctionListBox::connect_row_activated ( const Link< weld::TreeView &, bool > &  rLink)
inline

Definition at line 121 of file cfgutil.hxx.

References m_xTreeView.

◆ DECL_LINK()

CuiConfigFunctionListBox::DECL_LINK ( QueryTooltip  ,
const weld::TreeIter rIter,
OUString   
)

◆ expand_row()

void CuiConfigFunctionListBox::expand_row ( const weld::TreeIter rIter)
inline

Definition at line 147 of file cfgutil.hxx.

References m_xTreeView.

Referenced by CommandCategoryListBox::categorySelected().

◆ freeze()

void CuiConfigFunctionListBox::freeze ( )
inline

◆ get_id()

OUString CuiConfigFunctionListBox::get_id ( const weld::TreeIter rIter) const
inline

Definition at line 152 of file cfgutil.hxx.

References m_xTreeView.

◆ get_selected()

bool CuiConfigFunctionListBox::get_selected ( weld::TreeIter pIter) const
inline

Definition at line 153 of file cfgutil.hxx.

References m_xTreeView.

◆ get_selected_id()

OUString CuiConfigFunctionListBox::get_selected_id ( ) const
inline

Definition at line 160 of file cfgutil.hxx.

References m_xScratchIter, and m_xTreeView.

Referenced by GetCurCommand(), GetCurLabel(), GetHelpText(), and GetSelectedScriptURI().

◆ get_selected_text()

OUString CuiConfigFunctionListBox::get_selected_text ( ) const
inline

Definition at line 154 of file cfgutil.hxx.

References m_xScratchIter, and m_xTreeView.

◆ get_size_request()

Size CuiConfigFunctionListBox::get_size_request ( ) const
inline

Definition at line 168 of file cfgutil.hxx.

References m_xTreeView.

◆ get_text()

OUString CuiConfigFunctionListBox::get_text ( int  nPos) const
inline

Definition at line 151 of file cfgutil.hxx.

References m_xTreeView, and nPos.

◆ get_widget()

weld::TreeView & CuiConfigFunctionListBox::get_widget ( )
inline

Definition at line 169 of file cfgutil.hxx.

References m_xTreeView.

◆ GetCurCommand()

OUString CuiConfigFunctionListBox::GetCurCommand ( ) const

Definition at line 264 of file cfgutil.cxx.

References get_selected_id(), and pData.

◆ GetCurLabel()

OUString CuiConfigFunctionListBox::GetCurLabel ( ) const

Definition at line 272 of file cfgutil.cxx.

References get_selected_id(), and pData.

◆ GetHelpText()

OUString CuiConfigFunctionListBox::GetHelpText ( bool  bConsiderParent = true)

◆ GetSelectedScriptURI()

OUString CuiConfigFunctionListBox::GetSelectedScriptURI ( ) const

Definition at line 338 of file cfgutil.cxx.

References FUNCTION_SCRIPT, get_selected_id(), and pData.

◆ iter_has_child()

bool CuiConfigFunctionListBox::iter_has_child ( const weld::TreeIter rIter) const
inline

◆ make_iterator()

std::unique_ptr< weld::TreeIter > CuiConfigFunctionListBox::make_iterator ( const weld::TreeIter pOrig = nullptr) const
inline

Definition at line 149 of file cfgutil.hxx.

References m_xTreeView.

◆ n_children()

int CuiConfigFunctionListBox::n_children ( ) const
inline

◆ remove() [1/2]

void CuiConfigFunctionListBox::remove ( const weld::TreeIter rIter)
inline

Definition at line 146 of file cfgutil.hxx.

References m_xTreeView.

◆ remove() [2/2]

void CuiConfigFunctionListBox::remove ( int  nPos)
inline

Definition at line 144 of file cfgutil.hxx.

References m_xTreeView, and nPos.

Referenced by CommandCategoryListBox::addChildren(), and CommandCategoryListBox::categorySelected().

◆ scroll_to_row()

void CuiConfigFunctionListBox::scroll_to_row ( int  pos)
inline

Definition at line 145 of file cfgutil.hxx.

References m_xTreeView, and pos.

◆ select()

void CuiConfigFunctionListBox::select ( int  pos)
inline

Definition at line 166 of file cfgutil.hxx.

References m_xTreeView, and pos.

Referenced by CommandCategoryListBox::categorySelected(), and CuiConfigGroupListBox::GroupSelected().

◆ set_sensitive()

void CuiConfigFunctionListBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 118 of file cfgutil.hxx.

References m_xTreeView.

◆ set_size_request()

void CuiConfigFunctionListBox::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 167 of file cfgutil.hxx.

References m_xTreeView.

◆ thaw()

void CuiConfigFunctionListBox::thaw ( )
inline

◆ tree_append()

std::unique_ptr< weld::TreeIter > CuiConfigFunctionListBox::tree_append ( const OUString &  rId,
const OUString &  rStr,
const weld::TreeIter pParent = nullptr 
)
inline

Friends And Related Function Documentation

◆ CuiConfigGroupListBox

friend class CuiConfigGroupListBox
friend

Definition at line 110 of file cfgutil.hxx.

Member Data Documentation

◆ aArr

SfxGroupInfoArr_Impl CuiConfigFunctionListBox::aArr
private

Definition at line 111 of file cfgutil.hxx.

Referenced by ClearAll(), and CuiConfigGroupListBox::GroupSelected().

◆ m_xScratchIter

std::unique_ptr<weld::TreeIter> CuiConfigFunctionListBox::m_xScratchIter
private

Definition at line 114 of file cfgutil.hxx.

Referenced by append(), get_selected_id(), and get_selected_text().

◆ m_xTreeView

std::unique_ptr<weld::TreeView> CuiConfigFunctionListBox::m_xTreeView
private

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