24#include <com/sun/star/lang/XServiceInfo.hpp>
25#include <com/sun/star/lang/XInitialization.hpp>
26#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
34namespace com :: sun :: star :: awt {
class XWindow; }
35namespace com :: sun :: star ::
uno {
class XComponentContext; }
44#define UNODIALOG_PROPERTY_ID_TITLE 1
45#define UNODIALOG_PROPERTY_ID_PARENT 2
50 typedef cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog,
51 css::lang::XServiceInfo,
72 css::uno::Reference<css::uno::XComponentContext>
m_aContext;
75 OGenericUnoDialog(
const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
81 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& _rType)
override;
84 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes( )
override;
93 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
const css::uno::Any& rValue )
override;
94 virtual sal_Bool SAL_CALL convertFastPropertyValue( css::uno::Any& rConvertedValue, css::uno::Any& rOldValue, sal_Int32 nHandle,
const css::uno::Any& rValue)
override;
97 virtual void SAL_CALL setTitle(
const OUString& aTitle )
override;
98 virtual sal_Int16 SAL_CALL execute( )
override;
101 virtual void SAL_CALL initialize(
const css::uno::Sequence< css::uno::Any >& aArguments )
override;
108 virtual std::unique_ptr<weld::DialogController>
createDialog(
const css::uno::Reference<css::awt::XWindow>& rParent) = 0;
111 void destroyDialog();
124 virtual void implInitialize(
const css::uno::Any& _rValue);
141 bool impl_ensureDialog_lck();
abstract base class for implementing UNO objects representing dialogs (com.sun.star....
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override=0
std::unique_ptr< weld::DialogController > m_xDialog
virtual std::unique_ptr< weld::DialogController > createDialog(const css::uno::Reference< css::awt::XWindow > &rParent)=0
create the concrete dialog instance.
virtual void executedDialog(sal_Int16)
called after the dialog has been executed
virtual OUString SAL_CALL getImplementationName() override=0
css::uno::Reference< css::awt::XWindow > m_xParent
title of the dialog
OUString m_sTitle
has "initialize" been called?
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override=0
bool m_bExecuting
the dialog to execute
css::uno::Reference< css::uno::XComponentContext > m_aContext
parent window
bool m_bInitialized
m_sTitle has not been set yet
bool m_bTitleAmbiguous
we're currently executing the dialog
helper class for guarding access to methods of an OGenericUnoDialog
UnoDialogEntryGuard(OGenericUnoDialog &_rDialog)
::osl::MutexGuard m_aGuard
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral UNODIALOG_PROPERTY_TITLE
constexpr OUStringLiteral UNODIALOG_PROPERTY_PARENT
cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog, css::lang::XServiceInfo, css::lang::XInitialization > OGenericUnoDialogBase
#define DECLARE_UNO3_DEFAULTS(classname, baseclass)