abi#10076 RTF export: handle frames without a valid anchor point

Ideally all frames have an anchor point in the maFrames vector, as
provided by MSWordExportBase. If that's not the case, then we have no
idea what would be a valid anchor point: just export those as inline, as
we did before.

(cherry picked from commit 2f33111510c87ca310fde346e223bd6e750b2248)

Change-Id: I81134d9fb8dc4ca166084964d277ac02ceccde7b
Related fdo#38054 fdo#82114: Don't crash when opening this document.

The document itself is (I think) corrupted, but we shouldn't crash anyway.

(cherry picked from commit fd859ee5802d6fa353526e632b49a8208444769e)

Change-Id: I7ecfaed7003de2976e47992c89bb695a5cdffda4
Related: fdo#82114 Kill copy'n'paste.

(cherry picked from commit 07338e20663f9a52f819d0d0c93e8599406d1ff2)

Conflicts:
	writerfilter/source/dmapper/DomainMapper_Impl.hxx

Change-Id: I3d457efc89873ca92a4458b1ac0a125848c942a8
Related: fdo#82114 Copy first-header-footer test from ww8 to ooxml

The test document was converted from doc to docx using MS Word 2010.

Several fixes were required to make this test pass:

- Do not clear the "FirstIsShared" property on page styles, as the code
  instead uses the old fashioned method of translating a Word section
  with "different first page header/footer": two page styles linked
  together, the first page style and the follow page style.
  (Also remove a wrong test case which checks the FirstIsShared property)

- Do not clear the "HeaderIsShared"/"FooterIsShared" properties on the
  first page style, only on the follow page style.

- Actually set the "FollowStyle" property on the first page style to
  link it to the follow page style.  This didn't matter for the very
  first Word section because it was mapped to the default page styles
  "First Page" and "Standard" which are already linked, but it does
  matter for subsequent Word sections.

- For some reason setting a new page style at a section break was
  excluded in the case where the following section had a title page.
  Remove this exclusion.

- The exclusion mentioned in the last point was masking that bnc#751077
  was not entirely fixed.  To resolve that issue:
  When checking if the last paragraph of the section is empty, consider
  not just text content but also shapes.

- Remove a workaround for bnc#780843 involving copying of headers and
  footers from the "Standard" (first section) page style in the case
  where the following section had a title page.  This workaround is no
  longer needed as the test case passes without it.

(cherry picked from commit b4ccde72b8e2e45e7276d5b08b182495a1b1a617)

Change-Id: Iacc9bba0720c11414da3e852892cff301ebbc4fe
Resolves: fdo#82114 RTF import: fix handling of first page in non-first section

Change-Id: If06c6bcdda97447e6014223d997c7ff8abd64b48
(cherry picked from commit 04fe5e6a31c9701177a744bbc8a53b2f664fe71c)

Conflicts:
	sw/qa/extras/rtfimport/rtfimport.cxx