diff options
author | YogeshBharate <yogesh.bharate@synerzip.com> | 2014-04-04 15:56:03 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-10 08:15:54 +0000 |
commit | a7bc9c1e4977bd3430df69287fa0a8377a686c58 (patch) | |
tree | fa9ebadf62faeaf12f63381115be1cca3e3e74ca /sw/source/filter/ww8 | |
parent | 1d25e1de0b9498e469cb052b2d86bf7f7ae6adae (diff) |
fdo#77051: Preservation of Index field flag '\f'.
Problem Description:
- In LibreOffice, the index field flag '\f' was not
getting preserved after roundtrip as there was no
support for it.
- '\f' field flag is used for Specific Entry Type.
ex. In our case it is "Syn"
Implementation:
- Provided import & export support for Index field flag '\f'
and added UT for the same.
Change-Id: I97c2456dd73c8bdf89ab105f8cac71bf7e2ad164
Reviewed-on: https://gerrit.libreoffice.org/8839
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 5579be46be7c..839d70cb0565 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2132,6 +2132,17 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect ) if (nsSwTOIOptions::TOI_ALPHA_DELIMITTER & pTOX->GetOptions()) sStr += "\\h \"A\" "; + if(nsSwTOXElement::TOX_INDEX_ENTRY_TYPE & pTOX->GetCreateType()) + { + sStr += "\\f "; + OUString sName = pTOX->GetEntryTypeName(); + if(!sName.isEmpty()) + { + sStr += sName; + sStr += sEntryEnd; + } + } + if (!pTOX->GetTOXForm().IsCommaSeparated()) { // In case of Run-in style no separators are added. |