LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SvxScriptOrgDialog Class Reference

#include <scriptdlg.hxx>

Inheritance diagram for SvxScriptOrgDialog:
[legend]
Collaboration diagram for SvxScriptOrgDialog:
[legend]

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::Windowm_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::TreeViewm_xScriptsBox
 
std::unique_ptr< weld::TreeIterm_xScratchIter
 
std::unique_ptr< weld::Buttonm_xRunButton
 
std::unique_ptr< weld::Buttonm_xCloseButton
 
std::unique_ptr< weld::Buttonm_xCreateButton
 
std::unique_ptr< weld::Buttonm_xEditButton
 
std::unique_ptr< weld::Buttonm_xRenameButton
 
std::unique_ptr< weld::Buttonm_xDelButton
 

Static Private Attributes

static Selection_hash m_lastSelection
 

Detailed Description

Definition at line 77 of file scriptdlg.hxx.

Constructor & Destructor Documentation

◆ SvxScriptOrgDialog()

SvxScriptOrgDialog::SvxScriptOrgDialog ( weld::Window pParent,
OUString  language 
)

◆ ~SvxScriptOrgDialog()

SvxScriptOrgDialog::~SvxScriptOrgDialog ( )
overridevirtual

Definition at line 421 of file scriptdlg.cxx.

References deleteAllTree().

Member Function Documentation

◆ CheckButtons()

void SvxScriptOrgDialog::CheckButtons ( css::uno::Reference< css::script::browse::XBrowseNode > const &  node)
private

◆ createEntry()

void SvxScriptOrgDialog::createEntry ( const weld::TreeIter rEntry)
private

◆ DECL_LINK() [1/3]

SvxScriptOrgDialog::DECL_LINK ( ButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/3]

SvxScriptOrgDialog::DECL_LINK ( ExpandingHdl  ,
const weld::TreeIter ,
bool   
)
private

◆ DECL_LINK() [3/3]

SvxScriptOrgDialog::DECL_LINK ( ScriptSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ deleteAllTree()

void SvxScriptOrgDialog::deleteAllTree ( )
private

Definition at line 99 of file scriptdlg.cxx.

References deleteTree(), and m_xScriptsBox.

Referenced by Init(), and ~SvxScriptOrgDialog().

◆ deleteEntry()

void SvxScriptOrgDialog::deleteEntry ( const weld::TreeIter rEntry)
private

◆ deleteTree()

void SvxScriptOrgDialog::deleteTree ( const weld::TreeIter rIter)
private

Definition at line 79 of file scriptdlg.cxx.

References deleteTree(), delUserData(), and m_xScriptsBox.

Referenced by deleteAllTree(), deleteEntry(), and deleteTree().

◆ delUserData()

void SvxScriptOrgDialog::delUserData ( const weld::TreeIter rIter)
private

Definition at line 65 of file scriptdlg.cxx.

References m_xScriptsBox.

Referenced by deleteTree().

◆ getBoolProperty()

bool SvxScriptOrgDialog::getBoolProperty ( css::uno::Reference< css::beans::XPropertySet > const &  xProps,
OUString const &  propName 
)
staticprivate

Definition at line 972 of file scriptdlg.cxx.

References Exception, and result.

Referenced by CheckButtons().

◆ getBrowseNode()

Reference< browse::XBrowseNode > SvxScriptOrgDialog::getBrowseNode ( const weld::TreeIter rEntry)
private

Definition at line 675 of file scriptdlg.cxx.

References SFEntry::GetNode(), and m_xScriptsBox.

Referenced by createEntry(), deleteEntry(), and renameEntry().

◆ getDocumentModel()

Reference< XInterface > SvxScriptOrgDialog::getDocumentModel ( css::uno::Reference< css::uno::XComponentContext > const &  xCtx,
std::u16string_view  docName 
)
staticprivate

Definition at line 203 of file scriptdlg.cxx.

References xModel.

Referenced by Init().

◆ getLangNodeFromRootNode()

Reference< browse::XBrowseNode > SvxScriptOrgDialog::getLangNodeFromRootNode ( css::uno::Reference< css::script::browse::XBrowseNode > const &  root,
std::u16string_view  language 
)
staticprivate

Definition at line 230 of file scriptdlg.cxx.

References Exception, and comphelper::NoEnableJavaInteractionContext().

Referenced by Init().

◆ getListOfChildren()

OUString SvxScriptOrgDialog::getListOfChildren ( const css::uno::Reference< css::script::browse::XBrowseNode > &  node,
int  depth 
)
private

Definition at line 987 of file scriptdlg.cxx.

References Exception, getListOfChildren(), i, n, and result.

Referenced by deleteEntry(), and getListOfChildren().

◆ getModel()

Reference< XModel > SvxScriptOrgDialog::getModel ( const weld::TreeIter rEntry)
private

Definition at line 686 of file scriptdlg.cxx.

References SFEntry::GetModel(), and m_xScriptsBox.

Referenced by createEntry().

◆ Init()

void SvxScriptOrgDialog::Init ( std::u16string_view  language)
private

◆ insertEntry() [1/2]

void SvxScriptOrgDialog::insertEntry ( OUString const &  rText,
OUString const &  rBitmap,
const weld::TreeIter pParent,
bool  bChildrenOnDemand,
std::unique_ptr< SFEntry > &&  aUserData,
bool  bSelect 
)
private

Definition at line 308 of file scriptdlg.cxx.

References m_xScratchIter, m_xScriptsBox, sId, and weld::toId().

◆ insertEntry() [2/2]

void SvxScriptOrgDialog::insertEntry ( OUString const &  rText,
OUString const &  rBitmap,
const weld::TreeIter pParent,
bool  bChildrenOnDemand,
std::unique_ptr< SFEntry > &&  aUserData,
std::u16string_view  factoryURL,
bool  bSelect 
)
private

◆ renameEntry()

void SvxScriptOrgDialog::renameEntry ( const weld::TreeIter rEntry)
private

◆ RequestSubEntries()

void SvxScriptOrgDialog::RequestSubEntries ( const weld::TreeIter rRootEntry,
css::uno::Reference< css::script::browse::XBrowseNode > const &  node,
css::uno::Reference< css::frame::XModel > &  model 
)
private

Definition at line 263 of file scriptdlg.cxx.

References Exception, insertEntry(), and name.

◆ RestorePreviousSelection()

void SvxScriptOrgDialog::RestorePreviousSelection ( )
private

Definition at line 1037 of file scriptdlg.cxx.

References o3tl::getToken(), m_lastSelection, m_sLanguage, m_xScriptsBox, and nIndex.

Referenced by SvxScriptOrgDialog().

◆ run()

short SvxScriptOrgDialog::run ( )
overridevirtual

◆ StoreCurrentSelection()

void SvxScriptOrgDialog::StoreCurrentSelection ( )
private

Definition at line 1018 of file scriptdlg.cxx.

References m_lastSelection, m_sLanguage, and m_xScriptsBox.

Member Data Documentation

◆ m_createDupStr

const OUString SvxScriptOrgDialog::m_createDupStr
private

Definition at line 87 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_createErrStr

const OUString SvxScriptOrgDialog::m_createErrStr
private

Definition at line 86 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_createErrTitleStr

const OUString SvxScriptOrgDialog::m_createErrTitleStr
private

Definition at line 88 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_delErrStr

const OUString SvxScriptOrgDialog::m_delErrStr
private

Definition at line 82 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delErrTitleStr

const OUString SvxScriptOrgDialog::m_delErrTitleStr
private

Definition at line 83 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delQueryStr

const OUString SvxScriptOrgDialog::m_delQueryStr
private

Definition at line 84 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delQueryTitleStr

const OUString SvxScriptOrgDialog::m_delQueryTitleStr
private

Definition at line 85 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_lastSelection

Selection_hash SvxScriptOrgDialog::m_lastSelection
staticprivate

Definition at line 81 of file scriptdlg.hxx.

Referenced by RestorePreviousSelection(), and StoreCurrentSelection().

◆ m_pParent

weld::Window* SvxScriptOrgDialog::m_pParent
private

Definition at line 79 of file scriptdlg.hxx.

◆ m_renameErrStr

const OUString SvxScriptOrgDialog::m_renameErrStr
private

Definition at line 89 of file scriptdlg.hxx.

Referenced by renameEntry().

◆ m_renameErrTitleStr

const OUString SvxScriptOrgDialog::m_renameErrTitleStr
private

Definition at line 90 of file scriptdlg.hxx.

Referenced by renameEntry().

◆ m_sLanguage

OUString SvxScriptOrgDialog::m_sLanguage
private

◆ m_sMyMacros

const OUString SvxScriptOrgDialog::m_sMyMacros
private

Definition at line 91 of file scriptdlg.hxx.

Referenced by Init().

◆ m_sProdMacros

const OUString SvxScriptOrgDialog::m_sProdMacros
private

Definition at line 92 of file scriptdlg.hxx.

Referenced by Init().

◆ m_xCloseButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xCloseButton
private

Definition at line 97 of file scriptdlg.hxx.

Referenced by SvxScriptOrgDialog().

◆ m_xCreateButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xCreateButton
private

Definition at line 98 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xDelButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xDelButton
private

Definition at line 101 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xEditButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xEditButton
private

Definition at line 99 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xRenameButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xRenameButton
private

Definition at line 100 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xRunButton

std::unique_ptr<weld::Button> SvxScriptOrgDialog::m_xRunButton
private

Definition at line 96 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xScratchIter

std::unique_ptr<weld::TreeIter> SvxScriptOrgDialog::m_xScratchIter
private

Definition at line 95 of file scriptdlg.hxx.

Referenced by insertEntry().

◆ m_xScriptsBox

std::unique_ptr<weld::TreeView> SvxScriptOrgDialog::m_xScriptsBox
private

The documentation for this class was generated from the following files: