LibreOffice Module cui (master) 1
|
#include <scriptdlg.hxx>
Public Member Functions | |
SvxScriptOrgDialog (weld::Window *pParent, OUString language) | |
virtual | ~SvxScriptOrgDialog () override |
virtual short | run () override |
Public Member Functions inherited from SfxDialogController | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
virtual bool | CloseOnHide () const |
Private 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 (const weld::TreeIter &rEntry) |
void | renameEntry (const weld::TreeIter &rEntry) |
void | deleteEntry (const 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 (const weld::TreeIter &rIter) |
void | deleteAllTree () |
void | insertEntry (OUString const &rText, OUString const &rBitmap, const weld::TreeIter *pParent, bool bChildrenOnDemand, std::unique_ptr< SFEntry > &&aUserData, std::u16string_view 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 Private 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) |
Private Attributes | |
weld::Window * | m_pParent |
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 Private Attributes | |
static Selection_hash | m_lastSelection |
Definition at line 77 of file scriptdlg.hxx.
SvxScriptOrgDialog::SvxScriptOrgDialog | ( | weld::Window * | pParent, |
OUString | language | ||
) |
Definition at line 369 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 421 of file scriptdlg.cxx.
References deleteAllTree().
|
private |
Definition at line 445 of file scriptdlg.cxx.
References getBoolProperty(), m_xCreateButton, m_xDelButton, m_xEditButton, m_xRenameButton, m_xRunButton, and sName.
|
private |
Definition at line 697 of file scriptdlg.cxx.
References Any, args, Application::CreateMessageDialog(), Exception, getBrowseNode(), getModel(), CuiInputDialog::GetObjectName(), i, insertEntry(), SFEntry::isLoaded(), m_createDupStr, m_createErrStr, m_createErrTitleStr, m_xDialog, m_xScriptsBox, n, NEWLIB, NEWMACRO, weld::DialogController::run(), SFEntry::setLoaded(), CuiInputDialog::SetObjectName(), and TOOLS_WARN_EXCEPTION.
|
private |
|
private |
|
private |
|
private |
Definition at line 99 of file scriptdlg.cxx.
References deleteTree(), and m_xScriptsBox.
Referenced by Init(), and ~SvxScriptOrgDialog().
|
private |
Definition at line 925 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.
|
private |
Definition at line 79 of file scriptdlg.cxx.
References deleteTree(), delUserData(), and m_xScriptsBox.
Referenced by deleteAllTree(), deleteEntry(), and deleteTree().
|
private |
|
staticprivate |
Definition at line 972 of file scriptdlg.cxx.
References Exception, and result.
Referenced by CheckButtons().
|
private |
Definition at line 675 of file scriptdlg.cxx.
References SFEntry::GetNode(), and m_xScriptsBox.
Referenced by createEntry(), deleteEntry(), and renameEntry().
|
staticprivate |
|
staticprivate |
Definition at line 230 of file scriptdlg.cxx.
References Exception, and comphelper::NoEnableJavaInteractionContext().
Referenced by Init().
|
private |
Definition at line 987 of file scriptdlg.cxx.
References Exception, getListOfChildren(), i, n, and result.
Referenced by deleteEntry(), and getListOfChildren().
|
private |
Definition at line 686 of file scriptdlg.cxx.
References SFEntry::GetModel(), and m_xScriptsBox.
Referenced by createEntry().
|
private |
Definition at line 119 of file scriptdlg.cxx.
References deleteAllTree(), Exception, getDocumentModel(), getLangNodeFromRootNode(), comphelper::getProcessComponentContext(), insertEntry(), m_sMyMacros, m_sProdMacros, m_xScriptsBox, and TOOLS_WARN_EXCEPTION.
Referenced by SvxScriptOrgDialog().
|
private |
Definition at line 308 of file scriptdlg.cxx.
References m_xScratchIter, m_xScriptsBox, sId, and weld::toId().
|
private |
Definition at line 295 of file scriptdlg.cxx.
References SvFileInformationManager::GetFileImageId(), and insertEntry().
Referenced by createEntry(), Init(), insertEntry(), and RequestSubEntries().
|
private |
Definition at line 869 of file scriptdlg.cxx.
References Any, args, Application::CreateMessageDialog(), Exception, getBrowseNode(), CuiInputDialog::GetObjectName(), m_renameErrStr, m_renameErrTitleStr, m_xDialog, m_xScriptsBox, RENAME, weld::DialogController::run(), CuiInputDialog::SetObjectName(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 263 of file scriptdlg.cxx.
References Exception, insertEntry(), and name.
|
private |
Definition at line 1037 of file scriptdlg.cxx.
References o3tl::getToken(), m_lastSelection, m_sLanguage, m_xScriptsBox, and nIndex.
Referenced by SvxScriptOrgDialog().
|
overridevirtual |
Definition at line 426 of file scriptdlg.cxx.
References SfxObjectShell::GetFirst(), SfxObjectShell::GetModel(), and SfxObjectShell::GetNext().
|
private |
Definition at line 1018 of file scriptdlg.cxx.
References m_lastSelection, m_sLanguage, and m_xScriptsBox.
|
private |
Definition at line 87 of file scriptdlg.hxx.
Referenced by createEntry().
|
private |
Definition at line 86 of file scriptdlg.hxx.
Referenced by createEntry().
|
private |
Definition at line 88 of file scriptdlg.hxx.
Referenced by createEntry().
|
private |
Definition at line 82 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
private |
Definition at line 83 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
private |
Definition at line 84 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
private |
Definition at line 85 of file scriptdlg.hxx.
Referenced by deleteEntry().
|
staticprivate |
Definition at line 81 of file scriptdlg.hxx.
Referenced by RestorePreviousSelection(), and StoreCurrentSelection().
|
private |
Definition at line 79 of file scriptdlg.hxx.
|
private |
Definition at line 89 of file scriptdlg.hxx.
Referenced by renameEntry().
|
private |
Definition at line 90 of file scriptdlg.hxx.
Referenced by renameEntry().
|
private |
Definition at line 80 of file scriptdlg.hxx.
Referenced by RestorePreviousSelection(), StoreCurrentSelection(), and SvxScriptOrgDialog().
|
private |
Definition at line 91 of file scriptdlg.hxx.
Referenced by Init().
|
private |
Definition at line 92 of file scriptdlg.hxx.
Referenced by Init().
|
private |
Definition at line 97 of file scriptdlg.hxx.
Referenced by SvxScriptOrgDialog().
|
private |
Definition at line 98 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
private |
Definition at line 101 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
private |
Definition at line 99 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
private |
Definition at line 100 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
private |
Definition at line 96 of file scriptdlg.hxx.
Referenced by CheckButtons(), and SvxScriptOrgDialog().
|
private |
Definition at line 95 of file scriptdlg.hxx.
Referenced by insertEntry().
|
private |
Definition at line 94 of file scriptdlg.hxx.
Referenced by createEntry(), deleteAllTree(), deleteEntry(), deleteTree(), delUserData(), getBrowseNode(), getModel(), Init(), insertEntry(), renameEntry(), RestorePreviousSelection(), StoreCurrentSelection(), and SvxScriptOrgDialog().