diff options
author | Justin Luth <jluth@mail.com> | 2024-06-24 13:12:59 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-06-28 01:24:36 +0200 |
commit | 5c6c6a73e9c58ad934a4f89505d5b3e2b781e0b9 (patch) | |
tree | 356889252d23e70712ef8eecb63f26fa117e8d1f /editeng/source | |
parent | 8fc2fd284bca88d491ff5975a7110c188344976b (diff) |
tdf#43767 mso-format layout: no smallcaps applied to numbering
If the paragraph marker is formatted as Uppercase,
then Uppercase is applied to that line's numbering as well.
However, if the marker is formatted as SmallCaps,
it MUST NOT be applied for MSO formats.
Apparently MSO only supports Uppercase and SmallCaps,
not Lowercase or Titlease.
I don't like these adhoc exceptions, so I didn't
attempt to apply them to ODF formats.
Let's keep it simple for ODF - any char format that applies
to the entire paragraph should apply to numbering as well
(except for the existing underline/overline exceptions).
- if you don't like that char attributes apply at all, blame MSO.
- if you don't like that DOCX is missing your goofy formatting,
blame MSO for being inconsistent.
ooxmlexport12's tdf143384_tableInFoot_negativeMargins.docx
is almost interesting because it applies superscript
and small caps. However, the list is already uppercase,
so it can't be used for the test.
make CppunitTest_sw_ooxmlexport21 \
CPPUNIT_TEST_NAME=testTdf43767_caseMapNumbering
Change-Id: I273baebc996adfd001e1c591dbb9aef9272a42f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169476
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/items/svxfont.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index 2df18feb449f..3bd2c8086c07 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -670,6 +670,12 @@ SvxFont& SvxFont::operator=( const SvxFont& rFont ) return *this; } +bool SvxFont::SvxFontSubsetEquals(const SvxFont& rFont) const +{ + return nEsc == rFont.GetEscapement() && nPropr == rFont.GetPropr() + && eCaseMap == rFont.GetCaseMap(); +} + namespace { class SvxDoGetCapitalSize : public SvxDoCapitals |