LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
ShutdownIcon Class Reference

#include <shutdownicon.hxx>

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

Public Member Functions

 ShutdownIcon (css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual ~ShutdownIcon () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
void init ()
 
void SetVeto (bool bVeto)
 
void StartFileDialog ()
 
 DECL_LINK (DialogClosedHdl_Impl, sfx2::FileDialogHelper *, void)
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL queryTermination (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL notifyTermination (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL setFastPropertyValue (::sal_Int32 nHandle, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (::sal_Int32 nHandle) override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Static Public Member Functions

static ShutdownIcongetInstance ()
 
static ShutdownIconcreateInstance ()
 
static void terminateDesktop ()
 
static void addTerminateListener ()
 
static void FileOpen ()
 
static void OpenURL (const OUString &aURL, const OUString &rTarget, const css::uno::Sequence< css::beans::PropertyValue > &=css::uno::Sequence< css::beans::PropertyValue >(0))
 
static void FromTemplate ()
 
static void SetAutostart (bool bActivate)
 
static bool GetAutostart ()
 
static OUString GetUrlDescription (std::u16string_view aUrl)
 
static bool IsQuickstarterInstalled ()
 

Static Public Attributes

static bool bModalMode = false
 

Private Member Functions

void initSystray ()
 
void deInitSystray ()
 

Static Private Member Functions

static void EnterModalMode ()
 
static void LeaveModalMode ()
 
static OUString getShortcutName ()
 

Private Attributes

bool m_bVeto
 
bool m_bListenForTermination
 
bool m_bSystemDialogs
 
std::unique_ptr< sfx2::FileDialogHelperm_pFileDlg
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop
 
bool m_bInitialized
 

Static Private Attributes

static rtl::Reference< ShutdownIconpShutdownIcon
 

Friends

class SfxNotificationListener_Impl
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 62 of file shutdownicon.hxx.

Constructor & Destructor Documentation

◆ ShutdownIcon()

ShutdownIcon::ShutdownIcon ( css::uno::Reference< css::uno::XComponentContext >  xContext)
explicit

Definition at line 146 of file shutdownicon.cxx.

References m_xContext.

Referenced by createInstance().

◆ ~ShutdownIcon()

ShutdownIcon::~ShutdownIcon ( )
overridevirtual

Definition at line 155 of file shutdownicon.cxx.

References deInitSystray().

Member Function Documentation

◆ addTerminateListener()

void ShutdownIcon::addTerminateListener ( )
static

◆ createInstance()

ShutdownIcon * ShutdownIcon::createInstance ( )
static

◆ DECL_LINK()

ShutdownIcon::DECL_LINK ( DialogClosedHdl_Impl  ,
sfx2::FileDialogHelper ,
void   
)

◆ deInitSystray()

void ShutdownIcon::deInitSystray ( )
private

◆ disposing() [1/2]

void SAL_CALL ShutdownIcon::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 481 of file shutdownicon.cxx.

◆ disposing() [2/2]

void ShutdownIcon::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 471 of file shutdownicon.cxx.

References deInitSystray(), m_xContext, and m_xDesktop.

◆ EnterModalMode()

void ShutdownIcon::EnterModalMode ( )
staticprivate

Definition at line 550 of file shutdownicon.cxx.

References bModalMode.

Referenced by FileOpen(), and FromTemplate().

◆ FileOpen()

void ShutdownIcon::FileOpen ( )
static

Definition at line 193 of file shutdownicon.cxx.

References EnterModalMode(), getInstance(), m_xDesktop, and StartFileDialog().

Referenced by executerWndProc().

◆ FromTemplate()

void ShutdownIcon::FromTemplate ( )
static

◆ GetAutostart()

bool ShutdownIcon::GetAutostart ( )
static

◆ getFastPropertyValue()

css::uno::Any SAL_CALL ShutdownIcon::getFastPropertyValue ( ::sal_Int32  nHandle)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL ShutdownIcon::getImplementationName ( )
overridevirtual

Definition at line 89 of file shutdownicon.cxx.

◆ getInstance()

ShutdownIcon * ShutdownIcon::getInstance ( )
static

◆ getShortcutName()

static OUString ShutdownIcon::getShortcutName ( )
staticprivate

Referenced by GetAutostart(), and SetAutostart().

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL ShutdownIcon::getSupportedServiceNames ( )
overridevirtual

Definition at line 99 of file shutdownicon.cxx.

◆ GetUrlDescription()

OUString ShutdownIcon::GetUrlDescription ( std::u16string_view  aUrl)
static

Definition at line 239 of file shutdownicon.cxx.

References SvFileInformationManager::GetDescription().

Referenced by aqua_init_systray(), and createSystrayMenu().

◆ init()

void ShutdownIcon::init ( )
Exceptions
css::uno::Exception

Definition at line 463 of file shutdownicon.cxx.

References comphelper::UnoImplBase::m_aMutex, m_xContext, and m_xDesktop.

Referenced by initialize().

◆ initialize()

void SAL_CALL ShutdownIcon::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

◆ initSystray()

void ShutdownIcon::initSystray ( )
private

Definition at line 107 of file shutdownicon.cxx.

References aqua_init_systray(), m_bInitialized, and win32_init_sys_tray().

Referenced by initialize().

◆ IsQuickstarterInstalled()

bool ShutdownIcon::IsQuickstarterInstalled ( )
static

◆ LeaveModalMode()

void ShutdownIcon::LeaveModalMode ( )
staticprivate

Definition at line 556 of file shutdownicon.cxx.

References bModalMode.

Referenced by SfxNotificationListener_Impl::dispatchFinished().

◆ notifyTermination()

void SAL_CALL ShutdownIcon::notifyTermination ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 497 of file shutdownicon.cxx.

◆ OpenURL()

void ShutdownIcon::OpenURL ( const OUString &  aURL,
const OUString &  rTarget,
const css::uno::Sequence< css::beans::PropertyValue > &  = css::uno::Sequence< css::beans::PropertyValue >( 0 ) 
)
static

Definition at line 161 of file shutdownicon.cxx.

References aURL, getInstance(), m_xDesktop, rTarget, and xDispatch.

Referenced by executerWndProc().

◆ queryTermination()

void SAL_CALL ShutdownIcon::queryTermination ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 487 of file shutdownicon.cxx.

References comphelper::UnoImplBase::m_aMutex, m_bVeto, and SAL_INFO.

◆ SetAutostart()

void ShutdownIcon::SetAutostart ( bool  bActivate)
static

◆ setFastPropertyValue()

void SAL_CALL ShutdownIcon::setFastPropertyValue ( ::sal_Int32  nHandle,
const css::uno::Any &  aValue 
)
overridevirtual

◆ SetVeto()

void ShutdownIcon::SetVeto ( bool  bVeto)
inline

Definition at line 114 of file shutdownicon.hxx.

References m_bVeto.

Referenced by aqua_init_systray(), and listenerWndProc().

◆ StartFileDialog()

void ShutdownIcon::StartFileDialog ( )

Definition at line 244 of file shutdownicon.cxx.

References LINK, m_bSystemDialogs, m_pFileDlg, MultiSelection, and UseSystemFileDialog().

Referenced by FileOpen().

◆ supportsService()

sal_Bool SAL_CALL ShutdownIcon::supportsService ( OUString const &  ServiceName)
overridevirtual

Definition at line 94 of file shutdownicon.cxx.

References ServiceName, and cppu::supportsService().

◆ terminateDesktop()

void ShutdownIcon::terminateDesktop ( )
static

Friends And Related Function Documentation

◆ SfxNotificationListener_Impl

friend class SfxNotificationListener_Impl
friend

Definition at line 81 of file shutdownicon.hxx.

Member Data Documentation

◆ bModalMode

bool ShutdownIcon::bModalMode = false
static

Definition at line 107 of file shutdownicon.hxx.

Referenced by EnterModalMode(), executerWndProc(), LeaveModalMode(), and listenerWndProc().

◆ m_bInitialized

bool ShutdownIcon::m_bInitialized
private

Definition at line 73 of file shutdownicon.hxx.

Referenced by deInitSystray(), and initSystray().

◆ m_bListenForTermination

bool ShutdownIcon::m_bListenForTermination
private

◆ m_bSystemDialogs

bool ShutdownIcon::m_bSystemDialogs
private

Definition at line 66 of file shutdownicon.hxx.

Referenced by StartFileDialog().

◆ m_bVeto

bool ShutdownIcon::m_bVeto
private

◆ m_pFileDlg

std::unique_ptr<sfx2::FileDialogHelper> ShutdownIcon::m_pFileDlg
private

Definition at line 67 of file shutdownicon.hxx.

Referenced by deInitSystray(), and StartFileDialog().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > ShutdownIcon::m_xContext
private

Definition at line 68 of file shutdownicon.hxx.

Referenced by disposing(), and init().

◆ m_xDesktop

css::uno::Reference< css::frame::XDesktop2 > ShutdownIcon::m_xDesktop
private

◆ pShutdownIcon

rtl::Reference< ShutdownIcon > ShutdownIcon::pShutdownIcon
staticprivate

Definition at line 71 of file shutdownicon.hxx.

Referenced by createInstance(), getInstance(), initialize(), and terminateDesktop().


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