[Libreoffice-bugs] [Bug 116394] DocX Import - Word merge fields lose "=" character

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 14 10:08:19 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=116394

Xisco FaulĂ­ <xiscofauli at libreoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bibisected, bisected,
                   |                            |regression
             Status|UNCONFIRMED                 |NEW
                 CC|                            |realitix at gmail.com,
                   |                            |xiscofauli at libreoffice.org
          Component|filters and storage         |Writer
            Version|5.4.0.3 release             |5.4.0.0.alpha0+
     Ever confirmed|0                           |1

--- Comment #2 from Xisco FaulĂ­ <xiscofauli at libreoffice.org> ---
Regression introduced by:

author  Jean-Sebastien Bevilacqua <realitix at gmail.com>  2017-02-16 10:54:33
+0100
committer       Miklos Vajna <vmiklos at collabora.co.uk>  2017-03-30 17:39:00
+0000
commit  c568eb7d3bb4584867f0a1f0a7965f73097f009b (patch)
tree    ea7e6fb1e0d77369a90bc69dd8756f589bb352e4
parent  53c2507bf97867011fd2bfbbac6c86b7fc494338 (diff)
tdf#105975 Add Formula field parsing (docx) in SWriter
Introduction
------------

In MSWord, you can create a formula field (starting with =).
When you save your file as `docx`, this `FORMULA` field is registered
in you file (a field starting with `=`). In its current state,
LibreOffice can't parse the `FORMULA` field in `docx` file.

Context of this fix
-------------------

This fix is entirely located in the `DomainMapper_Impl.cxx` file
because it's where the parsing is done.

How this fix works
------------------

First, we add `FORMULA` support by adding it to the `aFields[]` variable.
Next, to handle the `FORMULA` constant, we add a condition (swith case) in
`DomainMapper_Impl::CloseFieldCommand()` to call `handleFieldFormula`.

Note
----

In function `lcl_ExtractToken`, if command starts with `=`, it's a
`FORMULA` field.


Bisected with: bibisect-linux-64-5.4

Adding Cc: to Jean-Sebastien Bevilacqua

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180314/beeefffe/attachment-0001.html>


More information about the Libreoffice-bugs mailing list