1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SwXMLBlockListContext.hxx,v $
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
41 SwXMLBlockListImport
& rLocalRef
;
43 SwXMLBlockListContext( SwXMLBlockListImport
& rImport
,
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
58 SwXMLBlockListImport
& rLocalRef
;
60 SwXMLBlockContext( SwXMLBlockListImport
& rImport
,
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
71 SwXMLTextBlockImport
& rLocalRef
;
73 SwXMLTextBlockDocumentContext( SwXMLTextBlockImport
& rImport
,
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
87 SwXMLTextBlockImport
& rLocalRef
;
89 SwXMLTextBlockBodyContext( SwXMLTextBlockImport
& rImport
,
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
103 SwXMLTextBlockImport
& rLocalRef
;
105 SwXMLTextBlockTextContext( SwXMLTextBlockImport
& rImport
,
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
119 SwXMLTextBlockImport
& rLocalRef
;
121 SwXMLTextBlockParContext( SwXMLTextBlockImport
& rImport
,
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 );