summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-03 14:39:09 +0200
committerNoel Grandin <noel@peralex.com>2013-01-09 08:08:14 +0200
commit3a50e97499d0c1ff6307dcfe9883aea1af300947 (patch)
tree24e6c2801ecfffbd649aaa7fdc47fdd4d58cd2d2 /extensions
parentb498ff10d202287eabb27aa286c860cb766f8423 (diff)
fdo#46808, Adapt sdb::OrderDialog UNO service to new style
The service already existed, it just did not have an IDL file. Change-Id: If24e9d6069bf7454bb0add3be8c4bc5916cc4d1f
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 2a26b9e249d5..fb691d0f850f 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -43,6 +43,7 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/form/XForm.hpp>
#include <com/sun/star/container/XChild.hpp>
+#include <com/sun/star/sdb/OrderDialog.hpp>
#include <com/sun/star/sdb/FilterDialog.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdb/CommandType.hpp>
@@ -2644,12 +2645,7 @@ namespace pcr
}
else
{
- const sal_Char* pAsciiServiceName = "com.sun.star.sdb.OrderDialog";
- if ( !m_aContext.createComponent( pAsciiServiceName, xDialog ) )
- {
- ShowServiceNotAvailableError( impl_getDefaultDialogParent_nothrow(), ::rtl::OUString::createFromAscii( pAsciiServiceName ), sal_True );
- return false;
- }
+ xDialog.set( sdb::OrderDialog::createDefault(m_aContext.getUNOContext()) );
}