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 | SetStylesInfo (SfxStylesInfo_Impl *pStyles) |
Private Member Functions | |
sal_Int32 | InitModule () |
void | FillScriptList (const css::uno::Reference< css::script::browse::XBrowseNode > &xRootNode, const weld::TreeIter *pParentEntry) |
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 183 of file cfgutil.hxx.
CuiConfigGroupListBox::CuiConfigGroupListBox | ( | std::unique_ptr< weld::TreeView > | xTreeView | ) |
Definition at line 426 of file cfgutil.cxx.
References LINK, and m_xTreeView.
CuiConfigGroupListBox::~CuiConfigGroupListBox | ( | ) |
Definition at line 437 of file cfgutil.cxx.
References ClearAll().
void CuiConfigGroupListBox::ClearAll | ( | ) |
Definition at line 442 of file cfgutil.cxx.
References aArr, FUNCTION_SCRIPT, GROUP_SCRIPTCONTAINER, GROUP_STYLES, i, m_xTreeView, nCount, and pData.
Referenced by Init(), and ~CuiConfigGroupListBox().
|
inline |
Definition at line 218 of file cfgutil.hxx.
References m_xTreeView.
|
private |
|
private |
Definition at line 607 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, CuiConfigFunctionListBox::thaw(), and weld::toId().
Referenced by GroupSelected().
|
private |
Definition at line 511 of file cfgutil.cxx.
References aArr, GetImage(), GROUP_SCRIPTCONTAINER, m_xContext, m_xFrame, m_xScratchIter, m_xTreeView, comphelper::NoEnableJavaInteractionContext(), sId, weld::toId(), and xImp.
Referenced by Init().
|
inline |
Definition at line 220 of file cfgutil.hxx.
References m_xTreeView.
|
staticprivate |
|
staticprivate |
Definition at line 716 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 832 of file cfgutil.cxx.
References CuiConfigFunctionListBox::aArr, Any, CuiConfigFunctionListBox::append(), CuiConfigFunctionListBox::ClearAll(), Exception, FillFunctionsList(), CuiConfigFunctionListBox::freeze(), FUNCTION_SCRIPT, vcl::CommandInfoProvider::GetCommandShortcut(), GetImage(), sfx2::sidebar::ResourceManager::GetMatchingDecks(), SfxStylesInfo_Impl::getStyles(), GROUP_ALLFUNCTIONS, GROUP_FUNCTION, GROUP_SCRIPTCONTAINER, GROUP_SIDEBARDECKS, GROUP_STYLES, m_pFunctionListBox, m_pStylesInfo, m_sModuleLongName, 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(), weld::toId(), 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 625 of file cfgutil.cxx.
References aArr, ClearAll(), CuiResId(), Exception, FillScriptList(), GROUP_ALLFUNCTIONS, GROUP_SCRIPTCONTAINER, GROUP_SIDEBARDECKS, GROUP_STYLES, InitModule(), m_sModuleLongName, m_xContext, m_xFrame, m_xGlobalCategoryInfo, m_xModuleCategoryInfo, m_xTreeView, m_xUICmdDescription, SAL_INFO, sId, weld::toId(), TOOLS_WARN_EXCEPTION, xFrame, and xImp.
|
private |
Definition at line 472 of file cfgutil.cxx.
References aArr, GROUP_FUNCTION, m_xFrame, m_xModuleCategoryInfo, m_xTreeView, and weld::toId().
Referenced by Init().
|
private |
Definition at line 805 of file cfgutil.cxx.
References comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), m_sModuleLongName, and m_xUICmdDescription.
Referenced by FillFunctionsList().
|
inline |
Definition at line 217 of file cfgutil.hxx.
References m_xTreeView.
Definition at line 219 of file cfgutil.hxx.
References m_xTreeView.
|
inline |
Definition at line 228 of file cfgutil.hxx.
References m_pFunctionListBox.
void CuiConfigGroupListBox::SetStylesInfo | ( | SfxStylesInfo_Impl * | pStyles | ) |
Definition at line 369 of file cfgutil.cxx.
References m_pStylesInfo.
|
private |
Definition at line 187 of file cfgutil.hxx.
Referenced by ClearAll(), FillFunctionsList(), FillScriptList(), Init(), and InitModule().
|
private |
Definition at line 186 of file cfgutil.hxx.
Referenced by FillFunctionsList(), GroupSelected(), and SetFunctionListBox().
|
private |
Definition at line 194 of file cfgutil.hxx.
Referenced by GroupSelected(), and SetStylesInfo().
|
private |
Definition at line 188 of file cfgutil.hxx.
Referenced by FillFunctionsList(), GroupSelected(), Init(), and MapCommand2UIName().
|
private |
Definition at line 189 of file cfgutil.hxx.
Referenced by FillScriptList(), and Init().
|
private |
Definition at line 190 of file cfgutil.hxx.
Referenced by FillFunctionsList(), FillScriptList(), GroupSelected(), Init(), and InitModule().
|
private |
Definition at line 191 of file cfgutil.hxx.
Referenced by Init().
|
private |
Definition at line 192 of file cfgutil.hxx.
Referenced by Init(), and InitModule().
|
private |
Definition at line 196 of file cfgutil.hxx.
Referenced by FillScriptList().
|
private |
Definition at line 195 of file cfgutil.hxx.
Referenced by ClearAll(), connect_changed(), CuiConfigGroupListBox(), FillScriptList(), get_widget(), GroupSelected(), Init(), InitModule(), set_sensitive(), and set_size_request().
|
private |
Definition at line 193 of file cfgutil.hxx.
Referenced by Init(), and MapCommand2UIName().
|
private |
Definition at line 185 of file cfgutil.hxx.
Referenced by FillScriptList(), and Init().