1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _DOCXEXPORTFILTER_HXX_ 25 #define _DOCXEXPORTFILTER_HXX_ 26 27 #include <oox/core/xmlfilterbase.hxx> 28 #include <oox/drawingml/chart/chartconverter.hxx> 29 #include <oox/vml/drawing.hxx> 30 31 #include <com/sun/star/beans/PropertyValue.hpp> 32 33 // The physical access to the DOCX document (for writing). 34 class DocxExportFilter : public oox::core::XmlFilterBase 35 { 36 public: 37 DocxExportFilter( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rMSF ); 38 39 // FIXME these should not even exist for the export-only filter! 40 // For now, let's just do empty implementations of those. importDocument()41 virtual bool importDocument() { return false; } getCurrentTheme() const42 virtual const ::oox::drawingml::Theme* getCurrentTheme() const { return NULL; } getSchemeClr(sal_Int32) const43 virtual sal_Int32 getSchemeClr( sal_Int32 ) const { return 0; } getDrawings()44 virtual const ::oox::vml::DrawingPtr getDrawings() { return ::oox::vml::DrawingPtr(); } getChartConverter()45 virtual ::oox::drawingml::chart::ChartConverter& getChartConverter() { static ::oox::drawingml::chart::ChartConverter aConverter; return aConverter; } getTableStyles()46 virtual const ::oox::drawingml::table::TableStyleListPtr getTableStyles() { return ::oox::drawingml::table::TableStyleListPtr(); } 47 48 // Actual export of the DOCX document 49 virtual bool exportDocument(); 50 51 private: 52 53 // Implementation of the filter abstract method. 54 virtual ::rtl::OUString implGetImplementationName() const; 55 }; 56 57 #endif // _DOCXEXPORTFILTER_HXX_ 58 59 /* vim: set noet sw=4 ts=4: */ 60