xref: /AOO41X/main/sw/source/filter/xml/xmltexte.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
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 _XMLTEXTE_HXX
25 #define _XMLTEXTE_HXX
26 
27 #include <xmloff/txtparae.hxx>
28 #include <tools/globname.hxx>
29 
30 class SwXMLExport;
31 class SvXMLAutoStylePoolP;
32 class SwNoTxtNode;
33 
34 namespace com { namespace sun { namespace star { namespace style {
35                 class XStyle; } } } }
36 
37 class SwXMLTextParagraphExport : public XMLTextParagraphExport
38 {
39     const ::rtl::OUString sTextTable;
40     const ::rtl::OUString sEmbeddedObjectProtocol;
41     const ::rtl::OUString sGraphicObjectProtocol;
42 
43     const SvGlobalName aAppletClassId;
44     const SvGlobalName aPluginClassId;
45     const SvGlobalName aIFrameClassId;
46     const SvGlobalName aOutplaceClassId;
47 
48     SwNoTxtNode *GetNoTxtNode(
49         const ::com::sun::star::uno::Reference <
50                 ::com::sun::star::beans::XPropertySet >& rPropSet ) const;
51 
52 protected:
53     virtual void exportStyleContent(
54             const ::com::sun::star::uno::Reference<
55                 ::com::sun::star::style::XStyle > & rStyle );
56 
57     virtual void _collectTextEmbeddedAutoStyles(
58         const ::com::sun::star::uno::Reference <
59             ::com::sun::star::beans::XPropertySet > & rPropSet );
60     virtual void _exportTextEmbedded(
61         const ::com::sun::star::uno::Reference <
62             ::com::sun::star::beans::XPropertySet > & rPropSet,
63         const ::com::sun::star::uno::Reference <
64             ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
65 
66     virtual void exportTable(
67         const ::com::sun::star::uno::Reference <
68             ::com::sun::star::text::XTextContent > & rTextContent,
69         sal_Bool bAutoStyles, sal_Bool bProgress );
70 
71 public:
72     SwXMLTextParagraphExport(
73         SwXMLExport& rExp,
74         SvXMLAutoStylePoolP& rAutoStylePool );
75     ~SwXMLTextParagraphExport();
76 
77     virtual void setTextEmbeddedGraphicURL(
78         const ::com::sun::star::uno::Reference <
79                 ::com::sun::star::beans::XPropertySet >& rPropSet,
80         ::rtl::OUString& rStreamName ) const;
81 };
82 
83 
84 #endif  //  _XMLTEXTE_HXX
85