summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-04-19 12:12:29 +0200
committerDavid Tardon <dtardon@redhat.com>2012-04-19 13:33:18 +0200
commitabd74a8ef0ef260f901b1a03ca4dd47644e5fd46 (patch)
tree006496763a227dcefde2ce96bc3a4c3ad88520f0 /sdext/source
parent6d9a524352948695e9395226c7568980fd4d5f12 (diff)
convert pdfimport to passive registration
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/pdfimport/manifest.xml4
-rw-r--r--sdext/source/pdfimport/pdfimport.component19
-rw-r--r--sdext/source/pdfimport/services.cxx30
3 files changed, 21 insertions, 32 deletions
diff --git a/sdext/source/pdfimport/manifest.xml b/sdext/source/pdfimport/manifest.xml
index 5a0aaa5e96ac..2264a20158c9 100644
--- a/sdext/source/pdfimport/manifest.xml
+++ b/sdext/source/pdfimport/manifest.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
- <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=native"
- manifest:full-path="pdfimport.uno@SHARED_EXTENSION@"/>
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-components;platform=@PLATFORM@"
+ manifest:full-path="components.rdb"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.executable"
manifest:full-path="xpdfimport@EXEC_EXTENSION@"/>
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
diff --git a/sdext/source/pdfimport/pdfimport.component b/sdext/source/pdfimport/pdfimport.component
new file mode 100644
index 000000000000..1392302f358a
--- /dev/null
+++ b/sdext/source/pdfimport/pdfimport.component
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<component xmlns="http://openoffice.org/2010/uno-components"
+ loader="com.sun.star.loader.SharedLibrary">
+ <implementation name="com.sun.star.comp.documents.HybridPDFImport">
+ <service name="com.sun.star.document.ImportFilter"/>
+ </implementation>
+ <implementation name="com.sun.star.comp.documents.WriterPDFImport">
+ <service name="com.sun.star.document.ImportFilter"/>
+ </implementation>
+ <implementation name="com.sun.star.comp.documents.DrawPDFImport">
+ <service name="com.sun.star.document.ImportFilter"/>
+ </implementation>
+ <implementation name="com.sun.star.comp.documents.ImpressPDFImport">
+ <service name="com.sun.star.document.ImportFilter"/>
+ </implementation>
+ <implementation name="com.sun.star.comp.documents.PDFDetector">
+ <service name="com.sun.star.document.ImportFilter"/>
+ </implementation>
+</component>
diff --git a/sdext/source/pdfimport/services.cxx b/sdext/source/pdfimport/services.cxx
index e15d9a5f78ee..7e4da4b2132c 100644
--- a/sdext/source/pdfimport/services.cxx
+++ b/sdext/source/pdfimport/services.cxx
@@ -119,36 +119,6 @@ namespace
}
}
-extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL
-component_writeInfo(
- SAL_UNUSED_PARAMETER void* /*pServiceManager*/, void* pRegistryKey )
-{
- Reference< XRegistryKey > xRootKey( static_cast< XRegistryKey* >( pRegistryKey ) );
-
- ::rtl::OUString sRootKey( "/", 1, RTL_TEXTENCODING_ASCII_US );
-
- const ComponentDescription* pComponents = lcl_getComponents();
- while ( pComponents->pAsciiServiceName != NULL )
- {
- ::rtl::OUString sMainKeyName( sRootKey );
- sMainKeyName += ::rtl::OUString::createFromAscii( pComponents->pAsciiImplementationName );
- sMainKeyName += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES"));
-
- try
- {
- Reference< XRegistryKey > xNewKey( xRootKey->createKey( sMainKeyName ) );
- xNewKey->createKey( ::rtl::OUString::createFromAscii( pComponents->pAsciiServiceName ) );
- }
- catch( Exception& )
- {
- OSL_FAIL( "OModule::writeComponentInfos: something went wrong while creating the keys!" );
- return sal_False;
- }
- ++pComponents;
- }
- return sal_True;
-}
-
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
const sal_Char* pImplementationName,
SAL_UNUSED_PARAMETER void* /*pServiceManager*/,