1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SW_XMLSECTIONLIST_HXX
20 #define _SW_XMLSECTIONLIST_HXX
22 #include <xmloff/xmlictxt.hxx>
23 #include <xmloff/xmlimp.hxx>
25 class SwXMLSectionList
: public SvXMLImport
28 // This method is called after the namespace map has been updated, but
29 // before a context for the current element has been pushed.
30 virtual SvXMLImportContext
*CreateContext( sal_uInt16 nPrefix
,
31 const OUString
& rLocalName
,
32 const ::com::sun::star::uno::Reference
<
33 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
35 std::vector
<String
*> &rSectionList
;
38 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> xContext
,
39 std::vector
<String
*> &rNewSectionList
);
41 virtual ~SwXMLSectionList ( )
45 class SvXMLSectionListContext
: public SvXMLImportContext
48 SwXMLSectionList
& rLocalRef
;
50 SvXMLSectionListContext ( SwXMLSectionList
& rImport
,
52 const OUString
& rLocalName
,
53 const ::com::sun::star::uno::Reference
<
54 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
55 virtual SvXMLImportContext
*CreateChildContext( sal_uInt16 nPrefix
,
56 const OUString
& rLocalName
,
57 const ::com::sun::star::uno::Reference
<
58 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
59 ~SvXMLSectionListContext ( void );
62 class SvXMLIgnoreSectionListContext
: public SvXMLImportContext
65 SwXMLSectionList
& rLocalRef
;
67 SvXMLIgnoreSectionListContext ( SwXMLSectionList
& rImport
,
69 const OUString
& rLocalName
,
70 const ::com::sun::star::uno::Reference
<
71 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
72 virtual SvXMLImportContext
*CreateChildContext( sal_uInt16 nPrefix
,
73 const OUString
& rLocalName
,
74 const ::com::sun::star::uno::Reference
<
75 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
76 ~SvXMLIgnoreSectionListContext ( void );
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */