LibreOffice Module cui (master)
1
|
#include <cfgutil.hxx>
Public Member Functions | |
CuiConfigGroupListBox (std::unique_ptr< weld::TreeView > xTreeView) | |
void | set_sensitive (bool bSensitive) |
void | connect_changed (const Link< weld::TreeView &, void > &rLink) |
void | set_size_request (int nWidth, int nHeight) |
weld::TreeView & | get_widget () |
~CuiConfigGroupListBox () | |
void | ClearAll () |
void | Init (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XFrame > &xFrame, const OUString &sModuleLongName, bool bEventMode) |
void | SetFunctionListBox (CuiConfigFunctionListBox *pBox) |
void | GroupSelected () |
void | SelectMacro (const SfxMacroInfoItem *) |
void | SelectMacro (std::u16string_view, const OUString &) |
void | SetStylesInfo (SfxStylesInfo_Impl *pStyles) |
Private Member Functions | |
void | InitModule () |
void | FillScriptList (const css::uno::Reference< css::script::browse::XBrowseNode > &xRootNode, const weld::TreeIter *pParentEntry, bool bCheapChildrenOnDemand) |
void | FillFunctionsList (const css::uno::Sequence< css::frame::DispatchInformation > &xCommands) |
OUString | MapCommand2UIName (const OUString &sCommand) |
DECL_LINK (ExpandingHdl, const weld::TreeIter &, bool) | |
Static Private Member Functions | |
static OUString | GetImage (const css::uno::Reference< css::script::browse::XBrowseNode > &node, css::uno::Reference< css::uno::XComponentContext > const &xCtx, bool bIsRootNode) |
static css::uno::Reference< css::uno::XInterface > | getDocumentModel (css::uno::Reference< css::uno::XComponentContext > const &xCtx, std::u16string_view docName) |
Private Attributes | |
std::unique_ptr< SvxConfigGroupBoxResource_Impl > | xImp |
CuiConfigFunctionListBox * | m_pFunctionListBox |
SfxGroupInfoArr_Impl | aArr |
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 |
SfxStylesInfo_Impl * | m_pStylesInfo |
std::unique_ptr< weld::TreeView > | m_xTreeView |
std::unique_ptr< weld::TreeIter > | m_xScratchIter |
Definition at line 179 of file cfgutil.hxx.
CuiConfigGroupListBox::CuiConfigGroupListBox | ( | std::unique_ptr< weld::TreeView > | xTreeView | ) |
Definition at line 419 of file cfgutil.cxx.
References LINK, m_xTreeView, and m_xTreeView.
CuiConfigGroupListBox::~CuiConfigGroupListBox | ( | ) |
Definition at line 430 of file cfgutil.cxx.
References ClearAll().
void CuiConfigGroupListBox::ClearAll | ( | ) |
Definition at line 435 of file cfgutil.cxx.
References aArr, FUNCTION_SCRIPT, GROUP_SCRIPTCONTAINER, GROUP_STYLES, i, m_xTreeView, nCount, SfxGroupInfo_Impl::nKind, pData, and SfxGroupInfo_Impl::pObject.
Referenced by Init(), and ~CuiConfigGroupListBox().
|
inline |
Definition at line 214 of file cfgutil.hxx.
|
private |
|
private |
Definition at line 611 of file cfgutil.cxx.
References aArr, CuiConfigFunctionListBox::append(), aProperties, CuiConfigFunctionListBox::freeze(), FUNCTION_SLOT, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetTooltipForCommand(), m_pFunctionListBox, m_sModuleLongName, m_xFrame, MapCommand2UIName(), SfxGroupInfo_Impl::sCommand, SfxGroupInfo_Impl::sLabel, SfxGroupInfo_Impl::sTooltip, and CuiConfigFunctionListBox::thaw().
Referenced by GroupSelected().
|
private |
Definition at line 508 of file cfgutil.cxx.
References aArr, GetImage(), GROUP_SCRIPTCONTAINER, m_xContext, m_xFrame, m_xScratchIter, m_xTreeView, comphelper::NoEnableJavaInteractionContext(), sId, and xImp.
Referenced by Init().
|
inline |
Definition at line 216 of file cfgutil.hxx.
References m_xTreeView.
|
staticprivate |
|
staticprivate |
Definition at line 700 of file cfgutil.cxx.
References Any, getDocumentModel(), SvFileInformationManager::GetFileImageId(), Name, pos, and SAL_INFO.
Referenced by FillScriptList(), and GroupSelected().
void CuiConfigGroupListBox::GroupSelected | ( | ) |
Definition at line 816 of file cfgutil.cxx.
References CuiConfigFunctionListBox::aArr, Any, CuiConfigFunctionListBox::append(), CuiConfigFunctionListBox::ClearAll(), Exception, FillFunctionsList(), CuiConfigFunctionListBox::freeze(), FUNCTION_SCRIPT, GetImage(), SfxStylesInfo_Impl::getStyles(), GROUP_ALLFUNCTIONS, GROUP_FUNCTION, GROUP_SCRIPTCONTAINER, GROUP_STYLES, m_pFunctionListBox, m_pStylesInfo, m_xFrame, m_xTreeView, CuiConfigFunctionListBox::n_children(), SfxGroupInfo_Impl::nKind, SfxGroupInfo_Impl::nUniqueID, SfxGroupInfo_Impl::pObject, SAL_INFO, SfxStyleInfo_Impl::sCommand, CuiConfigFunctionListBox::select(), SfxStyleInfo_Impl::sFamily, sId, SfxStyleInfo_Impl::sLabel, CuiConfigFunctionListBox::thaw(), uri, and value.
void CuiConfigGroupListBox::Init | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
const css::uno::Reference< css::frame::XFrame > & | xFrame, | ||
const OUString & | sModuleLongName, | ||
bool | bEventMode | ||
) |
Definition at line 629 of file cfgutil.cxx.
References aArr, ClearAll(), Exception, FillScriptList(), GROUP_SCRIPTCONTAINER, GROUP_STYLES, InitModule(), m_sModuleLongName, m_xContext, m_xFrame, m_xGlobalCategoryInfo, m_xModuleCategoryInfo, m_xTreeView, m_xUICmdDescription, SAL_INFO, sId, TOOLS_WARN_EXCEPTION, and xImp.
|
private |
Definition at line 465 of file cfgutil.cxx.
References aArr, CuiResId(), GROUP_ALLFUNCTIONS, GROUP_FUNCTION, m_xFrame, m_xModuleCategoryInfo, and m_xTreeView.
Referenced by Init().
|
private |
Definition at line 789 of file cfgutil.cxx.
References comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), m_sModuleLongName, and m_xUICmdDescription.
Referenced by FillFunctionsList().
void CuiConfigGroupListBox::SelectMacro | ( | const SfxMacroInfoItem * | pItem | ) |
Definition at line 997 of file cfgutil.cxx.
References SfxMacroInfoItem::GetBasicManager(), BasicManager::GetName(), and SfxMacroInfoItem::GetQualifiedName().
void CuiConfigGroupListBox::SelectMacro | ( | std::u16string_view | rBasic, |
const OUString & | rMacro | ||
) |
Definition at line 1003 of file cfgutil.cxx.
References CuiConfigFunctionListBox::get_text(), i, m_pFunctionListBox, m_xTreeView, CuiConfigFunctionListBox::n_children(), nCount, CuiConfigFunctionListBox::scroll_to_row(), CuiConfigFunctionListBox::select(), and xImp.
|
inline |
Definition at line 213 of file cfgutil.hxx.
Definition at line 215 of file cfgutil.hxx.
|
inline |
Definition at line 224 of file cfgutil.hxx.
void CuiConfigGroupListBox::SetStylesInfo | ( | SfxStylesInfo_Impl * | pStyles | ) |
Definition at line 362 of file cfgutil.cxx.
References m_pStylesInfo.
|
private |
Definition at line 183 of file cfgutil.hxx.
Referenced by ClearAll(), FillFunctionsList(), FillScriptList(), Init(), and InitModule().
|
private |
Definition at line 182 of file cfgutil.hxx.
Referenced by FillFunctionsList(), GroupSelected(), and SelectMacro().
|
private |
Definition at line 190 of file cfgutil.hxx.
Referenced by GroupSelected(), and SetStylesInfo().
|
private |
Definition at line 184 of file cfgutil.hxx.
Referenced by FillFunctionsList(), Init(), and MapCommand2UIName().
|
private |
Definition at line 185 of file cfgutil.hxx.
Referenced by FillScriptList(), and Init().
|
private |
Definition at line 186 of file cfgutil.hxx.
Referenced by FillFunctionsList(), FillScriptList(), GroupSelected(), Init(), and InitModule().
|
private |
Definition at line 187 of file cfgutil.hxx.
Referenced by Init().
|
private |
Definition at line 188 of file cfgutil.hxx.
Referenced by Init(), and InitModule().
|
private |
Definition at line 192 of file cfgutil.hxx.
Referenced by FillScriptList().
|
private |
Definition at line 191 of file cfgutil.hxx.
Referenced by ClearAll(), CuiConfigGroupListBox(), FillScriptList(), get_widget(), GroupSelected(), Init(), InitModule(), and SelectMacro().
|
private |
Definition at line 189 of file cfgutil.hxx.
Referenced by Init(), and MapCommand2UIName().
|
private |
Definition at line 181 of file cfgutil.hxx.
Referenced by FillScriptList(), Init(), and SelectMacro().