LibreOffice Module oox (master) 1
Public Member Functions | Private Attributes | List of all members
oox::drawingml::Theme Class Reference

#include <theme.hxx>

Collaboration diagram for oox::drawingml::Theme:
[legend]

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
 

Detailed Description

Definition at line 62 of file theme.hxx.

Member Function Documentation

◆ addTheme()

void oox::drawingml::Theme::addTheme ( const css::uno::Reference< css::drawing::XDrawPage > &  xDrawPage) const

◆ getBgFillStyleList() [1/2]

FillStyleList & oox::drawingml::Theme::getBgFillStyleList ( )
inline

Definition at line 74 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getBgFillStyleList() [2/2]

const FillStyleList & oox::drawingml::Theme::getBgFillStyleList ( ) const
inline

Definition at line 75 of file theme.hxx.

◆ getClrScheme() [1/2]

ClrScheme & oox::drawingml::Theme::getClrScheme ( )
inline

Definition at line 69 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getClrScheme() [2/2]

const ClrScheme & oox::drawingml::Theme::getClrScheme ( ) const
inline

Definition at line 70 of file theme.hxx.

◆ getEffectStyle()

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().

◆ getEffectStyleList() [1/2]

EffectStyleList & oox::drawingml::Theme::getEffectStyleList ( )
inline

Definition at line 84 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getEffectStyleList() [2/2]

const EffectStyleList & oox::drawingml::Theme::getEffectStyleList ( ) const
inline

Definition at line 85 of file theme.hxx.

◆ getFillStyle()

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().

◆ getFillStyleList() [1/2]

FillStyleList & oox::drawingml::Theme::getFillStyleList ( )
inline

Definition at line 72 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getFillStyleList() [2/2]

const FillStyleList & oox::drawingml::Theme::getFillStyleList ( ) const
inline

Definition at line 73 of file theme.hxx.

◆ getFontScheme() [1/2]

FontScheme & oox::drawingml::Theme::getFontScheme ( )
inline

Definition at line 88 of file theme.hxx.

References maFontScheme.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getFontScheme() [2/2]

const FontScheme & oox::drawingml::Theme::getFontScheme ( ) const
inline

Definition at line 89 of file theme.hxx.

References maFontScheme.

◆ getFontStyle()

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().

◆ getFragment()

const css::uno::Reference< css::xml::dom::XDocument > & oox::drawingml::Theme::getFragment ( ) const
inline

Definition at line 108 of file theme.hxx.

◆ getLineStyle()

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().

◆ getLineStyleList() [1/2]

LineStyleList & oox::drawingml::Theme::getLineStyleList ( )
inline

Definition at line 79 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getLineStyleList() [2/2]

const LineStyleList & oox::drawingml::Theme::getLineStyleList ( ) const
inline

Definition at line 80 of file theme.hxx.

◆ getLnDef() [1/2]

Shape & oox::drawingml::Theme::getLnDef ( )
inline

Definition at line 102 of file theme.hxx.

Referenced by oox::drawingml::objectDefaultContext::onCreateContext().

◆ getLnDef() [2/2]

const Shape & oox::drawingml::Theme::getLnDef ( ) const
inline

Definition at line 103 of file theme.hxx.

◆ getSpDef() [1/2]

Shape & oox::drawingml::Theme::getSpDef ( )
inline

Definition at line 99 of file theme.hxx.

Referenced by oox::drawingml::objectDefaultContext::onCreateContext().

◆ getSpDef() [2/2]

const Shape & oox::drawingml::Theme::getSpDef ( ) const
inline

Definition at line 100 of file theme.hxx.

◆ getSupplementalFontMap() [1/2]

std::map< sal_Int32, std::vector< std::pair< OUString, OUString > > > & oox::drawingml::Theme::getSupplementalFontMap ( )
inline

Definition at line 91 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ getSupplementalFontMap() [2/2]

std::map< sal_Int32, std::vector< std::pair< OUString, OUString > > > const & oox::drawingml::Theme::getSupplementalFontMap ( ) const
inline

Definition at line 92 of file theme.hxx.

◆ getTheme()

std::shared_ptr< model::Theme > const & oox::drawingml::Theme::getTheme ( ) const
inline

Definition at line 118 of file theme.hxx.

Referenced by addTheme().

◆ getTxDef() [1/2]

Shape & oox::drawingml::Theme::getTxDef ( )
inline

Definition at line 105 of file theme.hxx.

Referenced by oox::drawingml::objectDefaultContext::onCreateContext().

◆ getTxDef() [2/2]

const Shape & oox::drawingml::Theme::getTxDef ( ) const
inline

Definition at line 106 of file theme.hxx.

◆ resolveFont()

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.

◆ setFontSchemeName()

void oox::drawingml::Theme::setFontSchemeName ( OUString const &  rName)
inline

Definition at line 67 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ setFormatSchemeName()

void oox::drawingml::Theme::setFormatSchemeName ( OUString const &  rName)
inline

Definition at line 66 of file theme.hxx.

Referenced by oox::drawingml::ThemeElementsContext::onCreateContext().

◆ setFragment()

void oox::drawingml::Theme::setFragment ( const css::uno::Reference< css::xml::dom::XDocument > &  xRef)
inline

Definition at line 109 of file theme.hxx.

◆ setTheme()

void oox::drawingml::Theme::setTheme ( std::shared_ptr< model::Theme > const &  pTheme)
inline

Definition at line 113 of file theme.hxx.

◆ setThemeName()

void oox::drawingml::Theme::setThemeName ( OUString const &  rName)
inline

Definition at line 65 of file theme.hxx.

Referenced by oox::drawingml::ThemeFragmentHandler::onStartElement().

Member Data Documentation

◆ maBgFillStyleList

FillStyleList oox::drawingml::Theme::maBgFillStyleList
private

Definition at line 128 of file theme.hxx.

Referenced by getFillStyle().

◆ maClrScheme

ClrScheme oox::drawingml::Theme::maClrScheme
private

Definition at line 126 of file theme.hxx.

◆ maEffectStyleList

EffectStyleList oox::drawingml::Theme::maEffectStyleList
private

Definition at line 130 of file theme.hxx.

Referenced by getEffectStyle().

◆ maFillStyleList

FillStyleList oox::drawingml::Theme::maFillStyleList
private

Definition at line 127 of file theme.hxx.

Referenced by getFillStyle().

◆ maFontScheme

FontScheme oox::drawingml::Theme::maFontScheme
private

Definition at line 131 of file theme.hxx.

Referenced by getFontStyle(), and resolveFont().

◆ maFontSchemeName

OUString oox::drawingml::Theme::maFontSchemeName
private

Definition at line 124 of file theme.hxx.

◆ maFormatSchemeName

OUString oox::drawingml::Theme::maFormatSchemeName
private

Definition at line 125 of file theme.hxx.

◆ maLineStyleList

LineStyleList oox::drawingml::Theme::maLineStyleList
private

Definition at line 129 of file theme.hxx.

Referenced by getLineStyle().

◆ maLnDef

Shape oox::drawingml::Theme::maLnDef
private

Definition at line 134 of file theme.hxx.

◆ maSpDef

Shape oox::drawingml::Theme::maSpDef
private

Definition at line 133 of file theme.hxx.

◆ maSupplementalFontMap

std::map<sal_Int32, std::vector<std::pair<OUString, OUString> > > oox::drawingml::Theme::maSupplementalFontMap
private

Definition at line 132 of file theme.hxx.

◆ maThemeName

OUString oox::drawingml::Theme::maThemeName
private

Definition at line 123 of file theme.hxx.

◆ maTxDef

Shape oox::drawingml::Theme::maTxDef
private

Definition at line 135 of file theme.hxx.

◆ mpTheme

std::shared_ptr<model::Theme> oox::drawingml::Theme::mpTheme
private

Definition at line 138 of file theme.hxx.

◆ mxFragment

css::uno::Reference< css::xml::dom::XDocument> oox::drawingml::Theme::mxFragment
private

Definition at line 136 of file theme.hxx.


The documentation for this class was generated from the following files: