xref: /AOO41X/main/sw/source/core/inc/SwXMLBlockListContext.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 #ifndef _SW_XMLBLOCKLISTCONTEXT_HXX
24 #define _SW_XMLBLOCKLISTCONTEXT_HXX
25 
26 #include <xmloff/xmlictxt.hxx>
27 
28 class SwXMLBlockListImport;
29 class SwXMLTextBlockImport;
30 
31 class SwXMLBlockListContext : public SvXMLImportContext
32 {
33 private:
34     SwXMLBlockListImport & rLocalRef;
35 public:
36     SwXMLBlockListContext( SwXMLBlockListImport& rImport,
37                            sal_uInt16 nPrefix,
38                            const rtl::OUString& rLocalName,
39                            const ::com::sun::star::uno::Reference<
40                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
41     ~SwXMLBlockListContext ( void );
42     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
43                            const rtl::OUString& rLocalName,
44                            const ::com::sun::star::uno::Reference<
45                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
46 
47 };
48 class SwXMLBlockContext : public SvXMLImportContext
49 {
50 private:
51     SwXMLBlockListImport & rLocalRef;
52 public:
53     SwXMLBlockContext(     SwXMLBlockListImport& rImport,
54                            sal_uInt16 nPrefix,
55                            const rtl::OUString& rLocalName,
56                            const ::com::sun::star::uno::Reference<
57                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
58     ~SwXMLBlockContext ( void );
59 };
60 
61 class SwXMLTextBlockDocumentContext : public SvXMLImportContext
62 {
63 private:
64     SwXMLTextBlockImport & rLocalRef;
65 public:
66     SwXMLTextBlockDocumentContext(     SwXMLTextBlockImport& rImport,
67                            sal_uInt16 nPrefix,
68                            const rtl::OUString& rLocalName,
69                            const ::com::sun::star::uno::Reference<
70                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
71     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
72                            const rtl::OUString& rLocalName,
73                            const ::com::sun::star::uno::Reference<
74                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
75     ~SwXMLTextBlockDocumentContext ( void );
76 };
77 class SwXMLTextBlockBodyContext : public SvXMLImportContext
78 {
79 private:
80     SwXMLTextBlockImport & rLocalRef;
81 public:
82     SwXMLTextBlockBodyContext(     SwXMLTextBlockImport& rImport,
83                            sal_uInt16 nPrefix,
84                            const rtl::OUString& rLocalName,
85                            const ::com::sun::star::uno::Reference<
86                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
87     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
88                            const rtl::OUString& rLocalName,
89                            const ::com::sun::star::uno::Reference<
90                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
91     ~SwXMLTextBlockBodyContext ( void );
92 };
93 class SwXMLTextBlockTextContext : public SvXMLImportContext
94 {
95 private:
96     SwXMLTextBlockImport & rLocalRef;
97 public:
98     SwXMLTextBlockTextContext(     SwXMLTextBlockImport& rImport,
99                            sal_uInt16 nPrefix,
100                            const rtl::OUString& rLocalName,
101                            const ::com::sun::star::uno::Reference<
102                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
103     virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
104                            const rtl::OUString& rLocalName,
105                            const ::com::sun::star::uno::Reference<
106                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
107     ~SwXMLTextBlockTextContext ( void );
108 };
109 class SwXMLTextBlockParContext : public SvXMLImportContext
110 {
111 private:
112     SwXMLTextBlockImport & rLocalRef;
113 public:
114     SwXMLTextBlockParContext(     SwXMLTextBlockImport& rImport,
115                            sal_uInt16 nPrefix,
116                            const rtl::OUString& rLocalName,
117                            const ::com::sun::star::uno::Reference<
118                            ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
119     virtual void Characters( const ::rtl::OUString& rChars );
120     ~SwXMLTextBlockParContext ( void );
121 };
122 #endif
123