LibreOffice Module cui (master) 1
|
#include <cfgutil.hxx>
Public Member Functions | |
SvxScriptSelectorDialog (weld::Window *pParent, const css::uno::Reference< css::frame::XFrame > &xFrame) | |
virtual | ~SvxScriptSelectorDialog () override |
OUString | GetScriptURL () const |
void | SetRunLabel () |
void | SaveLastUsedMacro () |
void | LoadLastUsedMacro () |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
DECL_LINK (ClickHdl, weld::Button &, void) | |
DECL_LINK (SelectHdl, weld::TreeView &, void) | |
DECL_LINK (FunctionDoubleClickHdl, weld::TreeView &, bool) | |
DECL_LINK (ContextMenuHdl, const CommandEvent &, bool) | |
void | UpdateUI () |
Private Attributes | |
OUString | m_sDefaultDesc |
SfxStylesInfo_Impl | m_aStylesInfo |
std::unique_ptr< weld::Label > | m_xDialogDescription |
std::unique_ptr< CuiConfigGroupListBox > | m_xCategories |
std::unique_ptr< CuiConfigFunctionListBox > | m_xCommands |
std::unique_ptr< weld::Label > | m_xLibraryFT |
std::unique_ptr< weld::Label > | m_xMacronameFT |
std::unique_ptr< weld::Button > | m_xOKButton |
std::unique_ptr< weld::Button > | m_xCancelButton |
std::unique_ptr< weld::TextView > | m_xDescriptionText |
std::unique_ptr< weld::Frame > | m_xDescriptionFrame |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 237 of file cfgutil.hxx.
SvxScriptSelectorDialog::SvxScriptSelectorDialog | ( | weld::Window * | pParent, |
const css::uno::Reference< css::frame::XFrame > & | xFrame | ||
) |
Definition at line 1132 of file cfgutil.cxx.
References vcl::CommandInfoProvider::GetModuleIdentifier(), comphelper::getProcessComponentContext(), SfxStylesInfo_Impl::init(), comphelper::LibreOfficeKit::isActive(), LINK, LoadLastUsedMacro(), m_aStylesInfo, m_sDefaultDesc, m_xCancelButton, m_xCategories, m_xCommands, m_xDescriptionFrame, m_xDescriptionText, weld::GenericDialogController::m_xDialog, m_xDialogDescription, m_xLibraryFT, m_xMacronameFT, m_xOKButton, m_xOKButton, UpdateUI(), xController, xFrame, and xModel.
|
overridevirtual |
Definition at line 1188 of file cfgutil.cxx.
|
private |
|
private |
|
private |
|
private |
OUString SvxScriptSelectorDialog::GetScriptURL | ( | ) | const |
Definition at line 1277 of file cfgutil.cxx.
References FUNCTION_SCRIPT, FUNCTION_SLOT, GROUP_STYLES, m_xCommands, pData, and result.
Referenced by SvxMacroTabPage_::GenericHandler_Impl(), and UpdateUI().
void SvxScriptSelectorDialog::LoadLastUsedMacro | ( | ) |
Definition at line 1319 of file cfgutil.cxx.
References SvtViewOptions::Exists(), weld::TreeView::expand_row(), weld::TreeView::get_iter_first(), weld::TreeView::get_text(), SvtViewOptions::GetUserItem(), i, weld::TreeView::iter_children(), weld::TreeView::iter_has_child(), weld::TreeView::iter_next_sibling(), LAST_RUN_MACRO_INFO, m_xCategories, m_xCommands, MACRO_SELECTOR_CONFIGNAME, weld::TreeView::make_iterator(), weld::TreeView::scroll_to_row(), weld::TreeView::select(), and sMacroName.
Referenced by SvxScriptSelectorDialog().
void SvxScriptSelectorDialog::SaveLastUsedMacro | ( | ) |
Definition at line 1298 of file cfgutil.cxx.
References Any, weld::TreeView::get_selected(), weld::TreeView::get_text(), weld::TreeView::iter_parent(), LAST_RUN_MACRO_INFO, m_xCategories, m_xCommands, MACRO_SELECTOR_CONFIGNAME, weld::TreeView::make_iterator(), and SvtViewOptions::SetUserItem().
void SvxScriptSelectorDialog::SetRunLabel | ( | ) |
Definition at line 1271 of file cfgutil.cxx.
References CuiResId(), and m_xOKButton.
|
private |
Definition at line 1241 of file cfgutil.cxx.
References GetScriptURL(), m_sDefaultDesc, m_xCommands, m_xDescriptionText, m_xOKButton, and sMessage.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 240 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 239 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog(), and UpdateUI().
|
private |
Definition at line 248 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 243 of file cfgutil.hxx.
Referenced by LoadLastUsedMacro(), SaveLastUsedMacro(), and SvxScriptSelectorDialog().
|
private |
Definition at line 244 of file cfgutil.hxx.
Referenced by GetScriptURL(), LoadLastUsedMacro(), SaveLastUsedMacro(), SvxScriptSelectorDialog(), and UpdateUI().
|
private |
Definition at line 250 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 249 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog(), and UpdateUI().
|
private |
Definition at line 242 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 245 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 246 of file cfgutil.hxx.
Referenced by SvxScriptSelectorDialog().
|
private |
Definition at line 247 of file cfgutil.hxx.
Referenced by SetRunLabel(), SvxScriptSelectorDialog(), and UpdateUI().