Kaydet (Commit) 177f01b9 authored tarafından Noel Grandin's avatar Noel Grandin

fdo#46808, Convert form::inspection::FormComponentPropertyHandler

.. to new style service

Change-Id: Iee4681f94dc9874271dc8a1d5d74e161d7691a29
üst 9db162b6
......@@ -22,6 +22,7 @@
#include "formmetadata.hxx"
#include "pushbuttonnavigation.hxx"
#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
#include <tools/debug.hxx>
//------------------------------------------------------------------------
......@@ -52,9 +53,7 @@ namespace pcr
{
DBG_CTOR( ButtonNavigationHandler, NULL );
m_xSlaveHandler.set( m_xContext->getServiceManager()->createInstanceWithContext(
OUString( "com.sun.star.form.inspection.FormComponentPropertyHandler" ), m_xContext ),
UNO_QUERY_THROW);
m_xSlaveHandler = css::form::inspection::FormComponentPropertyHandler::create( m_xContext );
}
//--------------------------------------------------------------------
......
......@@ -181,6 +181,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/contr
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/inspection,\
DefaultFormComponentInspectorModel \
FormComponentPropertyHandler \
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/runtime,\
FormController \
......@@ -924,7 +925,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/form/in
CellBindingPropertyHandler \
EditPropertyHandler \
EventHandler \
FormComponentPropertyHandler \
SubmissionPropertyHandler \
XMLFormsPropertyHandler \
XSDValidationPropertyHandler \
......
......@@ -31,10 +31,7 @@ module com { module sun { module star { module form { module inspection {
@see com::sun::star::inspection::XPropertyHandler
@see com::sun::star::form::FormComponents
*/
service FormComponentPropertyHandler
{
interface com::sun::star::inspection::XPropertyHandler;
};
service FormComponentPropertyHandler : com::sun::star::inspection::XPropertyHandler;
}; }; }; }; };
......
......@@ -25,6 +25,7 @@
#include "uistrings.hrc"
#include <toolkit/helper/vclunohelper.hxx>
#include <unotools/syslocale.hxx>
#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
#include <com/sun/star/inspection/PropertyControlType.hpp>
#include <com/sun/star/inspection/PropertyLineElement.hpp>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
......@@ -63,8 +64,8 @@ DataProviderHandler::DataProviderHandler(uno::Reference< uno::XComponentContext
{
try
{
m_xFormComponentHandler.set(m_xContext->getServiceManager()->createInstanceWithContext(OUString("com.sun.star.form.inspection.FormComponentPropertyHandler"),m_xContext),uno::UNO_QUERY_THROW);
m_xTypeConverter.set(script::Converter::create(m_xContext));
m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
m_xTypeConverter = script::Converter::create(m_xContext);
}catch(const uno::Exception &)
{
......
......@@ -34,6 +34,7 @@
#include <tools/diagnose_ex.h>
#include <tools/StringListResource.hxx>
#include <com/sun/star/lang/XInitialization.hpp>
#include "com/sun/star/form/inspection/FormComponentPropertyHandler.hpp"
#include "com/sun/star/inspection/StringRepresentation.hpp"
#include <com/sun/star/inspection/PropertyLineElement.hpp>
#include <com/sun/star/inspection/PropertyControlType.hpp>
......@@ -238,9 +239,8 @@ GeometryHandler::GeometryHandler(uno::Reference< uno::XComponentContext > const
DBG_CTOR(rpt_GeometryHandler,NULL);
try
{
const uno::Reference< lang::XMultiComponentFactory > xFac = m_xContext->getServiceManager();
m_xFormComponentHandler.set(xFac->createInstanceWithContext(OUString("com.sun.star.form.inspection.FormComponentPropertyHandler"),m_xContext),uno::UNO_QUERY_THROW);
m_xTypeConverter.set(script::Converter::create(context));
m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
m_xTypeConverter = script::Converter::create(context);
loadDefaultFunctions();
}
catch(const uno::Exception&)
......
......@@ -23,6 +23,7 @@
#include <comphelper/types.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <unotools/syslocale.hxx>
#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
#include <com/sun/star/inspection/PropertyControlType.hpp>
#include <com/sun/star/report/XReportDefinition.hpp>
#include <com/sun/star/report/XSection.hpp>
......@@ -45,7 +46,7 @@ ReportComponentHandler::ReportComponentHandler(uno::Reference< uno::XComponentCo
{
try
{
m_xFormComponentHandler.set(m_xContext->getServiceManager()->createInstanceWithContext(OUString("com.sun.star.form.inspection.FormComponentPropertyHandler"),m_xContext),uno::UNO_QUERY_THROW);
m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
}catch(const uno::Exception &)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment