LibreOffice Module chart2 (master) 1
ExplicitScaleValues.hxx
Go to the documentation of this file.
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#pragma once
20
22#include <com/sun/star/chart/TimeInterval.hpp>
23#include <com/sun/star/chart2/AxisOrientation.hpp>
24#include <com/sun/star/chart2/XScaling.hpp>
25#include <tools/date.hxx>
26#include <vector>
27
29{
30class XScaling;
31}
32
33namespace chart
34{
39{
41
42 double Minimum;
43 double Maximum;
44 double Origin;
45
46 css::chart2::AxisOrientation Orientation;
47
48 css::uno::Reference<css::chart2::XScaling> Scaling;
49
50 sal_Int32 AxisType; //see css::chart2::AxisType
52 sal_Int32 TimeResolution; //constant of type <type>css::chart::TimeUnit</type>
54};
55
57{
59
65 sal_Int32 IntervalCount;
66
72};
73
77{
79
82 css::chart::TimeInterval MajorTimeInterval;
83 css::chart::TimeInterval MinorTimeInterval;
84
108 double Distance;
109
121
138 double BaseValue;
139
149 std::vector<ExplicitSubIncrement> SubIncrements;
150};
151
152} //namespace chart
153
154/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTVIEW
describes how tickmarks are positioned on the scale of an axis.
std::vector< ExplicitSubIncrement > SubIncrements
<member>SubIncrements</member> describes the positioning of further sub tickmarks on the scale of an ...
double Distance
the other members are for not date-time axis
css::chart::TimeInterval MajorTimeInterval
the following two members are only for date-time axis
css::chart::TimeInterval MinorTimeInterval
bool PostEquidistant
<member>PostEquidistant</member> rules whether the member <member>Distance</member> describes a dista...
double BaseValue
The <member>BaseValue</member> gives a starting point on the scale to which all further main tickmark...
This structure contains the explicit values for a scale like Minimum and Maximum.
css::uno::Reference< css::chart2::XScaling > Scaling
css::chart2::AxisOrientation Orientation
sal_Int32 IntervalCount
Numbers of intervals between two superior ticks.
bool PostEquidistant
If <TRUE>, the distance between two sub-tick-marks on the screen is always the same.