diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-17 15:19:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-18 14:10:59 +0100 |
commit | 49a608a2121e86a5da81caab4a29289a6937638e (patch) | |
tree | 013072d230a7667b3883b9f22e003ebae727987b /dbaccess | |
parent | 1db0e536516b912c6b5e266a05f50a0dbfc58e67 (diff) |
[API CHANGE] tdf#122152 set dialog parent
Change-Id: I15f6d577c3584d28f667a04b5571de80effe53fe
Reviewed-on: https://gerrit.libreoffice.org/65274
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 0a9917b756cf49b117766c9236a7bf63d6d4b607)
Reviewed-on: https://gerrit.libreoffice.org/65328
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/uno/composerdialogs.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/ui/uno/composerdialogs.cxx b/dbaccess/source/ui/uno/composerdialogs.cxx index 95186c74be02..c9b1973bb4a9 100644 --- a/dbaccess/source/ui/uno/composerdialogs.cxx +++ b/dbaccess/source/ui/uno/composerdialogs.cxx @@ -198,7 +198,7 @@ namespace dbaui void SAL_CALL RowsetOrderDialog::initialize( const Sequence< Any >& aArguments ) { - if( aArguments.getLength() == 2 ) + if (aArguments.getLength() == 2 || aArguments.getLength() == 3) { Reference<css::sdb::XSingleSelectQueryComposer> xQueryComposer; aArguments[0] >>= xQueryComposer; @@ -206,6 +206,12 @@ namespace dbaui aArguments[1] >>= xRowSet; setPropertyValue( "QueryComposer", makeAny( xQueryComposer ) ); setPropertyValue( "RowSet", makeAny( xRowSet ) ); + if (aArguments.getLength() == 3) + { + Reference<css::awt::XWindow> xParentWindow; + aArguments[2] >>= xParentWindow; + setPropertyValue("ParentWindow", makeAny(xParentWindow)); + } } else ComposerDialog::initialize(aArguments); |