STOFFChart.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libstaroffice
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
/*
* Structure to store and construct a chart
*
*/
#ifndef STOFF_CHART
# define STOFF_CHART
#include <iostream>
#include <vector>
#include <map>
#include "libstaroffice_internal.hxx"
#include "STOFFEntry.hxx"
#include "STOFFFont.hxx"
#include "STOFFGraphicStyle.hxx"
namespace STOFFChartInternal
{
class SubDocument;
}
class STOFFChart
{
friend class STOFFChartInternal::SubDocument;
public:
struct Position {
explicit Position(STOFFVec2i pos=STOFFVec2i(-1,-1), librevenge::RVNGString const &sheetName="")
: m_pos(pos)
, m_sheetName(sheetName)
{
}
bool valid() const
{
return m_pos[0]>=0 && m_pos[1]>=0 && !m_sheetName.empty();
}
bool valid(Position const &maxPos) const
{
return valid() && maxPos.valid() && maxPos.m_pos[0]>=m_pos[0] && maxPos.m_pos[1]>=m_pos[1];
}
librevenge::RVNGString getCellName() const;
friend std::ostream &operator<<(std::ostream &o, Position const &pos);
bool operator==(Position &pos) const
{
return m_pos==pos.m_pos && m_sheetName==pos.m_sheetName;
}
bool operator!=(Position &pos) const
{
return !(operator==(pos));
}
STOFFVec2i m_pos;
librevenge::RVNGString m_sheetName;
};
struct Axis {
enum Type { A_None, A_Numeric, A_Logarithmic, A_Sequence, A_Sequence_Skip_Empty };
Axis();
~Axis();
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const;
void addStyleTo(librevenge::RVNGPropertyList &propList) const;
friend std::ostream &operator<<(std::ostream &o, Axis const &axis);
Type m_type;
bool m_automaticScaling;
STOFFVec2f m_scaling;
bool m_showGrid;
bool m_showLabel;
Position m_labelRanges[2];
bool m_showTitle;
Position m_titleRange;
librevenge::RVNGString m_title;
librevenge::RVNGString m_subTitle;
STOFFGraphicStyle m_style;
};
struct Legend {
Legend()
: m_show(false)
, m_autoPosition(true)
, m_relativePosition(libstoff::RightBit)
, m_position(0,0)
, m_font()
, m_style()
{
}
void addContentTo(librevenge::RVNGPropertyList &propList) const;
void addStyleTo(librevenge::RVNGPropertyList &propList) const;
friend std::ostream &operator<<(std::ostream &o, Legend const &legend);
bool m_show;
bool m_autoPosition;
int m_relativePosition;
STOFFVec2f m_position;
STOFFFont m_font;
STOFFGraphicStyle m_style;
};
struct Serie {
enum Type { S_Area, S_Bar, S_Bubble, S_Circle, S_Column, S_Gantt, S_Line, S_Radar, S_Ring, S_Scatter, S_Stock, S_Surface };
enum PointType {
P_None=0, P_Automatic, P_Square, P_Diamond, P_Arrow_Down,
P_Arrow_Up, P_Arrow_Right, P_Arrow_Left, P_Bow_Tie, P_Hourglass,
P_Circle, P_Star, P_X, P_Plus, P_Asterisk,
P_Horizontal_Bar, P_Vertical_Bar
};
Serie();
Serie(Serie const &)=default;
Serie(Serie &&)=default;
Serie &operator=(Serie const &)=default;
Serie &operator=(Serie &&)=default;
virtual ~Serie();
bool is1DStyle() const
{
return m_type==S_Line || m_type==S_Radar || (m_type==S_Scatter && m_pointType==P_None);
}
bool valid() const
{
return m_ranges[0].valid(m_ranges[0]);
}
void addContentTo(librevenge::RVNGPropertyList &propList) const;
void addStyleTo(librevenge::RVNGPropertyList &propList) const;
static std::string getSerieTypeName(Type type);
friend std::ostream &operator<<(std::ostream &o, Serie const &series);
Type m_type;
Position m_ranges[2];
bool m_useSecondaryY;
STOFFFont m_font;
Position m_labelRanges[2];
Position m_legendRange;
librevenge::RVNGString m_legendText;
STOFFGraphicStyle m_style;
PointType m_pointType;
};
struct TextZone {
enum Type { T_Title, T_SubTitle, T_Footer };
enum ContentType { C_Cell, C_Text };
explicit TextZone(Type type);
~TextZone();
bool valid() const
{
if (!m_show) return false;
if (m_contentType==C_Cell)
return m_cell.valid();
if (m_contentType!=C_Text)
return false;
for (auto &e : m_textEntryList) {
if (e.valid()) return true;
}
return false;
}
void addContentTo(librevenge::RVNGPropertyList &propList) const;
void addStyleTo(librevenge::RVNGPropertyList &propList) const;
friend std::ostream &operator<<(std::ostream &o, TextZone const &zone);
Type m_type;
ContentType m_contentType;
bool m_show;
STOFFVec2f m_position;
Position m_cell;
std::vector<STOFFEntry> m_textEntryList;
STOFFFont m_font;
STOFFGraphicStyle m_style;
};
STOFFChart(STOFFVec2f const &dim=STOFFVec2f());
virtual ~STOFFChart();
void sendChart(STOFFSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface);
virtual void sendContent(TextZone const &zone, STOFFListenerPtr &listener) const =0;
void setGridColor(STOFFColor const &color)
{
m_gridColor=color;
}
Axis &getAxis(int coord);
Axis const &getAxis(int coord) const;
Legend const &getLegend() const
{
return m_legend;
}
Legend &getLegend()
{
return m_legend;
}
Serie *getSerie(int id, bool create);
std::map<int, Serie> const &getIdSerieMap() const
{
return m_serieMap;
}
TextZone *getTextZone(TextZone::Type type, bool create=false);
protected:
void sendTextZoneContent(TextZone::Type type, STOFFListenerPtr &listener) const;
public:
STOFFVec2f m_dimension;
Serie::Type m_type;
bool m_dataStacked;
bool m_dataPercentStacked;
bool m_dataVertical;
bool m_is3D;
bool m_is3DDeep;
// main
STOFFGraphicStyle m_style;
librevenge::RVNGString m_name;
// plot area
STOFFBox2f m_plotAreaPosition;
STOFFGraphicStyle m_plotAreaStyle;
// legend
STOFFBox2f m_legendPosition;
STOFFGraphicStyle m_floorStyle;
STOFFGraphicStyle m_wallStyle;
protected:
STOFFColor m_gridColor;
Axis m_axis[5];
Legend m_legend;
std::map<int, Serie> m_serieMap;
std::map<TextZone::Type, TextZone> m_textZoneMap;
private:
explicit STOFFChart(STOFFChart const &orig) = delete;
STOFFChart &operator=(STOFFChart const &orig) = delete;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
STOFFEntry.hxx
STOFFFont.hxx
STOFFGraphicStyle.hxx
STOFFChartInternal::SubDocument
Internal: the subdocument of a STOFFChart.
Definition STOFFChart.cxx:62
STOFFChart::STOFFChart
STOFFChart(STOFFVec2f const &dim=STOFFVec2f())
the constructor
Definition STOFFChart.cxx:118
STOFFChart::m_is3DDeep
bool m_is3DDeep
a flag to know if real 3D or 2D-extended
Definition STOFFChart.hxx:328
STOFFChart::m_dataStacked
bool m_dataStacked
a flag to know if the data are stacked or not
Definition STOFFChart.hxx:320
STOFFChart::m_type
Serie::Type m_type
the chart type (if no series)
Definition STOFFChart.hxx:318
STOFFChart::m_gridColor
STOFFColor m_gridColor
the grid color
Definition STOFFChart.hxx:356
STOFFChart::m_textZoneMap
std::map< TextZone::Type, TextZone > m_textZoneMap
a map text zone type to text zone
Definition STOFFChart.hxx:364
STOFFChart::getLegend
Legend & getLegend()
returns the legend
Definition STOFFChart.hxx:295
STOFFChart::m_serieMap
std::map< int, Serie > m_serieMap
the list of series
Definition STOFFChart.hxx:362
STOFFChart::~STOFFChart
virtual ~STOFFChart()
the destructor
Definition STOFFChart.cxx:146
STOFFChart::m_plotAreaPosition
STOFFBox2f m_plotAreaPosition
the plot area dimension in percent
Definition STOFFChart.hxx:340
STOFFChart::operator=
STOFFChart & operator=(STOFFChart const &orig)=delete
STOFFChart::sendTextZoneContent
void sendTextZoneContent(TextZone::Type type, STOFFListenerPtr &listener) const
sends a textzone content
Definition STOFFChart.cxx:188
STOFFChart::m_floorStyle
STOFFGraphicStyle m_floorStyle
floor
Definition STOFFChart.hxx:350
STOFFChart::m_dataPercentStacked
bool m_dataPercentStacked
a flag to know if the data are percent stacked or not
Definition STOFFChart.hxx:322
STOFFChart::getIdSerieMap
std::map< int, Serie > const & getIdSerieMap() const
returns the list of defined series
Definition STOFFChart.hxx:303
STOFFChart::sendContent
virtual void sendContent(TextZone const &zone, STOFFListenerPtr &listener) const =0
send the zone content (called when the zone is of text type)
STOFFChart::m_name
librevenge::RVNGString m_name
the chart name
Definition STOFFChart.hxx:335
STOFFChart::m_dataVertical
bool m_dataVertical
a flag to know if the data are vertical (for bar)
Definition STOFFChart.hxx:324
STOFFChart::sendChart
void sendChart(STOFFSpreadsheetListenerPtr &listener, librevenge::RVNGSpreadsheetInterface *interface)
send the chart to the listener
Definition STOFFChart.cxx:197
STOFFChart::STOFFChart
STOFFChart(STOFFChart const &orig)=delete
STOFFChart::m_legend
Legend m_legend
the legend
Definition STOFFChart.hxx:360
STOFFChart::getLegend
Legend const & getLegend() const
returns the legend
Definition STOFFChart.hxx:290
STOFFChart::getAxis
Axis & getAxis(int coord)
return an axis (corresponding to a coord)
Definition STOFFChart.cxx:150
STOFFChart::m_plotAreaStyle
STOFFGraphicStyle m_plotAreaStyle
the ploat area style
Definition STOFFChart.hxx:342
STOFFChart::m_axis
Axis m_axis[5]
the x,y,y-second,z and a bad axis
Definition STOFFChart.hxx:358
STOFFChart::m_wallStyle
STOFFGraphicStyle m_wallStyle
wall
Definition STOFFChart.hxx:352
STOFFChart::m_dimension
STOFFVec2f m_dimension
the chart dimension in point
Definition STOFFChart.hxx:316
STOFFChart::setGridColor
void setGridColor(STOFFColor const &color)
set the grid color
Definition STOFFChart.hxx:280
STOFFChart::m_legendPosition
STOFFBox2f m_legendPosition
the legend dimension in percent
Definition STOFFChart.hxx:347
STOFFChart::getSerie
Serie * getSerie(int id, bool create)
return a serie
Definition STOFFChart.cxx:168
STOFFChart::getTextZone
TextZone * getTextZone(TextZone::Type type, bool create=false)
returns a textzone content
Definition STOFFChart.cxx:178
STOFFChart::m_is3D
bool m_is3D
a flag to know if the graphic is 3D
Definition STOFFChart.hxx:326
STOFFChart::m_style
STOFFGraphicStyle m_style
the chart style
Definition STOFFChart.hxx:333
STOFFFont
Class to store font.
Definition STOFFFont.hxx:44
STOFFGraphicStyle
Class to store a graphic style.
Definition STOFFGraphicStyle.hxx:45
libstaroffice_internal.hxx
STOFFSpreadsheetListenerPtr
std::shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition libstaroffice_internal.hxx:497
STOFFListenerPtr
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition libstaroffice_internal.hxx:491
STOFFVec2i
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition libstaroffice_internal.hxx:767
STOFFVec2f
STOFFVec2< float > STOFFVec2f
STOFFVec2 of float.
Definition libstaroffice_internal.hxx:771
STOFFBox2f
STOFFBox2< float > STOFFBox2f
STOFFBox2 of float.
Definition libstaroffice_internal.hxx:1135
STOFFChartInternal
Internal: the structures of a STOFFChart.
Definition STOFFChart.cxx:58
libstoff
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition libstaroffice_internal.cxx:51
STOFFChart::Axis
Definition STOFFChart.hxx:98
STOFFChart::Axis::m_type
Type m_type
the sequence type
Definition STOFFChart.hxx:112
STOFFChart::Axis::Axis
Axis()
constructor
Definition STOFFChart.cxx:379
STOFFChart::Axis::m_title
librevenge::RVNGString m_title
the title label
Definition STOFFChart.hxx:129
STOFFChart::Axis::addContentTo
void addContentTo(int coord, librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition STOFFChart.cxx:398
STOFFChart::Axis::m_labelRanges
Position m_labelRanges[2]
the label range if defined
Definition STOFFChart.hxx:122
STOFFChart::Axis::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition STOFFChart.cxx:453
STOFFChart::Axis::m_showTitle
bool m_showTitle
show or not the title/subtitle
Definition STOFFChart.hxx:125
STOFFChart::Axis::~Axis
~Axis()
destructor
Definition STOFFChart.cxx:394
STOFFChart::Axis::m_automaticScaling
bool m_automaticScaling
automatic scaling (or manual)
Definition STOFFChart.hxx:114
STOFFChart::Axis::Type
Type
the axis content
Definition STOFFChart.hxx:100
STOFFChart::Axis::A_None
@ A_None
Definition STOFFChart.hxx:100
STOFFChart::Axis::A_Numeric
@ A_Numeric
Definition STOFFChart.hxx:100
STOFFChart::Axis::A_Sequence_Skip_Empty
@ A_Sequence_Skip_Empty
Definition STOFFChart.hxx:100
STOFFChart::Axis::A_Sequence
@ A_Sequence
Definition STOFFChart.hxx:100
STOFFChart::Axis::A_Logarithmic
@ A_Logarithmic
Definition STOFFChart.hxx:100
STOFFChart::Axis::m_showGrid
bool m_showGrid
show or not the grid
Definition STOFFChart.hxx:118
STOFFChart::Axis::m_scaling
STOFFVec2f m_scaling
the minimum, maximum scaling(if manual)
Definition STOFFChart.hxx:116
STOFFChart::Axis::m_subTitle
librevenge::RVNGString m_subTitle
the subtitle label
Definition STOFFChart.hxx:131
STOFFChart::Axis::m_titleRange
Position m_titleRange
the title cell range
Definition STOFFChart.hxx:127
STOFFChart::Axis::operator<<
friend std::ostream & operator<<(std::ostream &o, Axis const &axis)
operator<<
Definition STOFFChart.cxx:467
STOFFChart::Axis::m_style
STOFFGraphicStyle m_style
the graphic style
Definition STOFFChart.hxx:133
STOFFChart::Axis::m_showLabel
bool m_showLabel
show or not the label
Definition STOFFChart.hxx:120
STOFFChart::Legend
a legend in a chart
Definition STOFFChart.hxx:136
STOFFChart::Legend::m_relativePosition
int m_relativePosition
the automatic position libstoff::LeftBit|...
Definition STOFFChart.hxx:158
STOFFChart::Legend::Legend
Legend()
constructor
Definition STOFFChart.hxx:138
STOFFChart::Legend::m_show
bool m_show
show or not the legend
Definition STOFFChart.hxx:154
STOFFChart::Legend::m_style
STOFFGraphicStyle m_style
the graphic style
Definition STOFFChart.hxx:164
STOFFChart::Legend::operator<<
friend std::ostream & operator<<(std::ostream &o, Legend const &legend)
operator<<
Definition STOFFChart.cxx:539
STOFFChart::Legend::m_position
STOFFVec2f m_position
the position in points
Definition STOFFChart.hxx:160
STOFFChart::Legend::m_font
STOFFFont m_font
the font
Definition STOFFChart.hxx:162
STOFFChart::Legend::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition STOFFChart.cxx:510
STOFFChart::Legend::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition STOFFChart.cxx:532
STOFFChart::Legend::m_autoPosition
bool m_autoPosition
automatic position
Definition STOFFChart.hxx:156
STOFFChart::Position
a cell position
Definition STOFFChart.hxx:62
STOFFChart::Position::operator!=
bool operator!=(Position &pos) const
operator!=
Definition STOFFChart.hxx:89
STOFFChart::Position::m_pos
STOFFVec2i m_pos
the cell column and row
Definition STOFFChart.hxx:94
STOFFChart::Position::operator<<
friend std::ostream & operator<<(std::ostream &o, Position const &pos)
operator<<
Definition STOFFChart.cxx:367
STOFFChart::Position::Position
Position(STOFFVec2i pos=STOFFVec2i(-1,-1), librevenge::RVNGString const &sheetName="")
constructor
Definition STOFFChart.hxx:64
STOFFChart::Position::valid
bool valid() const
return true if the position is valid
Definition STOFFChart.hxx:70
STOFFChart::Position::valid
bool valid(Position const &maxPos) const
return true if the position is valid
Definition STOFFChart.hxx:75
STOFFChart::Position::getCellName
librevenge::RVNGString getCellName() const
return the cell name
Definition STOFFChart.cxx:354
STOFFChart::Position::operator==
bool operator==(Position &pos) const
operator==
Definition STOFFChart.hxx:84
STOFFChart::Position::m_sheetName
librevenge::RVNGString m_sheetName
the cell sheet name
Definition STOFFChart.hxx:96
STOFFChart::Serie
a serie in a chart
Definition STOFFChart.hxx:167
STOFFChart::Serie::PointType
PointType
the point type
Definition STOFFChart.hxx:171
STOFFChart::Serie::P_Hourglass
@ P_Hourglass
Definition STOFFChart.hxx:173
STOFFChart::Serie::P_Arrow_Down
@ P_Arrow_Down
Definition STOFFChart.hxx:172
STOFFChart::Serie::P_Star
@ P_Star
Definition STOFFChart.hxx:174
STOFFChart::Serie::P_Arrow_Up
@ P_Arrow_Up
Definition STOFFChart.hxx:173
STOFFChart::Serie::P_None
@ P_None
Definition STOFFChart.hxx:172
STOFFChart::Serie::P_Arrow_Left
@ P_Arrow_Left
Definition STOFFChart.hxx:173
STOFFChart::Serie::P_Circle
@ P_Circle
Definition STOFFChart.hxx:174
STOFFChart::Serie::P_Asterisk
@ P_Asterisk
Definition STOFFChart.hxx:174
STOFFChart::Serie::P_Horizontal_Bar
@ P_Horizontal_Bar
Definition STOFFChart.hxx:175
STOFFChart::Serie::P_Plus
@ P_Plus
Definition STOFFChart.hxx:174
STOFFChart::Serie::P_Diamond
@ P_Diamond
Definition STOFFChart.hxx:172
STOFFChart::Serie::P_Automatic
@ P_Automatic
Definition STOFFChart.hxx:172
STOFFChart::Serie::P_Square
@ P_Square
Definition STOFFChart.hxx:172
STOFFChart::Serie::P_Arrow_Right
@ P_Arrow_Right
Definition STOFFChart.hxx:173
STOFFChart::Serie::P_Bow_Tie
@ P_Bow_Tie
Definition STOFFChart.hxx:173
STOFFChart::Serie::P_Vertical_Bar
@ P_Vertical_Bar
Definition STOFFChart.hxx:175
STOFFChart::Serie::P_X
@ P_X
Definition STOFFChart.hxx:174
STOFFChart::Serie::m_legendRange
Position m_legendRange
the legend range if defined
Definition STOFFChart.hxx:214
STOFFChart::Serie::m_labelRanges
Position m_labelRanges[2]
the label ranges if defined(unused)
Definition STOFFChart.hxx:212
STOFFChart::Serie::operator=
Serie & operator=(Serie const &)=default
STOFFChart::Serie::m_style
STOFFGraphicStyle m_style
the graphic style
Definition STOFFChart.hxx:218
STOFFChart::Serie::m_type
Type m_type
the type
Definition STOFFChart.hxx:204
STOFFChart::Serie::m_legendText
librevenge::RVNGString m_legendText
the legend name if defined
Definition STOFFChart.hxx:216
STOFFChart::Serie::Serie
Serie(Serie &&)=default
STOFFChart::Serie::m_pointType
PointType m_pointType
the point type
Definition STOFFChart.hxx:220
STOFFChart::Serie::m_useSecondaryY
bool m_useSecondaryY
use or not the secondary y axis
Definition STOFFChart.hxx:208
STOFFChart::Serie::is1DStyle
bool is1DStyle() const
return true if the serie style is 1D
Definition STOFFChart.hxx:186
STOFFChart::Serie::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add style to the propList
Definition STOFFChart.cxx:667
STOFFChart::Serie::Type
Type
the series type
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Bar
@ S_Bar
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Circle
@ S_Circle
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Line
@ S_Line
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Ring
@ S_Ring
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Area
@ S_Area
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Bubble
@ S_Bubble
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Radar
@ S_Radar
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Surface
@ S_Surface
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Column
@ S_Column
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Scatter
@ S_Scatter
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Stock
@ S_Stock
Definition STOFFChart.hxx:169
STOFFChart::Serie::S_Gantt
@ S_Gantt
Definition STOFFChart.hxx:169
STOFFChart::Serie::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition STOFFChart.cxx:618
STOFFChart::Serie::Serie
Serie(Serie const &)=default
STOFFChart::Serie::operator<<
friend std::ostream & operator<<(std::ostream &o, Serie const &series)
operator<<
Definition STOFFChart.cxx:688
STOFFChart::Serie::operator=
Serie & operator=(Serie &&)=default
STOFFChart::Serie::m_font
STOFFFont m_font
the label font
Definition STOFFChart.hxx:210
STOFFChart::Serie::m_ranges
Position m_ranges[2]
the data range
Definition STOFFChart.hxx:206
STOFFChart::Serie::valid
bool valid() const
return true if the serie is valid
Definition STOFFChart.hxx:191
STOFFChart::Serie::~Serie
virtual ~Serie()
destructor
Definition STOFFChart.cxx:579
STOFFChart::Serie::getSerieTypeName
static std::string getSerieTypeName(Type type)
returns a string corresponding to a series type
Definition STOFFChart.cxx:583
STOFFChart::Serie::Serie
Serie()
constructor
Definition STOFFChart.cxx:568
STOFFChart::TextZone
a text zone a chart
Definition STOFFChart.hxx:223
STOFFChart::TextZone::m_cell
Position m_cell
the cell position ( or title and subtitle)
Definition STOFFChart.hxx:261
STOFFChart::TextZone::operator<<
friend std::ostream & operator<<(std::ostream &o, TextZone const &zone)
operator<<
Definition STOFFChart.cxx:821
STOFFChart::TextZone::TextZone
TextZone(Type type)
constructor
Definition STOFFChart.cxx:761
STOFFChart::TextZone::ContentType
ContentType
the text content type
Definition STOFFChart.hxx:227
STOFFChart::TextZone::C_Cell
@ C_Cell
Definition STOFFChart.hxx:227
STOFFChart::TextZone::C_Text
@ C_Text
Definition STOFFChart.hxx:227
STOFFChart::TextZone::addStyleTo
void addStyleTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition STOFFChart.cxx:815
STOFFChart::TextZone::m_show
bool m_show
true if the zone is visible
Definition STOFFChart.hxx:257
STOFFChart::TextZone::m_contentType
ContentType m_contentType
the content type
Definition STOFFChart.hxx:255
STOFFChart::TextZone::valid
bool valid() const
returns true if the textbox is valid
Definition STOFFChart.hxx:234
STOFFChart::TextZone::m_position
STOFFVec2f m_position
the position in the zone
Definition STOFFChart.hxx:259
STOFFChart::TextZone::m_font
STOFFFont m_font
the zone format
Definition STOFFChart.hxx:265
STOFFChart::TextZone::~TextZone
~TextZone()
destructor
Definition STOFFChart.cxx:774
STOFFChart::TextZone::m_style
STOFFGraphicStyle m_style
the graphic style
Definition STOFFChart.hxx:267
STOFFChart::TextZone::m_type
Type m_type
the zone type
Definition STOFFChart.hxx:253
STOFFChart::TextZone::Type
Type
the text type
Definition STOFFChart.hxx:225
STOFFChart::TextZone::T_SubTitle
@ T_SubTitle
Definition STOFFChart.hxx:225
STOFFChart::TextZone::T_Footer
@ T_Footer
Definition STOFFChart.hxx:225
STOFFChart::TextZone::T_Title
@ T_Title
Definition STOFFChart.hxx:225
STOFFChart::TextZone::m_textEntryList
std::vector< STOFFEntry > m_textEntryList
the text entry (or the list of text entry)
Definition STOFFChart.hxx:263
STOFFChart::TextZone::addContentTo
void addContentTo(librevenge::RVNGPropertyList &propList) const
add content to the propList
Definition STOFFChart.cxx:778
STOFFColor
the class to store a color
Definition libstaroffice_internal.hxx:189