diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-09-29 10:24:53 +0200 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-09-29 11:27:34 +0200 |
commit | 8b949134441056a1455d67ddfdd7e0bc5f2ee682 (patch) | |
tree | ba258b0f7df5b3ae7b5fbc4cf484cebcf51f389a /sw/inc/charatr.hxx | |
parent | 1b0f6be2d06154f6ecab2f6ee930fa3c5a62f01d (diff) |
fdo#65403, fdo#65404 DOCX export/import of character highlight
Steps
-Add a new character attribute (RES_CHRATR_HIGHLIGHT)
-Get this character attribute via SwFont class just like
background
-If has highlight, then paint that, otherwise paint background
-Extend UNO API
-Implement DOCX export and import filter
Note: By now character highlight can't be set via UI.
It's a next step to add a highlight option.
Change-Id: I7f81e173744bf256891487f898d06dbf372a2f88
Diffstat (limited to 'sw/inc/charatr.hxx')
-rw-r--r-- | sw/inc/charatr.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/charatr.hxx b/sw/inc/charatr.hxx index b0a77c27e7d8..e2482059b8fb 100644 --- a/sw/inc/charatr.hxx +++ b/sw/inc/charatr.hxx @@ -87,6 +87,8 @@ inline const SvxBlinkItem &SwAttrSet::GetBlink(sal_Bool bInP) const { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); } inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); } +inline const SvxBrushItem &SwAttrSet::GetChrHighLight( sal_Bool bInP ) const + { return (const SvxBrushItem&)Get( RES_CHRATR_HIGHLIGHT, bInP ); } inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); } inline const SvxTwoLinesItem &SwAttrSet::Get2Lines( sal_Bool bInP ) const @@ -152,6 +154,8 @@ inline const SvxBlinkItem &SwFmt::GetBlink(sal_Bool bInP) const { return aSet.GetBlink(bInP); } inline const SvxBrushItem &SwFmt::GetChrBackground(sal_Bool bInP) const { return aSet.GetChrBackground(bInP); } +inline const SvxBrushItem &SwFmt::GetChrHighLight(sal_Bool bInP) const + { return aSet.GetChrHighLight(bInP); } inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( sal_Bool bInP ) const { return aSet.GetEmphasisMark(bInP); } inline const SvxTwoLinesItem &SwFmt::Get2Lines( sal_Bool bInP ) const |