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 (const 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 ()
 
DialoggetDialog ()
 
DialogHelpergetDialogHelper ()
 
ExtensionCmdQueuegetCmdQueue () const
 
void SetText (const OUString &rTitle)
 
void Show ()
 
void ToTop (ToTopFlags nFlags)
 
bool 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
 
VclPtr< ExtMgrDialogm_pExtMgrDialog
 
VclPtr< UpdateRequiredDialogm_pUpdReqDialog
 
std::unique_ptr< ExtensionCmdQueuem_pExecuteCmdQueue
 
OUString m_sGetExtensionsURL
 
bool m_bModified
 

Detailed Description

Definition at line 44 of file dp_gui_theextmgr.hxx.

Constructor & Destructor Documentation

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

Definition at line 105 of file dp_gui_theextmgr.cxx.

References m_pExtMgrDialog, and m_pUpdReqDialog.

Member Function Documentation

void dp_gui::TheExtensionManager::checkUpdates ( )
void dp_gui::TheExtensionManager::clearModified ( )
inline

Definition at line 72 of file dp_gui_theextmgr.hxx.

Referenced by dp_gui::ExtMgrDialog::Close(), and queryTermination().

bool dp_gui::TheExtensionManager::Close ( )

Definition at line 162 of file dp_gui_theextmgr.cxx.

References m_pExtMgrDialog, and m_pUpdReqDialog.

void dp_gui::TheExtensionManager::createDialog ( const bool  bCreateUpdDlg)
void dp_gui::TheExtensionManager::createPackageList ( )
void dp_gui::TheExtensionManager::disposing ( css::lang::EventObject const &  evt)
overridevirtual
sal_Int16 dp_gui::TheExtensionManager::execute ( )

Definition at line 173 of file dp_gui_theextmgr.cxx.

References m_pUpdReqDialog.

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() 
)
ExtensionCmdQueue* dp_gui::TheExtensionManager::getCmdQueue ( ) const
inline
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.

Dialog* dp_gui::TheExtensionManager::getDialog ( )
inline

Definition at line 74 of file dp_gui_theextmgr.hxx.

References VclPtr< reference_type >::get().

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

DialogHelper* dp_gui::TheExtensionManager::getDialogHelper ( )
inline
const css::uno::Reference< css::deployment::XExtensionManager >& dp_gui::TheExtensionManager::getExtensionManager ( ) const
inline
PackageState dp_gui::TheExtensionManager::getPackageState ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
static
bool dp_gui::TheExtensionManager::installPackage ( const OUString &  rPackageURL,
bool  bWarnUser = false 
)
bool dp_gui::TheExtensionManager::isModified ( ) const
inline

Definition at line 71 of file dp_gui_theextmgr.hxx.

References m_bModified.

Referenced by dp_gui::ExtMgrDialog::Close().

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

Definition at line 187 of file dp_gui_theextmgr.cxx.

References getDialog(), and vcl::Window::IsVisible().

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

Definition at line 454 of file dp_gui_theextmgr.cxx.

References disposing().

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

Definition at line 146 of file dp_gui_theextmgr.cxx.

References getDialog(), and SystemWindow::SetText().

void dp_gui::TheExtensionManager::Show ( )

Definition at line 138 of file dp_gui_theextmgr.cxx.

References getDialog(), and vcl::Window::Show().

bool dp_gui::TheExtensionManager::supportsOptions ( const css::uno::Reference< css::deployment::XPackage > &  xPackage) const
void dp_gui::TheExtensionManager::terminateDialog ( )
void dp_gui::TheExtensionManager::ToTop ( ToTopFlags  nFlags)

Definition at line 154 of file dp_gui_theextmgr.cxx.

References getDialog(), and vcl::Window::ToTop().

Referenced by queryTermination().

Member Data Documentation

bool dp_gui::TheExtensionManager::m_bModified
private

Definition at line 59 of file dp_gui_theextmgr.hxx.

Referenced by isModified(), and modified().

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

Definition at line 56 of file dp_gui_theextmgr.hxx.

Referenced by checkUpdates(), createDialog(), installPackage(), and queryTermination().

VclPtr<ExtMgrDialog> dp_gui::TheExtensionManager::m_pExtMgrDialog
private
VclPtr<UpdateRequiredDialog> dp_gui::TheExtensionManager::m_pUpdReqDialog
private
OUString dp_gui::TheExtensionManager::m_sGetExtensionsURL
private

Definition at line 58 of file dp_gui_theextmgr.hxx.

Referenced by createDialog(), and TheExtensionManager().

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

Definition at line 49 of file dp_gui_theextmgr.hxx.

Referenced by createDialog(), and getContext().

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

Definition at line 50 of file dp_gui_theextmgr.hxx.

Referenced by disposing(), and TheExtensionManager().

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

Definition at line 52 of file dp_gui_theextmgr.hxx.

Referenced by supportsOptions(), and TheExtensionManager().

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

Definition at line 53 of file dp_gui_theextmgr.hxx.

Referenced by createDialog().

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

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