summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno/composerdialogs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/uno/composerdialogs.cxx')
-rw-r--r--dbaccess/source/ui/uno/composerdialogs.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/dbaccess/source/ui/uno/composerdialogs.cxx b/dbaccess/source/ui/uno/composerdialogs.cxx
index 99645b4ed8a1..008d17416b6c 100644
--- a/dbaccess/source/ui/uno/composerdialogs.cxx
+++ b/dbaccess/source/ui/uno/composerdialogs.cxx
@@ -153,6 +153,7 @@ namespace dbaui
{
if( aArguments.getLength() == 3 )
{
+ // this is the FilterDialog::createWithQuery method
Reference<com::sun::star::sdb::XSingleSelectQueryComposer> xQueryComposer;
aArguments[0] >>= xQueryComposer;
Reference<com::sun::star::sdbc::XRowSet> xRowSet;
@@ -195,6 +196,22 @@ namespace dbaui
}
//---------------------------------------------------------------------
+ void SAL_CALL RowsetOrderDialog::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException)
+ {
+ if( aArguments.getLength() == 2 )
+ {
+ Reference<com::sun::star::sdb::XSingleSelectQueryComposer> xQueryComposer;
+ aArguments[0] >>= xQueryComposer;
+ Reference<com::sun::star::beans::XPropertySet> xRowSet;
+ aArguments[1] >>= xRowSet;
+ setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "QueryComposer" ) ), makeAny( xQueryComposer ) );
+ setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "RowSet" ) ), makeAny( xRowSet ) );
+ }
+ else
+ ComposerDialog::initialize(aArguments);
+ }
+
+ //---------------------------------------------------------------------
void RowsetOrderDialog::executedDialog( sal_Int16 _nExecutionResult )
{
ComposerDialog::executedDialog( _nExecutionResult );