Go to the documentation of this file.
10 #ifndef __VSDXTHEME_H__
11 #define __VSDXTHEME_H__
15 #include <boost/optional.hpp>
16 #include <librevenge-stream/librevenge-stream.h>
81 bool parse(librevenge::RVNGInputStream *input);
82 boost::optional<Colour>
getThemeColour(
unsigned value,
unsigned variationIndex = 0)
const;
88 boost::optional<Colour>
readSrgbClr(xmlTextReaderPtr reader);
89 boost::optional<Colour>
readSysClr(xmlTextReaderPtr reader);
97 bool readTypeFace(xmlTextReaderPtr reader, librevenge::RVNGString &typeFace);
98 bool readTypeFace(xmlTextReaderPtr reader,
int &script, librevenge::RVNGString &typeFace);
108 #endif // __VSDXTHEME_H__
Colour m_varColor4
Definition: VSDXTheme.h:29
const int XML_VT_VARIATIONCLRSCHEME
Definition: tokens.h:299
unsigned m_schemeId
Definition: VSDXTheme.h:71
const int XML_A_ACCENT3
Definition: tokens.h:211
librevenge::RVNGString m_eaTypeFace
Definition: VSDXTheme.h:60
const int XML_A_EA
Definition: tokens.h:221
bool readTypeFace(xmlTextReaderPtr reader, librevenge::RVNGString &typeFace)
Definition: VSDXTheme.cpp:231
std::unique_ptr< xmlTextReader, void(*)(xmlTextReaderPtr)> xmlReaderForStream(librevenge::RVNGInputStream *input, XMLErrorWatcher *watcher=nullptr, bool recover=true)
Definition: libvisio_xml.h:42
Colour m_dk1
Definition: VSDXTheme.h:39
Colour m_varColor2
Definition: VSDXTheme.h:27
const int XML_VT_VARCOLOR2
Definition: tokens.h:292
VSDXTheme & operator=(const VSDXTheme &)
Colour m_varColor1
Definition: VSDXTheme.h:26
const int XML_A_DK1
Definition: tokens.h:219
Colour m_varColor3
Definition: VSDXTheme.h:28
boost::optional< Colour > getThemeColour(unsigned value, unsigned variationIndex=0) const
Definition: VSDXTheme.cpp:432
const int XML_VT_VARCOLOR5
Definition: tokens.h:295
librevenge::RVNGString m_latinTypeFace
Definition: VSDXTheme.h:59
void readThemeColour(xmlTextReaderPtr reader, int idToken, Colour &clr)
Definition: VSDXTheme.cpp:323
Colour m_accent1
Definition: VSDXTheme.h:43
std::map< unsigned, librevenge::RVNGString > m_typeFaces
Definition: VSDXTheme.h:62
const int XML_A_DK2
Definition: tokens.h:220
Colour m_accent2
Definition: VSDXTheme.h:44
VSDXClrScheme m_clrScheme
Definition: VSDXTheme.h:102
#define VSD_DEBUG_MSG(M)
Definition: libvisio_utils.h:42
const int XML_VT_VARCOLOR1
Definition: tokens.h:291
~VSDXTheme()
Definition: VSDXTheme.cpp:70
Colour m_varColor6
Definition: VSDXTheme.h:31
int getElementToken(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:75
Colour m_lt1
Definition: VSDXTheme.h:40
Colour m_accent3
Definition: VSDXTheme.h:45
const int XML_A_FONTSCHEME
Definition: tokens.h:232
void readFontScheme(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:158
Definition: libvisio_utils.h:91
Colour m_accent6
Definition: VSDXTheme.h:48
Definition: VSDXTheme.h:37
Colour m_dk2
Definition: VSDXTheme.h:41
const int XML_A_ACCENT2
Definition: tokens.h:210
Definition: VSDTypes.h:70
const int XML_VT_VARCOLOR7
Definition: tokens.h:297
void readClrScheme(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:256
Definition: VSDXTheme.h:24
Colour xmlStringToColour(const xmlChar *s)
Definition: libvisio_xml.cpp:115
const int XML_VT_SCHEMEID
Definition: tokens.h:289
const int XML_A_CS
Definition: tokens.h:218
Colour m_lt2
Definition: VSDXTheme.h:42
void readVariationClrScheme(xmlTextReaderPtr reader, VSDXVariationClrScheme &varClrSch)
Definition: VSDXTheme.cpp:387
const int XML_A_ACCENT6
Definition: tokens.h:214
Colour m_hlink
Definition: VSDXTheme.h:49
const int XML_VT_BKGND
Definition: tokens.h:273
const int XML_VT_VARIATIONCLRSCHEMELST
Definition: tokens.h:300
Definition: VSDXTheme.h:67
bool parse(librevenge::RVNGInputStream *input)
Definition: VSDXTheme.cpp:80
static int getTokenId(const xmlChar *name)
Definition: VSDXMLTokenMap.cpp:21
const int XML_A_ACCENT5
Definition: tokens.h:213
Colour m_bkgnd
Definition: VSDXTheme.h:51
const int XML_A_FONT
Definition: tokens.h:231
VSDXTheme()
Definition: VSDXTheme.cpp:64
const int XML_VT_VARCOLOR4
Definition: tokens.h:294
boost::optional< Colour > readSysClr(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:138
Definition: VSDXTheme.h:57
const int XML_A_ACCENT1
Definition: tokens.h:209
const int XML_A_LATIN
Definition: tokens.h:237
const int XML_A_CLRSCHEME
Definition: tokens.h:217
Definition: VSDXTheme.h:76
const int XML_VT_VARCOLOR3
Definition: tokens.h:293
const int XML_A_ACCENT4
Definition: tokens.h:212
const int XML_A_SRGBCLR
Definition: tokens.h:253
librevenge::RVNGString m_csTypeFace
Definition: VSDXTheme.h:61
VSDXFont()
Definition: VSDXTheme.cpp:49
Colour m_varColor5
Definition: VSDXTheme.h:30
const int XML_A_HLINK
Definition: tokens.h:236
void readFont(xmlTextReaderPtr reader, int idToken, VSDXFont &font)
Definition: VSDXTheme.cpp:190
Colour m_accent4
Definition: VSDXTheme.h:46
void readVariationClrSchemeLst(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:356
boost::optional< Colour > readSrgbClr(xmlTextReaderPtr reader)
Definition: VSDXTheme.cpp:118
std::vector< VSDXVariationClrScheme > m_variationClrSchemeLst
Definition: VSDXTheme.h:52
const int XML_VT_VARCOLOR6
Definition: tokens.h:296
const int XML_TOKEN_INVALID
Definition: tokens.h:306
const int XML_A_FOLHLINK
Definition: tokens.h:230
VSDXFontScheme m_fontScheme
Definition: VSDXTheme.h:103
VSDXFontScheme()
Definition: VSDXTheme.cpp:57
VSDXFont m_majorFont
Definition: VSDXTheme.h:69
const int XML_A_MINORFONT
Definition: tokens.h:245
VSDXClrScheme()
Definition: VSDXTheme.cpp:31
const int XML_A_SYSCLR
Definition: tokens.h:254
VSDXFont m_minorFont
Definition: VSDXTheme.h:70
VSDXVariationClrScheme()
Definition: VSDXTheme.cpp:20
const int XML_A_LT1
Definition: tokens.h:241
Definition: libvisio_utils.h:48
Colour m_folHlink
Definition: VSDXTheme.h:50
const int XML_A_MAJORFONT
Definition: tokens.h:244
Colour m_varColor7
Definition: VSDXTheme.h:32
Colour m_accent5
Definition: VSDXTheme.h:47
const int XML_A_LT2
Definition: tokens.h:242
Generated for libvisio by
doxygen 1.8.17