LibreOffice Module xmloff (master)  1
contexts.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
20 #define INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
21 
22 #include <SchXMLImport.hxx>
23 #include <xmloff/xmlictxt.hxx>
24 
25 #include <xmloff/xmlmetai.hxx>
26 
27 namespace com::sun::star::xml::sax {
28  class XAttributeList;
29 }
30 
31 /*
32  These contexts are only needed by
33  SchXMLImport not by the SchXMLImportHelper
34  that is also used by other applications
35 */
36 
37 class SchXMLDocContext : public virtual SvXMLImportContext
38 {
39 protected:
41 
42 public:
44  SchXMLImportHelper& rImpHelper,
45  SvXMLImport& rImport,
46  sal_Int32 nElement );
47 
48  virtual ~SchXMLDocContext() override;
49 
50  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
51  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
52 };
53 
54 // context for flat file xml format
57 {
58 public:
60  SchXMLImportHelper& i_rImpHelper,
61  SchXMLImport& i_rImport,
62  sal_Int32 i_nElement,
63  const css::uno::Reference<css::document::XDocumentProperties>& i_xDocProps);
64 
65  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
66  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
67 };
68 
70 {
71 private:
73 
74 public:
76  SchXMLImportHelper& rImpHelper,
77  SvXMLImport& rImport,
78  sal_Int32 nElement );
79  virtual ~SchXMLBodyContext() override;
80 
81  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
82  sal_Int32 nElement,
83  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
84 };
85 
86 #endif // INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
87 
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SchXMLFlatDocContext_Impl(SchXMLImportHelper &i_rImpHelper, SchXMLImport &i_rImport, sal_Int32 i_nElement, const css::uno::Reference< css::document::XDocumentProperties > &i_xDocProps)
Definition: contexts.cxx:111
SchXMLDocContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, sal_Int32 nElement)
Definition: contexts.cxx:65
virtual ~SchXMLDocContext() override
Definition: contexts.cxx:77
SchXMLImportHelper & mrImportHelper
Definition: contexts.hxx:72
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: contexts.cxx:147
SchXMLImportHelper & mrImportHelper
Definition: contexts.hxx:40
With this class you can import a element containing its data as element o...
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
SchXMLBodyContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, sal_Int32 nElement)
Definition: contexts.cxx:135
handles the top-level office:document-meta element of meta.xml documents
Definition: xmlmetai.hxx:35
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: contexts.cxx:122
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: contexts.cxx:81
virtual ~SchXMLBodyContext() override
Definition: contexts.cxx:144