don't write extension elements into ODF namespaces, related fdo#45266

We will still import the old elements but only write them into the
lo-ext namespace. Also it will only be exported for ODF 1.2 extended.

(cherry picked from commit 88d3931d92bc89519acf95f0510f6f2a6ff7c72c)
Signed-off-by: Michael Stahl <mstahl@redhat.com>

Backpoting the export part of this too since the attributes were added
in LO 4.3 so the change has very limited impact.

Conflicts:
	xmloff/source/chart/PropertyMap.hxx

Change-Id: I1c41716b8b16e186ec84767b4b3a636d083162b8
fdo#87110: xmloff: don't catch IllegalArgumentException here

There are at least 2 callers of InsertTextContent() that have
non-trivial catch handlers for this exception, which aren't called now.

(regression from bebf8ccfba37f77d6a43c7874249b31736467b17)

Change-Id: I085b710dfd5877e9b7e71610951543eddf6a6e46
(cherry picked from commit b86f5530161a417d31e28e75408ee80352fadad7)
sw: don't assert when SwXBookmark creates duplicate CrossRef*Bookmark

The bugdoc of fdo#87110 has a couple such duplicates.  Check for it and
let SwXBookmark throw an IllegalArgumentException.

Change-Id: I460dc3a8d9c554c194a32a73526e13422ddd1c52
(cherry picked from commit 7a12360e1f2c0a5bc0927131a750740d35cfd1ab)
xmloff: make the export of the horrible field marks aware of auto-styles

When exporting the .DOC bugdoc of fdo#87110 to ODF, the auto-styles
export will iterate over the fieldmarks in the page header and add the
attributes for them but not export the elements, so the first auto-style
gets a bunch of duplicate attributes.

Change-Id: I3fcf39f03e3d9ae5fca661efa7eb4bbb3eab9f5c
(cherry picked from commit 06f85d41d02ebef76487b230f35f2ec638c46c8b)