/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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/. */ #pragma once #include #include #include #include #include #include namespace sw { class IndexingExportFilter final : public cppu::WeakImplHelper { private: css::uno::Reference m_xSourceDocument; public: IndexingExportFilter() {} // XFilter virtual sal_Bool SAL_CALL filter(const css::uno::Sequence& aDescriptor) override; virtual void SAL_CALL cancel() override {} // XExporter virtual void SAL_CALL setSourceDocument(const css::uno::Reference& xDocument) override { m_xSourceDocument = xDocument; } // XInitialization virtual void SAL_CALL initialize(const css::uno::Sequence& /*aArguments*/) override { } // XServiceInfo virtual OUString SAL_CALL getImplementationName() override { return "com.sun.star.comp.Writer.IndexingExportFilter"; } virtual sal_Bool SAL_CALL supportsService(OUString const& rServiceName) override { return cppu::supportsService(this, rServiceName); } virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() override { return { "com.sun.star.document.ExportFilter" }; } }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */