tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / sc / source / filter / inc / excelfilter.hxx
blob2aeb675cd7b1fb58495523e20f3a8e602b2977b9
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <oox/core/xmlfilterbase.hxx>
24 namespace oox::xls {
26 class WorkbookGlobals;
28 class ExcelFilter final : public ::oox::core::XmlFilterBase
30 public:
31 /// @throws css::uno::RuntimeException
32 explicit ExcelFilter(
33 const css::uno::Reference< css::uno::XComponentContext >& rxContext );
34 virtual ~ExcelFilter() override;
36 void registerWorkbookGlobals( WorkbookGlobals& rBookGlob );
37 WorkbookGlobals& getWorkbookGlobals() const;
38 void unregisterWorkbookGlobals();
40 virtual bool importDocument() override;
41 virtual bool exportDocument() noexcept override;
43 virtual const ::oox::drawingml::Theme* getCurrentTheme() const override;
44 virtual ::oox::vml::Drawing* getVmlDrawing() override;
45 virtual ::oox::drawingml::table::TableStyleListPtr getTableStyles() override;
46 virtual ::oox::drawingml::chart::ChartConverter* getChartConverter() override;
47 virtual void useInternalChartDataTable( bool bInternal ) override;
49 virtual sal_Bool SAL_CALL filter( const css::uno::Sequence< css::beans::PropertyValue >& rDescriptor ) override;
51 private:
52 virtual GraphicHelper* implCreateGraphicHelper() const override;
53 virtual ::oox::ole::VbaProject* implCreateVbaProject() const override;
54 virtual OUString SAL_CALL getImplementationName() override;
56 WorkbookGlobals* mpBookGlob;
59 } // namespace oox::xls
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */