LibreOffice Module oox (master) 1
axismodel.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
20#ifndef INCLUDED_OOX_DRAWINGML_CHART_AXISMODEL_HXX
21#define INCLUDED_OOX_DRAWINGML_CHART_AXISMODEL_HXX
22
25
26namespace oox::drawingml::chart {
27
29{
34
39 double mfCustomUnit;
40 OUString mnBuiltInUnit;
41
42 explicit AxisDispUnitsModel();
44};
45
47{
52
60 std::optional< double > mofCrossesAt;
61 std::optional< double > mofMajorUnit;
62 std::optional< double > mofMinorUnit;
63 std::optional< double > mofLogBase;
64 std::optional< double > mofMax;
65 std::optional< double > mofMin;
66 std::optional< sal_Int32 > monBaseTimeUnit;
67 sal_Int32 mnAxisId;
68 sal_Int32 mnAxisPos;
69 sal_Int32 mnCrossAxisId;
70 sal_Int32 mnCrossBetween;
71 sal_Int32 mnCrossMode;
72 sal_Int32 mnLabelAlign;
73 sal_Int32 mnLabelOffset;
74 sal_Int32 mnMajorTickMark;
75 sal_Int32 mnMajorTimeUnit;
76 sal_Int32 mnMinorTickMark;
77 sal_Int32 mnMinorTimeUnit;
78 sal_Int32 mnOrientation;
79 sal_Int32 mnTickLabelPos;
80 sal_Int32 mnTickLabelSkip;
81 sal_Int32 mnTickMarkSkip;
82 sal_Int32 mnTypeId;
83 bool mbAuto;
84 bool mbDeleted;
86
87 explicit AxisModel( sal_Int32 nTypeId, bool bMSO2007Doc );
88 ~AxisModel();
89};
90
91} // namespace oox::drawingml::chart
92
93#endif
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
TextRef mxText
Layout/position of the axis units label.
Definition: axismodel.hxx:38
double mfCustomUnit
Text source of the axis units label.
Definition: axismodel.hxx:39
AxisDispUnitsModel()
Built-in unit on value axis.
Definition: axismodel.cxx:25
LayoutRef mxLayout
Label text formatting.
Definition: axismodel.hxx:37
OUString mnBuiltInUnit
Custom unit size on value axis.
Definition: axismodel.hxx:40
TextBodyRef mxTextProp
Label frame formatting.
Definition: axismodel.hxx:36
sal_Int32 mnTickLabelSkip
Position of tick mark labels relative to the axis.
Definition: axismodel.hxx:80
AxisDispUnitsRef mxDispUnits
Axis title.
Definition: axismodel.hxx:56
ModelRef< AxisDispUnitsModel > AxisDispUnitsRef
Definition: axismodel.hxx:51
NumberFormat maNumberFormat
Minor grid lines formatting.
Definition: axismodel.hxx:59
sal_Int32 mnAxisPos
Unique axis identifier.
Definition: axismodel.hxx:68
sal_Int32 mnTickMarkSkip
Number of tick mark labels to skip.
Definition: axismodel.hxx:81
std::optional< sal_Int32 > monBaseTimeUnit
Minimum axis value.
Definition: axismodel.hxx:66
ModelRef< TitleModel > TitleRef
Definition: axismodel.hxx:50
bool mbAuto
Type identifier of this axis.
Definition: axismodel.hxx:83
sal_Int32 mnLabelOffset
Tick mark label alignment.
Definition: axismodel.hxx:73
sal_Int32 mnAxisId
Base time unit shown on a date axis.
Definition: axismodel.hxx:67
TitleRef mxTitle
Axis label text formatting.
Definition: axismodel.hxx:55
std::optional< double > mofMax
Logarithmic base for logarithmic axes.
Definition: axismodel.hxx:64
sal_Int32 mnOrientation
Time unit for minor tick marks on date axis.
Definition: axismodel.hxx:78
sal_Int32 mnMinorTickMark
Time unit for major tick marks on date axis.
Definition: axismodel.hxx:76
std::optional< double > mofCrossesAt
Number format for axis tick labels.
Definition: axismodel.hxx:60
sal_Int32 mnMajorTickMark
Tick mark label distance from axis.
Definition: axismodel.hxx:74
sal_Int32 mnMajorTimeUnit
Major tick mark style.
Definition: axismodel.hxx:75
sal_Int32 mnCrossAxisId
Position of the axis (top/bottom/left/right).
Definition: axismodel.hxx:69
ShapeRef mxMajorGridLines
Axis units label.
Definition: axismodel.hxx:57
std::optional< double > mofLogBase
Unit for minor tick marks on date/value axis.
Definition: axismodel.hxx:63
ShapeRef mxMinorGridLines
Major grid lines formatting.
Definition: axismodel.hxx:58
sal_Int32 mnTypeId
Number of tick marks to skip.
Definition: axismodel.hxx:82
bool mbNoMultiLevel
True = axis has been deleted manually.
Definition: axismodel.hxx:85
sal_Int32 mnCrossMode
This value axis crosses between or inside category.
Definition: axismodel.hxx:71
sal_Int32 mnLabelAlign
Mode this axis crosses another axis (min, max, auto).
Definition: axismodel.hxx:72
std::optional< double > mofMajorUnit
Position on this axis where another axis crosses.
Definition: axismodel.hxx:61
std::optional< double > mofMinorUnit
Unit for major tick marks on date/value axis.
Definition: axismodel.hxx:62
sal_Int32 mnMinorTimeUnit
Minor tick mark style.
Definition: axismodel.hxx:77
bool mbDeleted
True = automatic selection of text/date axis type.
Definition: axismodel.hxx:84
ModelRef< TextBody > TextBodyRef
Definition: axismodel.hxx:49
sal_Int32 mnCrossBetween
Identifier of a crossing axis.
Definition: axismodel.hxx:70
AxisModel(sal_Int32 nTypeId, bool bMSO2007Doc)
True = no multi-level categories supported.
Definition: axismodel.cxx:34
std::optional< double > mofMin
Maximum axis value.
Definition: axismodel.hxx:65
TextBodyRef mxTextProp
Axis line formatting.
Definition: axismodel.hxx:54
sal_Int32 mnTickLabelPos
Axis orientation (value order min to max, or max to min).
Definition: axismodel.hxx:79