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 #ifndef _XMLOFF_SCH_XMLEXPORTHELPER_HXX_ 28 #define _XMLOFF_SCH_XMLEXPORTHELPER_HXX_ 29 30 #include "sal/config.h" 31 #include "xmloff/dllapi.h" 32 #include "sal/types.h" 33 #include <xmloff/uniref.hxx> 34 #include <rtl/ustrbuf.hxx> 35 #include <com/sun/star/util/XStringMapping.hpp> 36 #include <com/sun/star/awt/Size.hpp> 37 #include <com/sun/star/awt/Point.hpp> 38 #include <xmloff/xmlprmap.hxx> 39 40 #include <queue> 41 #include <vector> 42 43 class SvXMLAutoStylePoolP; 44 class SvXMLExport; 45 class SchXMLExportHelper_Impl; 46 47 /** With this class you can export a <chart:chart> element containing 48 its data as <table:table> element or without internal table. In 49 the latter case you have to provide a table address mapper if the 50 cell addressing set at the document is not in XML format. 51 */ 52 class XMLOFF_DLLPUBLIC SchXMLExportHelper : public UniRefBase 53 { 54 public: 55 SchXMLExportHelper( SvXMLExport& rExport, 56 SvXMLAutoStylePoolP& rASPool ); 57 58 virtual ~SchXMLExportHelper(); 59 60 /// returns the string corresponding to the current FileFormat CLSID for Chart 61 const rtl::OUString& getChartCLSID(); 62 63 private: 64 SchXMLExportHelper(); // not defined 65 SchXMLExportHelper(SchXMLExportHelper &); // not defined 66 void operator =(SchXMLExportHelper &); // not defined 67 68 private: 69 SchXMLExportHelper_Impl* m_pImpl; 70 friend class SchXMLExport; 71 }; 72 73 #endif // _XMLOFF_SCH_XMLEXPORTHELPER_HXX_ 74