LibreOffice Module desktop (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
dp_gui::TheExtensionManager Class Reference

#include <dp_gui_theextmgr.hxx>

Inheritance diagram for dp_gui::TheExtensionManager:
[legend]
Collaboration diagram for dp_gui::TheExtensionManager:
[legend]

Public Member Functions

 TheExtensionManager (css::uno::Reference< css::awt::XWindow > xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~TheExtensionManager () override
 
void createDialog (const bool bCreateUpdDlg)
 
sal_Int16 execute ()
 
bool isModified () const
 
void clearModified ()
 
weld::WindowgetDialog ()
 
DialogHelpergetDialogHelper ()
 
ExtensionCmdQueuegetCmdQueue () const
 
void SetText (const OUString &rTitle)
 
void Show ()
 
void ToTop ()
 
void Close ()
 
bool isVisible ()
 
void checkUpdates ()
 
bool installPackage (const OUString &rPackageURL, bool bWarnUser=false)
 
void createPackageList ()
 
void terminateDialog ()
 
bool supportsOptions (const css::uno::Reference< css::deployment::XPackage > &xPackage) const
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
const css::uno::Reference< css::deployment::XExtensionManager > & getExtensionManager () const
 
bool isReadOnly (const css::uno::Reference< css::deployment::XPackage > &xPackage) const
 
static ::rtl::Reference< TheExtensionManagerget (css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::awt::XWindow > const &xParent=nullptr, OUString const &view=OUString())
 
virtual void SAL_CALL disposing (css::lang::EventObject const &evt) override
 
virtual void SAL_CALL queryTermination (css::lang::EventObject const &evt) override
 
virtual void SAL_CALL notifyTermination (css::lang::EventObject const &evt) override
 
virtual void SAL_CALL modified (css::lang::EventObject const &evt) override
 

Static Public Member Functions

static PackageState getPackageState (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 

Public Attributes

static ::rtl::Reference< TheExtensionManagers_ExtMgr
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop
 
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager
 
css::uno::Reference< css::container::XNameAccess > m_xNameAccessNodes
 
css::uno::Reference< css::awt::XWindow > m_xParent
 
std::shared_ptr< ExtMgrDialogm_xExtMgrDialog
 
std::unique_ptr< UpdateRequiredDialogm_xUpdReqDialog
 
std::unique_ptr< ExtensionCmdQueuem_xExecuteCmdQueue
 
OUString m_sGetExtensionsURL
 
bool m_bModified
 
bool m_bExtMgrDialogExecuting
 

Detailed Description

Definition at line 41 of file dp_gui_theextmgr.hxx.

Constructor & Destructor Documentation

◆ TheExtensionManager()

dp_gui::TheExtensionManager::TheExtensionManager ( css::uno::Reference< css::awt::XWindow >  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext 
)

◆ ~TheExtensionManager()

dp_gui::TheExtensionManager::~TheExtensionManager ( )
overridevirtual

Member Function Documentation

◆ checkUpdates()

void dp_gui::TheExtensionManager::checkUpdates ( )

◆ clearModified()

void dp_gui::TheExtensionManager::clearModified ( )
inline

Definition at line 70 of file dp_gui_theextmgr.hxx.

References m_bModified.

Referenced by queryTermination().

◆ Close()

void dp_gui::TheExtensionManager::Close ( )

◆ createDialog()

void dp_gui::TheExtensionManager::createDialog ( const bool  bCreateUpdDlg)

◆ createPackageList()

void dp_gui::TheExtensionManager::createPackageList ( )

◆ disposing()

void dp_gui::TheExtensionManager::disposing ( css::lang::EventObject const &  evt)
overridevirtual

◆ execute()

sal_Int16 dp_gui::TheExtensionManager::execute ( )

Definition at line 187 of file dp_gui_theextmgr.cxx.

References m_xUpdReqDialog.

◆ get()

rtl::Reference< TheExtensionManager > dp_gui::TheExtensionManager::get ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
css::uno::Reference< css::awt::XWindow > const &  xParent = nullptr,
OUString const &  view = OUString() 
)

◆ getCmdQueue()

ExtensionCmdQueue * dp_gui::TheExtensionManager::getCmdQueue ( ) const
inline

◆ getContext()

const css::uno::Reference< css::uno::XComponentContext > & dp_gui::TheExtensionManager::getContext ( ) const
inline

Definition at line 104 of file dp_gui_theextmgr.hxx.

References m_xContext.

◆ getDialog()

weld::Window * dp_gui::TheExtensionManager::getDialog ( )
inline

Definition at line 72 of file dp_gui_theextmgr.hxx.

References m_xExtMgrDialog, and m_xUpdReqDialog.

Referenced by isVisible(), SetText(), and ToTop().

◆ getDialogHelper()

DialogHelper * dp_gui::TheExtensionManager::getDialogHelper ( )
inline

◆ getExtensionManager()

const css::uno::Reference< css::deployment::XExtensionManager > & dp_gui::TheExtensionManager::getExtensionManager ( ) const
inline

◆ getPackageState()

PackageState dp_gui::TheExtensionManager::getPackageState ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
static

◆ installPackage()

bool dp_gui::TheExtensionManager::installPackage ( const OUString &  rPackageURL,
bool  bWarnUser = false 
)

◆ isModified()

bool dp_gui::TheExtensionManager::isModified ( ) const
inline

Definition at line 69 of file dp_gui_theextmgr.hxx.

References m_bModified.

◆ isReadOnly()

bool dp_gui::TheExtensionManager::isReadOnly ( const css::uno::Reference< css::deployment::XPackage > &  xPackage) const

◆ isVisible()

bool dp_gui::TheExtensionManager::isVisible ( )

Definition at line 200 of file dp_gui_theextmgr.cxx.

References weld::Widget::get_visible(), and getDialog().

◆ modified()

void dp_gui::TheExtensionManager::modified ( css::lang::EventObject const &  evt)
overridevirtual

◆ notifyTermination()

void dp_gui::TheExtensionManager::notifyTermination ( css::lang::EventObject const &  evt)
overridevirtual

Definition at line 492 of file dp_gui_theextmgr.cxx.

References disposing().

◆ queryTermination()

void dp_gui::TheExtensionManager::queryTermination ( css::lang::EventObject const &  evt)
overridevirtual

◆ SetText()

void dp_gui::TheExtensionManager::SetText ( const OUString &  rTitle)

Definition at line 157 of file dp_gui_theextmgr.cxx.

References getDialog().

◆ Show()

void dp_gui::TheExtensionManager::Show ( )

◆ supportsOptions()

bool dp_gui::TheExtensionManager::supportsOptions ( const css::uno::Reference< css::deployment::XPackage > &  xPackage) const

◆ terminateDialog()

void dp_gui::TheExtensionManager::terminateDialog ( )

◆ ToTop()

void dp_gui::TheExtensionManager::ToTop ( )

Definition at line 166 of file dp_gui_theextmgr.cxx.

References getDialog().

Referenced by queryTermination().

Member Data Documentation

◆ m_bExtMgrDialogExecuting

bool dp_gui::TheExtensionManager::m_bExtMgrDialogExecuting
private

◆ m_bModified

bool dp_gui::TheExtensionManager::m_bModified
private

Definition at line 56 of file dp_gui_theextmgr.hxx.

Referenced by clearModified(), isModified(), and modified().

◆ m_sGetExtensionsURL

OUString dp_gui::TheExtensionManager::m_sGetExtensionsURL
private

Definition at line 55 of file dp_gui_theextmgr.hxx.

Referenced by createDialog(), and TheExtensionManager().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > dp_gui::TheExtensionManager::m_xContext
private

Definition at line 46 of file dp_gui_theextmgr.hxx.

Referenced by createDialog(), and getContext().

◆ m_xDesktop

css::uno::Reference< css::frame::XDesktop2 > dp_gui::TheExtensionManager::m_xDesktop
private

Definition at line 47 of file dp_gui_theextmgr.hxx.

Referenced by disposing(), and TheExtensionManager().

◆ m_xExecuteCmdQueue

std::unique_ptr<ExtensionCmdQueue> dp_gui::TheExtensionManager::m_xExecuteCmdQueue
private

◆ m_xExtensionManager

css::uno::Reference< css::deployment::XExtensionManager > dp_gui::TheExtensionManager::m_xExtensionManager
private

◆ m_xExtMgrDialog

std::shared_ptr<ExtMgrDialog> dp_gui::TheExtensionManager::m_xExtMgrDialog
private

◆ m_xNameAccessNodes

css::uno::Reference< css::container::XNameAccess > dp_gui::TheExtensionManager::m_xNameAccessNodes
private

Definition at line 49 of file dp_gui_theextmgr.hxx.

Referenced by supportsOptions(), and TheExtensionManager().

◆ m_xParent

css::uno::Reference< css::awt::XWindow > dp_gui::TheExtensionManager::m_xParent
private

Definition at line 50 of file dp_gui_theextmgr.hxx.

Referenced by createDialog().

◆ m_xUpdReqDialog

std::unique_ptr<UpdateRequiredDialog> dp_gui::TheExtensionManager::m_xUpdReqDialog
private

◆ s_ExtMgr

rtl::Reference< TheExtensionManager > dp_gui::TheExtensionManager::s_ExtMgr

Definition at line 60 of file dp_gui_theextmgr.hxx.

Referenced by disposing(), and get().


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