summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno/composerdialogs.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-12 17:18:33 +0200
committerNoel Grandin <noel@peralex.com>2012-12-21 09:12:09 +0200
commit6e5cb64670936ec86067c48b96e6b51715b6f18c (patch)
treeef7c622316248b87b8011c0867983c9a204ae956 /dbaccess/source/ui/uno/composerdialogs.cxx
parentec6843f51f38903b16750752e50dc0b05023edab (diff)
fdo#46808, Adapt sdb::FilterDialog UNO service to new style
The service already existed, it just did not have an IDL file. Change-Id: I2267bec182ad1cc8f6a37939861a7368a17fcef2
Diffstat (limited to 'dbaccess/source/ui/uno/composerdialogs.cxx')
-rw-r--r--dbaccess/source/ui/uno/composerdialogs.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/dbaccess/source/ui/uno/composerdialogs.cxx b/dbaccess/source/ui/uno/composerdialogs.cxx
index 5f65656baacf..d3bad7a193fe 100644
--- a/dbaccess/source/ui/uno/composerdialogs.cxx
+++ b/dbaccess/source/ui/uno/composerdialogs.cxx
@@ -149,6 +149,25 @@ namespace dbaui
return new DlgFilterCrit( _pParent, m_aContext.getUNOContext(), _rxConnection, m_xComposer, _rxColumns );
}
+ void RowsetFilterDialog::initialize( const Sequence< Any >& aArguments )
+ throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException)
+ {
+ if( aArguments.getLength() == 3 )
+ {
+ Reference<com::sun::star::sdb::XSingleSelectQueryComposer> xQueryComposer;
+ aArguments[0] >>= xQueryComposer;
+ Reference<com::sun::star::sdbc::XRowSet> xRowSet;
+ aArguments[1] >>= xRowSet;
+ Reference<com::sun::star::awt::XWindow> xParentWindow;
+ aArguments[2] >>= xParentWindow;
+ setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "QueryComposer" ) ), makeAny( xQueryComposer ) );
+ setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RowSet" ) ), makeAny( xRowSet ) );
+ setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ParentWindow" ) ), makeAny( xParentWindow ) );
+ }
+ else
+ ComposerDialog::initialize(aArguments);
+ }
+
//---------------------------------------------------------------------
void RowsetFilterDialog::executedDialog( sal_Int16 _nExecutionResult )
{