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#pragma once
20
21#include <SchXMLImport.hxx>
22#include <xmloff/xmlictxt.hxx>
23
24#include <xmloff/xmlmetai.hxx>
25
27 class XAttributeList;
28}
29
30/*
31 These contexts are only needed by
32 SchXMLImport not by the SchXMLImportHelper
33 that is also used by other applications
34*/
35
37{
39
40public:
42 SchXMLImportHelper& rImpHelper,
43 SvXMLImport& rImport,
44 sal_Int32 nElement );
45
46 virtual ~SchXMLDocContext() override;
47
48 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
49 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
50};
51
52// context for flat file xml format
55{
56public:
58 SchXMLImportHelper& i_rImpHelper,
59 SchXMLImport& i_rImport,
60 sal_Int32 i_nElement,
61 const css::uno::Reference<css::document::XDocumentProperties>& i_xDocProps);
62
63 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
64 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
65};
66
68{
69private:
71
72public:
74 SchXMLImportHelper& rImpHelper,
75 SvXMLImport& rImport,
76 sal_Int32 nElement );
77 virtual ~SchXMLBodyContext() override;
78
79 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
80 sal_Int32 nElement,
81 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
82};
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SchXMLBodyContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, sal_Int32 nElement)
Definition: contexts.cxx:135
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
virtual ~SchXMLBodyContext() override
Definition: contexts.cxx:144
SchXMLImportHelper & mrImportHelper
Definition: contexts.hxx:70
virtual ~SchXMLDocContext() override
Definition: contexts.cxx:77
SchXMLDocContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, sal_Int32 nElement)
Definition: contexts.cxx:65
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
SchXMLImportHelper & mrImportHelper
Definition: contexts.hxx:38
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
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
With this class you can import a <chart:chart> element containing its data as <table:table> element o...
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
friend class SvXMLImport
Definition: xmlictxt.hxx:49
handles the top-level office:document-meta element of meta.xml documents
Definition: xmlmetai.hxx:37