Coverage Report

Created: 2026-02-14 09:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/xmloff/source/text/XMLAutoTextContainerEventImport.cxx
Line
Count
Source
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 "XMLAutoTextContainerEventImport.hxx"
21
#include <com/sun/star/uno/Reference.hxx>
22
#include <com/sun/star/container/XNameReplace.hpp>
23
#include <xmloff/xmlimp.hxx>
24
#include <xmloff/xmlnamespace.hxx>
25
#include <xmloff/xmltoken.hxx>
26
#include <xmloff/XMLEventsImportContext.hxx>
27
#include <sal/log.hxx>
28
29
30
using namespace ::com::sun::star;
31
32
using ::com::sun::star::uno::Reference;
33
using ::com::sun::star::container::XNameReplace;
34
using ::xmloff::token::XML_EVENT_LISTENERS;
35
36
37
XMLAutoTextContainerEventImport::XMLAutoTextContainerEventImport(
38
    SvXMLImport& rImport,
39
    const Reference<XNameReplace> & rEvnts ) :
40
0
        SvXMLImportContext(rImport),
41
0
        rEvents(rEvnts)
42
0
{
43
0
}
44
45
XMLAutoTextContainerEventImport::~XMLAutoTextContainerEventImport()
46
0
{
47
0
}
48
49
css::uno::Reference< css::xml::sax::XFastContextHandler > XMLAutoTextContainerEventImport::createFastChildContext(
50
    sal_Int32 nElement,
51
    const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
52
0
{
53
0
    if ( nElement == XML_ELEMENT(OFFICE, XML_EVENT_LISTENERS) )
54
0
    {
55
0
        return new XMLEventsImportContext(GetImport(), rEvents);
56
0
    }
57
0
    else
58
0
        XMLOFF_WARN_UNKNOWN_ELEMENT("xmloff", nElement);
59
0
    return nullptr;
60
0
}
61
62
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */