tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / writerperfect / source / calc / NumbersImportFilter.hxx
blob96db0b689392f38b7af0ccca2b39f1bd24f6adba
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <com/sun/star/uno/XComponentContext.hpp>
14 #include <DocumentHandlerForOds.hxx>
15 #include <ImportFilter.hxx>
17 /* This component will be instantiated for both import or export. Whether it calls
18 * setSourceDocument or setTargetDocument determines which Impl function the filter
19 * member calls */
20 class NumbersImportFilter : public writerperfect::ImportFilter<OdsGenerator>
22 public:
23 explicit NumbersImportFilter(const css::uno::Reference<css::uno::XComponentContext>& rxContext)
24 : writerperfect::ImportFilter<OdsGenerator>(rxContext)
28 // XServiceInfo
29 virtual OUString SAL_CALL getImplementationName() override;
30 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
31 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
33 private:
34 virtual bool doDetectFormat(librevenge::RVNGInputStream& rInput, OUString& rTypeName) override;
35 virtual bool doImportDocument(weld::Window* pParent, librevenge::RVNGInputStream& rInput,
36 OdsGenerator& rGenerator, utl::MediaDescriptor&) override;
37 virtual void doRegisterHandlers(OdsGenerator& rGenerator) override;
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */