Kaydet (Commit) 17984250 authored tarafından Ursache Vladimir's avatar Ursache Vladimir Kaydeden (comit) Jan Holesovsky

stocservices.component partly refactored to use the "constructor" feature.

Change-Id: I4c1c5e62de608738a91be4a234d9c160a18cbf8f
üst 8f5eff22
......@@ -39,19 +39,6 @@ static const struct ImplementationEntry g_entries[] =
tcv_getSupportedServiceNames, createSingleComponentFactory,
0, 0
},
// uriproc
{
ExternalUriReferenceTranslator::create,
ExternalUriReferenceTranslator::getImplementationName,
ExternalUriReferenceTranslator::getSupportedServiceNames,
createSingleComponentFactory, 0, 0
},
{
UriReferenceFactory::create,
UriReferenceFactory::getImplementationName,
UriReferenceFactory::getSupportedServiceNames,
createSingleComponentFactory, 0, 0
},
{
UriSchemeParser_vndDOTsunDOTstarDOTexpand::create,
UriSchemeParser_vndDOTsunDOTstarDOTexpand::getImplementationName,
......@@ -64,12 +51,6 @@ static const struct ImplementationEntry g_entries[] =
UriSchemeParser_vndDOTsunDOTstarDOTscript::getSupportedServiceNames,
createSingleComponentFactory, 0, 0
},
{
VndSunStarPkgUrlReferenceFactory::create,
VndSunStarPkgUrlReferenceFactory::getImplementationName,
VndSunStarPkgUrlReferenceFactory::getSupportedServiceNames,
createSingleComponentFactory, 0, 0
},
{ 0, 0, 0, 0, 0, 0 }
};
......
......@@ -213,4 +213,11 @@ css::uno::Sequence< OUString > getSupportedServiceNames() {
} }
extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL
com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation(::com::sun::star::uno::XComponentContext* rxContext,
::com::sun::star::uno::Sequence<css::uno::Any> const &)
{
return ::cppu::acquire(new Translator(rxContext));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -652,4 +652,11 @@ css::uno::Sequence< OUString > getSupportedServiceNames() {
} }
extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL
com_sun_star_comp_uri_UriReferenceFactory_get_implementation(::com::sun::star::uno::XComponentContext* rxContext,
::com::sun::star::uno::Sequence<css::uno::Any> const &)
{
return ::cppu::acquire(new Factory(rxContext));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -143,4 +143,11 @@ css::uno::Sequence< OUString > getSupportedServiceNames() {
} }
extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL
com_sun_star_comp_uri_VndSunStarPkgUrlReferenceFactory_get_implementation(::com::sun::star::uno::XComponentContext* rxContext,
::com::sun::star::uno::Sequence<css::uno::Any> const &)
{
return ::cppu::acquire(new Factory(rxContext));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -22,10 +22,12 @@
<implementation name="com.sun.star.comp.stoc.TypeConverter">
<service name="com.sun.star.script.Converter"/>
</implementation>
<implementation name="com.sun.star.comp.uri.ExternalUriReferenceTranslator">
<implementation name="com.sun.star.comp.uri.ExternalUriReferenceTranslator"
constructor="com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation">
<service name="com.sun.star.uri.ExternalUriReferenceTranslator"/>
</implementation>
<implementation name="com.sun.star.comp.uri.UriReferenceFactory">
<implementation name="com.sun.star.comp.uri.UriReferenceFactory"
constructor="com_sun_star_comp_uri_UriReferenceFactory_get_implementation">
<service name="com.sun.star.uri.UriReferenceFactory"/>
</implementation>
<implementation
......@@ -36,7 +38,8 @@
name="com.sun.star.comp.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript">
<service name="com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript"/>
</implementation>
<implementation name="com.sun.star.comp.uri.VndSunStarPkgUrlReferenceFactory">
<implementation name="com.sun.star.comp.uri.VndSunStarPkgUrlReferenceFactory"
constructor="com_sun_star_comp_uri_VndSunStarPkgUrlReferenceFactory_get_implementation">
<service name="com.sun.star.uri.VndSunStarPkgUrlReferenceFactory"/>
</implementation>
</component>
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