RagTime5StyleManager.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 -*- */
/* libmwaw
* 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.
*/
#ifndef RAG_TIME_5_STYLE_MANAGER
# define RAG_TIME_5_STYLE_MANAGER
#include <map>
#include <ostream>
#include <sstream>
#include <set>
#include <string>
#include <vector>
#include "libmwaw_internal.hxx"
#include "MWAWDebug.hxx"
#include "MWAWEntry.hxx"
#include "MWAWGraphicStyle.hxx"
#include "RagTime5ClusterManager.hxx"
#include "RagTime5StructManager.hxx"
class MWAWCell;
namespace RagTime5StyleManagerInternal
{
struct State;
}
class RagTime5Document;
class RagTime5StyleManager
{
friend class RagTime5Document;
public:
explicit RagTime5StyleManager(RagTime5Document &doc);
~RagTime5StyleManager();
struct GraphicStyle;
struct TextStyle;
bool readGraphicColors(RagTime5ClusterManager::Cluster &cluster);
bool readGraphicStyles(RagTime5ClusterManager::Cluster &cluster);
bool readTextStyles(RagTime5ClusterManager::Cluster &cluster);
bool readFormats(RagTime5ClusterManager::Cluster &cluster);
bool updateSurfaceStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const;
bool updateFrameStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const;
bool updateBorderStyle(int graphicId, MWAWGraphicStyle &borderStyle, bool isLine) const;
bool getLineColor(int graphicId, MWAWColor &color) const;
bool updateTextStyles(int textId, MWAWFont &font, MWAWParagraph &para, MWAWSection &section, double totalWidth=0) const;
bool getCellBorder(int graphicId, MWAWBorder &border) const;
bool getCellBackgroundColor(int graphicId, MWAWColor &color) const;
bool updateCellFormat(int formatId, MWAWCell &cell) const;
protected:
void updateTextStyles(size_t id, RagTime5StyleManager::TextStyle const &style,
std::vector<RagTime5StyleManager::TextStyle> const &listReadStyles,
std::multimap<size_t, size_t> const &idToChildIpMap,
std::set<size_t> &seens);
void updateGraphicStyles(size_t id, RagTime5StyleManager::GraphicStyle const &style,
std::vector<RagTime5StyleManager::GraphicStyle> const &listReadStyles,
std::multimap<size_t, size_t> const &idToChildIpMap,
std::set<size_t> &seens);
public:
struct GraphicStyle {
GraphicStyle()
: m_parentId(-1000)
, m_width(-1)
, m_dash()
, m_pattern()
, m_gradient(-1)
, m_gradientRotation(-1000)
, m_gradientCenter(MWAWVec2f(0.5f,0.5f))
, m_position(-1)
, m_cap(1)
, m_mitter(-1)
, m_limitPercent(-1)
, m_hidden(false)
, m_extra("")
{
m_colors[0]=MWAWVariable<MWAWColor>(MWAWColor::black());
m_colors[1]=MWAWVariable<MWAWColor>(MWAWColor::white());
for (auto &alpha : m_colorsAlpha) alpha=-1;
}
virtual ~GraphicStyle();
bool isDefault() const
{
return m_parentId<=-1000 && m_width<0 && !m_dash.isSet() && !m_pattern &&
m_gradient<0 && m_gradientRotation<=-1000 && !m_gradientCenter.isSet() &&
m_position<0 && m_cap<0 && m_mitter<0 &&
!m_colors[0].isSet() && !m_colors[1].isSet() && m_colorsAlpha[0]<0 && m_colorsAlpha[1]<0 &&
m_limitPercent<0 && !m_hidden.isSet() && m_extra.empty();
}
bool updateColor(bool first, int colorId, std::vector<MWAWColor> const &colorList);
friend std::ostream &operator<<(std::ostream &o, GraphicStyle const &style);
void insert(GraphicStyle const &childStyle);
bool read(MWAWInputStreamPtr &input, RagTime5StructManager::Field const &field, std::vector<MWAWColor> const &colorList);
int m_parentId;
float m_width;
MWAWVariable<MWAWColor> m_colors[2];
float m_colorsAlpha[2];
MWAWVariable<std::vector<long> > m_dash;
std::shared_ptr<MWAWGraphicStyle::Pattern> m_pattern;
int m_gradient;
float m_gradientRotation;
MWAWVariable<MWAWVec2f> m_gradientCenter;
int m_position;
int m_cap;
int m_mitter;
float m_limitPercent;
MWAWVariable<bool> m_hidden;
std::string m_extra;
GraphicStyle(GraphicStyle const &)=default; // removeme
GraphicStyle(GraphicStyle &&)=default;
GraphicStyle &operator=(GraphicStyle const &)=default; // removeme
GraphicStyle &operator=(GraphicStyle &&)=default;
};
struct TextStyle {
TextStyle()
: m_linkIdList()
, m_dateStyleId(-1)
, m_graphStyleId(-1)
, m_graphLineStyleId(-1)
, m_keepWithNext(false)
, m_justify(-1)
, m_breakMethod(-1)
, m_tabList()
, m_fontName("")
, m_fontId(-1)
, m_fontSize(-1)
, m_scriptPosition(0)
, m_fontScaling(-1)
, m_underline(-1)
, m_caps(-1)
, m_language(-1)
, m_widthStreching(-1)
, m_numColumns(-1)
, m_columnGap(-1)
, m_extra("")
{
for (auto &parentId : m_parentId) parentId=-1;
for (auto &fontFlag : m_fontFlags) fontFlag=0;
for (auto &margin : m_margins) margin=-1;
for (auto &spacing : m_spacings) spacing=-1;
for (auto &spacingUnit : m_spacingUnits) spacingUnit=-1;
for (auto &letterSpacing : m_letterSpacings) letterSpacing=0;
}
virtual ~TextStyle();
bool isDefault() const
{
if (m_parentId[0]>=0 || m_parentId[1]>=0 || !m_linkIdList.empty() ||
m_dateStyleId>=0 || m_graphStyleId>=0 || m_graphLineStyleId>=0 ||
m_keepWithNext.isSet() || m_justify>=0 || m_breakMethod>=0 || !m_tabList.empty() ||
!m_fontName.empty() || m_fontId>=0 || m_fontSize>=0 || m_fontFlags[0] || m_fontFlags[1] || m_scriptPosition.isSet() ||
m_fontScaling>=0 || m_underline>=0 || m_caps>=0 || m_language>=0 || m_widthStreching>=0 ||
m_numColumns>=0 || m_columnGap>=0 || !m_extra.empty())
return false;
for (int i=0; i<3; ++i) {
if (m_margins[i]>=0 || m_spacings[i]>=0 || m_spacingUnits[i]>=0)
return false;
}
for (auto spacing : m_letterSpacings) {
if (spacing>0 || spacing<0)
return false;
}
return true;
}
static std::string getLanguageLocale(int id);
friend std::ostream &operator<<(std::ostream &o, TextStyle const &style);
void insert(TextStyle const &childStyle);
bool read(RagTime5StructManager::Field const &field);
int m_parentId[2];
std::vector<int> m_linkIdList;
int m_dateStyleId;
int m_graphStyleId;
int m_graphLineStyleId;
// paragraph
MWAWVariable<bool> m_keepWithNext;
int m_justify;
double m_spacings[3];
int m_spacingUnits[3];
int m_breakMethod;
double m_margins[3];
std::vector<RagTime5StructManager::TabStop> m_tabList;
// character
librevenge::RVNGString m_fontName;
int m_fontId;
float m_fontSize;
uint32_t m_fontFlags[2];
MWAWVariable<float> m_scriptPosition;
float m_fontScaling;
int m_underline;
int m_caps;
int m_language;
double m_letterSpacings[4];
double m_widthStreching;
// column
int m_numColumns;
double m_columnGap;
std::string m_extra;
TextStyle(TextStyle const &)=default; // removeme
TextStyle(TextStyle &&)=default;
TextStyle &operator=(TextStyle const &)=default; // removeme
TextStyle &operator=(TextStyle &&)=default;
};
public:
static std::string printType(unsigned long fileType)
{
return RagTime5StructManager::printType(fileType);
}
protected:
//
// data
//
RagTime5Document &m_document;
MWAWParserStatePtr m_parserState;
std::shared_ptr<RagTime5StyleManagerInternal::State> m_state;
private:
RagTime5StyleManager(RagTime5StyleManager const &orig) = delete;
RagTime5StyleManager operator=(RagTime5StyleManager const &orig) = delete;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWDebug.hxx
MWAWEntry.hxx
MWAWGraphicStyle.hxx
RagTime5ClusterManager.hxx
RagTime5StructManager.hxx
MWAWCell
a structure used to define a cell and its format
Definition MWAWCell.hxx:53
MWAWFont
Class to store font.
Definition MWAWFont.hxx:44
MWAWGraphicStyle
a structure used to define a picture style
Definition MWAWGraphicStyle.hxx:48
MWAWParagraph
class to store the paragraph properties
Definition MWAWParagraph.hxx:85
MWAWSection
a class which stores section properties
Definition MWAWSection.hxx:46
RagTime5Document
the main class to read a RagTime v5 file
Definition RagTime5Document.hxx:77
RagTime5StructManager::printType
static std::string printType(unsigned long fileType)
debug: print a file type
Definition RagTime5StructManager.cxx:94
RagTime5StyleManager::updateSurfaceStyle
bool updateSurfaceStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const
updates a graphic style
Definition RagTime5StyleManager.cxx:599
RagTime5StyleManager::m_state
std::shared_ptr< RagTime5StyleManagerInternal::State > m_state
the state
Definition RagTime5StyleManager.hxx:340
RagTime5StyleManager::updateCellFormat
bool updateCellFormat(int formatId, MWAWCell &cell) const
updates the cell format
Definition RagTime5StyleManager.cxx:1245
RagTime5StyleManager::RagTime5StyleManager
RagTime5StyleManager(RagTime5StyleManager const &orig)=delete
RagTime5StyleManager::readFormats
bool readFormats(RagTime5ClusterManager::Cluster &cluster)
try to read the list of format
Definition RagTime5StyleManager.cxx:919
RagTime5StyleManager::readGraphicStyles
bool readGraphicStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main graphic styles
Definition RagTime5StyleManager.cxx:329
RagTime5StyleManager::updateGraphicStyles
void updateGraphicStyles(size_t id, RagTime5StyleManager::GraphicStyle const &style, std::vector< RagTime5StyleManager::GraphicStyle > const &listReadStyles, std::multimap< size_t, size_t > const &idToChildIpMap, std::set< size_t > &seens)
recursive function use to update the style list
Definition RagTime5StyleManager.cxx:434
RagTime5StyleManager::updateBorderStyle
bool updateBorderStyle(int graphicId, MWAWGraphicStyle &borderStyle, bool isLine) const
updates a graphic style(border)
Definition RagTime5StyleManager.cxx:543
RagTime5StyleManager::getCellBorder
bool getCellBorder(int graphicId, MWAWBorder &border) const
returns a cell border
Definition RagTime5StyleManager.cxx:471
RagTime5StyleManager::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition RagTime5StyleManager.hxx:337
RagTime5StyleManager::printType
static std::string printType(unsigned long fileType)
debug: print a file type
Definition RagTime5StyleManager.hxx:324
RagTime5StyleManager::operator=
RagTime5StyleManager operator=(RagTime5StyleManager const &orig)=delete
RagTime5StyleManager::readTextStyles
bool readTextStyles(RagTime5ClusterManager::Cluster &cluster)
try to read a main text styles
Definition RagTime5StyleManager.cxx:636
RagTime5StyleManager::updateFrameStyle
bool updateFrameStyle(int graphicId, MWAWGraphicStyle &surfaceStyle) const
updates a graphic style (used for textbox)
Definition RagTime5StyleManager.cxx:579
RagTime5StyleManager::readGraphicColors
bool readGraphicColors(RagTime5ClusterManager::Cluster &cluster)
try to read a graphic color zone
Definition RagTime5StyleManager.cxx:320
RagTime5StyleManager::RagTime5StyleManager
RagTime5StyleManager(RagTime5Document &doc)
constructor
Definition RagTime5StyleManager.cxx:306
RagTime5StyleManager::getLineColor
bool getLineColor(int graphicId, MWAWColor &color) const
returns the line color corresponding to a graphic style
Definition RagTime5StyleManager.cxx:457
RagTime5StyleManager::m_document
RagTime5Document & m_document
the parser
Definition RagTime5StyleManager.hxx:335
RagTime5StyleManager::RagTime5Document
friend class RagTime5Document
Definition RagTime5StyleManager.hxx:64
RagTime5StyleManager::updateTextStyles
bool updateTextStyles(int textId, MWAWFont &font, MWAWParagraph &para, MWAWSection &section, double totalWidth=0) const
update the font and the paragraph properties using a text style
Definition RagTime5StyleManager.cxx:775
RagTime5StyleManager::getCellBackgroundColor
bool getCellBackgroundColor(int graphicId, MWAWColor &color) const
returns the cell background
Definition RagTime5StyleManager.cxx:517
RagTime5StyleManager::~RagTime5StyleManager
~RagTime5StyleManager()
destructor
Definition RagTime5StyleManager.cxx:313
libmwaw_internal.hxx
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition libmwaw_internal.hxx:557
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition libmwaw_internal.hxx:842
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition libmwaw_internal.hxx:551
RagTime5StyleManagerInternal
Internal: the structures of a RagTime5Style.
Definition RagTime5StyleManager.cxx:53
MWAWBorder
a border
Definition libmwaw_internal.hxx:333
MWAWColor
the class to store a color
Definition libmwaw_internal.hxx:192
MWAWColor::black
static MWAWColor black()
return the back color
Definition libmwaw_internal.hxx:245
MWAWColor::white
static MWAWColor white()
return the white color
Definition libmwaw_internal.hxx:250
MWAWVariable
a generic variable template: value + flag to know if the variable is set
Definition libmwaw_internal.hxx:577
RagTime5ClusterManager::Cluster
the cluster data
Definition RagTime5ClusterManager.hxx:261
RagTime5StructManager::Field
a field of RagTime 5/6 structures
Definition RagTime5StructManager.hxx:242
RagTime5StyleManagerInternal::State
Internal: the state of a RagTime5Style.
Definition RagTime5StyleManager.cxx:268
RagTime5StyleManager::GraphicStyle
the graphic style of a RagTime v5-v6 document
Definition RagTime5StyleManager.hxx:114
RagTime5StyleManager::GraphicStyle::m_position
int m_position
the line position inside=1/normal/outside/round
Definition RagTime5StyleManager.hxx:173
RagTime5StyleManager::GraphicStyle::m_colors
MWAWVariable< MWAWColor > m_colors[2]
the first and second color
Definition RagTime5StyleManager.hxx:159
RagTime5StyleManager::GraphicStyle::~GraphicStyle
virtual ~GraphicStyle()
destructor
Definition RagTime5StyleManager.cxx:1269
RagTime5StyleManager::GraphicStyle::m_parentId
int m_parentId
the parent id
Definition RagTime5StyleManager.hxx:155
RagTime5StyleManager::GraphicStyle::operator=
GraphicStyle & operator=(GraphicStyle &&)=default
RagTime5StyleManager::GraphicStyle::m_width
float m_width
the line width (in point)
Definition RagTime5StyleManager.hxx:157
RagTime5StyleManager::GraphicStyle::m_limitPercent
float m_limitPercent
the line limit
Definition RagTime5StyleManager.hxx:179
RagTime5StyleManager::GraphicStyle::m_extra
std::string m_extra
extra data
Definition RagTime5StyleManager.hxx:183
RagTime5StyleManager::GraphicStyle::m_pattern
std::shared_ptr< MWAWGraphicStyle::Pattern > m_pattern
the line pattern
Definition RagTime5StyleManager.hxx:165
RagTime5StyleManager::GraphicStyle::GraphicStyle
GraphicStyle()
constructor
Definition RagTime5StyleManager.hxx:116
RagTime5StyleManager::GraphicStyle::m_colorsAlpha
float m_colorsAlpha[2]
alpha of the first and second color
Definition RagTime5StyleManager.hxx:161
RagTime5StyleManager::GraphicStyle::updateColor
bool updateColor(bool first, int colorId, std::vector< MWAWColor > const &colorList)
update the first/second color using the color list
Definition RagTime5StyleManager.cxx:1552
RagTime5StyleManager::GraphicStyle::m_mitter
int m_mitter
the line mitter ( triangle=1, round, out)
Definition RagTime5StyleManager.hxx:177
RagTime5StyleManager::GraphicStyle::m_hidden
MWAWVariable< bool > m_hidden
flag to know if we need to print the shape
Definition RagTime5StyleManager.hxx:181
RagTime5StyleManager::GraphicStyle::operator=
GraphicStyle & operator=(GraphicStyle const &)=default
RagTime5StyleManager::GraphicStyle::m_dash
MWAWVariable< std::vector< long > > m_dash
the line dash/...
Definition RagTime5StyleManager.hxx:163
RagTime5StyleManager::GraphicStyle::GraphicStyle
GraphicStyle(GraphicStyle const &)=default
RagTime5StyleManager::GraphicStyle::GraphicStyle
GraphicStyle(GraphicStyle &&)=default
RagTime5StyleManager::GraphicStyle::isDefault
bool isDefault() const
returns true if the line style is default
Definition RagTime5StyleManager.hxx:138
RagTime5StyleManager::GraphicStyle::operator<<
friend std::ostream & operator<<(std::ostream &o, GraphicStyle const &style)
operator<<
Definition RagTime5StyleManager.cxx:1590
RagTime5StyleManager::GraphicStyle::read
bool read(MWAWInputStreamPtr &input, RagTime5StructManager::Field const &field, std::vector< MWAWColor > const &colorList)
try to read a graphic style
Definition RagTime5StyleManager.cxx:1273
RagTime5StyleManager::GraphicStyle::m_gradient
int m_gradient
the gradient 0: none, normal, radial
Definition RagTime5StyleManager.hxx:167
RagTime5StyleManager::GraphicStyle::insert
void insert(GraphicStyle const &childStyle)
update the current style
Definition RagTime5StyleManager.cxx:1564
RagTime5StyleManager::GraphicStyle::m_gradientCenter
MWAWVariable< MWAWVec2f > m_gradientCenter
the rotation center(checkme)
Definition RagTime5StyleManager.hxx:171
RagTime5StyleManager::GraphicStyle::m_cap
int m_cap
the line caps ( normal=1, round, square)
Definition RagTime5StyleManager.hxx:175
RagTime5StyleManager::GraphicStyle::m_gradientRotation
float m_gradientRotation
the gradient rotation(checkme)
Definition RagTime5StyleManager.hxx:169
RagTime5StyleManager::TextStyle
the text style of a RagTime v5-v6 document
Definition RagTime5StyleManager.hxx:191
RagTime5StyleManager::TextStyle::m_fontId
int m_fontId
the font id
Definition RagTime5StyleManager.hxx:286
RagTime5StyleManager::TextStyle::TextStyle
TextStyle(TextStyle const &)=default
RagTime5StyleManager::TextStyle::m_graphLineStyleId
int m_graphLineStyleId
the graphic line style id
Definition RagTime5StyleManager.hxx:262
RagTime5StyleManager::TextStyle::m_caps
int m_caps
caps : none, all caps, lower caps, inital caps + other lowers
Definition RagTime5StyleManager.hxx:298
RagTime5StyleManager::TextStyle::operator<<
friend std::ostream & operator<<(std::ostream &o, TextStyle const &style)
operator<<
Definition RagTime5StyleManager.cxx:2313
RagTime5StyleManager::TextStyle::insert
void insert(TextStyle const &childStyle)
update the current style
Definition RagTime5StyleManager.cxx:2269
RagTime5StyleManager::TextStyle::~TextStyle
virtual ~TextStyle()
destructor
Definition RagTime5StyleManager.cxx:1691
RagTime5StyleManager::TextStyle::m_letterSpacings
double m_letterSpacings[4]
the spacings in percent ( normal, minimum, maximum)
Definition RagTime5StyleManager.hxx:302
RagTime5StyleManager::TextStyle::m_language
int m_language
the language
Definition RagTime5StyleManager.hxx:300
RagTime5StyleManager::TextStyle::m_scriptPosition
MWAWVariable< float > m_scriptPosition
the font script position ( in percent)
Definition RagTime5StyleManager.hxx:292
RagTime5StyleManager::TextStyle::m_underline
int m_underline
underline : none, single, double
Definition RagTime5StyleManager.hxx:296
RagTime5StyleManager::TextStyle::m_fontSize
float m_fontSize
the font size
Definition RagTime5StyleManager.hxx:288
RagTime5StyleManager::TextStyle::m_justify
int m_justify
justify 0: left, 1:center, 2:right, 3:full, 4:full all
Definition RagTime5StyleManager.hxx:269
RagTime5StyleManager::TextStyle::m_breakMethod
int m_breakMethod
the break method 0: asIs, next container, next page, next even page, next odd page
Definition RagTime5StyleManager.hxx:275
RagTime5StyleManager::TextStyle::isDefault
bool isDefault() const
returns true if the line style is default
Definition RagTime5StyleManager.hxx:225
RagTime5StyleManager::TextStyle::m_columnGap
double m_columnGap
the gap between columns
Definition RagTime5StyleManager.hxx:311
RagTime5StyleManager::TextStyle::m_tabList
std::vector< RagTime5StructManager::TabStop > m_tabList
the tabulations
Definition RagTime5StyleManager.hxx:279
RagTime5StyleManager::TextStyle::TextStyle
TextStyle()
constructor
Definition RagTime5StyleManager.hxx:193
RagTime5StyleManager::TextStyle::m_parentId
int m_parentId[2]
the parent id ( main and style ?)
Definition RagTime5StyleManager.hxx:254
RagTime5StyleManager::TextStyle::m_widthStreching
double m_widthStreching
the width streching
Definition RagTime5StyleManager.hxx:304
RagTime5StyleManager::TextStyle::operator=
TextStyle & operator=(TextStyle const &)=default
RagTime5StyleManager::TextStyle::TextStyle
TextStyle(TextStyle &&)=default
RagTime5StyleManager::TextStyle::getLanguageLocale
static std::string getLanguageLocale(int id)
returns the language locale name corresponding to an id ( if known)
Definition RagTime5StyleManager.cxx:1695
RagTime5StyleManager::TextStyle::m_fontScaling
float m_fontScaling
the font script position ( in percent)
Definition RagTime5StyleManager.hxx:294
RagTime5StyleManager::TextStyle::m_graphStyleId
int m_graphStyleId
the graphic style id
Definition RagTime5StyleManager.hxx:260
RagTime5StyleManager::TextStyle::m_extra
std::string m_extra
extra data
Definition RagTime5StyleManager.hxx:314
RagTime5StyleManager::TextStyle::m_numColumns
int m_numColumns
the number of columns
Definition RagTime5StyleManager.hxx:309
RagTime5StyleManager::TextStyle::m_fontFlags
uint32_t m_fontFlags[2]
the font flags (add and remove )
Definition RagTime5StyleManager.hxx:290
RagTime5StyleManager::TextStyle::m_fontName
librevenge::RVNGString m_fontName
the font name
Definition RagTime5StyleManager.hxx:284
RagTime5StyleManager::TextStyle::m_dateStyleId
int m_dateStyleId
the date style id
Definition RagTime5StyleManager.hxx:258
RagTime5StyleManager::TextStyle::m_spacingUnits
int m_spacingUnits[3]
the interline/before/after unit 0: line, 1:point
Definition RagTime5StyleManager.hxx:273
RagTime5StyleManager::TextStyle::operator=
TextStyle & operator=(TextStyle &&)=default
RagTime5StyleManager::TextStyle::m_spacings
double m_spacings[3]
the interline/before/after value
Definition RagTime5StyleManager.hxx:271
RagTime5StyleManager::TextStyle::m_linkIdList
std::vector< int > m_linkIdList
the link id list
Definition RagTime5StyleManager.hxx:256
RagTime5StyleManager::TextStyle::m_margins
double m_margins[3]
the spacings in point ( left, right, first)
Definition RagTime5StyleManager.hxx:277
RagTime5StyleManager::TextStyle::m_keepWithNext
MWAWVariable< bool > m_keepWithNext
the keep with next flag
Definition RagTime5StyleManager.hxx:267
RagTime5StyleManager::TextStyle::read
bool read(RagTime5StructManager::Field const &field)
try to read a text style
Definition RagTime5StyleManager.cxx:1748