LibreOffice Module svtools (master) 1
|
abstract base class for implementing UNO objects representing dialogs (com.sun.star.awt::XDialog) More...
#include <genericunodialog.hxx>
Public Member Functions | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override=0 |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setTitle (const OUString &aTitle) override |
virtual sal_Int16 SAL_CALL | execute () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
![]() | |
OMutexAndBroadcastHelper () | |
::osl::Mutex & | GetMutex () |
::cppu::OBroadcastHelper & | GetBroadcastHelper () |
const ::cppu::OBroadcastHelper & | GetBroadcastHelper () const |
![]() | |
virtual | ~OPropertyContainer () |
Protected Member Functions | |
OGenericUnoDialog (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
virtual | ~OGenericUnoDialog () override |
virtual std::unique_ptr< weld::DialogController > | createDialog (const css::uno::Reference< css::awt::XWindow > &rParent)=0 |
create the concrete dialog instance. More... | |
void | destroyDialog () |
called to destroy the dialog used. deletes m_pDialog and resets it to NULL More... | |
virtual void | executedDialog (sal_Int16) |
called after the dialog has been executed More... | |
virtual void | implInitialize (const css::uno::Any &_rValue) |
smaller form of <method>initialize</method>. More... | |
![]() | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
![]() | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
Protected Attributes | |
std::unique_ptr< weld::DialogController > | m_xDialog |
bool | m_bExecuting: 1 |
the dialog to execute More... | |
bool | m_bTitleAmbiguous: 1 |
we're currently executing the dialog More... | |
bool | m_bInitialized: 1 |
m_sTitle has not been set yet More... | |
OUString | m_sTitle |
has "initialize" been called? More... | |
css::uno::Reference< css::awt::XWindow > | m_xParent |
title of the dialog More... | |
css::uno::Reference< css::uno::XComponentContext > | m_aContext |
parent window More... | |
![]() | |
::osl::Mutex | m_aMutex |
::cppu::OBroadcastHelper | m_aBHelper |
Private Member Functions | |
bool | impl_ensureDialog_lck () |
ensures that m_pDialog is not <NULL> More... | |
Additional Inherited Members | |
![]() | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
abstract base class for implementing UNO objects representing dialogs (com.sun.star.awt::XDialog)
Definition at line 56 of file genericunodialog.hxx.
|
protected |
Definition at line 45 of file genericunodialog.cxx.
References m_aContext, m_sTitle, m_xParent, comphelper::OPropertyContainerHelper::registerProperty(), UNODIALOG_PROPERTY_ID_PARENT, UNODIALOG_PROPERTY_ID_TITLE, svt::UNODIALOG_PROPERTY_PARENT, and svt::UNODIALOG_PROPERTY_TITLE.
|
overrideprotectedvirtual |
Definition at line 59 of file genericunodialog.cxx.
References destroyDialog(), comphelper::OMutexAndBroadcastHelper::m_aMutex, and m_xDialog.
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 117 of file genericunodialog.cxx.
References m_xParent, nHandle, and UNODIALOG_PROPERTY_ID_PARENT.
|
protectedpure virtual |
create the concrete dialog instance.
Note that m_aMutex is not locked when this method get called, but the application-wide solar mutex is (to guard the not thread-safe ctor of the dialog).
pParent | the parent window for the new dialog |
Referenced by impl_ensureDialog_lck().
|
protected |
called to destroy the dialog used. deletes m_pDialog and resets it to NULL
Definition at line 254 of file genericunodialog.cxx.
References m_xDialog.
Referenced by ~OGenericUnoDialog().
|
overridevirtual |
Definition at line 182 of file genericunodialog.cxx.
References executedDialog(), impl_ensureDialog_lck(), comphelper::OMutexAndBroadcastHelper::m_aMutex, m_bExecuting, and m_xDialog.
|
inlineprotectedvirtual |
called after the dialog has been executed
_nExecutionResult | the execution result as returned by Dialog::Execute |
Definition at line 116 of file genericunodialog.hxx.
Referenced by execute().
|
overridepure virtual |
|
overridepure virtual |
References supportsService().
|
overridepure virtual |
Definition at line 86 of file genericunodialog.cxx.
References comphelper::OPropertyContainer::getBaseTypes().
|
private |
ensures that m_pDialog is not <NULL>
This method does nothing if m_pDialog is already non-<NULL>. Else, it calls createDialog and does all necessary initializations of the new dialog instance.
@precond m_aMutex is locked
Definition at line 158 of file genericunodialog.cxx.
References createDialog(), m_bTitleAmbiguous, m_sTitle, m_xDialog, and m_xParent.
Referenced by execute().
|
protectedvirtual |
smaller form of <method>initialize</method>.
The <method>initialize</method> method is called with a sequence of com.sun.star.uno::Any's, which is split up into the single elements, which are passed to implInitialize. The default implementation tries to extract a com.sun.star.beans::PropertyValue from the value a pass it to the com.sun.star.beans::XPropertySet interface of the object.
Definition at line 221 of file genericunodialog.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and setPropertyValue().
Referenced by initialize().
|
overridevirtual |
Definition at line 242 of file genericunodialog.cxx.
References aArguments, Any, implInitialize(), comphelper::OMutexAndBroadcastHelper::m_aMutex, and m_bInitialized.
|
overridevirtual |
Definition at line 71 of file genericunodialog.cxx.
References Any, and XPropertySet.
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 100 of file genericunodialog.cxx.
References m_bTitleAmbiguous, m_sTitle, m_xDialog, nHandle, and UNODIALOG_PROPERTY_ID_TITLE.
|
overridevirtual |
Definition at line 137 of file genericunodialog.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, setPropertyValue(), and svt::UNODIALOG_PROPERTY_TITLE.
Referenced by svt::OGenericUnoAsyncDialog< T >::setDialogTitle().
|
overridevirtual |
Definition at line 94 of file genericunodialog.cxx.
References ServiceName, and cppu::supportsService().
|
protected |
parent window
Definition at line 72 of file genericunodialog.hxx.
|
protected |
|
protected |
m_sTitle has not been set yet
Definition at line 65 of file genericunodialog.hxx.
Referenced by initialize().
|
protected |
we're currently executing the dialog
Definition at line 64 of file genericunodialog.hxx.
Referenced by impl_ensureDialog_lck(), and setFastPropertyValue_NoBroadcast().
|
protected |
has "initialize" been called?
Definition at line 68 of file genericunodialog.hxx.
Referenced by impl_ensureDialog_lck(), OGenericUnoDialog(), and setFastPropertyValue_NoBroadcast().
|
protected |
Definition at line 62 of file genericunodialog.hxx.
Referenced by destroyDialog(), execute(), impl_ensureDialog_lck(), setFastPropertyValue_NoBroadcast(), and ~OGenericUnoDialog().
|
protected |
title of the dialog
Definition at line 69 of file genericunodialog.hxx.
Referenced by convertFastPropertyValue(), impl_ensureDialog_lck(), and OGenericUnoDialog().