OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLStyles.hpp File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include "OpenXLSX-Exports.hpp"
#include "XLColor.hpp"
#include "XLXmlFile.hpp"
#include "XLXmlParser.hpp"

Go to the source code of this file.

Data Structures

class  OpenXLSX::XLNumberFormat
 An encapsulation of a number format (numFmt) item. More...
 
class  OpenXLSX::XLNumberFormats
 An encapsulation of the XLSX number formats (numFmts) More...
 
class  OpenXLSX::XLFont
 An encapsulation of a font item. More...
 
class  OpenXLSX::XLFonts
 An encapsulation of the XLSX fonts. More...
 
class  OpenXLSX::XLDataBarColor
 An encapsulation of an XLSX Data Bar Color (CT_Color) item. More...
 
class  OpenXLSX::XLGradientStop
 An encapsulation of an fill::gradientFill::stop item. More...
 
class  OpenXLSX::XLGradientStops
 An encapsulation of an array of fill::gradientFill::stop items. More...
 
class  OpenXLSX::XLFill
 An encapsulation of a fill item. More...
 
class  OpenXLSX::XLFills
 An encapsulation of the XLSX fills. More...
 
class  OpenXLSX::XLLine
 An encapsulation of a line item. More...
 
class  OpenXLSX::XLBorder
 An encapsulation of a border item. More...
 
class  OpenXLSX::XLBorders
 An encapsulation of the XLSX borders. More...
 
class  OpenXLSX::XLAlignment
 An encapsulation of an alignment item. More...
 
class  OpenXLSX::XLCellFormat
 An encapsulation of a cell format item. More...
 
class  OpenXLSX::XLCellFormats
 An encapsulation of the XLSX cell style formats. More...
 
class  OpenXLSX::XLCellStyle
 An encapsulation of a cell style item. More...
 
class  OpenXLSX::XLCellStyles
 An encapsulation of the XLSX cell styles. More...
 
class  OpenXLSX::XLDxf
 An encapsulation of a differential cell format item (DXF) More...
 
class  OpenXLSX::XLDxfs
 An encapsulation of the XLSX differential cell formats (dxfs) More...
 
class  OpenXLSX::XLStyles
 An encapsulation of the styles file (xl/styles.xml) in an Excel document package. More...
 

Namespaces

namespace  OpenXLSX
 

Typedefs

using OpenXLSX::XLStyleIndex = size_t
 
using OpenXLSX::XLDiffCellFormat = XLDxf
 Backward compatibility alias.
 
using OpenXLSX::XLDiffCellFormats = XLDxfs
 Backward compatibility alias.
 

Enumerations

enum  OpenXLSX::XLUnderlineStyle : uint8_t {
  OpenXLSX::XLUnderlineNone = 0 , OpenXLSX::XLUnderlineSingle = 1 , OpenXLSX::XLUnderlineDouble = 2 , OpenXLSX::XLUnderlineSingleAccounting = 3 ,
  OpenXLSX::XLUnderlineDoubleAccounting = 4 , OpenXLSX::XLUnderlineInvalid = 255
}
 
enum  OpenXLSX::XLFontSchemeStyle : uint8_t { OpenXLSX::XLFontSchemeNone = 0 , OpenXLSX::XLFontSchemeMajor = 1 , OpenXLSX::XLFontSchemeMinor = 2 , OpenXLSX::XLFontSchemeInvalid = 255 }
 
enum  OpenXLSX::XLVerticalAlignRunStyle : uint8_t { OpenXLSX::XLBaseline = 0 , OpenXLSX::XLSubscript = 1 , OpenXLSX::XLSuperscript = 2 , OpenXLSX::XLVerticalAlignRunInvalid = 255 }
 
enum  OpenXLSX::XLFillType : uint8_t { OpenXLSX::XLGradientFill = 0 , OpenXLSX::XLPatternFill = 1 , OpenXLSX::XLFillTypeInvalid = 255 }
 
enum  OpenXLSX::XLGradientType : uint8_t { OpenXLSX::XLGradientLinear = 0 , OpenXLSX::XLGradientPath = 1 , OpenXLSX::XLGradientTypeInvalid = 255 }
 
enum  OpenXLSX::XLPatternType : uint8_t {
  OpenXLSX::XLPatternNone = 0 , OpenXLSX::XLPatternSolid = 1 , OpenXLSX::XLPatternMediumGray = 2 , OpenXLSX::XLPatternDarkGray = 3 ,
  OpenXLSX::XLPatternLightGray = 4 , OpenXLSX::XLPatternDarkHorizontal = 5 , OpenXLSX::XLPatternDarkVertical = 6 , OpenXLSX::XLPatternDarkDown = 7 ,
  OpenXLSX::XLPatternDarkUp = 8 , OpenXLSX::XLPatternDarkGrid = 9 , OpenXLSX::XLPatternDarkTrellis = 10 , OpenXLSX::XLPatternLightHorizontal = 11 ,
  OpenXLSX::XLPatternLightVertical = 12 , OpenXLSX::XLPatternLightDown = 13 , OpenXLSX::XLPatternLightUp = 14 , OpenXLSX::XLPatternLightGrid = 15 ,
  OpenXLSX::XLPatternLightTrellis = 16 , OpenXLSX::XLPatternGray125 = 17 , OpenXLSX::XLPatternGray0625 = 18 , OpenXLSX::XLPatternTypeInvalid = 255
}
 
enum  OpenXLSX::XLLineType : uint8_t {
  OpenXLSX::XLLineLeft = 0 , OpenXLSX::XLLineRight = 1 , OpenXLSX::XLLineTop = 2 , OpenXLSX::XLLineBottom = 3 ,
  OpenXLSX::XLLineDiagonal = 4 , OpenXLSX::XLLineVertical = 5 , OpenXLSX::XLLineHorizontal = 6 , OpenXLSX::XLLineInvalid = 255
}
 
enum  OpenXLSX::XLLineStyle : uint8_t {
  OpenXLSX::XLLineStyleNone = 0 , OpenXLSX::XLLineStyleThin = 1 , OpenXLSX::XLLineStyleMedium = 2 , OpenXLSX::XLLineStyleDashed = 3 ,
  OpenXLSX::XLLineStyleDotted = 4 , OpenXLSX::XLLineStyleThick = 5 , OpenXLSX::XLLineStyleDouble = 6 , OpenXLSX::XLLineStyleHair = 7 ,
  OpenXLSX::XLLineStyleMediumDashed = 8 , OpenXLSX::XLLineStyleDashDot = 9 , OpenXLSX::XLLineStyleMediumDashDot = 10 , OpenXLSX::XLLineStyleDashDotDot = 11 ,
  OpenXLSX::XLLineStyleMediumDashDotDot = 12 , OpenXLSX::XLLineStyleSlantDashDot = 13 , OpenXLSX::XLLineStyleInvalid = 255
}
 
enum  OpenXLSX::XLAlignmentStyle : uint8_t {
  OpenXLSX::XLAlignGeneral = 0 , OpenXLSX::XLAlignLeft = 1 , OpenXLSX::XLAlignRight = 2 , OpenXLSX::XLAlignCenter = 3 ,
  OpenXLSX::XLAlignTop = 4 , OpenXLSX::XLAlignBottom = 5 , OpenXLSX::XLAlignFill = 6 , OpenXLSX::XLAlignJustify = 7 ,
  OpenXLSX::XLAlignCenterContinuous = 8 , OpenXLSX::XLAlignDistributed = 9 , OpenXLSX::XLAlignInvalid = 255
}
 
enum  OpenXLSX::XLReadingOrder : uint32_t { OpenXLSX::XLReadingOrderContextual = 0 , OpenXLSX::XLReadingOrderLeftToRight = 1 , OpenXLSX::XLReadingOrderRightToLeft = 2 }
 

Variables

constexpr const uint32_t OpenXLSX::XLInvalidUInt16 = 0xffff
 
constexpr const uint32_t OpenXLSX::XLInvalidUInt32 = 0xffffffff
 
constexpr const uint32_t OpenXLSX::XLDeleteProperty = XLInvalidUInt32
 
constexpr const bool OpenXLSX::XLPermitXfID = true
 
constexpr const bool OpenXLSX::XLCreateIfMissing = true
 
constexpr const bool OpenXLSX::XLDoNotCreate = false
 
constexpr const bool OpenXLSX::XLForceFillType = true
 
constexpr const char * OpenXLSX::XLDefaultStylesPrefix = "\n\t"
 
constexpr const char * OpenXLSX::XLDefaultStyleEntriesPrefix = "\n\t\t"
 
constexpr const XLStyleIndex OpenXLSX::XLDefaultCellFormat = 0
 
constexpr const XLStyleIndex OpenXLSX::XLInvalidStyleIndex = XLInvalidUInt32
 
constexpr const uint32_t OpenXLSX::XLDefaultFontSize = 12
 
constexpr const char * OpenXLSX::XLDefaultFontColor = "ff000000"
 
constexpr const char * OpenXLSX::XLDefaultFontColorTheme = ""
 
constexpr const char * OpenXLSX::XLDefaultFontName = "Arial"
 
constexpr const uint32_t OpenXLSX::XLDefaultFontFamily = 0
 
constexpr const uint32_t OpenXLSX::XLDefaultFontCharset = 1
 
constexpr const char * OpenXLSX::XLDefaultLineStyle = ""
 
constexpr const XLFillType OpenXLSX::XLDefaultFillType = XLPatternFill
 
constexpr const XLPatternType OpenXLSX::XLDefaultPatternType = XLPatternNone
 
constexpr const char * OpenXLSX::XLDefaultPatternFgColor = "ffffffff"
 
constexpr const char * OpenXLSX::XLDefaultPatternBgColor = "ff000000"