Commit Graph

484550 Commits

Author SHA1 Message Date
Stephan Bergmann
d9f591bcd9 loplugin:rangedforcopy: Assume non-reference structured binding is intentional
See pending <https://gerrit.libreoffice.org/c/core/+/149026> "tdf#148008: do not
proceed after the marked range" for a use case.

Change-Id: Ief7cbb215068b6f5428c16a72896ef5612204128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149056
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-17 16:47:09 +00:00
Noel Grandin
7a519bc2af move getChartTypeByIndex inside chart2::Diagram
Change-Id: Idff60dbd7c1cdb8c60e7ac07ad3abe3c6b07e321
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149050
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 16:31:35 +00:00
Heiko Tietze
2327015285 Related tdf#97551 - Fixes XHierarchicalNameAccess warning
Change-Id: I965568bfa57449d1227e7ed0967bc05a29edf85f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148998
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2023-03-17 16:27:05 +00:00
Pranam Lashkari
b12c6c9384 jsdialog: enabled paste special dialog
Change-Id: I20833a2d138208ad139d0a4c673f87a0f7eb8f5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148920
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 8665bd300f60a3934d9991a877097112edda325f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149015
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2023-03-17 16:17:00 +00:00
Eike Rathke
993e137681 Related: tdf#153842 {hsb-DE} does not use AM/PM
Switch defaults and remove from 47 date+time edit format code.

Change-Id: I4832c26490adcc369a2d88e524fded724d01e996
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149054
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-03-17 15:44:53 +00:00
Stephan Bergmann
b8f131d4cc Towards literal O[U]String types in C++20
...(where destructors can be constexpr), making
21584b304b "make OUString(OUStringLiteral)
constructor constexpr" and 983c1146ac "actually
make OString(OStringLiteral) constructor constexpr" actually useful and
eventually removing the need for O[U]StringConstExpr again

Change-Id: I55520c1d928758f61e92336206e0f14b6f12a711
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148978
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-17 14:52:05 +00:00
Maxim Monastirsky
796c9c5ac2 sc drawstyles: Move style commands to ScTabViewShell
For them to be available also when shapes are selected.
This commit alone shouldn't cause any change in behavior.

Change-Id: Ic038618fe8b450ef2c93a19efb2e27c41f6de0f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149047
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2023-03-17 14:34:04 +00:00
anfanite396
34f7c8cce9 tdf#145538 Use range based for loops
Change-Id: I546bbcd6de02f9a31db6dcb34b4493bd165c0661
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148527
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-03-17 14:25:46 +00:00
Andreas Heinisch
928957ee04 tdf#151741 - BASIC Organizer: fill various URLs for libraries
Otherwise, libraries cannot be renamed in the BASIC organizer.

Change-Id: I6c78cdee12f8d6128acf68e889fca463ed782477
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148483
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-03-17 14:22:44 +00:00
Uday Sharma
f18b76cad2 tdf#132293 remove some unused imports from uitests
Change-Id: I7a116345e479dd5344396e845ef840bc6b5a6c1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149003
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-03-17 14:15:00 +00:00
Michael Stahl
2f94534311 sw: fix crash on exporting forum-en-3524.odt to PDF
It turns out that the m_bFootnoteNum flag is no guarantee that there is
a SwFootnoteNumPortion, because if it has no width, it will be deleted
in SwLineLayout::CalcLine(); the flag indicates that this is the frame
which would contain the SwFootnoteNumPortion, which appears to be
checked in SwTextFrame::Prepare().

(regression from commit 92f7d3bfedc71bb0a91cf77b0263633c9d0f8d14)

Change-Id: I2f3ff70e6c2bb3379068b285cdd5fd52bc7cecf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149053
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-03-17 14:10:42 +00:00
Miklos Vajna
d477fa8ac1 sw floattable: unconditionally map <w:tblpPr> to SwFormatFlySplit
CppunitTest_sw_ooxmlexport8's testN816593 failed in the
SW_FORCE_FLY_SPLIT=1 case because the re-import of the document merged
two tables into one.

The problem starts earlier, we didn't import the table with a <w:tblpPr>
as a floating table, but we should.

Fix the problem by never going via m_aPendingFloatingTables in the
SW_FORCE_FLY_SPLIT=1 case, since that was only a workaround for layout
limitations. This conditionally reverts commit
78d1f1c283 (fdo#68607 bnc#816593
DomainMapperTableHandler: don't always start a frame, 2013-09-03).

Also add a SwModelTestBase::FlySplitGuard, so it's just a one-liner
change to test the SW_FORCE_FLY_SPLIT=1 case from cppunit. The goal is
to have this on by default once it's mature enough.

Change-Id: I9d94a49f7a0c27dd43e8fd388867c65d6d25f2e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149044
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-03-17 14:10:34 +00:00
Noel Grandin
57914a4084 move getChartTypes inside chart2::Diagram
Change-Id: I43fd96feb1e3d34a5f3327b2e6398ca4b5e9f928
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149049
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 13:46:21 +00:00
DrGigioSan
dc6b93011c store last five most recently used currencies in the currency toolbar drop-down
Refactory
 Cause
   Currency must be added in the MRU list in  SvxCurrencyToolBoxControl::execute
   method.
   Unfortunately in this point the only information available is the number format.
   It is not possibile to infer currency from number format  (e.g: both  USD and
   AUD use symbol $).
 Encapsulating currency data
   In order to solve the problem currency data is enacpsulated in a SvxCurrencyData
   struct. Added a vector of SvxCurrencyData to SvxCurrencyToolBoxControl.
 Static and non static call
   Former static SvxCurrencyToolBoxControl::GetCurrencySymbols has been
   preserved, as it is called by SvxNumberFormatShell.
   A new GetCurrencySymbols is used by the control.
   To avoid code duplication, both functions call a static private function
   inner_GetCurrencySymbols.
MRU Currencies
   MRU currencies are stored in another member vector m_mru_curencies:
   During currencies vector population (inner_GetCurrencySymbols) a space is reserved
   on top of vector for mru currencies.
   A new method addMruCurrency updates m_currencies. This method is called in
   SvxCurrencyToolBoxControl::execute

Change-Id: I6f86179efd1839e31b089e0086b6ddbdda358f31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148896
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-17 12:58:37 +00:00
Noel Grandin
5f0a3a20ef use more concrete types in Diagram::moveSeries
Change-Id: Ic5bb7f36137afe112d1a542bd642355d996cf68c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149048
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 12:47:20 +00:00
Tor Lillqvist
e1c6f36d8b Add a to_string() function to the code generated for UNO IDL constant groups
If the inpt matches one of the constants exactly, the result is the
name of that constant. If the input matches some combination of
constant values that are single bits, the result is the sequence of
the names of those constants joined with plus signs.

For instance, if the IDL has:

constants Constants {
    const byte BIT0 = 1;
    const byte BIT1 = 2;
    const byte BIT2 = 4;
    const byte BIT3 = 8;
}

The result of Constants::to_string(5) is "BIT0+BIT2", and the result
of Constants::to_string(17) is "17".

I am sure there are corner cases that aren't handled as would be
intuitive, especially with types that include unsigned values.
Correspondingly, the semantics of the generated to_string() functions
is not formally defined.

Also add a unit test for the new functionality.

Change-Id: I14aa826d0989ac6dfe97dd5c09119b1601c65643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148995
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2023-03-17 11:46:36 +00:00
Sarper Akdemir
f92721bf18 related tdf#102261: consider ParaTabStopDefaultDistance in SvxRuler
If there's a paragraph scoped tab default distance defined,
use that as the default tab distance in the SvxRuler instead
of the document wide setting.

Change-Id: I9b0e7d0db0b25aee08bd27948b2e462b4a4ee496
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148060
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@collabora.com>
2023-03-17 11:06:43 +00:00
Noel Grandin
0fc4f285b2 move isSeriesMoveable inside chart2::Diagram
Change-Id: I119552a4f1300eafc8b060f567777a74dc11772f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149038
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 11:03:45 +00:00
Pranam Lashkari
529c5494c2 jsdialog: enable style dialog (writer)
Change-Id: Iaf664deeac5c5887f20c9579881cd921868b652f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148794
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit ae69dc05d3de876dade4fa8a9b6f6f693cc7c865)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148973
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2023-03-17 10:45:07 +00:00
Stephan Bergmann
f0ff4243d4 Avoid loplugin:unusedmember crash for templated offsetof
Change-Id: I6cbac308d2911a502381067398d72136ca2b5ae3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149045
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-17 10:27:01 +00:00
Noel Grandin
f5bfc127dd elide some temporary OUStrings
where we are calling
  append(OUString::createFromAscii(
and we can rather call
  appendAscii

Change-Id: I2366b518fe6d8d2484b00bb831cb79fb49bc0293
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 09:41:13 +00:00
Rizal Muttaqin
657743ec52 Colibre: tdf#126689 Jump Up & Jump Down This Level icons
Change-Id: Iebfbeecf43e139f39a70ca58bd3b30076856c4d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149042
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-17 08:47:00 +00:00
Miklos Vajna
90523e10ec sw floattable, legacy: also consier fly position when deciding the bottom
The bugdoc has 2 rows: the 2nd row was split and the master row went to
page 1 and the follow row went to page 2. Word positioned the entire row
to page 2.

The problem seems to be that the layout code wants a "deadline" (so it
can grow the frame to that bottom position), but the deadline depends on
the height: split flys need to fit the body frame, then they can have a
vertical offset (resulting in an overlap between the bottom margin area
& the fly frame), in case the fly frame is still inside the page area.
This means that this deadline depends on the body height, the fly top
and the fly height at the same time. (Or in other words: the overlap is
only allowed if the fly would fit the body frame, but an additional
vertical offset pushes it to the bottom margin area, with an unchanged
height.)

Solve this fly height <-> deadline circular dependency by first checking
against the page size, using the current fly height; and then against
the body height, using the assumed / future fly height (assuming that
the fly will grow so its new height will match the deadline). This
results in a construct where usually you can't grow outside the body
area, but in some limited cases you can (till you only use the bottom
margin area), but only in case you grow your top position as well, which
is Word-compatible, but quite unusual at other places in Writer.

With this, the original tdf#61594 bugdoc gets rendered correctly, once
you opt in with SW_FORCE_FLY_SPLIT=1.

Change-Id: I016df1bad79f4b09abc7e2b4fe9ea613355e3794
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149039
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-03-17 08:24:13 +00:00
Noel Grandin
811e96ae89 move isSupportingFloorAndWall inside chart2::Diagram
Change-Id: Ibc05961b60cabcd3d7421116245713c217b40999
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149037
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 08:17:31 +00:00
Noel Grandin
5b3b1bb06b move isPieOrDonutChart inside chart2::Diagram
Change-Id: Ib0d8c2674bfa4aa38cdf3a6449642407c2373093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149036
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 08:17:22 +00:00
Miklos Vajna
456b02476f sw layout xml dump: extract SwHeaderFrame::dumpAsXml() from SwFrame
Ideally SwFrame should not really know anything about headers.

Change-Id: I96df0d14473564d39368b2af92794a796668676c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149006
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-17 07:18:26 +00:00
Noel Grandin
dfcca2ff48 move getGeometry3D inside chart2::Diagram
Change-Id: I71f557016c0e107b97ad839b0514efbae4f3665b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148977
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-17 06:15:47 +00:00
Rizal Muttaqin
c832bd2103 tdf#126689 Breeze, elementary, KJ, Sifr, Sukapura: Jump + & Jump - This Level
Change-Id: I5f361822048720a68ce2b6fc7246cb7cf7c87fa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148983
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-03-17 05:04:49 +00:00
Baole Fang
d34a3c92eb tdf#152690: Refactor fix
Change-Id: I170eba4968743afbab3cc6aa943706612b3e1a57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149035
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-17 04:46:46 +00:00
Paris Oplopoios
9f0cf00d29 Update view options string based on theme
Update the view options string based on the theme when tiled rendering,
and make sure only the currently active view is updated

Change-Id: Ib24111848f2926fe7ae858ca2e18e946d980e83f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148943
Tested-by: Paris Oplopoios <parisoplop@gmail.com>
Reviewed-by: Paris Oplopoios <parisoplop@gmail.com>
2023-03-16 23:48:10 +00:00
Paris Oplopoios
9310192a4a Add uno command that changes the theme
Add an uno command that changes the theme to the one specified in the
first parameter

Change-Id: Ia0fef2ca698415e07f1943cf80ab667fb5c37238
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148942
Tested-by: Jenkins
Reviewed-by: Paris Oplopoios <parisoplop@gmail.com>
2023-03-16 23:45:34 +00:00
Baole Fang
e12fff12b6 tdf#152690: Fix "!" behavior when it is not the first in a group
Fix "!" behavior when it is not the first in a group.
Add testcases for "!" and Like.

Change-Id: Ia76fa26722b6546d08dd8842d83f55bb0c0ea5ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148720
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-16 21:14:20 +00:00
Andrea Gelmini
2d426a9299 Fix typo
Change-Id: Ic43a5bb4d243b2c4081fcd56130e20ed1c3b43a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149009
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-03-16 20:54:38 +00:00
Caolán McNamara
9a123a6e63 cid#1522030 Uninitialized scalar field
Change-Id: Iaf8ad5edd483da25cad45d91afc27f9cc3aa9040
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149002
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-16 20:19:38 +00:00
Caolán McNamara
aa252a2d01 Resolves: tdf#152704 old image remains underneath when new image drawn
in this dialog preview widget

Change-Id: Id33995d9a9557d235178be0d12cc6b44e146ff4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148997
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-16 20:19:31 +00:00
Xisco Fauli
0c9fafe07d sw: fix null dereference
See https://crashreport.libreoffice.org/stats/signature/SfxDispatcher::ExecuteList(unsigned%20short,SfxCallMode,std::initializer_list%3CSfxPoolItem%20const%20*%3E,std::initializer_list%3CSfxPoolItem%20const%20*%3E)

Change-Id: I7f5471f003798f260d9d015782bd2a798baa22d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148999
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-16 19:12:20 +00:00
Stanislav Horacek
fde1946074 Update git submodules
* Update helpcontent2 from branch 'master'
  to a0ef2acc2d24501a7373ab7ba03ddc9473814b54
  - one character is found without plus in regular expression
    
    reported by Kamil Landa
    
    Change-Id: I53f11b8ccd89340d2545e3c26edd8abee8cf5e9a
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/149005
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 18:33:23 +00:00
Pranam Lashkari
ca12d483ba jsdialog: enabled insert section dialog (writer)
Change-Id: I556973587c2c7f4baab4cf696afe980186e82f6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148930
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit cd428e3e564b9bca0badb5e947f78a6fe3ea39ec)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149014
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2023-03-16 17:17:22 +00:00
Noel Grandin
b209507a57 move setGeometry3D inside chart2::Diagram
Change-Id: I3825349e3889c45bbb5cbc467dad2f100ccd2298
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148952
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-16 17:00:07 +00:00
Noel Grandin
2604dae572 osl::Mutex->std::mutex in CDOTransferable
Change-Id: I44e9305ec4127f9567fb51ce7bf8c26f17727787
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148974
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-16 16:21:14 +00:00
Noel Grandin
45946d9465 osl::Mutex->std::mutex in CMtaOleClipboard
Change-Id: If19fe618de0c316ffa6d74432b03c507b960a891
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148953
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-16 16:21:04 +00:00
Xisco Fauli
40d717c7be CppunitTest_starmath_export: inherit from UnoApiXmlTest
Change-Id: Ib84525664ff8456b4eb8e100aaaea2783babaf30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148994
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-16 16:17:35 +00:00
Stephan Bergmann
3a1fbb70a3 Prepare compilerplugins for C++23 if consteval
...for which clang::IfStmt::getCond returns null

Change-Id: I8b86a033d52de87dedbdf6d867f2b3d3f57c1b5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148979
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-16 16:05:29 +00:00
Xisco Fauli
9affc1f4eb CppunitTest_starmath_import: inherit from UnoApiTest
Change-Id: I77e48dc05c2bd6a36c42e1860a209ed563e71ad8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148988
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-16 16:04:55 +00:00
Xisco Fauli
8cf26e7397 CppunitTest_starmath_export: move code to method
Change-Id: I460ffc51d82ff8b727813228e93a6e0c95c8569a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148993
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-16 15:51:58 +00:00
Sarper Akdemir
f039fe0da3 tdf#102261: pptx export: implement defTabSz ParaTabStopDefaultDistance
Adds export of ParaTabStopDefaultDistance property into defTabSz.

Also adds a unit test that checks pptx roundtrip of the property.

Change-Id: I5be9ea88b15e3e8cab25af79488983a71b96dae1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148539
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-16 15:47:29 +00:00
Khaled Hosny
a8725c24fa tdf#153704: Make sure the last script segment is also added
Change-Id: Id6381d77cdf05c24a1b557206f530f4e004e8e52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148986
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2023-03-16 15:27:36 +00:00
Christian Lohmaier
cea9c205ce Update git submodules
* Update helpcontent2 from branch 'master'
  to 4453c0b2edae4934f87594d5974783c4a1a5ea54
  - convert paragraphs with role="heading" & childelements to → h<level>
    
    and also drop the language that was changed to implied previously/defaults to
    en-US unless specified.
    
    This change doesn't affect translations, only the content of the
    paragraph/headings is extracted.
    
    done with:
    perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>.*?)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
    
    and manually undoing the one that uses <sup>in body that's not valid
    according to the dtd in the h tags.
    
    Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:31 +00:00
Christian Lohmaier
5c78600292 Update git submodules
* Update helpcontent2 from branch 'master'
  to 77cb682cd1b004e7247560e60f603a4bb0565b8d
  - convert plain paragraphs with role="heading" → h<level>
    
    i.e. without child elements and also drop the language that was changed
    to implied in the dtd previously/defaults to en-US unless specified.
    
    This change doesn't affect translations, only the content of the
    paragraph/headings is extracted.
    
    done with:
    perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
    
    (all permutations re order of attributes, and xml-lang="en-US" being
    optional / implied)
    
    Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:10 +00:00
Christian Lohmaier
f709f5d23d Update git submodules
* Update helpcontent2 from branch 'master'
  to 00567a452bb1e270dd2438dcc865359edba56c19
  - convert plain paragraphs with role="heading" → h<level> (localize="false")
    
    done with
    perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")|localize="false"/;} s#<paragraph(((\s+($base)){4})|(\s+($base|xml-lang="en-US")){5})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id} localize="false">$+{body}</h$+{level}>#g'
    
    Change-Id: I5d2b1b6326801adb8d000b3353d314d2fc9f322d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148796
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:17:53 +00:00