File indexing completed on 2024-12-22 04:28:07
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "exportabstractautocorrection.h" 0010 #include "textautocorrectioncore_private_export.h" 0011 class KZip; 0012 namespace TextAutoCorrectionCore 0013 { 0014 class TEXTAUTOCORRECTIONCORE_TESTS_EXPORT ExportLibreOfficeAutocorrection : public ExportAbstractAutocorrection 0015 { 0016 public: 0017 ExportLibreOfficeAutocorrection(); 0018 ~ExportLibreOfficeAutocorrection() override; 0019 0020 [[nodiscard]] bool exportData(const QString &language, const QString &fileName, QString &errorMessage, const QString &writablePath) override; 0021 0022 private: 0023 [[nodiscard]] bool exportDocumentList(); 0024 [[nodiscard]] bool exportSentenceExceptList(); 0025 [[nodiscard]] bool exportWordExceptList(); 0026 [[nodiscard]] bool exportManifest(); 0027 KZip *mZip = nullptr; 0028 }; 0029 }