summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-05 14:17:14 +0200
committerNoel Grandin <noel@peralex.com>2013-03-07 08:23:41 +0200
commit30caf94d816dfcf9a5bc8cb5198c977d7021c369 (patch)
tree11e0d97b0dbe3d1ee2aeebf8107766c1dd6799fc /extensions
parentc98a1fa04884c7fa34dfeb5e2eae706e57c09123 (diff)
fdo#46808, Convert ui::dialogs::AddressBookSourceDialog to new style
The service already existed, it just needed an IDL file. Change-Id: I6b9a5a5fd02985bfdd29bb42f032265d0b5498c7
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/abpilot/unodialogabp.cxx13
-rw-r--r--extensions/source/abpilot/unodialogabp.hxx3
2 files changed, 16 insertions, 0 deletions
diff --git a/extensions/source/abpilot/unodialogabp.cxx b/extensions/source/abpilot/unodialogabp.cxx
index 1626d396574d..797bae2b9050 100644
--- a/extensions/source/abpilot/unodialogabp.cxx
+++ b/extensions/source/abpilot/unodialogabp.cxx
@@ -34,6 +34,7 @@ namespace abp
{
//.........................................................................
+ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
@@ -147,6 +148,18 @@ namespace abp
return new ::cppu::OPropertyArrayHelper(aProps);
}
+ void SAL_CALL OABSPilotUno::initialize( const Sequence< Any >& aArguments ) throw(Exception, RuntimeException)
+ {
+ Reference<awt::XWindow> xParentWindow;
+ if (aArguments.getLength() == 1 && (aArguments[0] >>= xParentWindow) ) {
+ Sequence< Any > aNewArgs(1);
+ aNewArgs[0] <<= PropertyValue( ::rtl::OUString("ParentWindow"), 0, makeAny(xParentWindow), PropertyState_DIRECT_VALUE );
+ OGenericUnoDialog::initialize(aNewArgs);
+ } else {
+ OGenericUnoDialog::initialize(aArguments);
+ }
+ }
+
//--------------------------------------------------------------------------
Dialog* OABSPilotUno::createDialog(Window* _pParent)
{
diff --git a/extensions/source/abpilot/unodialogabp.hxx b/extensions/source/abpilot/unodialogabp.hxx
index 189e9862b32d..ccfcb4e8f78a 100644
--- a/extensions/source/abpilot/unodialogabp.hxx
+++ b/extensions/source/abpilot/unodialogabp.hxx
@@ -78,6 +78,9 @@ namespace abp
// XJob
virtual ::com::sun::star::uno::Any SAL_CALL execute( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& lArgs ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
+ // XInitialisation
+ virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
+
using OABSPilotUno_DBase::execute;
protected:
// OGenericUnoDialog overridables