2012-04-27 15:50:39 +02:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#*************************************************************************
|
|
|
|
#
|
2013-04-19 21:10:42 +01:00
|
|
|
# This file is part of the LibreOffice project.
|
2012-04-27 15:50:39 +02:00
|
|
|
#
|
2013-04-19 21:10:42 +01:00
|
|
|
# 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/.
|
2012-04-27 15:50:39 +02:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,sw_ww8import))
|
2012-04-27 15:50:39 +02:00
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ww8import, \
|
2012-07-13 16:25:03 +02:00
|
|
|
sw/qa/extras/ww8import/ww8import \
|
2012-04-27 15:50:39 +02:00
|
|
|
))
|
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,sw_ww8import, \
|
2012-12-14 12:58:00 +02:00
|
|
|
comphelper \
|
2012-04-27 15:50:39 +02:00
|
|
|
cppu \
|
2012-06-12 10:31:35 +02:00
|
|
|
cppuhelper \
|
2012-04-27 15:50:39 +02:00
|
|
|
sal \
|
|
|
|
test \
|
|
|
|
unotest \
|
2012-06-11 09:13:58 +01:00
|
|
|
sw \
|
2013-11-19 18:07:28 +01:00
|
|
|
utl \
|
2012-09-26 23:45:28 +02:00
|
|
|
$(gb_UWINAPI) \
|
2012-04-27 15:50:39 +02:00
|
|
|
))
|
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_use_externals,sw_ww8import,\
|
2013-01-26 21:19:13 +01:00
|
|
|
boost_headers \
|
2012-06-11 09:13:58 +01:00
|
|
|
libxml2 \
|
|
|
|
))
|
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_set_include,sw_ww8import,\
|
2012-06-11 09:13:58 +01:00
|
|
|
-I$(SRCDIR)/sw/inc \
|
|
|
|
-I$(SRCDIR)/sw/source/core/inc \
|
2012-07-28 13:49:12 +02:00
|
|
|
-I$(SRCDIR)/sw/qa/extras/inc \
|
2012-06-11 09:13:58 +01:00
|
|
|
$$(INCLUDE) \
|
|
|
|
))
|
|
|
|
|
2016-03-22 10:43:56 +03:00
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,sw_ww8import))
|
2012-04-27 15:50:39 +02:00
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_use_ure,sw_ww8import))
|
2014-06-04 08:45:54 +02:00
|
|
|
$(eval $(call gb_CppunitTest_use_vcl,sw_ww8import))
|
2012-04-27 15:50:39 +02:00
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_use_components,sw_ww8import,\
|
2012-10-30 17:05:56 +01:00
|
|
|
basic/util/sb \
|
2012-04-27 15:50:39 +02:00
|
|
|
comphelper/util/comphelp \
|
|
|
|
configmgr/source/configmgr \
|
2012-04-28 21:34:53 +02:00
|
|
|
dbaccess/util/dba \
|
2012-04-27 15:50:39 +02:00
|
|
|
filter/source/config/cache/filterconfig1 \
|
2012-04-28 21:34:53 +02:00
|
|
|
forms/util/frm \
|
2012-04-27 15:50:39 +02:00
|
|
|
framework/util/fwk \
|
|
|
|
i18npool/util/i18npool \
|
2012-10-26 14:24:46 +02:00
|
|
|
linguistic/source/lng \
|
2012-04-27 15:50:39 +02:00
|
|
|
package/util/package2 \
|
DOC import: initialize RDF metadata before importing document properties
With this, it is possible to import part of the document as RDF
statements later when SwFltControlStack::SetAttrInDoc() gets an
SwFltRDFMark.
Previously SfxBaseModel member functions like
getMetadataGraphsWithType() and addMetadataFile() failed, as they tried
to find the already imported document in UCB, which failed, as the
import was still in progress. To prevent that, do the same as the ODT
import in XMLReader::Read(), part "RDF metadata".
One trick here is the call to
comphelper::OStorageHelper::GetTemporaryStorage(), which gives an empty
storage. Ideally a wrapper class would be needed that works on a
SotStorage, but implements embed::XStorage, but that would be only used
to find that the real storage doesn't provide a manifest.rdf stream,
which is always the case. So instead of writing such a wrapper, just
give loadMetadataFromStorage() an empty storage, which will have the
same result without writing lots of dead code.
Change-Id: Id1897838b1477eee0489b706d51cb6f59898877b
2015-12-09 15:43:34 +01:00
|
|
|
package/source/xstor/xstor \
|
2012-04-28 21:34:53 +02:00
|
|
|
sw/util/msword \
|
2012-04-27 15:50:39 +02:00
|
|
|
sw/util/sw \
|
|
|
|
sw/util/swd \
|
|
|
|
sfx2/util/sfx \
|
|
|
|
svl/source/fsstor/fsstorage \
|
2012-05-26 13:53:19 +02:00
|
|
|
svtools/util/svt \
|
2012-04-27 15:50:39 +02:00
|
|
|
toolkit/util/tk \
|
|
|
|
ucb/source/core/ucb1 \
|
|
|
|
ucb/source/ucp/file/ucpfile1 \
|
DOC import: initialize RDF metadata before importing document properties
With this, it is possible to import part of the document as RDF
statements later when SwFltControlStack::SetAttrInDoc() gets an
SwFltRDFMark.
Previously SfxBaseModel member functions like
getMetadataGraphsWithType() and addMetadataFile() failed, as they tried
to find the already imported document in UCB, which failed, as the
import was still in progress. To prevent that, do the same as the ODT
import in XMLReader::Read(), part "RDF metadata".
One trick here is the call to
comphelper::OStorageHelper::GetTemporaryStorage(), which gives an empty
storage. Ideally a wrapper class would be needed that works on a
SotStorage, but implements embed::XStorage, but that would be only used
to find that the real storage doesn't provide a manifest.rdf stream,
which is always the case. So instead of writing such a wrapper, just
give loadMetadataFromStorage() an empty storage, which will have the
same result without writing lots of dead code.
Change-Id: Id1897838b1477eee0489b706d51cb6f59898877b
2015-12-09 15:43:34 +01:00
|
|
|
ucb/source/ucp/tdoc/ucptdoc1 \
|
|
|
|
unotools/util/utl \
|
|
|
|
unoxml/source/rdf/unordf \
|
2012-04-27 15:50:39 +02:00
|
|
|
unoxml/source/service/unoxml \
|
2016-07-27 21:44:27 +01:00
|
|
|
uui/util/uui \
|
2012-07-27 11:31:55 +01:00
|
|
|
$(if $(filter DESKTOP,$(BUILD_TYPE)),xmlhelp/util/ucpchelp1) \
|
2012-04-27 15:50:39 +02:00
|
|
|
))
|
|
|
|
|
2013-03-18 09:47:02 +01:00
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,sw_ww8import))
|
2012-04-27 15:50:39 +02:00
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|