diff options
Diffstat (limited to 'extensions/source/abpilot/unodialogabp.cxx')
-rw-r--r-- | extensions/source/abpilot/unodialogabp.cxx | 13 |
1 files changed, 13 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) { |