LibreOffice Module cui (master) 1
|
#include <CommandCategoryListBox.hxx>
Public Member Functions | |
CommandCategoryListBox (std::unique_ptr< weld::ComboBox > xControl) | |
~CommandCategoryListBox () | |
void | ClearAll () |
void | Init (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XFrame > &xFrame, const OUString &sModuleLongName) |
void | FillFunctionsList (const css::uno::Sequence< css::frame::DispatchInformation > &xCommands, CuiConfigFunctionListBox *pFunctionListBox, const OUString &filterTerm, SaveInData *pCurrentSaveInData) |
OUString | getCommandName (const OUString &sCommand) |
void | connect_changed (const Link< weld::ComboBox &, void > &rLink) |
void | categorySelected (CuiConfigFunctionListBox *pFunctionListBox, const OUString &filterTerm, SaveInData *pCurrentSaveInData=nullptr) |
Signals that a command category has been selected. More... | |
void | SetStylesInfo (SfxStylesInfo_Impl *pStyles) |
void | addChildren (const weld::TreeIter *parentEntry, const css::uno::Reference< com::sun::star::script::browse::XBrowseNode > &parentNode, CuiConfigFunctionListBox *pFunctionListBox, const OUString &filterTerm, SaveInData *pCurrentSaveInData, std::vector< std::unique_ptr< weld::TreeIter > > &rNodesToExpand) |
void | set_visible (bool bVisible) |
Private Attributes | |
SfxGroupInfoArr_Impl | m_aGroupInfo |
OUString | m_sModuleLongName |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
css::uno::Reference< css::container::XNameAccess > | m_xGlobalCategoryInfo |
css::uno::Reference< css::container::XNameAccess > | m_xModuleCategoryInfo |
css::uno::Reference< css::container::XNameAccess > | m_xUICmdDescription |
i18nutil::SearchOptions2 | m_searchOptions |
SfxStylesInfo_Impl * | pStylesInfo |
SfxStylesInfo_Impl | m_aStylesInfo |
std::unique_ptr< weld::ComboBox > | m_xControl |
Definition at line 25 of file CommandCategoryListBox.hxx.
CommandCategoryListBox::CommandCategoryListBox | ( | std::unique_ptr< weld::ComboBox > | xControl | ) |
Definition at line 54 of file CommandCategoryListBox.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, m_searchOptions, m_xControl, i18nutil::SearchOptions2::searchFlag, and i18nutil::SearchOptions2::transliterateFlags.
CommandCategoryListBox::~CommandCategoryListBox | ( | ) |
Definition at line 65 of file CommandCategoryListBox.cxx.
References ClearAll().
void CommandCategoryListBox::addChildren | ( | const weld::TreeIter * | parentEntry, |
const css::uno::Reference< com::sun::star::script::browse::XBrowseNode > & | parentNode, | ||
CuiConfigFunctionListBox * | pFunctionListBox, | ||
const OUString & | filterTerm, | ||
SaveInData * | pCurrentSaveInData, | ||
std::vector< std::unique_ptr< weld::TreeIter > > & | rNodesToExpand | ||
) |
Definition at line 515 of file CommandCategoryListBox.cxx.
References addChildren(), CuiConfigFunctionListBox::append(), CuiResId(), FUNCTION_SCRIPT, SaveInData::GetImage(), GROUP_SCRIPTCONTAINER, CuiConfigFunctionListBox::iter_has_child(), m_aGroupInfo, m_searchOptions, CuiConfigFunctionListBox::remove(), utl::TextSearch::SearchForward(), i18nutil::SearchOptions2::searchString, weld::toId(), CuiConfigFunctionListBox::tree_append(), and value.
Referenced by addChildren(), and categorySelected().
void CommandCategoryListBox::categorySelected | ( | CuiConfigFunctionListBox * | pFunctionListBox, |
const OUString & | filterTerm, | ||
SaveInData * | pCurrentSaveInData = nullptr |
||
) |
Signals that a command category has been selected.
And updates the functions list box to include the commands in the selected category.
Definition at line 294 of file CommandCategoryListBox.cxx.
References addChildren(), CuiConfigFunctionListBox::append(), CuiConfigFunctionListBox::ClearAll(), CuiResId(), CuiConfigFunctionListBox::expand_row(), FillFunctionsList(), CuiConfigFunctionListBox::freeze(), SfxStylesInfo_Impl::getStyleFamilies(), SfxStylesInfo_Impl::getStyles(), GROUP_ALLFUNCTIONS, GROUP_FUNCTION, GROUP_SCRIPTCONTAINER, GROUP_STYLES, CuiConfigFunctionListBox::iter_has_child(), m_aGroupInfo, m_searchOptions, m_xContext, m_xControl, m_xFrame, CuiConfigFunctionListBox::n_children(), SfxGroupInfo_Impl::nKind, comphelper::NoEnableJavaInteractionContext(), SfxGroupInfo_Impl::nUniqueID, pStylesInfo, CuiConfigFunctionListBox::remove(), SAL_INFO, SfxStyleInfo_Impl::sCommand, utl::TextSearch::SearchForward(), i18nutil::SearchOptions2::searchString, CuiConfigFunctionListBox::select(), SfxStyleInfo_Impl::sLabel, CuiConfigFunctionListBox::thaw(), weld::toId(), TOOLS_WARN_EXCEPTION, and CuiConfigFunctionListBox::tree_append().
void CommandCategoryListBox::ClearAll | ( | ) |
Definition at line 67 of file CommandCategoryListBox.cxx.
References FUNCTION_SCRIPT, GROUP_SCRIPTCONTAINER, GROUP_STYLES, m_aGroupInfo, and m_xControl.
Referenced by Init(), and ~CommandCategoryListBox().
|
inline |
Definition at line 56 of file CommandCategoryListBox.hxx.
References m_xControl.
void CommandCategoryListBox::FillFunctionsList | ( | const css::uno::Sequence< css::frame::DispatchInformation > & | xCommands, |
CuiConfigFunctionListBox * | pFunctionListBox, | ||
const OUString & | filterTerm, | ||
SaveInData * | pCurrentSaveInData | ||
) |
Definition at line 214 of file CommandCategoryListBox.cxx.
References CuiConfigFunctionListBox::append(), aProperties, bIsExperimental, FUNCTION_SLOT, getCommandName(), vcl::CommandInfoProvider::GetCommandProperties(), SaveInData::GetImage(), vcl::CommandInfoProvider::GetLabelForCommand(), vcl::CommandInfoProvider::GetPopupLabelForCommand(), vcl::CommandInfoProvider::GetTooltipForCommand(), vcl::CommandInfoProvider::IsExperimental(), m_aGroupInfo, m_searchOptions, m_sModuleLongName, m_xFrame, SfxGroupInfo_Impl::sCommand, utl::TextSearch::searchForward(), i18nutil::SearchOptions2::searchString, SfxGroupInfo_Impl::sLabel, SfxGroupInfo_Impl::sTooltip, and weld::toId().
Referenced by categorySelected().
OUString CommandCategoryListBox::getCommandName | ( | const OUString & | sCommand | ) |
Definition at line 263 of file CommandCategoryListBox.cxx.
References comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), m_sModuleLongName, and m_xUICmdDescription.
Referenced by FillFunctionsList().
void CommandCategoryListBox::Init | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
const css::uno::Reference< css::frame::XFrame > & | xFrame, | ||
const OUString & | sModuleLongName | ||
) |
Definition at line 96 of file CommandCategoryListBox.cxx.
References a, ClearAll(), CuiResId(), getLocale(), comphelper::getProcessComponentContext(), Application::GetSettings(), GROUP_ALLFUNCTIONS, GROUP_FUNCTION, GROUP_SCRIPTCONTAINER, GROUP_STYLES, i, SfxStylesInfo_Impl::init(), m_aGroupInfo, m_aStylesInfo, m_sModuleLongName, m_xContext, m_xControl, m_xFrame, m_xGlobalCategoryInfo, m_xModuleCategoryInfo, m_xUICmdDescription, SetStylesInfo(), weld::toId(), xController, xFrame, and xModel.
|
inline |
Definition at line 79 of file CommandCategoryListBox.hxx.
References bVisible, and m_xControl.
void CommandCategoryListBox::SetStylesInfo | ( | SfxStylesInfo_Impl * | pStyles | ) |
Definition at line 513 of file CommandCategoryListBox.cxx.
References pStylesInfo.
Referenced by Init().
|
private |
Definition at line 27 of file CommandCategoryListBox.hxx.
Referenced by addChildren(), categorySelected(), ClearAll(), FillFunctionsList(), and Init().
|
private |
Definition at line 39 of file CommandCategoryListBox.hxx.
Referenced by Init().
|
private |
Definition at line 36 of file CommandCategoryListBox.hxx.
Referenced by addChildren(), categorySelected(), CommandCategoryListBox(), and FillFunctionsList().
|
private |
Definition at line 28 of file CommandCategoryListBox.hxx.
Referenced by FillFunctionsList(), getCommandName(), and Init().
|
private |
Definition at line 29 of file CommandCategoryListBox.hxx.
Referenced by categorySelected(), and Init().
|
private |
Definition at line 41 of file CommandCategoryListBox.hxx.
Referenced by categorySelected(), ClearAll(), connect_changed(), Init(), and set_visible().
|
private |
Definition at line 30 of file CommandCategoryListBox.hxx.
Referenced by categorySelected(), FillFunctionsList(), and Init().
|
private |
Definition at line 31 of file CommandCategoryListBox.hxx.
Referenced by Init().
|
private |
Definition at line 32 of file CommandCategoryListBox.hxx.
Referenced by Init().
|
private |
Definition at line 33 of file CommandCategoryListBox.hxx.
Referenced by getCommandName(), and Init().
|
private |
Definition at line 38 of file CommandCategoryListBox.hxx.
Referenced by categorySelected(), and SetStylesInfo().