LibreOffice Module framework (master) 1
|
#include <desktop.hxx>
Public Member Functions | |
Desktop (css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual | ~Desktop () override |
void | constructorInit () |
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 |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &type) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual sal_Bool SAL_CALL | terminate () override |
virtual void SAL_CALL | addTerminateListener (const css::uno::Reference< css::frame::XTerminateListener > &xListener) override |
virtual void SAL_CALL | removeTerminateListener (const css::uno::Reference< css::frame::XTerminateListener > &xListener) override |
virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL | getComponents () override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | getCurrentComponent () override |
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL | getCurrentFrame () override |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | loadComponentFromURL (const OUString &sURL, const OUString &sTargetFrameName, sal_Int32 nSearchFlags, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override |
virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL | getTasks () override |
virtual css::uno::Reference< css::frame::XTask > SAL_CALL | getActiveTask () override |
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL | queryDispatch (const css::util::URL &aURL, const OUString &sTargetFrameName, sal_Int32 nSearchFlags) override |
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL | queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &lQueries) override |
virtual void SAL_CALL | registerDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &xInterceptor) override |
virtual void SAL_CALL | releaseDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &xInterceptor) override |
virtual css::uno::Reference< css::frame::XFrames > SAL_CALL | getFrames () override |
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL | getActiveFrame () override |
virtual void SAL_CALL | setActiveFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override |
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL | findFrame (const OUString &sTargetFrameName, sal_Int32 nSearchFlags) override |
virtual void SAL_CALL | initialize (const css::uno::Reference< css::awt::XWindow > &xWindow) override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getContainerWindow () override |
virtual void SAL_CALL | setCreator (const css::uno::Reference< css::frame::XFramesSupplier > &xCreator) override |
virtual css::uno::Reference< css::frame::XFramesSupplier > SAL_CALL | getCreator () override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &sName) override |
virtual sal_Bool SAL_CALL | isTop () override |
virtual void SAL_CALL | activate () override |
virtual void SAL_CALL | deactivate () override |
virtual sal_Bool SAL_CALL | isActive () override |
virtual sal_Bool SAL_CALL | setComponent (const css::uno::Reference< css::awt::XWindow > &xComponentWindow, const css::uno::Reference< css::frame::XController > &xController) override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | getComponentWindow () override |
virtual css::uno::Reference< css::frame::XController > SAL_CALL | getController () override |
virtual void SAL_CALL | contextChanged () override |
virtual void SAL_CALL | addFrameActionListener (const css::uno::Reference< css::frame::XFrameActionListener > &xListener) override |
virtual void SAL_CALL | removeFrameActionListener (const css::uno::Reference< css::frame::XFrameActionListener > &xListener) override |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | dispatchFinished (const css::frame::DispatchResultEvent &aEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &aSource) override |
virtual void SAL_CALL | handle (const css::uno::Reference< css::task::XInteractionRequest > &xRequest) override |
virtual ::sal_Int32 SAL_CALL | leaseNumber (const css::uno::Reference< css::uno::XInterface > &xComponent) override |
virtual void SAL_CALL | releaseNumber (::sal_Int32 nNumber) override |
virtual void SAL_CALL | releaseNumberForComponent (const css::uno::Reference< css::uno::XInterface > &xComponent) override |
virtual OUString SAL_CALL | getUntitledPrefix () override |
bool | terminateQuickstarterToo () |
void | shutdown () |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Private Types | |
typedef ::std::vector< css::uno::Reference< css::frame::XTerminateListener > > | TTerminateListenerList |
used temporary to know which listener was already called or not. More... | |
Private Member Functions | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &aConvertedValue, css::uno::Any &aOldValue, sal_Int32 nHandle, const css::uno::Any &aValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &aValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &aValue, sal_Int32 nHandle) const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
css::uno::Reference< css::lang::XComponent > | impl_getFrameComponent (const css::uno::Reference< css::frame::XFrame > &xFrame) const |
bool | impl_sendQueryTerminationEvent (TTerminateListenerList &lCalledListener) |
calls queryTermination() on every registered termination listener. More... | |
void | impl_sendCancelTerminationEvent (const TTerminateListenerList &lCalledListener) |
calls cancelTermination() on every termination listener where queryTermination() was called before. More... | |
void | impl_sendTerminateToClipboard () |
calls notifyTermination() on the clipboard listener More... | |
void | impl_sendNotifyTerminationEvent () |
calls notifyTermination() on every registered termination listener. More... | |
bool | impl_closeFrames (bool bAllowUI) |
try to close all open frames. More... | |
Private Attributes | |
TransactionManager | m_aTransactionManager |
bool | m_bIsTerminated |
check flag to protect against multiple terminate runs More... | |
bool | m_bIsShutdown |
check flag to protect us against dispose before terminate! see dispose() for further information! More... | |
bool | m_bSession |
when true, the call came from session manager the method is Desktop::terminateQuickstarterToo() this the only one place where set this to true In this case, when one frame break, not make question for other, the break of shutdown or logout can be only once. More... | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
FrameContainer | m_aChildTaskContainer |
reference to factory, which has create this instance More... | |
comphelper::OMultiTypeInterfaceContainerHelper2 | m_aListenerContainer |
array of child tasks (children of desktop are tasks; and tasks are also frames - But pure frames are not accepted!) More... | |
css::uno::Reference< css::frame::XFrames > | m_xFramesHelper |
container for ALL Listener More... | |
css::uno::Reference< css::frame::XDispatchProvider > | m_xDispatchHelper |
helper for XFrames, XIndexAccess, XElementAccess and implementation of a childcontainer! More... | |
ELoadState | m_eLoadState |
helper to dispatch something for new tasks, created by "_blank"! More... | |
bool | m_bSuspendQuickstartVeto |
hold information about state of asynchron loading of component for loadComponentFromURL()! More... | |
std::unique_ptr< SvtCommandOptions > | m_xCommandOptions |
don't ask quickstart for a veto More... | |
OUString | m_sName |
ref counted class to support disabling commands defined by configuration file More... | |
OUString | m_sTitle |
css::uno::Reference< css::frame::XDispatchRecorderSupplier > | m_xDispatchRecorderSupplier |
css::uno::Reference< css::frame::XTerminateListener > | m_xPipeTerminator |
special terminate listener to close pipe and block external requests during/after termination process is/was running More... | |
css::uno::Reference< css::frame::XTerminateListener > | m_xQuickLauncher |
special terminate listener shown inside system tray (quick starter) Will hinder the office on shutdown ... but wish to allow closing of open documents. More... | |
css::uno::Reference< css::frame::XTerminateListener > | m_xSWThreadManager |
special terminate listener which loads images asynchronous for current open documents. More... | |
css::uno::Reference< css::frame::XTerminateListener > | m_xSfxTerminator |
special terminate listener shutting down the SfxApplication. More... | |
css::uno::Reference< css::frame::XUntitledNumbers > | m_xTitleNumberGenerator |
std::vector< css::uno::Reference< css::frame::XTerminateListener > > | m_xComponentDllListeners |
Private Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Additional Inherited Members | |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 99 of file desktop.hxx.
|
private |
used temporary to know which listener was already called or not.
Definition at line 107 of file desktop.hxx.
framework::Desktop::Desktop | ( | css::uno::Reference< css::uno::XComponentContext > | xContext | ) |
Definition at line 143 of file desktop.cxx.
|
overridevirtual |
Definition at line 163 of file desktop.cxx.
References framework::E_CLOSE, framework::TransactionManager::getWorkingMode(), m_aTransactionManager, m_bIsShutdown, and SAL_WARN_IF.
|
inlineoverridevirtualnoexcept |
Definition at line 126 of file desktop.hxx.
|
overridevirtual |
Definition at line 841 of file desktop.cxx.
|
overridevirtual |
Definition at line 1117 of file desktop.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), framework::E_HARDEXCEPTIONS, m_aListenerContainer, m_aTransactionManager, and SAL_WARN_IF.
|
overridevirtual |
Definition at line 880 of file desktop.cxx.
|
overridevirtual |
Definition at line 368 of file desktop.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), framework::E_HARDEXCEPTIONS, m_aListenerContainer, m_aTransactionManager, m_xComponentDllListeners, m_xPipeTerminator, m_xQuickLauncher, m_xSfxTerminator, m_xSWThreadManager, and sImplementationName.
void framework::Desktop::constructorInit | ( | ) |
Definition at line 88 of file desktop.cxx.
References framework::E_WORK, FwkResId(), m_aChildTaskContainer, m_aTransactionManager, m_xContext, m_xDispatchHelper, m_xFramesHelper, m_xTitleNumberGenerator, SAL_WARN_IF, and framework::TransactionManager::setWorkingMode().
|
overridevirtual |
Definition at line 876 of file desktop.cxx.
|
overrideprivatevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 1321 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, m_bSuspendQuickstartVeto, m_sTitle, m_xDispatchRecorderSupplier, nHandle, and framework::PropHelper::willPropertyBeChanged().
|
overridevirtual |
Definition at line 848 of file desktop.cxx.
|
overridevirtual |
last target of "loadComponentFromURL()"!
Definition at line 1154 of file desktop.cxx.
References aEvent, framework::E_FAILED, framework::E_HARDEXCEPTIONS, framework::E_INTERACTION, framework::E_SUCCESSFUL, m_aTransactionManager, and m_eLoadState.
|
overridevirtual |
Definition at line 1038 of file desktop.cxx.
References aEvent, framework::FrameContainer::clear(), comphelper::OMultiTypeInterfaceContainerHelper2::disposeAndClear(), framework::E_BEFORECLOSE, framework::E_CLOSE, framework::E_HARDEXCEPTIONS, m_aChildTaskContainer, m_aListenerContainer, m_aTransactionManager, m_bIsShutdown, m_xCommandOptions, m_xComponentDllListeners, m_xContext, m_xDispatchHelper, m_xFramesHelper, m_xPipeTerminator, m_xQuickLauncher, m_xSfxTerminator, m_xSWThreadManager, and framework::TransactionManager::setWorkingMode().
|
overridevirtual |
Definition at line 1181 of file desktop.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 916 of file desktop.cxx.
References framework::TaskCreator::createTask(), m_aChildTaskContainer, m_sName, m_xContext, framework::FrameContainer::searchOnAllChildrens(), framework::FrameContainer::searchOnDirectChildrens(), framework::SPECIALTARGET_BEAMER, framework::SPECIALTARGET_BLANK, framework::SPECIALTARGET_DEFAULT, SPECIALTARGET_PARENT, framework::SPECIALTARGET_SELF, framework::SPECIALTARGET_TOP, and xTarget.
|
overridevirtual |
Definition at line 791 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, framework::FrameContainer::getActive(), m_aChildTaskContainer, and m_aTransactionManager.
Referenced by getCurrentFrame().
|
overridevirtual |
Definition at line 639 of file desktop.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 469 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, and m_aTransactionManager.
|
overridevirtual |
Definition at line 866 of file desktop.cxx.
|
overridevirtual |
Definition at line 810 of file desktop.cxx.
|
overridevirtual |
Definition at line 871 of file desktop.cxx.
|
overridevirtual |
Definition at line 819 of file desktop.cxx.
|
overridevirtual |
Definition at line 492 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, getCurrentFrame(), impl_getFrameComponent(), and m_aTransactionManager.
|
overridevirtual |
Definition at line 527 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, getActiveFrame(), and m_aTransactionManager.
Referenced by getCurrentComponent().
|
overrideprivatevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 1408 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, framework::FrameContainer::getActive(), m_aChildTaskContainer, m_aTransactionManager, m_bSuspendQuickstartVeto, m_sTitle, m_xDispatchRecorderSupplier, and nHandle.
|
overridevirtual |
Definition at line 743 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xFramesHelper.
|
overridevirtual |
Definition at line 73 of file desktop.cxx.
|
overrideprivatevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 1430 of file desktop.cxx.
References cppu::UnoType< typename T >::get().
Referenced by getPropertySetInfo().
|
overridevirtual |
Definition at line 824 of file desktop.cxx.
References m_sName.
|
overrideprivatevirtual |
Definition at line 1472 of file desktop.cxx.
References cppu::OPropertySetHelper::createPropertySetInfo(), framework::E_HARDEXCEPTIONS, getInfoHelper(), and m_aTransactionManager.
|
overridevirtual |
Definition at line 83 of file desktop.cxx.
|
overridevirtual |
Definition at line 617 of file desktop.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 177 of file desktop.cxx.
References comphelper::concatSequences(), and cppu::OPropertySetHelper::getTypes().
|
overridevirtual |
Definition at line 1291 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xTitleNumberGenerator.
|
overridevirtual |
Definition at line 1206 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, framework::E_INTERACTION, ErrCode::IsWarning(), m_aTransactionManager, m_eLoadState, and nCount.
|
private |
try to close all open frames.
Iterates over all child frames and try to close them. Given parameter bAllowUI enable/disable showing any UI (which mostly occur on calling XController->suspend()).
This method doesn't stop if one frame could not be closed. It will ignore such frames and try all other ones. But it returns false in such case - true otherwise.
bAllowUI | enable/disable showing of UI. |
Definition at line 1661 of file desktop.cxx.
References framework::FrameContainer::getAllElements(), i, m_aChildTaskContainer, m_bSession, xController, and xFrame.
Referenced by terminate().
|
private |
Definition at line 1504 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, xController, xFrame, and xModel.
Referenced by getCurrentComponent().
|
private |
calls cancelTermination() on every termination listener where queryTermination() was called before.
Note: Only normal termination listener (registered in list m_aListenerContainer will be recognized here. Special listener like quick starter, pipe or others has to be handled explicitly !
[in] | lCalledListener | every listener in this list was called within its method queryTermination() before. |
Definition at line 1576 of file desktop.cxx.
References aEvent, framework::E_HARDEXCEPTIONS, and m_aTransactionManager.
Referenced by terminate().
|
private |
calls notifyTermination() on every registered termination listener.
Note: Only normal termination listener (registered in list m_aListenerContainer will be recognized here. Special listener like quick starter, pipe or others has to be handled explicitly !
Definition at line 1634 of file desktop.cxx.
References aEvent, framework::E_HARDEXCEPTIONS, comphelper::OMultiTypeInterfaceContainerHelper2::getContainer(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_aListenerContainer, m_aTransactionManager, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
Referenced by terminate().
|
private |
calls queryTermination() on every registered termination listener.
Note: Only normal termination listener (registered in list m_aListenerContainer will be recognized here. Special listener like quick starter, pipe or others has to be handled explicitly !
[out] | lCalledListener | every called listener will be returned here. Those list will be used to inform all called listener about cancel this termination request. |
Definition at line 1538 of file desktop.cxx.
References aEvent, framework::E_HARDEXCEPTIONS, comphelper::OMultiTypeInterfaceContainerHelper2::getContainer(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_aListenerContainer, m_aTransactionManager, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
Referenced by terminate().
|
private |
calls notifyTermination() on the clipboard listener
The system clipboard may decide that it wants copies in several formats of the clipboard content requiring nearly all the services
Definition at line 1596 of file desktop.cxx.
References aEvent, framework::E_HARDEXCEPTIONS, comphelper::OMultiTypeInterfaceContainerHelper2::getContainer(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_aListenerContainer, m_aTransactionManager, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
Referenced by terminate().
|
overridevirtual |
Definition at line 806 of file desktop.cxx.
|
overridevirtual |
Definition at line 855 of file desktop.cxx.
|
overridevirtual |
Definition at line 836 of file desktop.cxx.
|
override |
Definition at line 1273 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xTitleNumberGenerator.
|
overridevirtual |
Definition at line 565 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, framework::LoadEnv::loadComponentFromURL(), m_aTransactionManager, m_xContext, SAL_INFO, and vcl::solarthread::syncExecute().
|
overridevirtual |
Definition at line 664 of file desktop.cxx.
References aCommand, aURL, framework::E_HARDEXCEPTIONS, utl::ConfigManager::IsFuzzing(), m_aTransactionManager, m_xCommandOptions, and m_xDispatchHelper.
|
overridevirtual |
Definition at line 692 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xDispatchHelper.
|
overridevirtual |
Reimplemented from cppu::OPropertySetHelper.
Definition at line 169 of file desktop.cxx.
|
overridevirtual |
Definition at line 712 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xDispatchHelper.
|
inlineoverridevirtualnoexcept |
Definition at line 128 of file desktop.hxx.
|
overridevirtual |
Definition at line 720 of file desktop.cxx.
References framework::E_SOFTEXCEPTIONS, m_aTransactionManager, and m_xDispatchHelper.
|
overridevirtual |
Definition at line 1279 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xTitleNumberGenerator.
|
overridevirtual |
Definition at line 1285 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, and m_xTitleNumberGenerator.
|
overridevirtual |
Definition at line 1129 of file desktop.cxx.
References framework::E_SOFTEXCEPTIONS, m_aListenerContainer, m_aTransactionManager, comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface(), and SAL_WARN_IF.
|
overridevirtual |
Definition at line 885 of file desktop.cxx.
|
overridevirtual |
Definition at line 410 of file desktop.cxx.
References framework::E_SOFTEXCEPTIONS, m_aListenerContainer, m_aTransactionManager, m_xComponentDllListeners, m_xPipeTerminator, m_xQuickLauncher, m_xSfxTerminator, m_xSWThreadManager, comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface(), and sImplementationName.
|
overridevirtual |
Definition at line 769 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, framework::FrameContainer::getActive(), m_aChildTaskContainer, m_aTransactionManager, framework::FrameContainer::setActive(), and xFrame.
|
overridevirtual |
Definition at line 860 of file desktop.cxx.
|
overridevirtual |
Definition at line 815 of file desktop.cxx.
|
overrideprivatevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 1377 of file desktop.cxx.
References framework::E_HARDEXCEPTIONS, m_aTransactionManager, m_bSuspendQuickstartVeto, m_sTitle, m_xDispatchRecorderSupplier, and nHandle.
|
overridevirtual |
Definition at line 830 of file desktop.cxx.
void framework::Desktop::shutdown | ( | ) |
Definition at line 312 of file desktop.cxx.
References aEvent, framework::E_HARDEXCEPTIONS, m_aTransactionManager, m_bIsShutdown, m_xComponentDllListeners, and m_xSfxTerminator.
Referenced by terminate().
|
overridevirtual |
Definition at line 78 of file desktop.cxx.
References ServiceName, and cppu::supportsService().
|
overridevirtual |
Definition at line 185 of file desktop.cxx.
References CrashReporter::addKeyValue(), aEvent, framework::E_HARDEXCEPTIONS, impl_closeFrames(), impl_sendCancelTerminationEvent(), impl_sendNotifyTerminationEvent(), impl_sendQueryTerminationEvent(), impl_sendTerminateToClipboard(), comphelper::LibreOfficeKit::isActive(), Application::IsInExecute(), m_aTransactionManager, m_bIsShutdown, m_bIsTerminated, m_bSuspendQuickstartVeto, m_xPipeTerminator, m_xQuickLauncher, m_xSfxTerminator, m_xSWThreadManager, Scheduler::ProcessEventsToIdle(), Application::Quit(), shutdown(), and CrashReporter::Write.
Referenced by terminateQuickstarterToo().
bool framework::Desktop::terminateQuickstarterToo | ( | ) |
css::uno::RuntimeException |
Definition at line 361 of file desktop.cxx.
References m_bSession, m_xQuickLauncher, and terminate().
|
private |
reference to factory, which has create this instance
Definition at line 397 of file desktop.hxx.
Referenced by constructorInit(), disposing(), findFrame(), getActiveFrame(), getFastPropertyValue(), impl_closeFrames(), and setActiveFrame().
|
private |
array of child tasks (children of desktop are tasks; and tasks are also frames - But pure frames are not accepted!)
Definition at line 398 of file desktop.hxx.
Referenced by addEventListener(), addTerminateListener(), disposing(), impl_sendNotifyTerminationEvent(), impl_sendQueryTerminationEvent(), impl_sendTerminateToClipboard(), removeEventListener(), and removeTerminateListener().
|
mutableprivate |
Definition at line 374 of file desktop.hxx.
Referenced by addEventListener(), addTerminateListener(), constructorInit(), convertFastPropertyValue(), dispatchFinished(), disposing(), getActiveFrame(), getComponents(), getCurrentComponent(), getCurrentFrame(), getFastPropertyValue(), getFrames(), getPropertySetInfo(), getUntitledPrefix(), handle(), impl_getFrameComponent(), impl_sendCancelTerminationEvent(), impl_sendNotifyTerminationEvent(), impl_sendQueryTerminationEvent(), impl_sendTerminateToClipboard(), leaseNumber(), loadComponentFromURL(), queryDispatch(), queryDispatches(), registerDispatchProviderInterceptor(), releaseDispatchProviderInterceptor(), releaseNumber(), releaseNumberForComponent(), removeEventListener(), removeTerminateListener(), setActiveFrame(), setFastPropertyValue_NoBroadcast(), shutdown(), terminate(), and ~Desktop().
|
private |
check flag to protect us against dispose before terminate! see dispose() for further information!
Definition at line 383 of file desktop.hxx.
Referenced by disposing(), shutdown(), terminate(), and ~Desktop().
|
private |
check flag to protect against multiple terminate runs
Definition at line 378 of file desktop.hxx.
Referenced by terminate().
|
private |
when true, the call came from session manager the method is Desktop::terminateQuickstarterToo() this the only one place where set this to true In this case, when one frame break, not make question for other, the break of shutdown or logout can be only once.
In Desktop::impl_closeFrames would be test and break the loop and reset to false
Definition at line 394 of file desktop.hxx.
Referenced by impl_closeFrames(), and terminateQuickstarterToo().
|
private |
hold information about state of asynchron loading of component for loadComponentFromURL()!
Definition at line 402 of file desktop.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), setFastPropertyValue_NoBroadcast(), and terminate().
|
private |
helper to dispatch something for new tasks, created by "_blank"!
Definition at line 401 of file desktop.hxx.
Referenced by dispatchFinished(), and handle().
|
private |
ref counted class to support disabling commands defined by configuration file
Definition at line 404 of file desktop.hxx.
Referenced by findFrame(), getName(), and setName().
|
private |
Definition at line 405 of file desktop.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().
|
private |
don't ask quickstart for a veto
Definition at line 403 of file desktop.hxx.
Referenced by disposing(), and queryDispatch().
|
private |
Definition at line 446 of file desktop.hxx.
Referenced by addTerminateListener(), disposing(), removeTerminateListener(), and shutdown().
|
private |
Definition at line 396 of file desktop.hxx.
Referenced by constructorInit(), disposing(), findFrame(), and loadComponentFromURL().
|
private |
helper for XFrames, XIndexAccess, XElementAccess and implementation of a childcontainer!
Definition at line 400 of file desktop.hxx.
Referenced by constructorInit(), disposing(), queryDispatch(), queryDispatches(), registerDispatchProviderInterceptor(), and releaseDispatchProviderInterceptor().
|
private |
Definition at line 406 of file desktop.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().
|
private |
container for ALL Listener
Definition at line 399 of file desktop.hxx.
Referenced by constructorInit(), disposing(), and getFrames().
|
private |
special terminate listener to close pipe and block external requests during/after termination process is/was running
Definition at line 411 of file desktop.hxx.
Referenced by addTerminateListener(), disposing(), removeTerminateListener(), and terminate().
|
private |
special terminate listener shown inside system tray (quick starter) Will hinder the office on shutdown ... but wish to allow closing of open documents.
And because that's different to a normal terminate listener it has to be handled special .-)
Definition at line 418 of file desktop.hxx.
Referenced by addTerminateListener(), disposing(), removeTerminateListener(), terminate(), and terminateQuickstarterToo().
|
private |
special terminate listener shutting down the SfxApplication.
Because these desktop instance closes documents and informs listener only... it does not really shutdown the whole application.
Btw: that wouldn't be possible by design... because Desktop.terminate() has to return a boolean value about success... it can't really shutdown the process .-)
So we uses a trick: a special listener (exactly these one here) listen for notifyTermination() and shutdown the process asynchronous. But desktop has to make this special notification as really last one ... Otherwise it can happen that asynchronous shutdown will be faster then all other code around Desktop.terminate() .-))
Definition at line 442 of file desktop.hxx.
Referenced by addTerminateListener(), disposing(), removeTerminateListener(), shutdown(), and terminate().
|
private |
special terminate listener which loads images asynchronous for current open documents.
Because internally it uses blocking system APIs... it can't be guaranteed that running jobs can be cancelled successfully if the corresponding document will be closed... it will not hinder those documents on closing. Instead it let all jobs running... but at least on terminate we have to wait for all those blocked requests. So these implementation must be a special terminate listener too .-(
Definition at line 427 of file desktop.hxx.
Referenced by addTerminateListener(), disposing(), removeTerminateListener(), and terminate().
|
private |
Definition at line 444 of file desktop.hxx.
Referenced by constructorInit(), getUntitledPrefix(), leaseNumber(), releaseNumber(), and releaseNumberForComponent().