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