SimpleXlsx  r0.19
 All Classes Namespaces Functions Variables Enumerations Pages
SimpleXlsx::StyleList Class Reference

This structure represents a handle to manage newly adding styles to avoid dublicating. More...

#include <Workbook.h>

Public Member Functions

 StyleList ()
std::vector< BorderGetBorders () const
 For internal use (at the book saving)
std::vector< FontGetFonts () const
 For internal use (at the book saving)
std::vector< FillGetFills () const
 For internal use (at the book saving)
std::vector< NumFormatGetNumFormats () const
 For internal use (at the book saving)
std::vector< std::vector
< size_t > > 
GetIndexes () const
 For internal use (at the book saving)
std::vector< std::pair
< std::pair< EAlignHoriz,
EAlignVert >, bool > > 
GetPositions () const
 For internal use (at the book saving)
size_t Add (const Style &style)
 Adds a new style into collection if it is not exists yet.

Private Attributes

size_t fmtLastId
 m_fmtLastId format counter. There are 164 (0 - 163) built-in numeric formats
std::vector< Borderborders
 borders set of values represent styled borders
std::vector< Fontfonts
 fonts set of fonts to be declared
std::vector< Fillfills
 fills set of fills to be declared
std::vector< NumFormatnums
 nums set of number formats to be declared
std::vector< std::vector
< size_t > > 
styleIndexes
std::vector< std::pair
< std::pair< EAlignHoriz,
EAlignVert >, bool > > 
stylePos

Detailed Description

This structure represents a handle to manage newly adding styles to avoid dublicating.

Constructor & Destructor Documentation

SimpleXlsx::StyleList::StyleList ( )
inline

first - EAlignHoriz value second - EAlignVert value third - wrap boolean value

Member Function Documentation

size_t SimpleXlsx::StyleList::Add ( const Style style)
inline

Adds a new style into collection if it is not exists yet.

Parameters
styleReference to the Style structure object
Returns
Style index that should be used at data appending to a data sheet
Note
If returned value is 0 - this is a default normal style and it is optional whether is will be added into column description or not (but better not to add to reduce size and resource consumption)

Member Data Documentation

std::vector<std::vector<size_t> > SimpleXlsx::StyleList::styleIndexes
private

styleIndexes vector of a number triplet contains links to style parts:

std::vector< std::pair<std::pair<EAlignHoriz, EAlignVert>, bool> > SimpleXlsx::StyleList::stylePos
private

first - border id in borders second - font id in fonts third - fill id in fills fourth - number format id in nums stylePos vector of a number triplet contains style`s alignments and wrap sign:


The documentation for this class was generated from the following file: