diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-12 17:18:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-21 09:12:09 +0200 |
commit | 6e5cb64670936ec86067c48b96e6b51715b6f18c (patch) | |
tree | ef7c622316248b87b8011c0867983c9a204ae956 /dbaccess | |
parent | ec6843f51f38903b16750752e50dc0b05023edab (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')
-rw-r--r-- | dbaccess/source/ui/uno/composerdialogs.cxx | 19 | ||||
-rw-r--r-- | dbaccess/source/ui/uno/composerdialogs.hxx | 3 |
2 files changed, 22 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 ) { diff --git a/dbaccess/source/ui/uno/composerdialogs.hxx b/dbaccess/source/ui/uno/composerdialogs.hxx index b7e94cc71d4a..9a718c06991e 100644 --- a/dbaccess/source/ui/uno/composerdialogs.hxx +++ b/dbaccess/source/ui/uno/composerdialogs.hxx @@ -98,6 +98,9 @@ namespace dbaui // OGenericUnoDialog overridables virtual void executedDialog( sal_Int16 _nExecutionResult ); + virtual void initialize( const ::com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) + throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException); + }; //===================================================================== |