Coverage Report

Created: 2025-12-31 10:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/inc/SparklineData.hxx
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
11
#pragma once
12
13
#include "address.hxx"
14
#include "scdllapi.h"
15
16
namespace sc
17
{
18
/** Data defining a sparkline - input data and output position */
19
struct SC_DLLPUBLIC SparklineData
20
{
21
    ScAddress maPosition;
22
    ScRange maData;
23
24
    SparklineData(ScAddress const& rPosition, ScRange const& rData)
25
0
        : maPosition(rPosition)
26
0
        , maData(rData)
27
0
    {
28
0
    }
29
};
30
31
enum class RangeOrientation
32
{
33
    Unknown,
34
    Row,
35
    Col
36
};
37
38
/** Determine the sparkline group orientation for the input data the output size */
39
SC_DLLPUBLIC RangeOrientation calculateOrientation(sal_Int32 nOutputSize,
40
                                                   ScRange const& rInputRange);
41
42
} // end sc
43
44
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */