summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/swfont.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/inc/swfont.hxx')
-rw-r--r--sw/source/core/inc/swfont.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index f347d20c3c2d..b6c0e2bc13b1 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -127,6 +127,7 @@ class SwFont
// CTL == Complex text layout ( Hebrew, Arabic )
SwSubFont aSub[SW_SCRIPTS]; // Latin-, CJK- and CTL-font
Color* pBackColor; // background color (i.e. at character styles)
+ Color m_aHighLightColor; // highlight color
Color aUnderColor; // color of the underlining
Color aOverColor; // color of the overlining
@@ -182,6 +183,8 @@ public:
// set background color
void SetBackColor( Color* pNewColor );
inline const Color* GetBackColor() const{ return pBackColor; }
+ void SetHighLightColor( const Color& aNewColor );
+ const Color& GetHighLightColor() const { return m_aHighLightColor; }
inline void ChkMagic( ViewShell *pSh, sal_uInt8 nWhich )
{ if( !aSub[ nWhich ].pMagic ) GoMagic( pSh, nWhich ); }
@@ -1000,6 +1003,13 @@ inline void SwFont::SetShadowLocation( const SvxShadowLocation aLocation )
aSub[SW_LATIN].pMagic = aSub[SW_CJK].pMagic = aSub[SW_CTL].pMagic = 0;
}
+inline void SwFont::SetHighLightColor( const Color& aNewColor )
+{
+ m_aHighLightColor = aNewColor;
+ bFntChg = sal_True;
+ aSub[SW_LATIN].pMagic = aSub[SW_CJK].pMagic = aSub[SW_CTL].pMagic = 0;
+}
+
/*************************************************************************
* class SwUnderlineFont
*