merge sdfilt library into sd

it is very small, and this means we can get rid of some ugly runtime
symbol loading

Change-Id: I1d5f5da6a9e908ccd018915bf09b9ab97d67feb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139866
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2022-09-14 15:11:46 +02:00
parent ea9de21431
commit de57562e3b
25 changed files with 29 additions and 116 deletions
-1
View File
@@ -445,7 +445,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \
scn \
sd \
sdd \
sdfilt \
sfx \
slideshow \
sot \
-1
View File
@@ -95,7 +95,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_dump,\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
-1
View File
@@ -99,7 +99,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_geometry,\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
@@ -97,7 +97,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_pivot_chart_test,\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
@@ -97,7 +97,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_trendcalculators,\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
-1
View File
@@ -95,7 +95,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_xshape,\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
-1
View File
@@ -102,7 +102,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_export$(1),\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
-1
View File
@@ -102,7 +102,6 @@ $(eval $(call gb_CppunitTest_use_components,chart2_import$(1),\
sw/util/swd \
sw/util/msword \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(call gb_Helper_optional,SCRIPTING, \
sc/util/vbaobj) \
@@ -19,7 +19,7 @@
<prop oor:name="Flags"><value>IMPORT EXPORT ALIEN</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>sdfilt</value></prop>
<prop oor:name="UserData"><value>sd</value></prop>
<prop oor:name="UIName">
<value xml:lang="en-US">PowerPoint 97–2003</value>
</prop>
@@ -19,7 +19,7 @@
<prop oor:name="Flags"><value>IMPORT EXPORT ALIEN STARTPRESENTATION</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>sdfilt</value></prop>
<prop oor:name="UserData"><value>sd</value></prop>
<prop oor:name="UIName">
<value xml:lang="en-US">PowerPoint 97–2003 AutoPlay</value>
</prop>
@@ -19,7 +19,7 @@
<prop oor:name="Flags"><value>IMPORT EXPORT TEMPLATE TEMPLATEPATH ALIEN</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>sdfilt</value></prop>
<prop oor:name="UserData"><value>sd</value></prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="Type"><value>impress_MS_PowerPoint_97_Vorlage</value></prop>
<prop oor:name="TemplateName"/>
+1 -1
View File
@@ -23,7 +23,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sd_filter_eppt, \
$(eval $(call gb_CppunitTest_use_libraries,sd_filter_eppt, \
comphelper \
cppu \
sdfilt \
sd \
sal \
test \
unotest \
-1
View File
@@ -99,7 +99,6 @@ $(eval $(call gb_CppunitTest_use_components,sd_misc_tests,\
package/util/package2 \
sax/source/expatwrap/expwrap \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
sfx2/util/sfx \
sot/util/sot \
+16
View File
@@ -178,6 +178,22 @@ $(eval $(call gb_Library_add_exception_objects,sd,\
sd/source/core/undo/undoobjects \
sd/source/core/undoanim \
sd/source/filter/cgm/sdcgmfilter \
sd/source/filter/eppt/eppt \
sd/source/filter/eppt/epptso \
sd/source/filter/eppt/escherex \
sd/source/filter/eppt/pptexanimations \
sd/source/filter/eppt/pptexsoundcollection \
sd/source/filter/eppt/pptx-epptbase \
sd/source/filter/eppt/pptx-epptooxml \
sd/source/filter/eppt/pptx-animations \
sd/source/filter/eppt/pptx-grouptable \
sd/source/filter/eppt/pptx-stylesheet \
sd/source/filter/eppt/pptx-text \
sd/source/filter/ppt/ppt97animations \
sd/source/filter/ppt/pptatom \
sd/source/filter/ppt/pptin \
sd/source/filter/ppt/pptinanimations \
sd/source/filter/ppt/propread \
sd/source/filter/grf/sdgrffilter \
sd/source/filter/html/HtmlOptionsDialog \
sd/source/filter/html/buttonset \
-79
View File
@@ -1,79 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Library_Library,sdfilt))
$(eval $(call gb_Library_set_include,sdfilt,\
$$(INCLUDE) \
-I$(SRCDIR)/sd/inc \
-I$(SRCDIR)/sd/source/ui/inc \
))
ifneq ($(strip $(dbg_anim_log)$(DBG_ANIM_LOG)),)
$(eval $(call gb_Library_add_defs,sdfilt,\
-DDBG_ANIM_LOG \
))
endif
$(eval $(call gb_Library_use_external,sdfilt,boost_headers))
$(eval $(call gb_Library_use_custom_headers,sdfilt,\
oox/generated \
))
$(eval $(call gb_Library_use_sdk_api,sdfilt))
$(eval $(call gb_Library_use_libraries,sdfilt,\
comphelper \
cppu \
cppuhelper \
editeng \
i18nlangtag \
i18nutil \
msfilter \
oox \
sal \
sax \
sd \
sfx \
sot \
svl \
svt \
svxcore \
tl \
ucbhelper \
utl \
vcl \
basegfx \
))
$(eval $(call gb_Library_set_componentfile,sdfilt,sd/util/sdfilt,services))
$(eval $(call gb_Library_use_common_precompiled_header,sdfilt))
$(eval $(call gb_Library_add_exception_objects,sdfilt,\
sd/source/filter/eppt/eppt \
sd/source/filter/eppt/epptso \
sd/source/filter/eppt/escherex \
sd/source/filter/eppt/pptexanimations \
sd/source/filter/eppt/pptexsoundcollection \
sd/source/filter/eppt/pptx-epptbase \
sd/source/filter/eppt/pptx-epptooxml \
sd/source/filter/eppt/pptx-animations \
sd/source/filter/eppt/pptx-grouptable \
sd/source/filter/eppt/pptx-stylesheet \
sd/source/filter/eppt/pptx-text \
sd/source/filter/ppt/ppt97animations \
sd/source/filter/ppt/pptatom \
sd/source/filter/ppt/pptin \
sd/source/filter/ppt/pptinanimations \
sd/source/filter/ppt/propread \
))
# vim: set noet sw=4 ts=4:
-1
View File
@@ -15,7 +15,6 @@ $(eval $(call gb_Module_Module,sd))
$(eval $(call gb_Module_add_targets,sd,\
Library_sd \
Library_sdd \
Library_sdfilt \
Library_sdui \
Package_opengl \
Package_web \
-1
View File
@@ -97,7 +97,6 @@ $(eval $(call gb_CppunitTest_use_components,sd_import_tests$(1),\
package/util/package2 \
sax/source/expatwrap/expwrap \
sd/util/sd \
sd/util/sdfilt \
sd/util/sdd \
$(if $(ENABLE_POPPLER),sdext/source/pdfimport/pdfimport) \
sfx2/util/sfx \
+3 -3
View File
@@ -70,7 +70,7 @@ void SdFiltersTest::testCVEs()
#ifndef DISABLE_CVE_TESTS
testDir("MS PowerPoint 97",
m_directories.getURLFromSrc(u"/sd/qa/unit/data/ppt/"),
"sdfilt");
"sd");
testDir("Impress Office Open XML",
m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/"),
@@ -78,11 +78,11 @@ void SdFiltersTest::testCVEs()
testDir("impress8",
m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/"),
"sdfilt");
"sd");
testDir("draw8",
m_directories.getURLFromSrc(u"/sd/qa/unit/data/odg/"),
"sdfilt");
"sd");
testDir("CGM - Computer Graphics Metafile",
m_directories.getURLFromSrc(u"/sd/qa/unit/data/cgm/"),
+1 -1
View File
@@ -77,7 +77,7 @@ nFormatType: <prop oor:name="Flags">...</prop>
static FileFormat aFileFormats[] =
{
{ "odp", "impress8", "impress8", "", ODP_FORMAT_TYPE },
{ "ppt", "MS PowerPoint 97", "impress_MS_PowerPoint_97", "sdfilt", PPT_FORMAT_TYPE },
{ "ppt", "MS PowerPoint 97", "impress_MS_PowerPoint_97", "sd", PPT_FORMAT_TYPE },
{ "pptx", "Impress Office Open XML", "Office Open XML Presentation", "", PPTX_FORMAT_TYPE },
{ "html", "graphic_HTML", "graphic_HTML", "", HTML_FORMAT_TYPE },
{ "pdf", "draw_pdf_import", "pdf_Portable_Document_Format", "", PDF_FORMAT_TYPE },
+1 -1
View File
@@ -88,7 +88,7 @@ oslGenericFunction SdFilter::GetLibrarySymbol( const OUString& rLibraryName, con
void SdFilter::Preload()
{
(void)GetLibrarySymbol("sdfilt", "ImportPPT");
(void)GetLibrarySymbol("sd", "ImportPPT");
}
#endif
+2
View File
@@ -109,4 +109,6 @@
constructor="RandomAnimationNode_get_implementation">
<service name="com.sun.star.comp.sd.RandomAnimationNode"/>
</implementation>
<implementation name="com.sun.star.comp.Impress.oox.PowerPointExport"
constructor="css_comp_Impress_oox_PowerPointExport"/>
</component>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.Impress.oox.PowerPointExport" constructor="css_comp_Impress_oox_PowerPointExport"/>
</component>
+1 -2
View File
@@ -714,10 +714,9 @@ draw_constructor_list = [
"com_sun_star_comp_Draw_framework_configuration_ConfigurationController_get_implementation",
"com_sun_star_comp_Draw_framework_module_ModuleController_get_implementation",
"org_openoffice_comp_Draw_framework_PanelFactory_get_implementation",
"css_comp_Impress_oox_PowerPointExport",
# sd/util/sdd.component
"com_sun_star_comp_draw_FormatDetector_get_implementation",
# sd/util/sdfilt.component
"css_comp_Impress_oox_PowerPointExport",
# writerperfect/source/draw/wpftdraw.component
"com_sun_star_comp_Draw_VisioImportFilter_get_implementation",
# sdext/source/pdfimport/pdfimport.component
-1
View File
@@ -181,7 +181,6 @@ fuzzer_writer_libraries = \
guesslang \
fuzzer_draw_libraries = \
sdfilt \
sd \
sdd \
icg \
+1 -1
View File
@@ -427,7 +427,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
static FFilterCall pfnImport(nullptr);
if (!pfnImport)
{
pfnImport = load(u"libsdfiltlo.so", "TestImportPPT");
pfnImport = load(u"libsdlo.so", "TestImportPPT");
}
SvFileStream aFileStream(out, StreamMode::READ);
ret = static_cast<int>((*pfnImport)(aFileStream));