summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuke Deller <luke@deller.id.au>2014-07-12 21:49:50 +1000
committerLuboš Luňák <l.lunak@collabora.com>2014-08-19 17:56:20 +0200
commitbcbeac44ca54f41fb80a027214b9eb2ec1eb14dd (patch)
treeecc598533a9837f61868f7c05be0c04bc65d2713 /vcl
parent0107cb29903c1e2fdf4c7390671a8b8bc6900e54 (diff)
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. Change-Id: Iacc9bba0720c11414da3e852892cff301ebbc4fe (cherry picked from commit b4ccde72b8e2e45e7276d5b08b182495a1b1a617) Signed-off-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
0 files changed, 0 insertions, 0 deletions