tdf#48459 sw inline heading: don't apply inside frames or over 120 chars
[LibreOffice.git] / sc / inc / SparklineData.hxx
blobc004abbd73dc8a116725aba82b607113ea65a2b5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 */
11 #pragma once
13 #include "address.hxx"
14 #include "scdllapi.h"
16 namespace sc
18 /** Data defining a sparkline - input data and output position */
19 struct SC_DLLPUBLIC SparklineData
21 ScAddress maPosition;
22 ScRange maData;
24 SparklineData(ScAddress const& rPosition, ScRange const& rData)
25 : maPosition(rPosition)
26 , maData(rData)
31 enum class RangeOrientation
33 Unknown,
34 Row,
35 Col
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);
42 } // end sc
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */