Update ooo320-m1
[ooovba.git] / sw / source / core / inc / SwXMLBlockListContext.hxx
blobed3ed138517fbe698c763bd37caac37b3cccf304
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SwXMLBlockListContext.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SW_XMLBLOCKLISTCONTEXT_HXX
31 #define _SW_XMLBLOCKLISTCONTEXT_HXX
33 #include <xmloff/xmlictxt.hxx>
35 class SwXMLBlockListImport;
36 class SwXMLTextBlockImport;
38 class SwXMLBlockListContext : public SvXMLImportContext
40 private:
41 SwXMLBlockListImport & rLocalRef;
42 public:
43 SwXMLBlockListContext( SwXMLBlockListImport& rImport,
44 sal_uInt16 nPrefix,
45 const rtl::OUString& rLocalName,
46 const ::com::sun::star::uno::Reference<
47 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
48 ~SwXMLBlockListContext ( void );
49 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
50 const rtl::OUString& rLocalName,
51 const ::com::sun::star::uno::Reference<
52 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
55 class SwXMLBlockContext : public SvXMLImportContext
57 private:
58 SwXMLBlockListImport & rLocalRef;
59 public:
60 SwXMLBlockContext( SwXMLBlockListImport& rImport,
61 sal_uInt16 nPrefix,
62 const rtl::OUString& rLocalName,
63 const ::com::sun::star::uno::Reference<
64 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
65 ~SwXMLBlockContext ( void );
68 class SwXMLTextBlockDocumentContext : public SvXMLImportContext
70 private:
71 SwXMLTextBlockImport & rLocalRef;
72 public:
73 SwXMLTextBlockDocumentContext( SwXMLTextBlockImport& rImport,
74 sal_uInt16 nPrefix,
75 const rtl::OUString& rLocalName,
76 const ::com::sun::star::uno::Reference<
77 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
78 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
79 const rtl::OUString& rLocalName,
80 const ::com::sun::star::uno::Reference<
81 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
82 ~SwXMLTextBlockDocumentContext ( void );
84 class SwXMLTextBlockBodyContext : public SvXMLImportContext
86 private:
87 SwXMLTextBlockImport & rLocalRef;
88 public:
89 SwXMLTextBlockBodyContext( SwXMLTextBlockImport& rImport,
90 sal_uInt16 nPrefix,
91 const rtl::OUString& rLocalName,
92 const ::com::sun::star::uno::Reference<
93 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
94 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
95 const rtl::OUString& rLocalName,
96 const ::com::sun::star::uno::Reference<
97 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
98 ~SwXMLTextBlockBodyContext ( void );
100 class SwXMLTextBlockTextContext : public SvXMLImportContext
102 private:
103 SwXMLTextBlockImport & rLocalRef;
104 public:
105 SwXMLTextBlockTextContext( SwXMLTextBlockImport& rImport,
106 sal_uInt16 nPrefix,
107 const rtl::OUString& rLocalName,
108 const ::com::sun::star::uno::Reference<
109 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
110 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
111 const rtl::OUString& rLocalName,
112 const ::com::sun::star::uno::Reference<
113 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
114 ~SwXMLTextBlockTextContext ( void );
116 class SwXMLTextBlockParContext : public SvXMLImportContext
118 private:
119 SwXMLTextBlockImport & rLocalRef;
120 public:
121 SwXMLTextBlockParContext( SwXMLTextBlockImport& rImport,
122 sal_uInt16 nPrefix,
123 const rtl::OUString& rLocalName,
124 const ::com::sun::star::uno::Reference<
125 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
126 virtual void Characters( const ::rtl::OUString& rChars );
127 ~SwXMLTextBlockParContext ( void );
129 #endif