Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / filter / inc / excelfilter.hxx
blobc368792fbb19fa4e4647c07891b6385881f5b9ae
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 #ifndef OOX_XLS_EXCELFILTER_HXX
21 #define OOX_XLS_EXCELFILTER_HXX
23 #include "oox/core/xmlfilterbase.hxx"
25 namespace oox {
26 namespace xls {
28 class WorkbookGlobals;
30 // ============================================================================
32 class ExcelFilter : public ::oox::core::XmlFilterBase
34 public:
35 explicit ExcelFilter(
36 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext )
37 throw( ::com::sun::star::uno::RuntimeException );
38 virtual ~ExcelFilter();
40 void registerWorkbookGlobals( WorkbookGlobals& rBookGlob );
41 WorkbookGlobals& getWorkbookGlobals() const;
42 void unregisterWorkbookGlobals();
44 virtual bool importDocument() throw();
45 virtual bool exportDocument() throw();
47 virtual const ::oox::drawingml::Theme* getCurrentTheme() const;
48 virtual ::oox::vml::Drawing* getVmlDrawing();
49 virtual const ::oox::drawingml::table::TableStyleListPtr getTableStyles();
50 virtual ::oox::drawingml::chart::ChartConverter* getChartConverter();
51 virtual void useInternalChartDataTable( bool bInternal );
53 virtual sal_Bool SAL_CALL filter( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rDescriptor ) throw( ::com::sun::star::uno::RuntimeException );
55 private:
56 virtual GraphicHelper* implCreateGraphicHelper() const;
57 virtual ::oox::ole::VbaProject* implCreateVbaProject() const;
58 virtual OUString implGetImplementationName() const;
60 WorkbookGlobals* mpBookGlob;
63 css::uno::Reference< css::uno::XInterface > SAL_CALL ExcelFilter_create(
64 css::uno::Reference< css::uno::XComponentContext > const & context);
66 OUString SAL_CALL ExcelFilter_getImplementationName();
68 css::uno::Sequence< OUString > SAL_CALL ExcelFilter_getSupportedServiceNames();
70 } // namespace xls
71 } // namespace oox
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */