summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-20 09:09:50 +0200
committerNoel Grandin <noel@peralex.com>2013-03-25 10:35:04 +0200
commitd08f360e6debc38868e84030a8ec3ed401803754 (patch)
tree7466326d46caba073187d8c3dd4c693c08135ca6
parentede7627d241f6f698d55411c3815c0288ce48b07 (diff)
fdo#46808, convert extension from deprecated interface
Change-Id: I2404637c7f1dc0a89882540581ae34a706ff86ee
-rw-r--r--extensions/source/propctrlr/taborder.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx
index eb353bd4b33b..6fe43eb26cf6 100644
--- a/extensions/source/propctrlr/taborder.cxx
+++ b/extensions/source/propctrlr/taborder.cxx
@@ -27,7 +27,7 @@
#include <comphelper/property.hxx>
#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/form/FormComponentType.hpp>
-#include <com/sun/star/awt/XTabController.hpp>
+#include <com/sun/star/form/runtime/FormController.hpp>
#include <vcl/scrbar.hxx>
#include "svtools/treelistentry.hxx"
@@ -241,12 +241,7 @@ namespace pcr
{
try
{
- Reference< XTabController > xTabController;
- if ( m_xORB.is() )
- xTabController.set( m_xORB->getServiceManager()->createInstanceWithContext("com.sun.star.form.FormController", m_xORB), UNO_QUERY_THROW );
- DBG_ASSERT( xTabController.is(), "TabOrderDialog::AutoOrderClickHdl: could not instantiate a tab controller!" );
- if ( !xTabController.is() )
- return 0;
+ Reference< css::form::runtime::XFormController > xTabController = css::form::runtime::FormController::create( m_xORB );
xTabController->setModel( m_xTempModel );
xTabController->setContainer( m_xControlContainer );