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) |
std::unique_ptr< svx::Theme > | createSvxTheme () const |
void | addTheme (const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage) 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 |
void oox::drawingml::Theme::addTheme | ( | const css::uno::Reference< css::drawing::XDrawPage > & | xDrawPage | ) | const |
Definition at line 175 of file theme.cxx.
References createSvxTheme(), GetSdrPageFromXDrawPage(), SdrPage::getSdrPageProperties(), SAL_WARN_IF, and SdrPageProperties::SetTheme().
std::unique_ptr< svx::Theme > oox::drawingml::Theme::createSvxTheme | ( | ) | const |
Definition at line 111 of file theme.cxx.
References oox::drawingml::ClrScheme::fill(), getFontStyle(), oox::drawingml::ClrScheme::GetName(), maClrScheme, maFontSchemeName, maSupplementalFontMap, maThemeName, svx::FontScheme::setMajorAsian(), svx::FontScheme::setMajorComplex(), svx::FontScheme::setMajorLatin(), svx::FontScheme::setMajorSupplementalFontList(), svx::FontScheme::setMinorAsian(), svx::FontScheme::setMinorComplex(), svx::FontScheme::setMinorLatin(), and svx::FontScheme::setMinorSupplementalFontList().
Referenced by addTheme().
|
inline |
Definition at line 73 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 68 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
const EffectProperties * oox::drawingml::Theme::getEffectStyle | ( | sal_Int32 | nIndex | ) | const |
Definition at line 60 of file theme.cxx.
References maEffectStyleList, and nIndex.
Referenced by oox::drawingml::Shape::getActualEffectProperties().
|
inline |
Definition at line 83 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 48 of file theme.cxx.
References maBgFillStyleList, maFillStyleList, and nIndex.
Referenced by oox::drawingml::table::applyTableStylePart(), and oox::drawingml::Shape::getActualFillProperties().
|
inline |
Definition at line 71 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 87 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
const TextCharacterProperties * oox::drawingml::Theme::getFontStyle | ( | sal_Int32 | nSchemeType | ) | const |
Returns theme font properties by scheme type (major/minor).
Definition at line 65 of file theme.cxx.
References oox::RefMap< KeyType, ObjType, CompType >::get(), and maFontScheme.
Referenced by oox::drawingml::Shape::createAndInsert(), and createSvxTheme().
|
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 55 of file theme.cxx.
References maLineStyleList, and nIndex.
Referenced by oox::drawingml::Shape::createAndInsert(), and oox::drawingml::Shape::getActualLineProperties().
|
inline |
Definition at line 78 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 101 of file theme.hxx.
Referenced by oox::drawingml::objectDefaultContext::onCreateContext().
|
inline |
|
inline |
Definition at line 98 of file theme.hxx.
Referenced by oox::drawingml::objectDefaultContext::onCreateContext().
|
inline |
|
inline |
Definition at line 90 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 104 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 70 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 66 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
Definition at line 65 of file theme.hxx.
Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().
|
inline |
|
inline |
Definition at line 64 of file theme.hxx.
Referenced by oox::drawingml::ThemeFragmentHandler::onStartElement().
|
private |
Definition at line 119 of file theme.hxx.
Referenced by getFillStyle().
|
private |
Definition at line 117 of file theme.hxx.
Referenced by createSvxTheme().
|
private |
Definition at line 121 of file theme.hxx.
Referenced by getEffectStyle().
|
private |
Definition at line 118 of file theme.hxx.
Referenced by getFillStyle().
|
private |
Definition at line 122 of file theme.hxx.
Referenced by getFontStyle(), and resolveFont().
|
private |
Definition at line 115 of file theme.hxx.
Referenced by createSvxTheme().
|
private |
|
private |
Definition at line 120 of file theme.hxx.
Referenced by getLineStyle().
|
private |
Definition at line 123 of file theme.hxx.
Referenced by createSvxTheme().
|
private |
Definition at line 114 of file theme.hxx.
Referenced by createSvxTheme().
|
private |