![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Go to the source code of this file.
Functions | |
bool | parseThemeSwitch (PString &outputCss, PFileParser &parser, const PVecString &vecTheme, const PString &themeName) |
Parse the theme switch. More... | |
PString | select_css_theme (const PVecString &vecTheme, const PString &themeName, const PString &css) |
Select the right css option by respect to the given theme. More... | |
bool parseThemeSwitch | ( | PString & | outputCss, |
PFileParser & | parser, | ||
const PVecString & | vecTheme, | ||
const PString & | themeName | ||
) |
Parse the theme switch.
[out] | outputCss | : output css selected theme |
[out] | parser | : PFileParser to be used |
vecTheme | : vector of all possible theme | |
themeName | : theme to be used |
Definition at line 16 of file select_css_theme.cpp.
References PFileParser::getStrComposedOf(), PFileParser::getUntilKeyWithoutPatern(), and PFileParser::isMatch().
Referenced by select_css_theme().
PString select_css_theme | ( | const PVecString & | vecTheme, |
const PString & | themeName, | ||
const PString & | css | ||
) |
Select the right css option by respect to the given theme.
vecTheme | : vector of all possible theme |
themeName | : theme to be used |
css | : raw css with all possible themes |
Definition at line 43 of file select_css_theme.cpp.
References PFileParser::getCurrentCh(), PFileParser::getNextChar(), PFileParser::isEndOfFile(), parseThemeSwitch(), PFileParser::setFileContent(), PFileParser::setSeparator(), and PFileParser::setWhiteSpace().
Referenced by PGenericParser::saveCss().