Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / sw / inc / SwXMLSectionList.hxx
blob666bbe832d8d0d3871259840e4179effef942517
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_SW_INC_SWXMLSECTIONLIST_HXX
20 #define INCLUDED_SW_INC_SWXMLSECTIONLIST_HXX
22 #include <xmloff/xmlictxt.hxx>
23 #include <xmloff/xmlimp.hxx>
25 class SwXMLSectionList : public SvXMLImport
27 protected:
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 css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override;
33 public:
34 std::vector<OUString*> &rSectionList;
36 SwXMLSectionList(
37 const css::uno::Reference< css::uno::XComponentContext >& rContext,
38 std::vector<OUString*> &rNewSectionList );
40 virtual ~SwXMLSectionList ( )
41 throw() override;
44 class SvXMLSectionListContext : public SvXMLImportContext
46 private:
47 SwXMLSectionList & rLocalRef;
48 public:
49 SvXMLSectionListContext ( SwXMLSectionList& rImport,
50 sal_uInt16 nPrefix,
51 const OUString& rLocalName,
52 const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
53 virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
54 const OUString& rLocalName,
55 const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override;
56 virtual ~SvXMLSectionListContext() override;
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */