From 6e5cb64670936ec86067c48b96e6b51715b6f18c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Dec 2012 17:18:33 +0200 Subject: 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 --- dbaccess/source/ui/uno/composerdialogs.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'dbaccess/source/ui/uno/composerdialogs.cxx') 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 xQueryComposer; + aArguments[0] >>= xQueryComposer; + Reference xRowSet; + aArguments[1] >>= xRowSet; + Reference 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 ) { -- cgit v1.2.3