LibreOffice Module xmloff (master) 1
xmlictxt.cxx
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
20#include <com/sun/star/xml/sax/XAttributeList.hpp>
21#include <xmloff/xmlimp.hxx>
22#include <xmloff/xmlictxt.hxx>
23#include <sax/fastattribs.hxx>
26#include <sal/log.hxx>
27
28using namespace ::com::sun::star;
29
31 : mrImport(rImp)
32 , m_nRefCount(0)
33{
34}
35
37{
38}
39
41{
42}
43
44// css::xml::sax::XFastContextHandler:
45void SAL_CALL SvXMLImportContext::startFastElement(sal_Int32 /*nElement*/, const uno::Reference< xml::sax::XFastAttributeList > & )
46{
47}
48
49void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString & /*rNamespace*/, const OUString & /*rElementName*/,
50 const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
51{
52}
53
54void SAL_CALL SvXMLImportContext::endUnknownElement (const OUString & /*rNamespace*/, const OUString & /*rElementName*/)
55{
56}
57
58uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createFastChildContext
59 (sal_Int32 /*Element*/, const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
60{
61 return nullptr;
62}
63
64uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createUnknownChildContext
65 (const OUString & /*rNamespace*/, const OUString & /*rName*/, const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
66{
67 return nullptr;
68}
69
70void SAL_CALL SvXMLImportContext::characters(const OUString &/*rChars*/)
71{
72}
73
74// XInterface
75css::uno::Any SAL_CALL SvXMLImportContext::queryInterface( const css::uno::Type& aType )
76{
77 css::uno::Any a = ::cppu::queryInterface(
78 aType,
79 static_cast< XFastContextHandler* >(this),
80 static_cast< XTypeProvider* >(this),
81 static_cast< css::uno::XInterface* >(static_cast< XFastContextHandler* >(this)));
82
83 return a;
84}
85
86// XTypeProvider
87css::uno::Sequence< css::uno::Type > SAL_CALL SvXMLImportContext::getTypes()
88{
91}
92
93css::uno::Sequence< sal_Int8 > SAL_CALL SvXMLImportContext::getImplementationId()
94{
95 return css::uno::Sequence<sal_Int8>();
96}
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL startFastElement(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
Definition: xmlictxt.cxx:45
virtual ~SvXMLImportContext()
A contexts destructor does anything that is required if an element ends.
Definition: xmlictxt.cxx:36
virtual void SAL_CALL endFastElement(sal_Int32 Element) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: xmlictxt.cxx:40
SvXMLImportContext(SvXMLImport &rImport)
A contexts constructor does anything that is required if an element starts.
Definition: xmlictxt.cxx:30
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
Definition: xmlictxt.cxx:65
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() final override
Definition: xmlictxt.cxx:87
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
Definition: xmlictxt.cxx:59
virtual void SAL_CALL endUnknownElement(const OUString &Namespace, const OUString &Name) override
Definition: xmlictxt.cxx:54
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() final override
Definition: xmlictxt.cxx:93
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) final override
Definition: xmlictxt.cxx:75
virtual void SAL_CALL startUnknownElement(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
Definition: xmlictxt.cxx:49
virtual void SAL_CALL characters(const OUString &aChars) override
This method is called for all characters that are contained in the current element.
Definition: xmlictxt.cxx:70
css::uno::Type const & get()
uno_Any a