summaryrefslogtreecommitdiff
path: root/extensions/source/scanner/scanner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/scanner/scanner.cxx')
-rw-r--r--extensions/source/scanner/scanner.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/source/scanner/scanner.cxx b/extensions/source/scanner/scanner.cxx
index e03cf30e9737..d51fca0b1ef9 100644
--- a/extensions/source/scanner/scanner.cxx
+++ b/extensions/source/scanner/scanner.cxx
@@ -20,7 +20,7 @@
#include "scanner.hxx"
#include <cppuhelper/supportsservice.hxx>
-
+#include <comphelper/namedvaluecollection.hxx>
Reference< XInterface > ScannerManager_CreateInstance( const Reference< css::lang::XMultiServiceFactory >& /*rxFactory*/ )
{
@@ -83,4 +83,11 @@ sal_Bool SAL_CALL ScannerManager::configureScanner( ScannerContext& rContext )
return configureScannerAndScan( rContext, nullptr );
}
+void SAL_CALL ScannerManager::initialize(const css::uno::Sequence<css::uno::Any>& rArguments)
+{
+ ::comphelper::NamedValueCollection aProperties(rArguments);
+ if (aProperties.has("ParentWindow"))
+ aProperties.get("ParentWindow") >>= mxDialogParent;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */