LibreOffice Module oox (master) 1
|
#include <theme.hxx>
Public Member Functions | |
void | setThemeName (OUString const &rName) |
void | setFormatSchemeName (OUString const &rName) |
void | setFontSchemeName (OUString const &rName) |
ClrScheme & | getClrScheme () |
const ClrScheme & | getClrScheme () const |
FillStyleList & | getFillStyleList () |
const FillStyleList & | getFillStyleList () const |
FillStyleList & | getBgFillStyleList () |
const FillStyleList & | getBgFillStyleList () const |
const FillProperties * | getFillStyle (sal_Int32 nIndex) const |
Returns the fill properties of the passed one-based themed style index. More... | |
LineStyleList & | getLineStyleList () |
const LineStyleList & | getLineStyleList () const |
const LineProperties * | getLineStyle (sal_Int32 nIndex) const |
Returns the line properties of the passed one-based themed style index. More... | |
EffectStyleList & | getEffectStyleList () |
const EffectStyleList & | getEffectStyleList () const |
const EffectProperties * | getEffectStyle (sal_Int32 nIndex) const |
FontScheme & | getFontScheme () |
const FontScheme & | getFontScheme () const |
std::map< sal_Int32, std::vector< std::pair< OUString, OUString > > > & | getSupplementalFontMap () |
std::map< sal_Int32, std::vector< std::pair< OUString, OUString > > > const & | getSupplementalFontMap () const |
const TextCharacterProperties * | getFontStyle (sal_Int32 nSchemeType) const |
Returns theme font properties by scheme type (major/minor). More... | |
const TextFont * | resolveFont (std::u16string_view rName) const |
Returns theme font by placeholder name, e.g. More... | |
Shape & | getSpDef () |
const Shape & | getSpDef () const |
Shape & | getLnDef () |
const Shape & | getLnDef () const |
Shape & | getTxDef () |
const Shape & | getTxDef () const |
const css::uno::Reference< css::xml::dom::XDocument > & | getFragment () const |
void | setFragment (const css::uno::Reference< css::xml::dom::XDocument > &xRef) |
void | addTheme (const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage) const |
void | setTheme (std::shared_ptr< model::Theme > const &pTheme) |
std::shared_ptr< model::Theme > const & | getTheme () const |
Private Attributes | |
OUString | maThemeName |
OUString | maFontSchemeName |
OUString | maFormatSchemeName |
ClrScheme | maClrScheme |
FillStyleList | maFillStyleList |
FillStyleList | maBgFillStyleList |
LineStyleList | maLineStyleList |
EffectStyleList | maEffectStyleList |
FontScheme | maFontScheme |
std::map< sal_Int32, std::vector< std::pair< OUString, OUString > > > | maSupplementalFontMap |
Shape | maSpDef |
Shape | maLnDef |
Shape | maTxDef |
css::uno::Reference< css::xml::dom::XDocument > | mxFragment |
std::shared_ptr< model::Theme > | mpTheme |
void oox::drawingml::Theme::addTheme | ( | const css::uno::Reference< css::drawing::XDrawPage > & | xDrawPage | ) | const |
Definition at line 112 of file theme.cxx.
References GetSdrPageFromXDrawPage(), SdrPage::getSdrPageProperties(), getTheme(), SAL_WARN_IF, and SdrPageProperties::SetTheme().
|
inline |
Definition at line 74 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 69 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
const EffectProperties * oox::drawingml::Theme::getEffectStyle | ( | sal_Int32 | nIndex | ) | const |
Definition at line 61 of file theme.cxx.
References maEffectStyleList, and nIndex.
Referenced by oox::drawingml::Shape::getActualEffectProperties().
|
inline |
Definition at line 84 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
const FillProperties * oox::drawingml::Theme::getFillStyle | ( | sal_Int32 | nIndex | ) | const |
Returns the fill properties of the passed one-based themed style index.
Definition at line 49 of file theme.cxx.
References maBgFillStyleList, maFillStyleList, and nIndex.
Referenced by oox::drawingml::table::applyTableStylePart(), and oox::drawingml::Shape::getActualFillProperties().
|
inline |
Definition at line 72 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 88 of file theme.hxx.
References maFontScheme.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
Definition at line 89 of file theme.hxx.
References maFontScheme.
const TextCharacterProperties * oox::drawingml::Theme::getFontStyle | ( | sal_Int32 | nSchemeType | ) | const |
Returns theme font properties by scheme type (major/minor).
Definition at line 66 of file theme.cxx.
References oox::RefMap< KeyType, ObjType, CompType >::get(), and maFontScheme.
Referenced by oox::drawingml::Shape::createAndInsert().
|
inline |
const LineProperties * oox::drawingml::Theme::getLineStyle | ( | sal_Int32 | nIndex | ) | const |
Returns the line properties of the passed one-based themed style index.
Definition at line 56 of file theme.cxx.
References maLineStyleList, and nIndex.
Referenced by oox::drawingml::Shape::createAndInsert(), and oox::drawingml::Shape::getActualLineProperties().
|
inline |
Definition at line 79 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 102 of file theme.hxx.
Referenced by oox::drawingml::objectDefaultContext::onCreateContext().
|
inline |
|
inline |
Definition at line 99 of file theme.hxx.
Referenced by oox::drawingml::objectDefaultContext::onCreateContext().
|
inline |
|
inline |
Definition at line 91 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 118 of file theme.hxx.
Referenced by addTheme().
|
inline |
Definition at line 105 of file theme.hxx.
Referenced by oox::drawingml::objectDefaultContext::onCreateContext().
|
inline |
const TextFont * oox::drawingml::Theme::resolveFont | ( | std::u16string_view | rName | ) | const |
Returns theme font by placeholder name, e.g.
the major latin theme font for the font name '+mj-lt'.
Definition at line 71 of file theme.cxx.
References oox::RefMap< KeyType, ObjType, CompType >::get(), oox::drawingml::TextCharacterProperties::maAsianFont, oox::drawingml::TextCharacterProperties::maComplexFont, maFontScheme, oox::drawingml::TextCharacterProperties::maLatinFont, and u.
|
inline |
Definition at line 67 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
Definition at line 66 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
|
inline |
Definition at line 65 of file theme.hxx.
Referenced by oox::drawingml::ThemeFragmentHandler::onStartElement().
|
private |
Definition at line 128 of file theme.hxx.
Referenced by getFillStyle().
|
private |
Definition at line 130 of file theme.hxx.
Referenced by getEffectStyle().
|
private |
Definition at line 127 of file theme.hxx.
Referenced by getFillStyle().
|
private |
Definition at line 131 of file theme.hxx.
Referenced by getFontStyle(), and resolveFont().
|
private |
|
private |
Definition at line 129 of file theme.hxx.
Referenced by getLineStyle().
|
private |
|
private |
|
private |