Coverage Report

Created: 2026-05-16 09:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/writerperfect/source/writer/exp/XMLSectionContext.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
10
#include "XMLSectionContext.hxx"
11
12
#include "xmlimp.hxx"
13
#include "xmltext.hxx"
14
15
using namespace com::sun::star;
16
17
namespace writerperfect::exp
18
{
19
XMLSectionContext::XMLSectionContext(XMLImport& rImport)
20
0
    : XMLImportContext(rImport)
21
0
{
22
0
}
23
24
rtl::Reference<XMLImportContext> XMLSectionContext::CreateChildContext(
25
    const OUString& rName, const css::uno::Reference<css::xml::sax::XAttributeList>& /*xAttribs*/)
26
0
{
27
0
    return CreateTextChildContext(GetImport(), rName);
28
0
}
29
30
void XMLSectionContext::startElement(
31
    const OUString& /*rName*/,
32
    const css::uno::Reference<css::xml::sax::XAttributeList>& /*xAttribs*/)
33
0
{
34
0
    GetImport().GetGenerator().openSection(librevenge::RVNGPropertyList());
35
0
}
36
37
void XMLSectionContext::endElement(const OUString& /*rName*/)
38
0
{
39
0
    GetImport().GetGenerator().closeSection();
40
0
}
41
42
} // namespace writerperfect::exp
43
44
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */