LibreOffice Module oox (master)  1
titlemodel.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_TITLEMODEL_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_TITLEMODEL_HXX
22 
23 #include <oox/drawingml/shape.hxx>
25 
26 namespace oox::drawingml::chart {
27 
28 struct TextModel
29 {
32 
33  DataSequenceRef mxDataSeq;
34  TextBodyRef mxTextBody;
35 
36  explicit TextModel();
37  ~TextModel();
38 };
39 
40 struct TitleModel
41 {
46 
47  ShapeRef mxShapeProp;
48  TextBodyRef mxTextProp;
49  LayoutRef mxLayout;
50  TextRef mxText;
51  bool mbOverlay;
52  sal_Int32 mnDefaultRotation;
53 
54  explicit TitleModel(sal_Int32 nDefaultRotation = 0);
55  ~TitleModel();
56 };
57 
59 {
60  sal_Int32 mnLegendEntryIdx;
62 
65 };
66 
68 {
73 
74  LegendEntryVector maLegendEntries;
75  ShapeRef mxShapeProp;
76  TextBodyRef mxTextProp;
77  LayoutRef mxLayout;
78  sal_Int32 mnPosition;
79  bool mbOverlay;
80 
81  explicit LegendModel();
82  ~LegendModel();
83 };
84 
85 } // namespace oox::drawingml::chart
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ModelVector< LegendEntryModel > LegendEntryVector
Definition: titlemodel.hxx:69
LayoutRef mxLayout
Legend text formatting.
Definition: titlemodel.hxx:77
TextRef mxText
Layout/position of the frame.
Definition: titlemodel.hxx:50
bool mbOverlay
Legend position.
Definition: titlemodel.hxx:79
TextBodyRef mxTextProp
Legend shape formatting.
Definition: titlemodel.hxx:76
TextBodyRef mxTextProp
Title shape formatting.
Definition: titlemodel.hxx:48
ModelRef< TextBody > TextBodyRef
Definition: titlemodel.hxx:31
ShapeRef mxShapeProp
Legend entries formatting.
Definition: titlemodel.hxx:75
ModelRef< LayoutModel > LayoutRef
Definition: titlemodel.hxx:72
LegendEntryModel()
True = legend label deleted.
Definition: titlemodel.cxx:43
sal_Int32 mnPosition
Layout/position of the legend.
Definition: titlemodel.hxx:78
TitleModel(sal_Int32 nDefaultRotation=0)
Definition: titlemodel.cxx:33
TextModel()
Rich-formatted literal text (for title objects only).
Definition: titlemodel.cxx:25
ModelRef< LayoutModel > LayoutRef
Definition: titlemodel.hxx:44
ModelRef< TextModel > TextRef
Definition: titlemodel.hxx:45
sal_Int32 mnDefaultRotation
True = title may overlay other objects.
Definition: titlemodel.hxx:52
ModelRef< TextBody > TextBodyRef
Definition: titlemodel.hxx:43
LayoutRef mxLayout
Title text formatting.
Definition: titlemodel.hxx:49
LegendModel()
True = legend may overlay other objects.
Definition: titlemodel.cxx:53
ModelRef< TextBody > TextBodyRef
Definition: titlemodel.hxx:71
ModelRef< DataSequenceModel > DataSequenceRef
Definition: titlemodel.hxx:30
TextBodyRef mxTextBody
The string data or formula link of this text.
Definition: titlemodel.hxx:34
bool mbOverlay
Text source of the title.
Definition: titlemodel.hxx:51
bool mbLabelDeleted
Legend entry index.
Definition: titlemodel.hxx:61