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 RDFAEXPORTHELPER_HXX
25 #define RDFAEXPORTHELPER_HXX
26 
27 #include <com/sun/star/uno/Reference.h>
28 
29 #include <rtl/ustring.hxx>
30 
31 #include <map>
32 
33 
34 namespace com { namespace sun { namespace star {
35     namespace rdf { class XBlankNode; }
36     namespace rdf { class XMetadatable; }
37     namespace rdf { class XDocumentRepository; }
38 } } }
39 
40 class SvXMLExport;
41 
42 namespace xmloff {
43 
44 class SAL_DLLPRIVATE RDFaExportHelper
45 {
46 private:
47     SvXMLExport & m_rExport;
48 
49     ::com::sun::star::uno::Reference<
50         ::com::sun::star::rdf::XDocumentRepository> m_xRepository;
51 
52     typedef ::std::map< ::rtl::OUString, ::rtl::OUString >
53         BlankNodeMap_t;
54 
55     BlankNodeMap_t m_BlankNodeMap;
56 
57     long m_Counter;
58 
59     ::rtl::OUString
60     LookupBlankNode( ::com::sun::star::uno::Reference<
61         ::com::sun::star::rdf::XBlankNode> const & i_xBlankNode);
62 
63 public:
64     RDFaExportHelper(SvXMLExport & i_rExport);
65 
66     void
67     AddRDFa(::com::sun::star::uno::Reference<
68         ::com::sun::star::rdf::XMetadatable> const & i_xMetadatable);
69 };
70 
71 } // namespace xmloff
72 
73 #endif // RDFAEXPORTHELPER_HXX
74 
75