forked from ports/contrib
libreoffice: 7.6.3.1 -> 7.6.3.2
This commit is contained in:
parent
25b48d1b8a
commit
95eceb1d5d
@ -1,12 +1,14 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3/e3FwE7GVuF6qTHlLMGuQsW3WMw+P0xYQpK2tOoYeckU4iJW0ONAt68K5qKPsEwMYGwogwpmXpwSQYzUyIpYws=
|
||||
SHA256 (Pkgfile) = b1938b706d1158dbac7ac278298adbd5e8363a46a9373da9eb6d2da42e719573
|
||||
RWSagIOpLGJF3/XIbATM3dCCczawMIGfKs0uYXkFCgGE02oW7gSPb+viSw/pheRlObVSdSjL91wDywhnYGF+794XrxQlpdpXswc=
|
||||
SHA256 (Pkgfile) = e0876a06cd394773d0feb46d2227267101a6fa25eba99a7ded1108511fcfe14f
|
||||
SHA256 (.footprint) = 3be79465ae65230afb2797417523a663a1722a1a1771749850f745aa85a50e10
|
||||
SHA256 (libreoffice-7.6.3.1.tar.xz) = 0727572eee27e849cb5db15a864e867d8231d9669b77e00722e00ccc14410091
|
||||
SHA256 (libreoffice-dictionaries-7.6.3.1.tar.xz) = dc4c698df3953091caa9df6cb377accf8db96a4f2b70c8c1ef00e0bc2c6ce7a8
|
||||
SHA256 (libreoffice-7.6.3.2.tar.xz) = 91e94b99a7270c450d8b1f31fa833397fc49cc71260267d8e044a6462ed7e15d
|
||||
SHA256 (libreoffice-dictionaries-7.6.3.2.tar.xz) = d3e3aa88faaa3806dd196e44ff82a3a5b992fdeac9626126d13a56a81561b88b
|
||||
SHA256 (185d60944ea767075d27247c3162b3bc-unowinreg.dll) = eafde646a7dbe46d20c291685b0beac2382174d78d66ee990e229a1bf6e6cec6
|
||||
SHA256 (0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz) = 983941d31ee8d366085cadf28db75eb1f5cb03ba1e5853b98f12f7f51c63b776
|
||||
SHA256 (dtoa-20180411.tgz) = 0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65fea8281e711b4
|
||||
SHA256 (pdfium-5778.tar.bz2) = b1052ff24e9ffb11af017c444bb0f6ad508d64c9a0fb88cacb0e8210245dde06
|
||||
SHA256 (optjava.patch) = 48e8f354b6471faa0a49dec2e1efba03c0da2c25bd98285b1a43c500ccda484d
|
||||
SHA256 (libreoffice-7.5.8.2-icu-74-compatibility.patch) = d7b952a51e1e40d3faf2f465b68f46d56828d8c46948748fa82fe82a29af2599
|
||||
SHA256 (libxml2.patch) = e21e2b1320a35f3ba582f435865b3c40822fb63b6b325d27d991f5f92f1fccc4
|
||||
SHA256 (makefile.in.patch) = b4889affa4d2f8dac4e3c16c0a142fd0d403ecbb7a1c00ed593128dd613b737a
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Optional: avahi coin-or-mp cups dconf gpgme kio lpsolve mariadb openldap postgresql python3-lxml qt5 sane valgrind
|
||||
|
||||
name=libreoffice
|
||||
version=7.6.3.1
|
||||
version=7.6.3.2
|
||||
release=1
|
||||
pdfiumversion=5778
|
||||
source=(https://downloadarchive.documentfoundation.org/libreoffice/old/$version/src/$name-$version.tar.xz
|
||||
@ -13,10 +13,10 @@ source=(https://downloadarchive.documentfoundation.org/libreoffice/old/$version/
|
||||
https://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
|
||||
https://dev-www.libreoffice.org/src/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
|
||||
https://dev-www.libreoffice.org/src/dtoa-20180411.tgz
|
||||
#https://dev-www.libreoffice.org/src/skia-m90-45c57e116ee0ce214bdf78405a4762722e4507d9.tar.xz
|
||||
https://dev-www.libreoffice.org/src/pdfium-$pdfiumversion.tar.bz2
|
||||
#https://dev-www.libreoffice.org/src/libcmis-0.5.2.tar.xz
|
||||
optjava.patch
|
||||
libreoffice-7.5.8.2-icu-74-compatibility.patch
|
||||
libxml2.patch
|
||||
makefile.in.patch)
|
||||
|
||||
# unpack_source() {{{
|
||||
@ -56,6 +56,9 @@ build() {
|
||||
sed -i 's:dragonbox-1.0.0:dragonbox:g' configure.ac
|
||||
|
||||
patch -Np0 -i $SRC/optjava.patch
|
||||
patch -Np1 -i $SRC/libxml2.patch
|
||||
patch -Np1 -i $SRC/libreoffice-7.5.8.2-icu-74-compatibility.patch
|
||||
|
||||
# optionals {{{
|
||||
prt-get isinst avahi && PKGMK_LIBREOFFICE+=' --enable-avahi' || PKGMK_LIBREOFFICE+=' --disable-avahi'
|
||||
#prt-get isinst box2d && PKGMK_LIBREOFFICE+=' --with-system-box2d' || PKGMK_LIBREOFFICE+=' --without-system-box2d'
|
||||
|
218
libreoffice/libreoffice-7.5.8.2-icu-74-compatibility.patch
Normal file
218
libreoffice/libreoffice-7.5.8.2-icu-74-compatibility.patch
Normal file
@ -0,0 +1,218 @@
|
||||
https://bugs.gentoo.org/917618
|
||||
https://bugs.documentfoundation.org/show_bug.cgi?id=158108
|
||||
|
||||
From bcd5d851ebe91fc22edd3ea92be4a674bd13acba Mon Sep 17 00:00:00 2001
|
||||
From: Alfred Wingate <parona@protonmail.com>
|
||||
Date: Mon, 20 Nov 2023 14:47:28 +0200
|
||||
Subject: [PATCH] Remove use of the now removed LBCMNoChain options
|
||||
|
||||
* This change removes its use and explicitly prevents chaining where
|
||||
the rule would have applied.
|
||||
|
||||
https://github.com/unicode-org/icu/commit/84e47620692be90950d090f2f4722494b020ad96
|
||||
https://github.com/unicode-org/icu/commit/9d9256f3b792100cda697c7bcf52bacfbc3bca87
|
||||
|
||||
Signed-off-by: Alfred Wingate <parona@protonmail.com>
|
||||
--- a/i18npool/source/breakiterator/data/line.txt
|
||||
+++ b/i18npool/source/breakiterator/data/line.txt
|
||||
@@ -14,7 +14,6 @@
|
||||
#
|
||||
|
||||
!!chain;
|
||||
-!!LBCMNoChain;
|
||||
|
||||
|
||||
!!lookAheadHardBreak;
|
||||
@@ -206,13 +205,13 @@ $CR $LF {100};
|
||||
#
|
||||
$LB4NonBreaks? $LB4Breaks {100}; # LB 5 do not break before hard breaks.
|
||||
$CAN_CM $CM* $LB4Breaks {100};
|
||||
-$CM+ $LB4Breaks {100};
|
||||
+^$CM+ $LB4Breaks {100};
|
||||
|
||||
# LB 7 x SP
|
||||
# x ZW
|
||||
$LB4NonBreaks [$SP $ZW];
|
||||
$CAN_CM $CM* [$SP $ZW];
|
||||
-$CM+ [$SP $ZW];
|
||||
+^$CM+ [$SP $ZW];
|
||||
|
||||
#
|
||||
# LB 8 Break after zero width space
|
||||
@@ -226,14 +225,14 @@ $LB8NonBreaks = [[$LB4NonBreaks] - [$ZW]];
|
||||
# See definition of $CAN_CM.
|
||||
|
||||
$CAN_CM $CM+; # Stick together any combining sequences that don't match other rules.
|
||||
-$CM+;
|
||||
+^$CM+;
|
||||
|
||||
#
|
||||
# LB 11 Do not break before or after WORD JOINER & related characters.
|
||||
#
|
||||
$CAN_CM $CM* $WJcm;
|
||||
$LB8NonBreaks $WJcm;
|
||||
-$CM+ $WJcm;
|
||||
+^$CM+ $WJcm;
|
||||
|
||||
$WJcm [^$CAN_CM];
|
||||
$WJcm $CAN_CM $CM*;
|
||||
@@ -243,7 +242,7 @@ $WJcm $CAN_CM $CM*;
|
||||
#
|
||||
# (!SP) x GL
|
||||
[$LB8NonBreaks-$SP] $CM* $GLcm;
|
||||
-$CM+ $GLcm;
|
||||
+^$CM+ $GLcm;
|
||||
|
||||
# GL x
|
||||
$GLcm ($LB8Breaks | $SP);
|
||||
@@ -260,19 +259,19 @@ $GLcm [$LB8NonBreaks-$SP] $CM*; # Don't let a combining mark go onto $CR, $B
|
||||
#
|
||||
$LB8NonBreaks $CL;
|
||||
$CAN_CM $CM* $CL;
|
||||
-$CM+ $CL; # by rule 10, stand-alone CM behaves as AL
|
||||
+^$CM+ $CL; # by rule 10, stand-alone CM behaves as AL
|
||||
|
||||
$LB8NonBreaks $EX;
|
||||
$CAN_CM $CM* $EX;
|
||||
-$CM+ $EX; # by rule 10, stand-alone CM behaves as AL
|
||||
+^$CM+ $EX; # by rule 10, stand-alone CM behaves as AL
|
||||
|
||||
$LB8NonBreaks $IS;
|
||||
$CAN_CM $CM* $IS;
|
||||
-$CM+ $IS; # by rule 10, stand-alone CM behaves as AL
|
||||
+^$CM+ $IS; # by rule 10, stand-alone CM behaves as AL
|
||||
|
||||
$LB8NonBreaks $SY;
|
||||
$CAN_CM $CM* $SY;
|
||||
-$CM+ $SY; # by rule 10, stand-alone CM behaves as AL
|
||||
+^$CM+ $SY; # by rule 10, stand-alone CM behaves as AL
|
||||
|
||||
|
||||
#
|
||||
@@ -302,7 +301,7 @@ $LB18Breaks = [$LB8Breaks $SP];
|
||||
# LB 19
|
||||
# x QU
|
||||
$LB18NonBreaks $CM* $QUcm;
|
||||
-$CM+ $QUcm;
|
||||
+^$CM+ $QUcm;
|
||||
|
||||
# QU x
|
||||
$QUcm .?;
|
||||
@@ -331,7 +330,7 @@ $HLcm ($HYcm | $BAcm) [^$CB]?;
|
||||
|
||||
# LB 22
|
||||
($ALcm | $HLcm) $INcm;
|
||||
-$CM+ $INcm; # by rule 10, any otherwise unattached CM behaves as AL
|
||||
+^$CM+ $INcm; # by rule 10, any otherwise unattached CM behaves as AL
|
||||
$IDcm $INcm;
|
||||
$INcm $INcm;
|
||||
$NUcm $INcm;
|
||||
@@ -341,7 +340,7 @@ $NUcm $INcm;
|
||||
$IDcm $POcm;
|
||||
$ALcm $NUcm; # includes $LB19
|
||||
$HLcm $NUcm;
|
||||
-$CM+ $NUcm; # Rule 10, any otherwise unattached CM behaves as AL
|
||||
+^$CM+ $NUcm; # Rule 10, any otherwise unattached CM behaves as AL
|
||||
$NUcm $ALcm;
|
||||
$NUcm $HLcm;
|
||||
|
||||
@@ -373,7 +372,7 @@ $PRcm ($JLcm | $JVcm | $JTcm | $H2cm | $H3cm);
|
||||
# LB 28 Do not break between alphabetics
|
||||
#
|
||||
($ALcm | $HLcm) ($ALcm | $HLcm);
|
||||
-$CM+ ($ALcm | $HLcm); # The $CM+ is from rule 10, an unattached CM is treated as AL
|
||||
+^$CM+ ($ALcm | $HLcm); # The $CM+ is from rule 10, an unattached CM is treated as AL
|
||||
|
||||
# LB 29
|
||||
$IScm ($ALcm | $NUcm);
|
||||
@@ -383,7 +382,7 @@ $IScm ($ALcm | $NUcm);
|
||||
# and opening or closing punctuation
|
||||
#
|
||||
($ALcm | $HLcm | $NUcm) $OPcm;
|
||||
-$CM+ $OPcm;
|
||||
+^$CM+ $OPcm;
|
||||
$CLcm ($ALcm | $HLcm | $NUcm);
|
||||
|
||||
#
|
||||
@@ -393,32 +392,32 @@ $CLcm ($ALcm | $HLcm | $NUcm);
|
||||
|
||||
!!reverse;
|
||||
|
||||
-$CM+ $ALPlus;
|
||||
-$CM+ $BA;
|
||||
-$CM+ $BB;
|
||||
-$CM+ $B2;
|
||||
-$CM+ $CL;
|
||||
-$CM+ $EX;
|
||||
-$CM+ $GL;
|
||||
-$CM+ $HL;
|
||||
-$CM+ $HY;
|
||||
-$CM+ $H2;
|
||||
-$CM+ $H3;
|
||||
-$CM+ $ID;
|
||||
-$CM+ $IN;
|
||||
-$CM+ $IS;
|
||||
-$CM+ $JL;
|
||||
-$CM+ $JV;
|
||||
-$CM+ $JT;
|
||||
-$CM+ $NS;
|
||||
-$CM+ $NU;
|
||||
-$CM+ $OP;
|
||||
-$CM+ $PO;
|
||||
-$CM+ $PR;
|
||||
-$CM+ $QU;
|
||||
-$CM+ $SY;
|
||||
-$CM+ $WJ;
|
||||
-$CM+;
|
||||
+^$CM+ $ALPlus;
|
||||
+^$CM+ $BA;
|
||||
+^$CM+ $BB;
|
||||
+^$CM+ $B2;
|
||||
+^$CM+ $CL;
|
||||
+^$CM+ $EX;
|
||||
+^$CM+ $GL;
|
||||
+^$CM+ $HL;
|
||||
+^$CM+ $HY;
|
||||
+^$CM+ $H2;
|
||||
+^$CM+ $H3;
|
||||
+^$CM+ $ID;
|
||||
+^$CM+ $IN;
|
||||
+^$CM+ $IS;
|
||||
+^$CM+ $JL;
|
||||
+^$CM+ $JV;
|
||||
+^$CM+ $JT;
|
||||
+^$CM+ $NS;
|
||||
+^$CM+ $NU;
|
||||
+^$CM+ $OP;
|
||||
+^$CM+ $PO;
|
||||
+^$CM+ $PR;
|
||||
+^$CM+ $QU;
|
||||
+^$CM+ $SY;
|
||||
+^$CM+ $WJ;
|
||||
+^$CM+;
|
||||
|
||||
|
||||
#
|
||||
@@ -468,7 +467,7 @@ $LF $CR;
|
||||
# X $CM needs to behave like X, where X is not $SP or controls.
|
||||
# $CM not covered by the above needs to behave like $AL
|
||||
# Stick together any combining sequences that don't match other rules.
|
||||
-$CM+ $CAN_CM;
|
||||
+^$CM+ $CAN_CM;
|
||||
|
||||
|
||||
# LB 11
|
||||
@@ -606,8 +605,8 @@ $CM* ($ALPlus | $HL | $NU) $CM* ($CL | $SY)+ [^$SP];
|
||||
!!safe_reverse;
|
||||
|
||||
# LB 7
|
||||
-$CM+ [^$CM $BK $CR $LF $NL $ZW $SP];
|
||||
-$CM+ $SP / .;
|
||||
+^$CM+ [^$CM $BK $CR $LF $NL $ZW $SP];
|
||||
+^$CM+ $SP / .;
|
||||
|
||||
# LB 9
|
||||
$SP+ $CM* $OP;
|
||||
--
|
||||
2.42.1
|
||||
|
302
libreoffice/libxml2.patch
Normal file
302
libreoffice/libxml2.patch
Normal file
@ -0,0 +1,302 @@
|
||||
From c8f7408db73d2f2ccacb25a2b4fef8dfebdfc6cb Mon Sep 17 00:00:00 2001
|
||||
From: Miklos Vajna <vmiklos@collabora.com>
|
||||
Date: Mon, 27 Nov 2023 08:02:59 +0100
|
||||
Subject: tdf#158302 fix build against system-libxml-2.12
|
||||
|
||||
Seen in a fedora:40 container, using --with-system-libcmis,
|
||||
--with-system-liblangtag and --with-system-xmlsec.
|
||||
|
||||
Change-Id: I9d748d3dc0b70dbfdfcb6b99c9ce8440bda6f326
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159980
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
|
||||
---
|
||||
drawinglayer/source/tools/primitive2dxmldump.cxx | 1 +
|
||||
filter/source/xsltfilter/LibXSLTTransformer.cxx | 2 +-
|
||||
helpcompiler/source/HelpLinker.cxx | 4 ++++
|
||||
include/xmloff/xmltoken.hxx | 2 +-
|
||||
sax/source/fastparser/fastparser.cxx | 2 +-
|
||||
sc/source/core/tool/interpr7.cxx | 1 +
|
||||
sc/source/filter/xml/XMLExportDataPilot.cxx | 2 +-
|
||||
sc/source/filter/xml/XMLExportDatabaseRanges.cxx | 2 +-
|
||||
sc/source/filter/xml/xmlfilti.cxx | 6 +++---
|
||||
unoxml/source/dom/attr.cxx | 1 +
|
||||
unoxml/source/dom/document.cxx | 1 +
|
||||
unoxml/source/dom/documentbuilder.cxx | 1 +
|
||||
unoxml/source/dom/entity.cxx | 1 +
|
||||
unoxml/source/xpath/xpathapi.cxx | 7 ++++++-
|
||||
xmloff/source/core/xmltoken.cxx | 2 +-
|
||||
xmloff/source/style/PageMasterStyleMap.cxx | 2 +-
|
||||
xmlsecurity/inc/xmlsec-wrapper.h | 1 +
|
||||
xmlsecurity/inc/xmlsec/saxhelper.hxx | 1 +
|
||||
18 files changed, 28 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
index 76aefec902ea..f3b9ef1bc919 100644
|
||||
--- a/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
+++ b/drawinglayer/source/tools/primitive2dxmldump.cxx
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <memory>
|
||||
+#include <libxml/parser.h>
|
||||
#include <sal/log.hxx>
|
||||
|
||||
#include <drawinglayer/primitive2d/bitmapprimitive2d.hxx>
|
||||
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
index 1a7c34805f1b..5e9a7c4bcd35 100644
|
||||
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
|
||||
@@ -333,7 +333,7 @@ namespace XSLT
|
||||
}
|
||||
else
|
||||
{
|
||||
- xmlErrorPtr lastErr = xmlGetLastError();
|
||||
+ const xmlError* lastErr = xmlGetLastError();
|
||||
OUString msg;
|
||||
if (lastErr)
|
||||
msg = OStringToOUString(lastErr->message, RTL_TEXTENCODING_UTF8);
|
||||
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
|
||||
index 3d52834dbe6b..898a8b26392a 100644
|
||||
--- a/helpcompiler/source/HelpLinker.cxx
|
||||
+++ b/helpcompiler/source/HelpLinker.cxx
|
||||
@@ -815,7 +815,11 @@ static const HelpProcessingException* GpXMLParsingException = nullptr;
|
||||
|
||||
extern "C" {
|
||||
|
||||
+#if LIBXML_VERSION >= 21200
|
||||
+static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, const xmlError* error)
|
||||
+#else
|
||||
static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, xmlErrorPtr error)
|
||||
+#endif
|
||||
{
|
||||
std::string aErrorMsg = error->message;
|
||||
std::string aXMLParsingFile;
|
||||
diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx
|
||||
index 4e6441841774..ba42fae4d035 100644
|
||||
--- a/include/xmloff/xmltoken.hxx
|
||||
+++ b/include/xmloff/xmltoken.hxx
|
||||
@@ -744,7 +744,7 @@ namespace xmloff::token {
|
||||
XML_EMBEDDED_VISIBLE_AREA,
|
||||
XML_EMBOSSED,
|
||||
XML_EMISSIVE_COLOR,
|
||||
- XML_EMPTY,
|
||||
+ XML_TOKEN_EMPTY,
|
||||
XML_EMPTY_LINE_REFRESH,
|
||||
XML_ENABLE_NUMBERING,
|
||||
XML_ENABLED,
|
||||
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
|
||||
index ec8065016a12..e0338e053cf0 100644
|
||||
--- a/sax/source/fastparser/fastparser.cxx
|
||||
+++ b/sax/source/fastparser/fastparser.cxx
|
||||
@@ -578,7 +578,7 @@ Event& Entity::getEvent( CallbackType aType )
|
||||
OUString lclGetErrorMessage( xmlParserCtxtPtr ctxt, std::u16string_view sSystemId, sal_Int32 nLine )
|
||||
{
|
||||
const char* pMessage;
|
||||
- xmlErrorPtr error = xmlCtxtGetLastError( ctxt );
|
||||
+ const xmlError* error = xmlCtxtGetLastError( ctxt );
|
||||
if( error && error->message )
|
||||
pMessage = error->message;
|
||||
else
|
||||
diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx
|
||||
index 352c7cf70e45..ecb4ea346396 100644
|
||||
--- a/sc/source/core/tool/interpr7.cxx
|
||||
+++ b/sc/source/core/tool/interpr7.cxx
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <string_view>
|
||||
+#include <libxml/parser.h>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
index da65bec0dab7..bd5f16d828ff 100644
|
||||
--- a/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
+++ b/sc/source/filter/xml/XMLExportDataPilot.cxx
|
||||
@@ -123,7 +123,7 @@ void ScXMLExportDataPilot::WriteDPCondition(const ScQueryEntry& aQueryEntry, boo
|
||||
|
||||
if (aQueryEntry.IsQueryByEmpty())
|
||||
{
|
||||
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_OPERATOR, GetXMLToken(XML_EMPTY));
|
||||
+ rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_OPERATOR, GetXMLToken(XML_TOKEN_EMPTY));
|
||||
}
|
||||
else if (aQueryEntry.IsQueryByNonEmpty())
|
||||
{
|
||||
diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
index 6905e02d651b..e4307065bd92 100644
|
||||
--- a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
+++ b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
|
||||
@@ -376,7 +376,7 @@ private:
|
||||
case SC_EQUAL:
|
||||
{
|
||||
if (rEntry.IsQueryByEmpty())
|
||||
- return GetXMLToken(XML_EMPTY);
|
||||
+ return GetXMLToken(XML_TOKEN_EMPTY);
|
||||
else if (rEntry.IsQueryByNonEmpty())
|
||||
return GetXMLToken(XML_NOEMPTY);
|
||||
|
||||
diff --git a/sc/source/filter/xml/xmlfilti.cxx b/sc/source/filter/xml/xmlfilti.cxx
|
||||
index 7585ce0c50fa..61f7cfe4a349 100644
|
||||
--- a/sc/source/filter/xml/xmlfilti.cxx
|
||||
+++ b/sc/source/filter/xml/xmlfilti.cxx
|
||||
@@ -370,7 +370,7 @@ void ScXMLConditionContext::GetOperator(
|
||||
rEntry.eOp = SC_BOTPERC;
|
||||
else if (IsXMLToken(aOpStr, XML_BOTTOM_VALUES))
|
||||
rEntry.eOp = SC_BOTVAL;
|
||||
- else if (IsXMLToken(aOpStr, XML_EMPTY))
|
||||
+ else if (IsXMLToken(aOpStr, XML_TOKEN_EMPTY))
|
||||
rEntry.SetQueryByEmpty();
|
||||
else if (aOpStr == u">")
|
||||
rEntry.eOp = SC_GREATER;
|
||||
@@ -422,7 +422,7 @@ void SAL_CALL ScXMLConditionContext::endFastElement( sal_Int32 /*nElement*/ )
|
||||
if (maQueryItems.empty())
|
||||
{
|
||||
ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
|
||||
- if (IsXMLToken(sOperator, XML_EMPTY))
|
||||
+ if (IsXMLToken(sOperator, XML_TOKEN_EMPTY))
|
||||
return;
|
||||
if (IsXMLToken(sDataType, XML_NUMBER))
|
||||
{
|
||||
@@ -753,7 +753,7 @@ void SAL_CALL ScXMLDPConditionContext::endFastElement( sal_Int32 /*nElement*/ )
|
||||
else
|
||||
aFilterField.eConnect = SC_AND;
|
||||
pFilterContext->SetIsCaseSensitive(bIsCaseSensitive);
|
||||
- if (IsXMLToken(sOperator, XML_EMPTY))
|
||||
+ if (IsXMLToken(sOperator, XML_TOKEN_EMPTY))
|
||||
aFilterField.SetQueryByEmpty();
|
||||
else if (IsXMLToken(sOperator, XML_NOEMPTY))
|
||||
aFilterField.SetQueryByNonEmpty();
|
||||
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
|
||||
index dd974d910edb..d8d873cdf055 100644
|
||||
--- a/unoxml/source/dom/attr.cxx
|
||||
+++ b/unoxml/source/dom/attr.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <memory>
|
||||
+#include <libxml/entities.h>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
#include <sal/log.hxx>
|
||||
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
|
||||
index cb48bd1635f8..0825fc2cd7ed 100644
|
||||
--- a/unoxml/source/dom/document.cxx
|
||||
+++ b/unoxml/source/dom/document.cxx
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <eventdispatcher.hxx>
|
||||
|
||||
#include <string.h>
|
||||
+#include <libxml/xmlIO.h>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
|
||||
index c3cd7663d2fc..3898d58e4be4 100644
|
||||
--- a/unoxml/source/dom/documentbuilder.cxx
|
||||
+++ b/unoxml/source/dom/documentbuilder.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <libxml/xmlerror.h>
|
||||
+#include <libxml/parser.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
diff --git a/unoxml/source/dom/entity.cxx b/unoxml/source/dom/entity.cxx
|
||||
index ccc8a0872499..98909dfe8f12 100644
|
||||
--- a/unoxml/source/dom/entity.cxx
|
||||
+++ b/unoxml/source/dom/entity.cxx
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
#include <string.h>
|
||||
+#include <libxml/entities.h>
|
||||
|
||||
using namespace css::uno;
|
||||
using namespace css::xml::dom;
|
||||
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
|
||||
index a60083983882..c2b753783176 100644
|
||||
--- a/unoxml/source/xpath/xpathapi.cxx
|
||||
+++ b/unoxml/source/xpath/xpathapi.cxx
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <libxml/xmlerror.h>
|
||||
#include <libxml/xpath.h>
|
||||
#include <libxml/xpathInternals.h>
|
||||
+#include <libxml/xmlIO.h>
|
||||
|
||||
#include <com/sun/star/xml/xpath/XPathException.hpp>
|
||||
|
||||
@@ -217,7 +218,7 @@ namespace XPath
|
||||
return selectSingleNode(contextNode, expr);
|
||||
}
|
||||
|
||||
- static OUString make_error_message(xmlErrorPtr pError)
|
||||
+ static OUString make_error_message(const xmlError* pError)
|
||||
{
|
||||
OUStringBuffer buf;
|
||||
if (pError) {
|
||||
@@ -259,7 +260,11 @@ namespace XPath
|
||||
SAL_WARN("unoxml", "libxml2 error: " << str);
|
||||
}
|
||||
|
||||
+#if LIBXML_VERSION >= 21200
|
||||
+ static void structured_error_func(void *, const xmlError* error)
|
||||
+#else
|
||||
static void structured_error_func(void *, xmlErrorPtr error)
|
||||
+#endif
|
||||
{
|
||||
SAL_WARN("unoxml", "libxml2 error: " << make_error_message(error));
|
||||
}
|
||||
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
|
||||
index 6879f37db295..e11dc0d16111 100644
|
||||
--- a/xmloff/source/core/xmltoken.cxx
|
||||
+++ b/xmloff/source/core/xmltoken.cxx
|
||||
@@ -756,7 +756,7 @@ namespace xmloff::token {
|
||||
TOKEN( "embedded-visible-area", XML_EMBEDDED_VISIBLE_AREA ),
|
||||
TOKEN( "embossed", XML_EMBOSSED ),
|
||||
TOKEN( "emissive-color", XML_EMISSIVE_COLOR ),
|
||||
- TOKEN( "empty", XML_EMPTY ),
|
||||
+ TOKEN( "empty", XML_TOKEN_EMPTY ),
|
||||
TOKEN( "empty-line-refresh", XML_EMPTY_LINE_REFRESH ),
|
||||
TOKEN( "enable-numbering", XML_ENABLE_NUMBERING ),
|
||||
TOKEN( "enabled", XML_ENABLED ),
|
||||
diff --git a/xmloff/source/style/PageMasterStyleMap.cxx b/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
index 7b2cab4751aa..6f631289672b 100644
|
||||
--- a/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
+++ b/xmloff/source/style/PageMasterStyleMap.cxx
|
||||
@@ -157,7 +157,7 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] =
|
||||
PLMAP( PROP_FootnoteLineRelativeWidth, XML_NAMESPACE_STYLE, XML__EMPTY, XML_TYPE_PERCENT8|MID_FLAG_SPECIAL_ITEM, CTF_PM_FTN_LINE_WIDTH ),
|
||||
PLMAP( PROP_FootnoteLineTextDistance, XML_NAMESPACE_STYLE, XML__EMPTY, XML_TYPE_MEASURE|MID_FLAG_SPECIAL_ITEM, CTF_PM_FTN_LINE_DISTANCE ),
|
||||
PLMAP( PROP_FootnoteLineWeight, XML_NAMESPACE_STYLE, XML_FOOTNOTE_SEP, XML_TYPE_MEASURE16|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_WEIGHT ),
|
||||
- PLMAP( PROP_FootnoteLineStyle, XML_NAMESPACE_STYLE, XML_EMPTY, XML_TYPE_STRING|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_STYLE ),
|
||||
+ PLMAP( PROP_FootnoteLineStyle, XML_NAMESPACE_STYLE, XML_TOKEN_EMPTY, XML_TYPE_STRING|MID_FLAG_ELEMENT_ITEM, CTF_PM_FTN_LINE_STYLE ),
|
||||
PLMAP_EXT(PROP_GutterMargin, XML_NAMESPACE_LO_EXT, XML_MARGIN_GUTTER, XML_TYPE_MEASURE, CTF_PM_MARGINGUTTER),
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
diff --git a/xmlsecurity/inc/xmlsec-wrapper.h b/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
index 7c6d267e8b73..3ad705400c52 100644
|
||||
--- a/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
+++ b/xmlsecurity/inc/xmlsec-wrapper.h
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
#include <xmlsec/base64.h>
|
||||
#include <xmlsec/bn.h>
|
||||
#include <xmlsec/errors.h>
|
||||
diff --git a/xmlsecurity/inc/xmlsec/saxhelper.hxx b/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
index a49ccef1894c..a5863ffd0e2a 100644
|
||||
--- a/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
+++ b/xmlsecurity/inc/xmlsec/saxhelper.hxx
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <string_view>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
--
|
||||
cgit v1.2.1
|
Loading…
x
Reference in New Issue
Block a user