/source/mai/

ibreoffice-7-6+backports'>distro/lhm/libreoffice-7-6+backports LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/unoport.hxx
AgeCommit message (Collapse)Author
2024-03-07tdf#143148 Use #pragma once instead of include guardsJonah Janzen
Uses #pragma once in several files under sw/source/core/inc. Change-Id: I3052462232665a4efa301afd51e9f64fa3567c44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164517 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-12-29use more concrete UNO types in swNoel Grandin
Change-Id: I00e5222fa0943543fb5f1993a040d0836a8c9c9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161392 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-09-18use more concrete UNO types in swNoel Grandin
Change-Id: I028032671a346e1d046b846d3f9617b5a12ffd70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156998 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-09-17remove unnecessary dynamic_cast around SwXTextNoel Grandin
Unusually, we cannot use rtl::Reference to hold SwXText, because rtl::Reference assumes that its pointee is a subclass of OWeakObject, which SwXText is not (and we cannot make it so because the UNO bridge does not support virtual base classes). So we have to use css::uno::Reference<SwXText> and carve out an exception in loplugin:refcounting. Change-Id: If3a1307e30fdcd3b47aa665252be081fb5063400 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156982 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-21XUnoTunnel->dynamic_cast in SwXTextPortionNoel Grandin
Change-Id: I2994fc3197de34ef756fcba27d111c7597af6aae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-21XUnoTunnel->dynamic_cast in SwXTextPortionEnumerationNoel Grandin
Change-Id: I85deec68e8ed99eb9fe266ac90da04087ab1e075 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145921 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-12-19sw: ODT import/export of DOCX's paragraph marker formattingMiklos Vajna
The bugdoc had a numbering, where the paragraph marker was explicitly formatted to a custom sans font, and this font is also used for the numbering portion's font. This was imported from DOCX correctly, but once you save to ODT and reload, the font used in the numbering portion changed from sans to serif, which is incorrect. The reason for this seems to be that earlier 5ba30f588d6e41a13d68b1461345fca7a7ca61ac (tdf#64222 sw: better DOCX import/export of paragraph marker formatting, 2019-09-06) introduced support for storing this paragraph marker formatting in RES_PARATR_LIST_AUTOFMT, but this was lost on ODT export / import. Fix the problem by 1) adding the autostyle to the autostyle pool, so the font gets written when writing automatic char styles 2) extending SwXTextPortion to have a mode where it exposes the RES_PARATR_LIST_AUTOFMT of the current text node and 3) improving lcl_CreatePortions() to expose a trailing empty text portion that works with these properties. This also required adjusting CppunitTest_sw_ooxmlexport2's testFdo64238_b, which explicitly asserted that the format of the paragraph marker is not exposed in the UNO API text portion enumeration. An additional improvement would be to go with a more explicit markup in the ODT output for RES_PARATR_LIST_AUTOFMT, but we would need to decide what name to use there, since currently we call this paragraph marker formatting RES_PARATR_LIST_AUTOFMT / ListAutoFormat, and somewhat confusingly this is primarily about paragraph marker formatting, not lists / numberings (that is just a consequence). Change-Id: I19c7eed19c6fc85c251ef87a5181c0719a0a382c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144447 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2022-08-12unique_ptr->optional in SwXTextPortionNoel Grandin
Change-Id: I6b55ed9fb907473ff2e44bfa0bd5ccced750ca60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138158 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-12clang-tidy modernize-pass-by-value in swNoel Grandin
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-07-21tdf#119840 don't load redlines in lcl_FindParagraphClassificationFieldNoel Grandin
we don't need them here. Shaves 10% off load time Change-Id: I38050c131af24bf0cc7cadb71d0d4d9fa7a5a9f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137290 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>