LibreOffice Module cui (master)
1
|
#include <scriptdlg.hxx>
Public Member Functions | |
SvxScriptOrgDialog (weld::Window *pParent, const OUString &language) | |
virtual | ~SvxScriptOrgDialog () override |
virtual short | run () override |
![]() | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog () |
Protected Member Functions | |
DECL_LINK (ScriptSelectHdl, weld::TreeView &, void) | |
DECL_LINK (ExpandingHdl, const weld::TreeIter &, bool) | |
DECL_LINK (ButtonHdl, weld::Button &, void) | |
void | CheckButtons (css::uno::Reference< css::script::browse::XBrowseNode > const &node) |
void | createEntry (weld::TreeIter &rEntry) |
void | renameEntry (const weld::TreeIter &rEntry) |
void | deleteEntry (weld::TreeIter &rEntry) |
css::uno::Reference< css::script::browse::XBrowseNode > | getBrowseNode (const weld::TreeIter &rEntry) |
css::uno::Reference< css::frame::XModel > | getModel (const weld::TreeIter &rEntry) |
OUString | getListOfChildren (const css::uno::Reference< css::script::browse::XBrowseNode > &node, int depth) |
void | StoreCurrentSelection () |
void | RestorePreviousSelection () |
void | Init (std::u16string_view language) |
void | delUserData (const weld::TreeIter &rIter) |
void | deleteTree (weld::TreeIter &rIter) |
void | deleteAllTree () |
void | insertEntry (OUString const &rText, OUString const &rBitmap, const weld::TreeIter *pParent, bool bChildrenOnDemand, std::unique_ptr< SFEntry > &&aUserData, const OUString &factoryURL, bool bSelect) |
void | insertEntry (OUString const &rText, OUString const &rBitmap, const weld::TreeIter *pParent, bool bChildrenOnDemand, std::unique_ptr< SFEntry > &&aUserData, bool bSelect) |
void | RequestSubEntries (const weld::TreeIter &rRootEntry, css::uno::Reference< css::script::browse::XBrowseNode > const &node, css::uno::Reference< css::frame::XModel > &model) |
Static Protected Member Functions | |
static bool | getBoolProperty (css::uno::Reference< css::beans::XPropertySet > const &xProps, OUString const &propName) |
static css::uno::Reference< css::script::browse::XBrowseNode > | getLangNodeFromRootNode (css::uno::Reference< css::script::browse::XBrowseNode > const &root, std::u16string_view language) |
static css::uno::Reference< css::uno::XInterface > | getDocumentModel (css::uno::Reference< css::uno::XComponentContext > const &xCtx, std::u16string_view docName) |
Protected Attributes | |
OUString | m_sLanguage |
const OUString | m_delErrStr |
const OUString | m_delErrTitleStr |
const OUString | m_delQueryStr |
const OUString | m_delQueryTitleStr |
const OUString | m_createErrStr |
const OUString | m_createDupStr |
const OUString | m_createErrTitleStr |
const OUString | m_renameErrStr |
const OUString | m_renameErrTitleStr |
const OUString | m_sMyMacros |
const OUString | m_sProdMacros |
std::unique_ptr< weld::TreeView > | m_xScriptsBox |
std::unique_ptr< weld::TreeIter > | m_xScratchIter |
std::unique_ptr< weld::Button > | m_xRunButton |
std::unique_ptr< weld::Button > | m_xCloseButton |
std::unique_ptr< weld::Button > | m_xCreateButton |
std::unique_ptr< weld::Button > | m_xEditButton |
std::unique_ptr< weld::Button > | m_xRenameButton |
std::unique_ptr< weld::Button > | m_xDelButton |
Static Protected Attributes | |
static Selection_hash | m_lastSelection |
Definition at line 77 of file scriptdlg.hxx.
SvxScriptOrgDialog::SvxScriptOrgDialog | ( | weld::Window * | pParent, |
const OUString & | language | ||
) |
Definition at line 372 of file scriptdlg.cxx.
References Init(), LINK, m_sLanguage, m_xCloseButton, m_xCreateButton, m_xDelButton, m_xDialog, m_xEditButton, m_xRenameButton, m_xRunButton, m_xScriptsBox, and RestorePreviousSelection().
|
overridevirtual |
Definition at line 423 of file scriptdlg.cxx.
References deleteAllTree().
|
protected |
Definition at line 447 of file scriptdlg.cxx.
References getBoolProperty(), m_xCreateButton, m_xDelButton, m_xEditButton, m_xRenameButton, m_xRunButton, and sName.
|
protected |
Definition at line 699 of file scriptdlg.cxx.
References Any, args, Application::CreateMessageDialog(), Exception, getBrowseNode(), getModel(), i, insertEntry(), SFEntry::isLoaded(), m_createDupStr, m_createErrStr, m_createErrTitleStr, m_xDialog, m_xScriptsBox, n, NEWLIB, NEWMACRO, SFEntry::setLoaded(), CuiInputDialog::SetObjectName(), and TOOLS_WARN_EXCEPTION.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 97 of file scriptdlg.cxx.
Referenced by ~SvxScriptOrgDialog().
|
protected |
Definition at line 929 of file scriptdlg.cxx.
References Any, args, Application::CreateMessageDialog(), deleteTree(), Exception, getBrowseNode(), getListOfChildren(), m_delErrStr, m_delErrTitleStr, m_delQueryStr, m_delQueryTitleStr, m_xDialog, m_xScriptsBox, result, RET_NO, and TOOLS_WARN_EXCEPTION.
|
protected |
Definition at line 77 of file scriptdlg.cxx.
Referenced by deleteEntry().
|
protected |
Definition at line 63 of file scriptdlg.cxx.
|
staticprotected |
Definition at line 976 of file scriptdlg.cxx.
References Exception, and result.
Referenced by CheckButtons().
|
protected |
Definition at line 677 of file scriptdlg.cxx.
References SFEntry::GetNode(), and m_xScriptsBox.
Referenced by createEntry(), deleteEntry(), and renameEntry().
|
staticprotected |
Definition at line 206 of file scriptdlg.cxx.
|
staticprotected |
Definition at line 233 of file scriptdlg.cxx.
References Exception, and comphelper::NoEnableJavaInteractionContext().
|
protected |
Definition at line 991 of file scriptdlg.cxx.
References Exception, i, n, and result.
Referenced by deleteEntry().
|
protected |
Definition at line 688 of file scriptdlg.cxx.
References SFEntry::GetModel(), m_xScriptsBox, and model.
Referenced by createEntry().
|
protected |
Definition at line 117 of file scriptdlg.cxx.
References Exception, getDocumentModel(), comphelper::getProcessComponentContext(), and TOOLS_WARN_EXCEPTION.
Referenced by SvxScriptOrgDialog().
|
protected |
Referenced by createEntry().
|
protected |
|
protected |
Definition at line 872 of file scriptdlg.cxx.
References Any, args, Application::CreateMessageDialog(), Exception, getBrowseNode(), m_renameErrStr, m_renameErrTitleStr, m_xDialog, m_xScriptsBox, RENAME, CuiInputDialog::SetObjectName(), and TOOLS_WARN_EXCEPTION.
|
protected |
Definition at line 266 of file scriptdlg.cxx.
|
protected |
Definition at line 1041 of file scriptdlg.cxx.
References m_lastSelection, m_sLanguage, m_xScriptsBox, and nIndex.
Referenced by SvxScriptOrgDialog().
|
overridevirtual |
Definition at line 428 of file scriptdlg.cxx.
References SfxObjectShell::GetFirst(), SfxObjectShell::GetModel(), and SfxObjectShell::GetNext().
|
protected |
Definition at line 1022 of file scriptdlg.cxx.
References m_lastSelection, m_sLanguage, and m_xScriptsBox.
|
protected |
Definition at line 87 of file scriptdlg.hxx.
Referenced by createEntry().
|
protected |
Definition at line 86 of file scriptdlg.hxx.
Referenced by createEntry().
|
protected |
Definition at line 88 of file scriptdlg.hxx.
Referenced by createEntry().
|
protected |
Definition at line 82 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
protected |
Definition at line 83 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
protected |
Definition at line 84 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
protected |
Definition at line 85 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
staticprotected |
Definition at line 81 of file scriptdlg.hxx.
Referenced by RestorePreviousSelection(), and StoreCurrentSelection().
|
protected |
Definition at line 89 of file scriptdlg.hxx.
Referenced by renameEntry().
|
protected |
Definition at line 90 of file scriptdlg.hxx.
Referenced by renameEntry().
|
protected |
Definition at line 80 of file scriptdlg.hxx.
Referenced by RestorePreviousSelection(), StoreCurrentSelection(), and SvxScriptOrgDialog().
|
protected |
Definition at line 91 of file scriptdlg.hxx.
|
protected |
Definition at line 92 of file scriptdlg.hxx.
|
protected |
Definition at line 97 of file scriptdlg.hxx.
Referenced by SvxScriptOrgDialog().
|
protected |
Definition at line 98 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
protected |
Definition at line 101 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
protected |
Definition at line 99 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
protected |
Definition at line 100 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
protected |
Definition at line 96 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
protected |
Definition at line 95 of file scriptdlg.hxx.
|
protected |
Definition at line 94 of file scriptdlg.hxx.
Referenced by createEntry(), deleteEntry(), getBrowseNode(), getModel(), renameEntry(), RestorePreviousSelection(), StoreCurrentSelection(), and SvxScriptOrgDialog().