SimpleXlsx
r0.19
|
This structure represents a handle to manage newly adding styles to avoid dublicating. More...
#include <Workbook.h>
Public Member Functions | |
StyleList () | |
std::vector< Border > | GetBorders () const |
For internal use (at the book saving) | |
std::vector< Font > | GetFonts () const |
For internal use (at the book saving) | |
std::vector< Fill > | GetFills () const |
For internal use (at the book saving) | |
std::vector< NumFormat > | GetNumFormats () 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< Border > | borders |
borders set of values represent styled borders | |
std::vector< Font > | fonts |
fonts set of fonts to be declared | |
std::vector< Fill > | fills |
fills set of fills to be declared | |
std::vector< NumFormat > | nums |
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 |
This structure represents a handle to manage newly adding styles to avoid dublicating.
|
inline |
first - EAlignHoriz value second - EAlignVert value third - wrap boolean value
|
inline |
Adds a new style into collection if it is not exists yet.
style | Reference to the Style structure object |
|
private |
styleIndexes vector of a number triplet contains links to style parts:
|
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: