summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-07-09Version 7.2.0.1, tag libreoffice-7.2.0.1libreoffice-7.2.0.1Christian Lohmaier3-0/+0
2021-07-09bump product version to 7.2.0.1Christian Lohmaier1-1/+1
Change-Id: I8f52c1c631d6a6e680fc32ac9fa94404ca243dda
2021-07-09Update git submodulesChristian Lohmaier1-0/+0
* Update translations from branch 'libreoffice-7-2' to ff1d84e8948e2493e0ac9e9acdb4f8e0dc961605 - update translations for 7.2.0 rc1/master and force-fix errors using pocheck Change-Id: I71c26192dc4a8508810a8fe67149ad0ec9dc2874 (cherry picked from commit 299af21d9cc4faa4606f39d897ca9b91c8fd31f6)
2021-07-09Resolves: tdf#143153 null-deref on grouping fit-to-frame obj with anotherCaolán McNamara1-1/+2
Change-Id: I134d15ac980aa34ff274abd03966cd7948390542 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118627 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-09Related: tdf#143153 these are GtkBox properties not GtkGrid onesCaolán McNamara1-3/+2
nothing to do with the crash though Change-Id: If7645a904de9147d20f548017bf5390fc57af6cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118626 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-09tdf#143146 copy functor and arg before calling function that can delete thisCaolán McNamara1-2/+6
Change-Id: I4e29fe6fa4119b709e31156afc5c2a5d08cdc072 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118624 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-09SetParentToDefaultWindow doesn't change parent anymoreCaolán McNamara1-2/+6
but for SalInstanceContainer::move with a null destination we do want to move the widget out of the parent to 'somewhere else' and vcl (unlike gtk) will complain if the new parent is null so continue to use the DefaultWindow as the temporary home. Change-Id: I3d738c11c3a1c07402d1a926d890caf3e657bca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118652 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-08pGetFormatter was already fetched via GetFormatter()Caolán McNamara1-2/+2
so don't need to refetch it here Change-Id: I0a881c1232c5749c4558088a58111908a8c8cb17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118614 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-08SolarMutexGuard::clear called twice where the 2nd call site should undo the 1stCaolán McNamara1-2/+2
since commit 94f8a0e60b7bc5c1176eafe9a36c3f3466bd1408 Date: Thu Mar 20 09:08:10 2014 +0100 Use SolarMutexGuard directly Change-Id: I4b245dd68bf032a1d74fb16b910dc952fd761781 seen with compiler warning of: In member function ‘sal_uInt32 comphelper::SolarMutex::release(bool)’, inlined from ‘void osl::ClearableGuard<T>::clear() [with T = comphelper::SolarMutex]’ at include/osl/mutex.hxx:194:28, inlined from ‘void framework::ImageManagerImpl::reload()’ at framework/source/uiconfiguration/imagemanagerimpl.cxx:1071:25: include/comphelper/solarmutex.hxx:91:22: error: ‘this’ pointer is null [-Werror=nonnull] Change-Id: Ibd074794e4556a6ff34b0dc94099e81e1ae3b349 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118622 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-08tdf#142235 PPTX export: fix styles with placeholdersAttila Bakos (NISZ)4-3/+29
inserting icons and alignment. Regression from commit b6b02e0b4c9d739836e1f61a886ea45b01e6696e (tdf#111903 tdf#137152 PPTX export: fix placeholders). Note: in the unit test document, check fixed vertical position of the second text boxes of Slide 2–4. Change-Id: I3c649db69f94a2e9f49ae7aa11d9cd9d9f6d80d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116828 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118446 Tested-by: Jenkins
2021-07-08vcl: nerf Window::SetParentToDefaultWindow()Michael Stahl1-1/+1
There is a problem with keyboard focus in an Eclipse RCP application on WNT; it is apparently caused by re-parenting calling ImplSalReCreateHWND() and that first transfers the focus to the newly re-created window and when that dies shortly thereafter to the Eclipse top-level window instead of LO child window. Re-parenting doesn't work anyway because mpAppWin is always null outside of unit tests and mpDefaultWin lives outside of time and space and doesn't know about any window the LO window may be embedded in. Re-parenting appears to be unnecessary because if a parent dies with undisposed children that's considered a bug anyway nowadays. (partially regression from 8a2f7704cd0e43304e54bf2281232335cc0979a3 which removed conditionals that limited the reparenting to floating windows) Change-Id: I7a3997d5e714b40918337207ec1387922f86f8e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118588 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 4c6b204fdc0cba873d33d801a9853819c09bdc6e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118621
2021-07-08return value of PixelToLogic ignoredCaolán McNamara1-1/+1
the other uses of SdrObjListPrimitiveHit operate in Logic Position Change-Id: Id6a834a17e6e2252bd4f58d10cd95f7425191203 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118613 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-08Resolves: tdf#122191 BOOLEAN is a keyword, treat it as suchEike Rathke7-29/+105
... to not end up with "BOOL"E"AN" instead, which is a date type with an era year and literal strings. This never worked but only was uncovered by commit ce4fc2fc08be8ea2773194e303ed42d2579e93a0 CommitDate: Fri Mar 2 20:27:45 2018 +0100 Resolves: tdf#115351 convert boolean equivalent format codes to proper Boolean if the format also had to be converted between locales. Also preserve boolean equivalent formats during Excel export and try hard to convert back as much as possible if a literal boolean string format is a Boolean equivalent of the target locale. Change-Id: I54f65c276cbf7bb99e960b6d7053c5fa95fbccb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118591 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 7a58221f800e215934cbcb2d3907c35b44981611) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118510 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-08tdf#132740 don't broadcast if modified status has not changedNoel Grandin1-0/+2
take 10% of the time off Change-Id: I75c8d5e1297de342df711d15260073db59946116 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118531 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 73c9ef661d9ef6237d3fd3c259fd040a545b44cf) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118508
2021-07-08Update git submodulesChristian Lohmaier1-0/+0
* Update translations from branch 'libreoffice-7-2' to aa48c56ee2ce8b011eb55157b3bbeb8f5ea0700b - update translations for 7.2 / master and force-fix errors using pocheck Change-Id: I42420023bbf647224c6e216da57904cedb6b7e89 (cherry picked from commit 6e44dc455cecec8e0109243bf7e2398e4dc1306b)
2021-07-08tdf#142700 DOCX: fix lost track changes of imagesLászló Németh4-1/+78
anchored to characters or paragraphs. Tracked deletions and insertions weren't imported, if they contain only images anchored to character, resulting loss of the document content: i.e. deleted images were reappeared, as not deleted images. Note: because change tracking of the OpenDocument and Writer supports only text range based changes, the fix is a workaround using zero width spaces to create an invisible text around the anchoring point of the images. This workaround is not used, if it's not necessary, i.e. if the image is part of a bigger deletion or insertion, which contains also text, not only an image. Change-Id: Iaae6aae2c01191512c71117a0c788a4147c4cae0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118557 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 8726cf692299ea262a7455adcf6ec25451c7869d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118612
2021-07-08breakpad: don't include the users's env in linux dumpsChristian Lohmaier2-0/+14
Change-Id: I004b862295686789c0a88dc678bd098d81c76421 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117503 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 47282cc577eda78b9cceff0860e74ce7b3f121cd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117728
2021-07-08tdf#142910 sc filter: fix "greater than" or "smaller than" etcBalazs Varga14-135/+122
Filter "greater than" or "smaller than" (>, <, >=, <=) conditions according to the cell number format. Regression from commit: d5c2584bf36d21580db677b231c57f99f49aa2cb (Related: tdf#140968 avoid duplicated filter values) Follow-up to commit: 1f755525189884e4b2824889a6b9dea8933402db (tdf#142402 sc UI: store formatted values in standard filter) Clean-up for commit: d5c2584bf36d21580db677b231c57f99f49aa2cb (Related: tdf#140968 avoid duplicated filter values) Change-Id: I1284892398c9964ca5407b4d617a617f20341107 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118272 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118593
2021-07-08tdf#143059 sw export: fix assert crashAttila Szűcs1-0/+2
Incomplete reset in SkiaSalBitmap::ResetAllData() was followed by a broken scaling of a dummy image without buffer/image data. SvxLineStyleToolBoxControl::statusChanged(....) creates a dummy image via GetBitmapForUISolidLine... deleted its image/buffer data immediately ("no line style" dummy image preview for the line style popup list). But the dummy image wasn't ready, it still needed postponed scaling processed by the GPU. This information wasn't reset by Erase, and without pixel data it couldn't be scaled, so this dummy image became a forever "not ready"/ "waiting to be scaled" image. There are parts in the code that require that the image is already scaled... These parts check if scalings are ended with the assert(mPixelsSize == mSize). Note: Use the following method to start LO with Skia in Linux SAL_USE_VCLPLUGIN=gen SAL_ENABLESKIA=1 ./soffice Co-authored-by: Tibor Nagy (NISZ) Change-Id: I5099eb8671a1c5d16668743f26feb47fe99cd70e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118204 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit aa7b1f2ec7da5b94459f808e151085f4d301afd1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118184 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-08tdf#132740 bypass work if selection has not changedNoel Grandin1-0/+3
takes 10% of the time off Change-Id: Ia0a2f4469088e103f162b7d85abb7fadc5f365cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 2ca614be3eb65d852b2c811c853b754e5e5ecb36) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118509
2021-07-08Resolves tdf#143174 - UNO MoreDictionaries not workingHeiko Tietze2-3/+4
Missing exec method added Change-Id: I2272654ae6ed9d9525c98392a9f65a74a108af02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118412 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2021-07-07WaE: Wodr type 'ActionMapTypesOOo' violates the C++ ODRCaolán McNamara1-1/+1
Change-Id: If0b83e62e6c9905b1ae391fbed7c43b379dce5db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118505 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-07-07tdf#114070 - Only show the last name of the filename without its extensionAndreas Heinisch1-4/+12
In the bullets and numbering dialog, don't show the filename including its extension in the tooltip of the image. Change-Id: I2a37f79e8c57d3126e6607f01756771857440faa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118215 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> (cherry picked from commit 226f7e2ab96fce33a2705ad91ef0d539a6bad7b3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118415 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07EMF+ tdf#142941 Fixes for SrcRect in DrawImagePointsBartosz Kosiorek3-5/+73
The SrcRect could be specified outside of source bitmap. In such cases the Destination bitmap should be displayed as shifted (eg. if position is negative), and scaled properly. Change-Id: Ied6d339703999faaae061802ef6a28e190d5a176 Change-Id: Ia9772ced282684c2c94a261d97d30b53921d6171 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118345 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl> (cherry picked from commit 4992780d2bc996c111b333549314d72f6891308d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118304 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#142922 fixes Round to follow half-to-even roundingbaltasarq2-21/+31
The LibreOffice's Basic Round function does not return values that are compatible with VBA's Round. This can be easily fixed using rtl/round, which has a flag parameter called rtl_math_RoundingMode_HalfEven which rounds real numbers exactly in the expected way. Change-Id: I2215f08427e5777fc2d35f054b635dfa6247af8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118444 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 0eacbfa75132724faaeeb9ea22a1c3e44eefb515) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118493 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07Resolves tdf#137160 - Thin space before f./ff. in en_USHeiko Tietze1-2/+2
Change-Id: I3a2f2206d9784de2da6af8ea2b882e1ebe6205e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118439 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> (cherry picked from commit 06e48b4beb0f898483211c77adbb2e83d8908cee) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118426 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#142459 Fixed long class names are truncated(gen)Gizem Ozgun1-0/+6
Change-Id: I9c88beb3fc83c23b2e866824985d50567b056f7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118035 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com> (cherry picked from commit 1c8483d2174bc6419829dface97627a4304c8912) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118430 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#142764 sc: import "Same content on first/left page"Daniel Arato (NISZ)3-3/+28
Different header of the first page was never imported (related to the missing UI support), despite its working ODF export. This commit sets the values of those options at ODS file load according to the "display" attribute used to hide or show a particular header/footer. Follow-up to commit 19fa853ce12136b5c14e0c5a0aa906c296b75388 "tdf#121715 XLSX: support custom first page header/footer". Change-Id: I3409ad94a4d3ff86fd7f6d8afede3e7603024515 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117788 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 52beb3907dd3c7e6ae112e263def1005272cecd8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118501 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#141334 - Only show the last name of the filename without its extensionAndreas Heinisch1-2/+6
In the bullets and numbering dialog under customize, don't show the filename including its extension in the context menu of the gallery. Change-Id: Ia3d4277f5b074be78244f0599883f36385a40c8a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118218 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> (cherry picked from commit a646ba6e5ed042756feac16b91739203793f1742) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118414 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#140594 Create proper window peer for FORMATTEDFIELDMichael Weghorn1-0/+1
commit 2a694f9e0e7789b4b3b792a9eedd29366fa10c1c Date: Wed May 6 14:08:07 2020 -0400 lok: fix the window type of the formatted field control had introduced the new 'WindowType::FORMATTEDFIELD' and set it for the 'FormattedField' control (instead of using the previous default value set in the 'SpinField' ctor, which is 'WindowType::SPINFIELD'). So far, this type was not explicitly handled when creating the XWindow peer. Handle it just the same as 'WindowType::SPINFIELD' and return a new 'VCLXNumericField', which e.g. makes sure that a "proper" accessible is created and thus alues of a spin field are announced by the NVDA screen reader (again). (See also commit 33cac418db78f64f7fa84b8e65c01c2b02cf17a7 Date: Fri May 29 16:53:59 2020 +0200 tdf#133498 Make native drawing of FormattedField work (again) which had fixed a similar regression elsewhere.) Change-Id: Ie8a4d279a12a1b83a9cf97f1304d84214b3a2a2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118568 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit cdc752fd5e5b3bf97043b9542867d84827614f2c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118502 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07tdf#143204 svx: fix SID_ATTR_TEXTCOLUMNS_SPACING SID collisionHossein1-2/+2
These two SIDs have the same ID, which is fixed now: * include/sfx2/sfxsids.hrc: #define SID_NOTEBOOKBAR (SID_SVX_START + 338) * include/svx/svxids.hrc: #define SID_ATTR_TEXTCOLUMNS_SPACING ( SID_SVX_START + 338 ) The symptom tdf#143204 is that the tabbed interface was hidden in Impress or Draw, which is now fixed. Looking at b66d87086804460c1986df1b832fd6b2ea075a90 (2014-04-01) we read: As commit 669ad519902e21e0cb3537fb7e203987f75a4077 (colliding SID_SVX_START based ids, 2013-06-24) suggests, new SID_SVX_START-based SID's shouldn't be added to include/editeng/editids.hrc. However, if it was done, at least add a comment about it to include/svx/svxids.hrc, so it becomes obvious that the two slots have the same ID. Also in include/sfx2/sfxsids.hrc:551 slot IDs from SVX (svxids.hrc) ------------------------------------ These SID_SVX_START entries came from include/svx/svxids.hrc, avoid accidentally colliding entries with include/svx/svxids.hrc and include/editeng/editids.hrc. Only add new SID_SVX_START entries to include/svx/svxids.hrc Change-Id: I5e8c14bdbaa72f1b030a686dd5fffc9ae8dd1306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118459 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 8ea9a8bc43ea054521a44dc8e3bc537110ca9e33) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118504 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07Revert "I suspect that we unlikely to use JRE older than 1.3.1_07"Michael Stahl2-5/+48
This reverts commit b3541dea4889b9d0039554f87bd16e55189cf8b1. Reason for revert: The code did not just deal with text encoding differences, but also with properties whose value contains line breaks. For example, OpenJ9 has line breaks in "java.vm.info" and "java.fullversion", which now trigger asserts; also there is "line.separator" but this one happened not to cause problems so far. Change-Id: I3ded8e824e96b6fcf21677dd9ba72cbf58c1d261 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118495 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 515b72fb9275c76ff9f26b0c3c47cac706d92af0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118500
2021-07-07tdf#110993 - Corrected spline calculationAndreas Heinisch1-1/+1
The algorithm in Numerical Recipies in C, 2nd edition in Section 3.3, page 166 states a division rather than a multiplication. Change-Id: I2530c506bc48726539e3de99016892e50d6bb87e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115465 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> (cherry picked from commit e6442b39836f9856aa7b87d1a840158f0cb7d9c4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117974 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-07Update git submodulesMartin Srebotnjak1-0/+0
* Update translations from branch 'libreoffice-7-2' to 28f0646cc41ef976de183d828061e73886887904 - Update Slovenian translation Change-Id: Id555bacc7a2931705b8cdc9d9221c86518e0a12c
2021-07-07tdf#139301 tdf#141933 (related) Translate new preset dash namesGabor Kelemen3-8/+47
Change-Id: I9cd7ad0eca1a6fb471a284fb2828a7ad12816337 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117024 Tested-by: Jenkins Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 8b3ff370ab0fe2e7593a69513c8ff3df35810c4e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118107 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-07-06Related: tdf#125035 Introduce LongDateOrder and handle YDM in DateFormatterEike Rathke4-23/+64
This fixes also unotools/source/i18n/localedatawrapper.cxx:1473: LocaleDataWrapper::scanDateOrder: no magic applicable lv-LV requested lv-LV loaded that is the only locale with a YDM long date order. Change-Id: I776b8706bf5bd3ec11cc46d38fd3613c8df7519f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118482 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 5e3bfdeb5ea4878a2546a7e1e16d0f3b6482024e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118520
2021-07-06Remove now unused LocaleDataWrapper::getLongDate()Eike Rathke2-51/+0
Change-Id: I8e9614a4d77aa8b0c0e68a248ea57f921e3ed424 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118476 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 6e0b7d2aad6f1a041dd9e0e28aa4bf27eb3fc077) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118519
2021-07-06CppunitTest_emfio_emf: add some tolerance in TestDrawStringAlignMiklos Vajna1-6/+15
Commit 574dc1e8ff6ea4214fefd91216fca5146a4ff13e (EMF+ tdf#142995 tdf#142997 tdf#143076 Add alignment support for DrawString, 2021-06-24) added this test, it seems the result depends on what fonts are installed, so add some tolerance. Probably it fails for me (and not on Jenkins) as I have lots of additional fonts installed, e.g. Arial (and not only Liberation Sans). Change-Id: Ie93d1f1efe1fbbf1851ad46f33f5f83c8812e6d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118470 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins (cherry picked from commit 4f33e723900c280c17c75898fb7a59e2e749f93e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118492
2021-07-06tdf#142464: do not escape '/' is AM/PM when importing DOCX.Mike Kaganski3-26/+62
See also commit a2e964afc5187fc1e3b38720ec10ad9856b87020, doing the same for DOC. Change-Id: Ib0ddb36de8589f9264fe857b20a6ef2aa2607c52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118369 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit cd0ab69d4afee0c77884ae17ab9410216695b58b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118413 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-06tdf100961: import fixed date/time field attribute from DOCMike Kaganski2-22/+36
Change-Id: Ic67e1cb2fbdb0e7efdeca67ba5cf72ff30856e80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118357 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 79d31d08146afa0861ceb1705262411449e71ec7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118416 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-06speed up exporting very large spreadsheets to pdf(2)Noel Grandin2-51/+75
e.g. the one in tdf#102216 instead of copying the data we want back and forth, just share it via shared_ptr. takes it from 6min28s to 1m21 Change-Id: I44d174264baa875e1922d1d46ee07de0e8cbaf0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118383 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 580b5f6a3bf671f6590f40795d7cb9e46d52cf9f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118424
2021-07-05DateFormatter: make TextToDate() long date calendar aware, tdf#125035Eike Rathke1-12/+100
Using number formatter to display long date now can generate any arbitrary date string in any calendar known to the locale. Cope with non-default non-Gregorian calendars when parsing such string back to a date and convert to Gregorian for the calendar widget. This currently relies on month names being different between calendars, which isn't fail-proof but at least works for the ar_DZ Hijri->Gregorian case. A better approach would be to remember the calendar used in the number formatter output, but that's not available (yet?). Change-Id: I829655275de4d1983b7e453624efca967b16a3bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118449 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 28859cd06cc699708bb43cb5e4ac7077d3a10f5b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118428
2021-07-05Pass Formatter::StaticFormatter also from weld:DateFormatter, tdf#125035Eike Rathke2-22/+15
Change-Id: I8e6b0e581b9522fb04225fc945e579406a4be208 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118438 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 0335a319c5662f0b849a2231e48338dfeb6aa845) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118427
2021-07-05tdf#140506: fix repeated table header switchingBjoern Michaelsen1-2/+2
this fixes regression from f899c28f210c6565b7227d7665d449f194d2af8e, which asssumed all frames to be listening to the Notifier of the format. That is not (yet) the case. Change-Id: Ib684842c571823eeb72824196ccfdb1df8179e85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118370 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 25e09087d8e2c5cecca1d548c69a263c7bf8b7ca) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118417 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-05Resolves: tdf#143165 Date input must match separator, D,M,Y not part ofEike Rathke1-2/+17
Change-Id: Iae464fd0fc6c480b9a16ccb2f8eb635812c6eeff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118408 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 89a3caee73c476133af804d9a0a650e72e711d95) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118420
2021-07-05speed up exporting very large spreadsheets to pdfNoel Grandin2-18/+3
e.g. the one in tdf#102216 takes it from 27m16s to 6min28s Change-Id: If6cf7dd49cb43f1749da29da91dab6646d4a0626 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118382 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 8de4f0d77073a2a3850bbcdd09aa7f68c223da01) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118419 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-05tdf#119952 DOCX import: fix negative page marginsAttila Szűcs7-82/+190
DOCX body text can overlap with header/footer, if top/bottom page margin is negative. To support this, convert header/footer text content to textbox anchored to header/footer, if needed. Note: possible improvements: 1) Skip this hack, if the header is small enough to not overlap with the body, calculate only the height of the header at the import time. 2) This hack does not fix the case when the top of the header is under the top of the body. (A problem in DOC import, too.) This could be achieved by repositioning the dummy header to the top, and lower the textbox by the same amount. (This would still not resolve the extreme situation, when the body start from 0 mm (in LibreOffice, header must be at least 1 mm). 3) Import of VertOrientation::BOTTOM property seems to be bad, or at least the footer loses this property after a DOCX round-trip, resulting bad footer position. 4) after a round-trip, the 1 mm height of the dummy header increases to 1 line height. Also the "Autofit height" and "Use dynamic spacing" settings are changed, likely related to their missing DOCX export. Co-authored-by: Tibor Nagy (NISZ) Change-Id: I8319c93c6c5a980878ee9956c8ab2953da60409e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117842 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit d656191ec308d4280b93c7169372e543a255d108) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118295 Tested-by: Jenkins
2021-07-05Resolves: tdf#125035 Use number formatter for long date in DateFormatter fieldsEike Rathke3-6/+26
Change-Id: Ib0cd55d9ad4e3abb4839d70c0086063a3f1a90f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118344 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 2cc8ec691cc37b07e4f134bf379164f375b8a481) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118310
2021-07-05Related: tdf#125035 Include day of week in formatindex="19" DATE_SYSTEM_LONGEike Rathke1-1/+1
Change-Id: I3cbbda7592fede575b766f0631c5f4b42a19e03e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118387 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 57e0b8637a0c6f53a43c987df51a00a5a0f3909f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118309
2021-07-05tdf#132776 sw UI: make unique names for custom hatch and gradientJustin Luth1-2/+21
This has already been done in sd, so just copy the idea and adapt it to fit in the sw environment. This fixes LO 6.3.4 regression from 7.0 commit 53c474633c4e658f096669fb0225d751a5701aaf. This reason for this is noted in one of those commits: > However tdf#99908 shows that ODF import doesn't like anonymous > gradients. This is a bug in xmloff style import and should eventually > be fixed there. Here we implement the same band-aid solution > tdf#99908 implements for Impress sidebar Change-Id: I4437ac97b6aa97f2cd27a10c3d593dc97d24e9c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117594 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org> (cherry picked from commit 3f6797c29e9672eba354400f24a669244fd746c0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118311