24#include <com/sun/star/beans/PropertyAttribute.hpp>
25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/awt/XWindow.hpp>
28#define PROPERTY_ID_DATASOURCENAME 3
39 :OGenericUnoDialog(_rxORB)
53 svt::OGenericUnoDialog::acquire();
58 svt::OGenericUnoDialog::release();
63 return ::comphelper::concatSequences(
71 return css::uno::Sequence<sal_Int8>();
76 return "org.openoffice.comp.abp.OAddressBookSourcePilot";
81 return {
"com.sun.star.ui.dialogs.AddressBookSourcePilot" };
86 Reference<XPropertySetInfo> xInfo( createPropertySetInfo(
getInfoHelper() ) );
99 Sequence< Property > aProps;
100 describeProperties(aProps);
101 return new ::cppu::OPropertyArrayHelper(aProps);
106 Reference<awt::XWindow> xParentWindow;
108 Sequence< Any > aNewArgs{
Any(PropertyValue(
109 "ParentWindow", 0,
Any(xParentWindow), PropertyState_DIRECT_VALUE )) };
110 OGenericUnoDialog::initialize(aNewArgs);
125 static_cast< XExecutableDialog*
>( this )->
execute();
132 css::uno::Sequence< css::beans::NamedValue > lProtocol { {
"Deactivate", css::uno::Any(
true ) } };
133 return Any( lProtocol );
138 if ( _nExecutionResult ==
RET_OK )
148extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
150 css::uno::XComponentContext *context,
151 css::uno::Sequence<css::uno::Any>
const &)
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
the UNO wrapper for the address book source pilot
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual std::unique_ptr< weld::DialogController > createDialog(const css::uno::Reference< css::awt::XWindow > &rParent) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
OUString m_sDataSourceName
OABSPilotUno(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL acquire() noexcept override
virtual void executedDialog(sal_Int16 _nExecutionResult) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL release() noexcept override
::cppu::IPropertyArrayHelper * getArrayHelper()
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
std::unique_ptr< weld::DialogController > m_xDialog
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &_rType) override
css::uno::Reference< css::uno::XComponentContext > m_aContext
virtual sal_Int16 SAL_CALL execute() override
Sequence< PropertyValue > aArguments
OUString sRegisteredDataSourceName
#define PROPERTY_ID_DATASOURCENAME
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * org_openoffice_comp_abp_OAddressBookSourcePilot(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)