diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-22 12:13:34 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-22 12:13:34 +0000 |
commit | 066b968eb232ae3f63d5ca7ac8eb584f141a6e73 (patch) | |
tree | 027b86fb42a9b9bb8c107be5e5cdf3ef9049fef9 /oox/inc/oox/drawingml/theme.hxx | |
parent | 150e112c482d844400754a07da78d03e29f1bc29 (diff) |
INTEGRATION: CWS xmlfilter06 (1.4.6); FILE MERGED
2008/06/23 12:55:43 dr 1.4.6.5: final chart font formatting
2008/06/20 14:24:47 dr 1.4.6.4: resolve theme font names, e.g. '+mj-lt' or '+mn-ea'
2008/06/09 15:16:11 dr 1.4.6.3: more chart line formatting, add line dashs to chart dash container
2008/06/06 16:27:51 dr 1.4.6.2: chart formatting: builtin line/fill/effect styles, manual line formatting
2008/05/27 10:40:28 dr 1.4.6.1: joined changes from CWS xmlfilter05
Diffstat (limited to 'oox/inc/oox/drawingml/theme.hxx')
-rw-r--r-- | oox/inc/oox/drawingml/theme.hxx | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/oox/inc/oox/drawingml/theme.hxx b/oox/inc/oox/drawingml/theme.hxx index fd4b1cb7909c..25ae745e5639 100644 --- a/oox/inc/oox/drawingml/theme.hxx +++ b/oox/inc/oox/drawingml/theme.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: theme.hxx,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -34,19 +34,21 @@ #include "oox/helper/containerhelper.hxx" #include "oox/drawingml/clrscheme.hxx" #include "oox/drawingml/shape.hxx" +#include "oox/drawingml/textfont.hxx" namespace oox { namespace drawingml { // ============================================================================ -const sal_Int32 THEMED_INDEX_SUBTLE = 0; -const sal_Int32 THEMED_INDEX_MODERATE = 1; -const sal_Int32 THEMED_INDEX_INTENSE = 2; +const sal_Int32 THEMED_STYLE_SUBTLE = 1; +const sal_Int32 THEMED_STYLE_MODERATE = 2; +const sal_Int32 THEMED_STYLE_INTENSE = 3; -typedef RefVector< FillProperties > FillStyleList; -typedef RefVector< LineProperties > LineStyleList; -typedef RefVector< PropertyMap > EffectStyleList; +typedef RefVector< FillProperties > FillStyleList; +typedef RefVector< LineProperties > LineStyleList; +typedef RefVector< PropertyMap > EffectStyleList; +typedef RefMap< sal_Int32, TextCharacterProperties > FontScheme; // ============================================================================ @@ -64,19 +66,30 @@ public: inline FillStyleList& getFillStyleList() { return maFillStyleList; } inline const FillStyleList& getFillStyleList() const { return maFillStyleList; } - inline const FillProperties* getFillStyle( sal_Int32 nIndex ) const { return maFillStyleList.get( nIndex ).get(); } + /** Returns the fill properties of the passed one-based themed style index. */ + inline const FillProperties* getFillStyle( sal_Int32 nIndex ) const { return maFillStyleList.get( nIndex - 1 ).get(); } inline LineStyleList& getLineStyleList() { return maLineStyleList; } inline const LineStyleList& getLineStyleList() const { return maLineStyleList; } - inline const LineProperties* getLineStyle( sal_Int32 nIndex ) const { return maLineStyleList.get( nIndex ).get(); } + /** Returns the line properties of the passed one-based themed style index. */ + inline const LineProperties* getLineStyle( sal_Int32 nIndex ) const { return maLineStyleList.get( nIndex - 1 ).get(); } inline EffectStyleList& getEffectStyleList() { return maEffectStyleList; } inline const EffectStyleList& getEffectStyleList() const { return maEffectStyleList; } - inline const PropertyMap* getEffectStyle( sal_Int32 nIndex ) const { return maEffectStyleList.get( nIndex ).get(); } + /** Returns the effect properties of the passed one-based themed style index. */ + inline const PropertyMap* getEffectStyle( sal_Int32 nIndex ) const { return maEffectStyleList.get( nIndex - 1 ).get(); } inline FillStyleList& getBgFillStyleList() { return maBgFillStyleList; } inline const FillStyleList& getBgFillStyleList() const { return maBgFillStyleList; } - inline const FillProperties* getBgFillStyle( sal_Int32 nIndex ) const { return maBgFillStyleList.get( nIndex ).get(); } + /** Returns the bg-fill properties of the passed one-based themed style index. */ + inline const FillProperties* getBgFillStyle( sal_Int32 nIndex ) const { return maBgFillStyleList.get( nIndex - 1 ).get(); } + + inline FontScheme& getFontScheme() { return maFontScheme; } + inline const FontScheme& getFontScheme() const { return maFontScheme; } + /** Returns theme font properties by scheme type (major/minor). */ + const TextCharacterProperties* getFontStyle( sal_Int32 nSchemeType ) const { return maFontScheme.get( nSchemeType ).get(); } + /** Returns theme font by placeholder name, e.g. the major latin theme font for the font name '+mj-lt'. */ + const TextFont* resolveFont( const ::rtl::OUString& rName ) const; inline Shape& getSpDef() { return maSpDef; } inline const Shape& getSpDef() const { return maSpDef; } @@ -94,6 +107,7 @@ private: LineStyleList maLineStyleList; EffectStyleList maEffectStyleList; FillStyleList maBgFillStyleList; + FontScheme maFontScheme; Shape maSpDef; Shape maLnDef; Shape maTxDef; |