1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _DOCXEXPORTFILTER_HXX_ 29 #define _DOCXEXPORTFILTER_HXX_ 30 31 #include <oox/core/xmlfilterbase.hxx> 32 #include <oox/drawingml/chart/chartconverter.hxx> 33 #include <oox/vml/drawing.hxx> 34 35 #include <com/sun/star/beans/PropertyValue.hpp> 36 37 /// The physical access to the DOCX document (for writing). 38 class DocxExportFilter : public oox::core::XmlFilterBase 39 { 40 public: 41 DocxExportFilter( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rMSF ); 42 43 // FIXME these should not even exist for the export-only filter! 44 // For now, let's just do empty implementations of those. 45 virtual bool importDocument() { return false; } 46 virtual const ::oox::drawingml::Theme* getCurrentTheme() const { return NULL; } 47 virtual sal_Int32 getSchemeClr( sal_Int32 ) const { return 0; } 48 virtual const ::oox::vml::DrawingPtr getDrawings() { return ::oox::vml::DrawingPtr(); } 49 virtual ::oox::drawingml::chart::ChartConverter& getChartConverter() { static ::oox::drawingml::chart::ChartConverter aConverter; return aConverter; } 50 virtual const ::oox::drawingml::table::TableStyleListPtr getTableStyles() { return ::oox::drawingml::table::TableStyleListPtr(); } 51 52 // Actual export of the DOCX document 53 virtual bool exportDocument(); 54 55 private: 56 57 /// Implementatio of the filter abstract method. 58 virtual ::rtl::OUString implGetImplementationName() const; 59 }; 60 61 #endif // _DOCXEXPORTFILTER_HXX_ 62 /* vi:set tabstop=4 shiftwidth=4 expandtab: */ 63