diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-08 09:44:07 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-08 09:53:12 +0100 |
commit | cad4afbd1444fe410aef014b01008b03ed4ecbf5 (patch) | |
tree | 0d8f98fefd694af2b9be7d4c90ed4ab0de947096 /sw/source/ui/app | |
parent | e3d3b7bb0c6c8bbe87b3ce4b7c74f2d50fc1a78b (diff) |
sw: add InteropGrabBag for character styles
offapi already documented this, but marked as optional, and previously
only paragraph styles implemented it. Do the same for character styles.
Change-Id: I3e331eb43f325ac8963984b2460db53f1be497a6
Diffstat (limited to 'sw/source/ui/app')
-rw-r--r-- | sw/source/ui/app/docstyle.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx index 8e3736db483e..9fc712fe705f 100644 --- a/sw/source/ui/app/docstyle.cxx +++ b/sw/source/ui/app/docstyle.cxx @@ -436,6 +436,14 @@ void SwDocStyleSheet::SetGrabBagItem(const uno::Any& rVal) SwFmt* pFmt = 0; switch (nFamily) { + case SFX_STYLE_FAMILY_CHAR: + pFmt = rDoc.FindCharFmtByName(aName); + if (pFmt) + { + pFmt->SetGrabBagItem(rVal); + bChg = true; + } + break; case SFX_STYLE_FAMILY_PARA: pFmt = rDoc.FindTxtFmtCollByName(aName); if (pFmt) @@ -463,6 +471,10 @@ void SwDocStyleSheet::GetGrabBagItem(uno::Any& rVal) const SwFmt* pFmt = 0; switch (nFamily) { + case SFX_STYLE_FAMILY_CHAR: + pFmt = rDoc.FindCharFmtByName(aName); + pFmt->GetGrabBagItem(rVal); + break; case SFX_STYLE_FAMILY_PARA: pFmt = rDoc.FindTxtFmtCollByName(aName); pFmt->GetGrabBagItem(rVal); |