Kaydet (Commit) 185eacbb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up previous commit

Change-Id: I754ac95c851892bdf7630d6f6241ed86f3750cf1
üst 94fc8ec1
...@@ -113,7 +113,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor ...@@ -113,7 +113,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
/* XServiceInfo */ /* XServiceInfo */
OUString SAL_CALL SwFilterDetect::getImplementationName() throw( RuntimeException, std::exception ) OUString SAL_CALL SwFilterDetect::getImplementationName() throw( RuntimeException, std::exception )
{ {
return impl_getStaticImplementationName(); return OUString("com.sun.star.comp.writer.FormatDetector" );
} }
/* XServiceInfo */ /* XServiceInfo */
...@@ -124,12 +124,6 @@ sal_Bool SAL_CALL SwFilterDetect::supportsService( const OUString& sServiceName ...@@ -124,12 +124,6 @@ sal_Bool SAL_CALL SwFilterDetect::supportsService( const OUString& sServiceName
/* XServiceInfo */ /* XServiceInfo */
Sequence< OUString > SAL_CALL SwFilterDetect::getSupportedServiceNames() throw( RuntimeException, std::exception ) Sequence< OUString > SAL_CALL SwFilterDetect::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
return impl_getStaticSupportedServiceNames();
}
/* Helper for XServiceInfo */
Sequence< OUString > SwFilterDetect::impl_getStaticSupportedServiceNames()
{ {
Sequence< OUString > seqServiceNames( 3 ); Sequence< OUString > seqServiceNames( 3 );
seqServiceNames.getArray() [0] = "com.sun.star.frame.ExtendedTypeDetection"; seqServiceNames.getArray() [0] = "com.sun.star.frame.ExtendedTypeDetection";
...@@ -138,14 +132,8 @@ Sequence< OUString > SwFilterDetect::impl_getStaticSupportedServiceNames() ...@@ -138,14 +132,8 @@ Sequence< OUString > SwFilterDetect::impl_getStaticSupportedServiceNames()
return seqServiceNames ; return seqServiceNames ;
} }
/* Helper for XServiceInfo */
OUString SwFilterDetect::impl_getStaticImplementationName()
{
return OUString("com.sun.star.comp.writer.FormatDetector" );
}
extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL
com_sun_star_comp_writer_FormatDetector_get_implementation(::com::sun::star::uno::XComponentContext* component, com_sun_star_comp_writer_FormatDetector_get_implementation(::com::sun::star::uno::XComponentContext*,
::com::sun::star::uno::Sequence<css::uno::Any> const &) ::com::sun::star::uno::Sequence<css::uno::Any> const &)
{ {
return cppu::acquire(new SwFilterDetect()); return cppu::acquire(new SwFilterDetect());
......
...@@ -39,10 +39,6 @@ namespace com ...@@ -39,10 +39,6 @@ namespace com
{ {
namespace star namespace star
{ {
namespace lang
{
class XMultiServiceFactory;
}
namespace beans namespace beans
{ {
struct PropertyValue; struct PropertyValue;
...@@ -66,10 +62,6 @@ public: ...@@ -66,10 +62,6 @@ public:
virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
/* Helper for XServiceInfo */
static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames();
static OUString impl_getStaticImplementationName();
// XExtendedFilterDetect // XExtendedFilterDetect
virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
}; };
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
--> -->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" <component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
prefix="swd" xmlns="http://openoffice.org/2010/uno-components"> xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.writer.FormatDetector" <implementation name="com.sun.star.comp.writer.FormatDetector"
constructor="com_sun_star_comp_writer_FormatDetector_get_implementation"> constructor="com_sun_star_comp_writer_FormatDetector_get_implementation">
<service name="com.sun.star.frame.ExtendedTypeDetection"/> <service name="com.sun.star.frame.ExtendedTypeDetection"/>
<service name="com.sun.star.text.FormatDetector"/> <service name="com.sun.star.text.FormatDetector"/>
<service name="com.sun.star.text.W4WFormatDetector"/> <service name="com.sun.star.text.W4WFormatDetector"/>
......
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