Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/xmloff/source/style/tabsthdl.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 "tabsthdl.hxx"
21
#include <com/sun/star/uno/Sequence.hxx>
22
#include <com/sun/star/style/TabStop.hpp>
23
24
using namespace ::com::sun::star;
25
26
27
28
29
XMLTabStopPropHdl::~XMLTabStopPropHdl()
30
99.7k
{
31
    // Nothing to do
32
99.7k
}
33
34
bool XMLTabStopPropHdl::equals( const uno::Any& r1, const uno::Any& r2 ) const
35
0
{
36
0
    uno::Sequence< style::TabStop> aSeq1;
37
0
    if( r1 >>= aSeq1 )
38
0
    {
39
0
        uno::Sequence< style::TabStop> aSeq2;
40
0
        if( r2 >>= aSeq2 )
41
0
        {
42
0
            return std::equal(std::cbegin(aSeq1), std::cend(aSeq1), std::cbegin(aSeq2), std::cend(aSeq2),
43
0
                [](const style::TabStop& a, const style::TabStop& b) {
44
0
                    return a.Position == b.Position
45
0
                        && a.Alignment == b.Alignment
46
0
                        && a.DecimalChar == b.DecimalChar
47
0
                        && a.FillChar == b.FillChar;
48
0
                });
49
0
        }
50
0
    }
51
52
0
    return false;
53
0
}
54
55
bool XMLTabStopPropHdl::importXML( const OUString&, css::uno::Any&, const SvXMLUnitConverter& ) const
56
0
{
57
0
    return false;
58
0
}
59
60
bool XMLTabStopPropHdl::exportXML( OUString&, const css::uno::Any&, const SvXMLUnitConverter& ) const
61
0
{
62
0
    return false;
63
0
}
64
65
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */