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 setStyleName (const OUString &rStyleName)
 
void setThemeName (const OUString &rThemeName)
 
ClrSchemegetClrScheme ()
 
const ClrSchemegetClrScheme () const
 
FillStyleListgetFillStyleList ()
 
const FillStyleListgetFillStyleList () const
 
FillStyleListgetBgFillStyleList ()
 
const FillStyleListgetBgFillStyleList () const
 
const FillPropertiesgetFillStyle (sal_Int32 nIndex) const
 Returns the fill properties of the passed one-based themed style index. More...
 
LineStyleListgetLineStyleList ()
 
const LineStyleListgetLineStyleList () const
 
const LinePropertiesgetLineStyle (sal_Int32 nIndex) const
 Returns the line properties of the passed one-based themed style index. More...
 
EffectStyleListgetEffectStyleList ()
 
const EffectStyleListgetEffectStyleList () const
 
const EffectPropertiesgetEffectStyle (sal_Int32 nIndex) const
 
FontSchemegetFontScheme ()
 
const FontSchemegetFontScheme () const
 
const TextCharacterPropertiesgetFontStyle (sal_Int32 nSchemeType) const
 Returns theme font properties by scheme type (major/minor). More...
 
const TextFontresolveFont (std::u16string_view rName) const
 Returns theme font by placeholder name, e.g. More...
 
ShapegetSpDef ()
 
const ShapegetSpDef () const
 
ShapegetLnDef ()
 
const ShapegetLnDef () const
 
ShapegetTxDef ()
 
const ShapegetTxDef () 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
 

Private Attributes

OUString maStyleName
 
OUString maThemeName
 
ClrScheme maClrScheme
 
FillStyleList maFillStyleList
 
FillStyleList maBgFillStyleList
 
LineStyleList maLineStyleList
 
EffectStyleList maEffectStyleList
 
FontScheme maFontScheme
 
Shape maSpDef
 
Shape maLnDef
 
Shape maTxDef
 
css::uno::Reference< css::xml::dom::XDocument > mxFragment
 

Detailed Description

Definition at line 57 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 68 of file theme.hxx.

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

◆ getBgFillStyleList() [2/2]

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

Definition at line 69 of file theme.hxx.

◆ getClrScheme() [1/2]

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

Definition at line 63 of file theme.hxx.

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

◆ getClrScheme() [2/2]

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

Definition at line 64 of file theme.hxx.

◆ getEffectStyle()

const EffectProperties * oox::drawingml::Theme::getEffectStyle ( sal_Int32  nIndex) const

Definition at line 55 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 78 of file theme.hxx.

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

◆ getEffectStyleList() [2/2]

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

Definition at line 79 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 43 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 66 of file theme.hxx.

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

◆ getFillStyleList() [2/2]

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

Definition at line 67 of file theme.hxx.

◆ getFontScheme() [1/2]

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

Definition at line 82 of file theme.hxx.

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

◆ getFontScheme() [2/2]

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

Definition at line 83 of file theme.hxx.

◆ getFontStyle()

const TextCharacterProperties * oox::drawingml::Theme::getFontStyle ( sal_Int32  nSchemeType) const

Returns theme font properties by scheme type (major/minor).

Definition at line 60 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 98 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 50 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 73 of file theme.hxx.

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

◆ getLineStyleList() [2/2]

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

Definition at line 74 of file theme.hxx.

◆ getLnDef() [1/2]

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

Definition at line 92 of file theme.hxx.

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

◆ getLnDef() [2/2]

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

Definition at line 93 of file theme.hxx.

◆ getSpDef() [1/2]

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

Definition at line 89 of file theme.hxx.

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

◆ getSpDef() [2/2]

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

Definition at line 90 of file theme.hxx.

◆ getTxDef() [1/2]

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

Definition at line 95 of file theme.hxx.

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

◆ getTxDef() [2/2]

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

Definition at line 96 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 65 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.

◆ setFragment()

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

Definition at line 99 of file theme.hxx.

◆ setStyleName()

void oox::drawingml::Theme::setStyleName ( const OUString &  rStyleName)
inline

Definition at line 60 of file theme.hxx.

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

◆ setThemeName()

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

Definition at line 61 of file theme.hxx.

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

Member Data Documentation

◆ maBgFillStyleList

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

Definition at line 108 of file theme.hxx.

Referenced by getFillStyle().

◆ maClrScheme

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

Definition at line 106 of file theme.hxx.

Referenced by addTheme().

◆ maEffectStyleList

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

Definition at line 110 of file theme.hxx.

Referenced by getEffectStyle().

◆ maFillStyleList

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

Definition at line 107 of file theme.hxx.

Referenced by getFillStyle().

◆ maFontScheme

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

Definition at line 111 of file theme.hxx.

Referenced by getFontStyle(), and resolveFont().

◆ maLineStyleList

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

Definition at line 109 of file theme.hxx.

Referenced by getLineStyle().

◆ maLnDef

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

Definition at line 113 of file theme.hxx.

◆ maSpDef

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

Definition at line 112 of file theme.hxx.

◆ maStyleName

OUString oox::drawingml::Theme::maStyleName
private

Definition at line 104 of file theme.hxx.

◆ maThemeName

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

Definition at line 105 of file theme.hxx.

Referenced by addTheme().

◆ maTxDef

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

Definition at line 114 of file theme.hxx.

◆ mxFragment

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

Definition at line 115 of file theme.hxx.


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