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, const 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 ()
 

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 (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 (const OUString &language)
 
void delUserData (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, OUString const &language)
 
static css::uno::Reference< css::uno::XInterface > getDocumentModel (css::uno::Reference< css::uno::XComponentContext > const &xCtx, OUString const &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::TreeViewm_xScriptsBox
 
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 78 of file scriptdlg.hxx.

Constructor & Destructor Documentation

SvxScriptOrgDialog::SvxScriptOrgDialog ( weld::Window pParent,
const OUString &  language 
)
SvxScriptOrgDialog::~SvxScriptOrgDialog ( )
overridevirtual

Definition at line 426 of file scriptdlg.cxx.

References deleteAllTree().

Member Function Documentation

void SvxScriptOrgDialog::CheckButtons ( css::uno::Reference< css::script::browse::XBrowseNode > const &  node)
protected
void SvxScriptOrgDialog::createEntry ( weld::TreeIter rEntry)
protected
SvxScriptOrgDialog::DECL_LINK ( ScriptSelectHdl  ,
weld::TreeView ,
void   
)
protected
SvxScriptOrgDialog::DECL_LINK ( ExpandingHdl  ,
const weld::TreeIter ,
bool   
)
protected
SvxScriptOrgDialog::DECL_LINK ( ButtonHdl  ,
weld::Button ,
void   
)
protected
void SvxScriptOrgDialog::deleteAllTree ( )
protected

Definition at line 106 of file scriptdlg.cxx.

Referenced by ~SvxScriptOrgDialog().

void SvxScriptOrgDialog::deleteEntry ( weld::TreeIter rEntry)
protected
void SvxScriptOrgDialog::deleteTree ( weld::TreeIter rIter)
protected

Definition at line 86 of file scriptdlg.cxx.

Referenced by deleteEntry().

void SvxScriptOrgDialog::delUserData ( weld::TreeIter rIter)
protected

Definition at line 72 of file scriptdlg.cxx.

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

Definition at line 984 of file scriptdlg.cxx.

References Exception, and result.

Referenced by CheckButtons().

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

Definition at line 681 of file scriptdlg.cxx.

References SFEntry::GetNode(), and m_xScriptsBox.

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

Reference< XInterface > SvxScriptOrgDialog::getDocumentModel ( css::uno::Reference< css::uno::XComponentContext > const &  xCtx,
OUString const &  docName 
)
staticprotected

Definition at line 217 of file scriptdlg.cxx.

References model, and xModel.

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

Definition at line 244 of file scriptdlg.cxx.

References Exception.

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

Definition at line 999 of file scriptdlg.cxx.

References Exception, i, and result.

Referenced by deleteEntry().

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

Definition at line 692 of file scriptdlg.cxx.

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

Referenced by createEntry().

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

Referenced by createEntry().

void SvxScriptOrgDialog::insertEntry ( OUString const &  rText,
OUString const &  rBitmap,
const weld::TreeIter pParent,
bool  bChildrenOnDemand,
std::unique_ptr< SFEntry > &&  aUserData,
bool  bSelect 
)
protected
void SvxScriptOrgDialog::renameEntry ( weld::TreeIter rEntry)
protected
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, getType(), and name.

void SvxScriptOrgDialog::RestorePreviousSelection ( )
protected

Definition at line 1049 of file scriptdlg.cxx.

References m_lastSelection, m_sLanguage, and m_xScriptsBox.

Referenced by SvxScriptOrgDialog().

short SvxScriptOrgDialog::run ( )
overridevirtual
void SvxScriptOrgDialog::StoreCurrentSelection ( )
protected

Definition at line 1030 of file scriptdlg.cxx.

References m_lastSelection, m_sLanguage, and m_xScriptsBox.

Member Data Documentation

const OUString SvxScriptOrgDialog::m_createDupStr
protected

Definition at line 88 of file scriptdlg.hxx.

Referenced by createEntry().

const OUString SvxScriptOrgDialog::m_createErrStr
protected

Definition at line 87 of file scriptdlg.hxx.

Referenced by createEntry().

const OUString SvxScriptOrgDialog::m_createErrTitleStr
protected

Definition at line 89 of file scriptdlg.hxx.

Referenced by createEntry().

const OUString SvxScriptOrgDialog::m_delErrStr
protected

Definition at line 83 of file scriptdlg.hxx.

Referenced by deleteEntry().

const OUString SvxScriptOrgDialog::m_delErrTitleStr
protected

Definition at line 84 of file scriptdlg.hxx.

Referenced by deleteEntry().

const OUString SvxScriptOrgDialog::m_delQueryStr
protected

Definition at line 85 of file scriptdlg.hxx.

Referenced by deleteEntry().

const OUString SvxScriptOrgDialog::m_delQueryTitleStr
protected

Definition at line 86 of file scriptdlg.hxx.

Referenced by deleteEntry().

Selection_hash SvxScriptOrgDialog::m_lastSelection
staticprotected

Definition at line 82 of file scriptdlg.hxx.

Referenced by RestorePreviousSelection(), and StoreCurrentSelection().

const OUString SvxScriptOrgDialog::m_renameErrStr
protected

Definition at line 90 of file scriptdlg.hxx.

Referenced by renameEntry().

const OUString SvxScriptOrgDialog::m_renameErrTitleStr
protected

Definition at line 91 of file scriptdlg.hxx.

Referenced by renameEntry().

OUString SvxScriptOrgDialog::m_sLanguage
protected
const OUString SvxScriptOrgDialog::m_sMyMacros
protected

Definition at line 92 of file scriptdlg.hxx.

const OUString SvxScriptOrgDialog::m_sProdMacros
protected

Definition at line 93 of file scriptdlg.hxx.

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

Definition at line 97 of file scriptdlg.hxx.

Referenced by SvxScriptOrgDialog().

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

Definition at line 98 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

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

Definition at line 101 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

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

Definition at line 99 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

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

Definition at line 100 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

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

Definition at line 96 of file scriptdlg.hxx.

Referenced by CheckButtons(), and SvxScriptOrgDialog().

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

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