/** abstract base class for implementing UNO objects representing dialogs (com.sun.star.awt::XDialog)
*/ class SVT_DLLPUBLIC OGenericUnoDialog
:public OGenericUnoDialogBase
,public ::comphelper::OMutexAndBroadcastHelper
,public ::comphelper::OPropertyContainer
{ protected:
std::unique_ptr<weld::DialogController> m_xDialog; /// the dialog to execute bool m_bExecuting : 1; /// we're currently executing the dialog bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet bool m_bInitialized : 1; /// has "initialize" been called?
// <properties>
OUString m_sTitle; /// title of the dialog
css::uno::Reference<css::awt::XWindow> m_xParent; /// parent window // </properties>
protected: /** create the concrete dialog instance. Note that m_aMutex is not locked when this method get called, buttheapplication-widesolarmutexis(toguardthenotthread-safectorofthedialog). @parampParenttheparentwindowforthenewdialog
*/ virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) = 0;
/// called to destroy the dialog used. deletes m_pDialog and resets it to NULL void destroyDialog();
/** called after the dialog has been executed @param_nExecutionResulttheexecutionresultasreturnedbyDialog::Execute
*/ virtualvoid executedDialog(sal_Int16 /*_nExecutionResult*/) { }
/** smaller form of <method>initialize</method>.<p/> The<method>initialize</method>methodiscalledwithasequenceofcom.sun.star.uno::Any's, whichissplitupintothesingleelements,whicharepassedtoimplInitialize.Thedefaultimplementation triestoextractacom.sun.star.beans::PropertyValuefromthevalueapassittothe com.sun.star.beans::XPropertySetinterfaceoftheobject.
*/ virtualvoid implInitialize(const css::uno::Any& _rValue);
/// helper class for guarding access to methods of an OGenericUnoDialog class UnoDialogEntryGuard
{ public:
UnoDialogEntryGuard( OGenericUnoDialog& _rDialog )
:m_aGuard( _rDialog.GetMutex() )
{
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.