fdo#46808, Convert form::inspection::FormComponentPropertyHandler
.. to new style service Change-Id: Iee4681f94dc9874271dc8a1d5d74e161d7691a29
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include "formmetadata.hxx"
|
#include "formmetadata.hxx"
|
||||||
#include "pushbuttonnavigation.hxx"
|
#include "pushbuttonnavigation.hxx"
|
||||||
|
|
||||||
|
#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
|
||||||
#include <tools/debug.hxx>
|
#include <tools/debug.hxx>
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
@@ -52,9 +53,7 @@ namespace pcr
|
|||||||
{
|
{
|
||||||
DBG_CTOR( ButtonNavigationHandler, NULL );
|
DBG_CTOR( ButtonNavigationHandler, NULL );
|
||||||
|
|
||||||
m_xSlaveHandler.set( m_xContext->getServiceManager()->createInstanceWithContext(
|
m_xSlaveHandler = css::form::inspection::FormComponentPropertyHandler::create( m_xContext );
|
||||||
OUString( "com.sun.star.form.inspection.FormComponentPropertyHandler" ), m_xContext ),
|
|
||||||
UNO_QUERY_THROW);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
@@ -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,\
|
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/inspection,\
|
||||||
DefaultFormComponentInspectorModel \
|
DefaultFormComponentInspectorModel \
|
||||||
|
FormComponentPropertyHandler \
|
||||||
))
|
))
|
||||||
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/runtime,\
|
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/form/runtime,\
|
||||||
FormController \
|
FormController \
|
||||||
@@ -924,7 +925,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/form/in
|
|||||||
CellBindingPropertyHandler \
|
CellBindingPropertyHandler \
|
||||||
EditPropertyHandler \
|
EditPropertyHandler \
|
||||||
EventHandler \
|
EventHandler \
|
||||||
FormComponentPropertyHandler \
|
|
||||||
SubmissionPropertyHandler \
|
SubmissionPropertyHandler \
|
||||||
XMLFormsPropertyHandler \
|
XMLFormsPropertyHandler \
|
||||||
XSDValidationPropertyHandler \
|
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::inspection::XPropertyHandler
|
||||||
@see com::sun::star::form::FormComponents
|
@see com::sun::star::form::FormComponents
|
||||||
*/
|
*/
|
||||||
service FormComponentPropertyHandler
|
service FormComponentPropertyHandler : com::sun::star::inspection::XPropertyHandler;
|
||||||
{
|
|
||||||
interface com::sun::star::inspection::XPropertyHandler;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}; }; }; }; };
|
}; }; }; }; };
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include "uistrings.hrc"
|
#include "uistrings.hrc"
|
||||||
#include <toolkit/helper/vclunohelper.hxx>
|
#include <toolkit/helper/vclunohelper.hxx>
|
||||||
#include <unotools/syslocale.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/PropertyControlType.hpp>
|
||||||
#include <com/sun/star/inspection/PropertyLineElement.hpp>
|
#include <com/sun/star/inspection/PropertyLineElement.hpp>
|
||||||
#include <com/sun/star/chart/ChartDataRowSource.hpp>
|
#include <com/sun/star/chart/ChartDataRowSource.hpp>
|
||||||
@@ -63,8 +64,8 @@ DataProviderHandler::DataProviderHandler(uno::Reference< uno::XComponentContext
|
|||||||
{
|
{
|
||||||
try
|
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);
|
||||||
m_xTypeConverter.set(script::Converter::create(m_xContext));
|
m_xTypeConverter = script::Converter::create(m_xContext);
|
||||||
|
|
||||||
}catch(const uno::Exception &)
|
}catch(const uno::Exception &)
|
||||||
{
|
{
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
#include <tools/diagnose_ex.h>
|
#include <tools/diagnose_ex.h>
|
||||||
#include <tools/StringListResource.hxx>
|
#include <tools/StringListResource.hxx>
|
||||||
#include <com/sun/star/lang/XInitialization.hpp>
|
#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/StringRepresentation.hpp"
|
||||||
#include <com/sun/star/inspection/PropertyLineElement.hpp>
|
#include <com/sun/star/inspection/PropertyLineElement.hpp>
|
||||||
#include <com/sun/star/inspection/PropertyControlType.hpp>
|
#include <com/sun/star/inspection/PropertyControlType.hpp>
|
||||||
@@ -238,9 +239,8 @@ GeometryHandler::GeometryHandler(uno::Reference< uno::XComponentContext > const
|
|||||||
DBG_CTOR(rpt_GeometryHandler,NULL);
|
DBG_CTOR(rpt_GeometryHandler,NULL);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const uno::Reference< lang::XMultiComponentFactory > xFac = m_xContext->getServiceManager();
|
m_xFormComponentHandler = form::inspection::FormComponentPropertyHandler::create(m_xContext);
|
||||||
m_xFormComponentHandler.set(xFac->createInstanceWithContext(OUString("com.sun.star.form.inspection.FormComponentPropertyHandler"),m_xContext),uno::UNO_QUERY_THROW);
|
m_xTypeConverter = script::Converter::create(context);
|
||||||
m_xTypeConverter.set(script::Converter::create(context));
|
|
||||||
loadDefaultFunctions();
|
loadDefaultFunctions();
|
||||||
}
|
}
|
||||||
catch(const uno::Exception&)
|
catch(const uno::Exception&)
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
#include <comphelper/types.hxx>
|
#include <comphelper/types.hxx>
|
||||||
#include <toolkit/helper/vclunohelper.hxx>
|
#include <toolkit/helper/vclunohelper.hxx>
|
||||||
#include <unotools/syslocale.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/PropertyControlType.hpp>
|
||||||
#include <com/sun/star/report/XReportDefinition.hpp>
|
#include <com/sun/star/report/XReportDefinition.hpp>
|
||||||
#include <com/sun/star/report/XSection.hpp>
|
#include <com/sun/star/report/XSection.hpp>
|
||||||
@@ -45,7 +46,7 @@ ReportComponentHandler::ReportComponentHandler(uno::Reference< uno::XComponentCo
|
|||||||
{
|
{
|
||||||
try
|
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 &)
|
}catch(const uno::Exception &)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user