LibreOffice Module cui (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected 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 OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 

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 (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 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

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 Protected 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 426 of file scriptdlg.cxx.

References deleteAllTree().

Member Function Documentation

◆ CheckButtons()

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

◆ createEntry()

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

◆ DECL_LINK() [1/3]

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

◆ DECL_LINK() [2/3]

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

◆ DECL_LINK() [3/3]

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

◆ deleteAllTree()

void SvxScriptOrgDialog::deleteAllTree ( )
protected

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)
protected

◆ deleteTree()

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

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)
protected

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 
)
staticprotected

Definition at line 977 of file scriptdlg.cxx.

References Exception, and result.

Referenced by CheckButtons().

◆ getBrowseNode()

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

Definition at line 680 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 
)
staticprotected

Definition at line 208 of file scriptdlg.cxx.

References model, and xModel.

Referenced by Init().

◆ getLangNodeFromRootNode()

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

Definition at line 235 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 
)
protected

Definition at line 992 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)
protected

Definition at line 691 of file scriptdlg.cxx.

References SFEntry::GetModel(), m_xScriptsBox, and model.

Referenced by createEntry().

◆ Init()

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

◆ 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 
)
protected

Definition at line 313 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 
)
protected

◆ renameEntry()

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

◆ RequestSubEntries()

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

Definition at line 268 of file scriptdlg.cxx.

References Exception, insertEntry(), model, and name.

◆ RestorePreviousSelection()

void SvxScriptOrgDialog::RestorePreviousSelection ( )
protected

Definition at line 1042 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 ( )
protected

Definition at line 1023 of file scriptdlg.cxx.

References m_lastSelection, m_sLanguage, and m_xScriptsBox.

Member Data Documentation

◆ m_createDupStr

const OUString SvxScriptOrgDialog::m_createDupStr
protected

Definition at line 88 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_createErrStr

const OUString SvxScriptOrgDialog::m_createErrStr
protected

Definition at line 87 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_createErrTitleStr

const OUString SvxScriptOrgDialog::m_createErrTitleStr
protected

Definition at line 89 of file scriptdlg.hxx.

Referenced by createEntry().

◆ m_delErrStr

const OUString SvxScriptOrgDialog::m_delErrStr
protected

Definition at line 83 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delErrTitleStr

const OUString SvxScriptOrgDialog::m_delErrTitleStr
protected

Definition at line 84 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delQueryStr

const OUString SvxScriptOrgDialog::m_delQueryStr
protected

Definition at line 85 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_delQueryTitleStr

const OUString SvxScriptOrgDialog::m_delQueryTitleStr
protected

Definition at line 86 of file scriptdlg.hxx.

Referenced by deleteEntry().

◆ m_lastSelection

Selection_hash SvxScriptOrgDialog::m_lastSelection
staticprotected

Definition at line 82 of file scriptdlg.hxx.

Referenced by RestorePreviousSelection(), and StoreCurrentSelection().

◆ m_pParent

weld::Window* SvxScriptOrgDialog::m_pParent
protected

Definition at line 80 of file scriptdlg.hxx.

◆ m_renameErrStr

const OUString SvxScriptOrgDialog::m_renameErrStr
protected

Definition at line 90 of file scriptdlg.hxx.

Referenced by renameEntry().

◆ m_renameErrTitleStr

const OUString SvxScriptOrgDialog::m_renameErrTitleStr
protected

Definition at line 91 of file scriptdlg.hxx.

Referenced by renameEntry().

◆ m_sLanguage

OUString SvxScriptOrgDialog::m_sLanguage
protected

◆ m_sMyMacros

const OUString SvxScriptOrgDialog::m_sMyMacros
protected

Definition at line 92 of file scriptdlg.hxx.

Referenced by Init().

◆ m_sProdMacros

const OUString SvxScriptOrgDialog::m_sProdMacros
protected

Definition at line 93 of file scriptdlg.hxx.

Referenced by Init().

◆ m_xCloseButton

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

Definition at line 98 of file scriptdlg.hxx.

Referenced by SvxScriptOrgDialog().

◆ m_xCreateButton

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

Definition at line 99 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xDelButton

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

Definition at line 102 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xEditButton

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

Definition at line 100 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xRenameButton

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

Definition at line 101 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xRunButton

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

Definition at line 97 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

◆ m_xScratchIter

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

Definition at line 96 of file scriptdlg.hxx.

Referenced by insertEntry().

◆ m_xScriptsBox

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

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