summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-11-26 20:18:34 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-11-26 21:04:30 +0100
commit86c682273d907c77404637c89e584047de1c1099 (patch)
treeb46a839c166f869a7471fd35ab7dfca357331e2f /include
parentef79b9c55828d39de3d86cedd125f2f32e6b259a (diff)
tdf#96401: allow to detect a broken ZIP package
In deep detection, first check if it's a broken ZIP package. If it is, set the RepairPackage media descriptor property to true. Pass the RepairPackage value to the OOXML filter detection. Change-Id: Ic958283f3cce92ac29ce93ac330cc9e409e3eb78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159976 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/helper/zipstorage.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oox/helper/zipstorage.hxx b/include/oox/helper/zipstorage.hxx
index dec4b483ea3f..dabb714d7db8 100644
--- a/include/oox/helper/zipstorage.hxx
+++ b/include/oox/helper/zipstorage.hxx
@@ -43,7 +43,8 @@ class ZipStorage final : public StorageBase
public:
explicit ZipStorage(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,
- const css::uno::Reference< css::io::XInputStream >& rxInStream );
+ const css::uno::Reference< css::io::XInputStream >& rxInStream,
+ bool bRepairStorage = false );
explicit ZipStorage(
const css::uno::Reference< css::uno::XComponentContext >& rxContext,