summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2020-05-18officecfg,unotools,cui: add ODF 1.2 Extended / ODF 1.3 versionsMichael Stahl2-5/+5
... to configuration and UI. The new default is ODF 1.3 Extended, which is now ODFVER_LATEST and stored as value "3" in configuration. Adapt a few places related to DocumentDigitalSignatures etc. to new default. Change-Id: I420da4f7787cc864c6bd88470d61b146b9399aa1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93177 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-05-18tdf#127616 DOCX import: fix char style of empty paragraphLászló Németh3-0/+30
When direct character formatting defined in w:pPr/w:rPr overwrites some character style properties (character style defined by w:pPr/w:rPr/w:rStyle), empty paragraphs lost such direct formatting, resulting for example, different page layout by different height of empty paragraphs. Also text of that originally empty paragraphs got different formatting during typing. Co-authored-by: Justin Luth <justin_luth@sil.org> Change-Id: Ic7b3a73d4d7364993cc58073c9e1a09a2711d1b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94308 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-18tdf#92526 DrawingML shape export: fix 0 line widthSzabolcs Toth2-0/+12
0 line width is the thinnest possible line width, but without its explicit export (a:ln w="0"), shape outline was imported with 0.75 pt line width by MSO. Co-authored-by: Balázs Regényi Change-Id: I40f7aefe6358bebe9a3853fe3e7d6faa170bc34c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93968 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
2020-05-18tdf#128782: move UItest to CppunitTestXisco Fauli3-45/+39
Change-Id: I98319183a7bd9abb9ed6b1dd9f85cf00ee701fc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94405 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-18loplugin:unusedmethodsNoel Grandin2-3/+0
Change-Id: I95391ef6ed5154efc2c7705dde22afa59da24a70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94403 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-18MSForms: fix rendering of form field button.Tamás Zolnai2-9/+5
It's not enough to check the paint area. because it's in logic units, which does not change by zooming. Change-Id: I9ee51c03e7edc2c70d91d6ef6dbaaae8c2c7beff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94400 Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-05-18tdf#123622 DOCX VML import: fix relative horizontal alignmentTibor Nagy2-1/+14
Margin (left, right, inner, outer) alignments of VML shapes weren't handled. Co-authored-by: Attila Bakos (NISZ) Change-Id: I5f8ece64707a2d699b71d6151887db05ac39c4f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93723 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-18sw: UITest_writer_dialogs: disable MailMergeWizardMichael Stahl1-1/+2
In a build via ssh, the test hangs while trying to connect to Evolution Data Server that presumably isn't running: 1 in g_cond_wait () at /lib64/libglib-2.0.so.0 2 in e_flag_wait () at /lib64/libedataserver-1.2.so.24 3 in e_client_wait_for_connected_sync () at /lib64/libedataserver-1.2.so.24 4 in e_book_client_connect_sync () at /lib64/libebook-1.2.so.20 5 in e_book_client_connect_direct_sync () at /lib64/libebook-1.2.so.20 6 in connectivity::evoab::(anonymous namespace)::OEvoabVersion38Helper::createClient(ESource*) (this=0x912d150, pSource=0x90c0660) at connectivity/source/drivers/evoab2/NResultSet.cxx:480 ... 35 in SwMailMergeConfigItem::GetResultSet() const (this=0x8f10b30) at sw/source/uibase/dbui/mmconfigitem.cxx:875 ... 63 in SwMailMergeWizard::SwMailMergeWizard(SwView&, std::shared_ptr<SwMailMergeConfigItem> const&) (this=0x8f0f340, rView=..., rItem=std::shared_ptr<SwMailMergeConfigItem> (use count 3, weak count 0) = {...}) at sw/source/ui/dbui/mailmergewizard.cxx:60 Change-Id: I1b43b05509f4e293ce1f00044a05f045bf975ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94364 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-05-18sw: HasBlinkPor() now always returns falseMiklos Vajna2-7/+0
So it can be removed and client code can be adjusted accordingly. Change-Id: Ib3ca86cf147387fdbd646eb46077eff89d4c56f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94397 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-05-17tdf#120394: list format string can be emptyVasily Melenchuk3-6/+7
We need to distunguish when we have list format string, but it is empty (no level text will be diplayed) or it does not exist at all, so we need to fallback to old prefix-suffix syntax. Change-Id: Ifd4ccd5a676db86c39d2ef48e91d191d92b9b2a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94322 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-05-16Update Image dialog property url and addpage alignmentandreas kainz2-186/+148
Change-Id: I2601cc41ff8b7c678ac6d5d0ccce05d17f6be18b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94107 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-05-16tdf#133077: fix lone CR handling in plain text clipboard on WindowsMike Kaganski1-6/+4
Failing to treat CRs without corresponding LFs resulted in 0 inserted in the place of the CR, but the text up to this position not inserted, and pLastStt not updated. Thus all following text was dropped when the insertion was finally performed (when CRLF or EOF was reached), because of the 0 marking end of inserted text. But that was inconsistent with how other Windows applications treated stand-alone CRs, and also with our own handling of them when they happened in the end of the internal read buffer. Change-Id: Idf4876b0cccd4aa3f14f6efede54d27670f55c35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94277 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-05-16loplugin:unusedfieldsNoel Grandin4-19/+0
Change-Id: If0e362cf5b403be63439ec694f3a0e440dfd9bc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94327 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-16CppUnittest: assert shapes in odf filesXisco Fauli22-0/+79
found by bin/check-missing-export-asserts.py Change-Id: I270b5dce748039427aaf5507006a8c145ef1419b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94331 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-15replace hard-coded "1.2" ODF version stringsMichael Stahl1-2/+3
Most of these are calls to DocumentDigitalSignatures::createWithVersion(), where it doesn't make a difference if "1.2" or "1.3" is passed in but maybe it will be different with "1.4". There is another ctor createDefault() which looks appropriate for non-ODF contexts and can also be used when no actual signing or verifying is done. In cases where there's an actual document its Storage has the version. Change-Id: Id636bbf965d9f96c7ed5f50774c509032525b2b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93091 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-05-15CppUnittest: sw: simplify code. use getShapes and getShapeXisco Fauli22-257/+133
Change-Id: I494349b99a122f67ed1f2881faf1a37e4358c55b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94214 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-14DOCX export: fix interaction between the crop and the wrap polygon of imageMiklos Vajna6-13/+40
If the wrap polygon is influenced by crop at import time, we need to do the opposite at export time. Do this for RTF and DOCX, where there is matching import code in writerfilter/, leave DOC alone for now. Test this by changing testFdo76803 into an export test, then seeing how the first point's Y position fails and fixing up the exporter, so we get back the old good value. Change-Id: Ieef18aad3c76f7945c7348201b07bcb27a4cd48d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94246 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-05-14Fix typoAndrea Gelmini1-1/+1
Change-Id: Icab23e9d5dbd70c15373b3fd228e8563b777af71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94068 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-05-14CppUnittest: ww8export: assert pages in odf filesXisco Fauli3-0/+33
Change-Id: Ia1e67cd70c0327a95db96ed4a78fac631017e660 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94113 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-14CppUnittest: rtfexport: assert pages in odf filesXisco Fauli4-0/+24
Change-Id: Iab360691cd23f663b7f6bf00227e8749d4c9e48e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94114 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-14tdf#49247: add sidebar panel for soft edges effectMike Kaganski1-0/+8
Shapes are handled in all modules; images only in draw/impress (TODO). Change-Id: Ib96eb4c36fdb69dd605f9b5a507f67a279797286 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94162 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-05-13Fix translation domains in .ui filesGabor Kelemen4-4/+4
Found with bin/ui-checkdomain.sh Change-Id: I2a3ec2593b9ce0a19efced9020b95dff796e4702 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94153 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Jenkins
2020-05-13DOCX import: fix interaction between the crop and the wrap polygon of imagesMiklos Vajna1-8/+8
Word first applies the crop, then applies the wrap polygon on the remaining visible part of the image. Writer applies the crop on the original bitmap, and even has explicit code to make sure the uncropped bitmap is used for the wrap polygon, see how SwFlyFrame::GetContour() calls SwNoTextFrame::GetGrfArea(), which will extend the resulting size based on cropping. Fix the problem by moving and scaling the wrap polygon, so it ends up where it would in Word. Also adapt testFdo76803, which had a similar crop+wrap polygon case, but the different there is quite small. Change-Id: Iab2adaa81a33eb04e1806b17ed129ac50f5d2aa3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94149 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-05-13tdf#128245: sw: Add unittestXisco Fauli2-0/+14
Change-Id: Iff2d6d8120118c35aa6d3d44016a0a7c2e193ec4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94116 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-13loplugin:unusedmethodsNoel Grandin4-11/+0
Change-Id: Id813d95a90fdbb360dfc8670c0b55b635f633965 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-13CppUnittest: odfexport: assert pages in odf filesXisco Fauli3-0/+59
Also fodfexport and htmlexport Change-Id: Iba218f03cb3a0743c46d6312306819ea8e8e9693 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94115 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-13sw doc model xml dump: show wrap polygon of graphic nodesMiklos Vajna1-0/+37
It seems this is in mm100, counted from the pixel size of the underlying graphic, using the graphic's DPI. Fairly non-trivial, given the rest of sw uses twips. Change-Id: I10c1b6b5fbc231ebb9c4df9cd265424f2a2973bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94102 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-05-13tdf#132807 DOCX import: fix top auto margin in listsLászló Németh2-1/+18
at paragraph style based numbering. See also commit 99b2d53346d4b01b491cd1f7fae3304ac0572e12 (tdf#132802 DOCX import: fix list bottom auto margins). Change-Id: I6bfea3ace5c94f9d45267e309a21ac8a97c20a37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94111 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-13options swapped in SwAccessibilityOptionsNoel Grandin1-4/+4
ever since commit d93f729bf463a5ad12e2c4a49e80fd7ff5622334 #100333# separate accessibility options from view options Change-Id: I54d2c6de98c5d4f0d760d18d3d219710c7d91de9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94094 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-13CppUnittest: ooxmlexport: assert pages in odf filesXisco Fauli15-0/+105
Change-Id: I3ea11ed9c2fa366e4f615df3c417c89758cbe4db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94038 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-13NFC sw: cleanup and make RES_POOLTABSTYLE_DEFAULT consistentJustin Luth6-13/+13
It was introduced in 2016, and shortly thereafter many other styles were added using the full word TABLE. So make this one consistent since the eye just glances over the difference. In fact, in one place a comment even referred it it as _TABLESTYLE_DEFAULT. At first I was going to limit the change to just the one term, but the number of reference for everything was fairly small, so I just made everything consistent. Change-Id: I57cc0d081c4bbd5bcea872259065af483c94a334 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/82997 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-13tdf#132008 Provide NewWindow in Groupedbar compact view dropdownandreas kainz1-0/+13
Change-Id: I4d532c7a31dca83a00d86f52184fb2a151ae2155 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94037 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-05-12Revert "Image dialog property update"andreas_kainz3-340/+382
This reverts commit 951b6a9570ae2665f7b6e7cdd6d24d1fc513ba90. Reason for revert: <INSERT REASONING HERE> Change-Id: I84e8090210d8f4f712b3d8bce37fba8c9dcc6b38 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93988 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-05-12always use the LinkManager's persist as the known refererCaolán McNamara1-8/+2
Change-Id: Ibb1bd9138993adbd8391b524c0cd654ba523cad2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94006 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-05-12Fix the buildStephan Bergmann1-1/+1
...after apparently a mid-air collision between f5636817e7677a3081263df9004940a7d5ac54af "tdf#112287 DOCX frame import: fix default vAnchor" and ec6eaa58addf0d8823f8c56d4ec168ff389da8c5 "fix memory leak of xmlDoc objects" Change-Id: I8fc70ee18aeb4be03b29da66bce666c563933249 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94051 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-05-12tdf#132811 DOCX: fix formula alignment – part 2Attila Bakos1-9/+12
Formula are aligned inline again, but in the right position, fixing both import and export. This partially reverts commit 8b613c4603047dc24aa9b03fb49f4fe1b65af2a3 (tdf#121525 OOXML import: fix formula alignment). Co-author: Tibor Nagy (NISZ) Change-Id: If5c13db749fe5c3b1aee754b47dabc9fabd7ebb9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93631 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-12tdf#132802 DOCX import: fix list bottom auto marginsLászló Németh2-1/+18
of the last list item, when its numbering based on the paragraph style. Before tables, table rows and before paragraphs without numbering or with different numbering list items got a regression from commit 9a132c8fab7d4d70b91e5ed92429c70a0466afcb (tdf#122342 DOCX import: fix bottom auto margin in lists) Change-Id: I23c73d94569e785ec780d708d983764534e356c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93973 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-12tdf#112287 DOCX frame import: fix default vAnchorTibor Nagy2-0/+11
Vertical frame alignment was calculated from above margin instead of the bottom one, resulting bad positions, when vAnchor wasn't defined. Co-author: Attila Bakos (NISZ) Change-Id: I81bcf53ec826d5dcc9790c661d784b507d9ababc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93556 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2020-05-12tdf#127778 DOCX import: fix unexpected heading on non-first page ...Miklos Vajna6-2/+38
... when the first page has a heading Regression from commit 17e51f427b3f0cec74ac8e0a1b3f51189006ae6f (DOCX import: first page header should always set default headers as well, 2014-11-21), the problem is around how to split a first + follow page style on import, and then do the opposite on export. This is described using a single section in OOXML, but Writer has 2 page styles for this (unlike in case of the DOC filter). This means the header margin has to be taken from one of these page styles. The above commit tweaked the import, so the follow page style has the wanted header margin, but this leads to incorrect layout. Fix the problem by tweaking the export instead: it has random access to the doc model, so it can take the header margin from the first page style if needed, and then the import side can be reverted, leading to correct layout. Also remove some leftover debug code in test/, which was added in commit 5352d45dd4a04f8f02cf7f6ad4169126d3b3586a (convert AnimationImport to fast-parser APIs, 2020-02-18). Change-Id: I4bbf7271f3a437e8432399bd1e32e9d24190a501 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94013 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-05-11CppUnittest: Revert all my previous commits asserting pagesXisco Fauli14-753/+0
The problem is that I assumed I could automatically assert all tests where the number of pages is the same at import and export time but I didn't consider the number of pages might be already wrong at import time as it happens with a few docx files. Reverting for now until I come with a better solution Change-Id: Ieddcf7e5f33c99ad35d0c96a12893e0996415aa8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94008 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-05-11tdf#129235 Change the color of active page border in Print PreviewRizal Muttaqin1-1/+1
Change-Id: I12fc5fd2daf37d6f1c5648d2329d9748abfac72a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93521 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-05-11remove archaic Content.xml fallbackCaolán McNamara1-24/+6
there's no evidence that Content.xml (or Meta.xml) was written by any released version to necessitate the fallback reportdesign Settings.xml and Style.xml fallbacks appear to be cargocult influenced by the Content.xml/Meta.xml examples Change-Id: I51d138344edaffc6d21e17c2d28047ea6316304e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93970 Reviewed-by: Michael Stahl <michael.stahl@cib.de> Tested-by: Jenkins
2020-05-11lok: MSForms: send also the placeholder text.Tamás Zolnai2-1/+8
Change-Id: I5cce5af22f56079e840707cfffb01785d7a15c6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93960 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-05-11include <rtl/ustrbuf.hxx>Rene Engelhard1-0/+4
since otherwise it isn't resolvable in !OSL_BIGENDIAN case (like on s390x) Change-Id: I18bc795744e70a459276b2c2d55e35411a5d672f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93865 Tested-by: Rene Engelhard <rene@debian.org> Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-05-11fix buildCaolán McNamara1-1/+1
Change-Id: I6a8f5735f15a6691c277803c5e25989e0df61598 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93955 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-05-11sw: set unique name for shape format even if shape name is emptyVasily Melenchuk1-1/+10
Change-Id: I26cc8ec7ec831286c7afa8e17b94e6c0a270cf20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93479 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-05-11tdf#132766: DOCX export: always try to set bullet font for listVasily Melenchuk5-52/+55
There are some problems with bullet if we use MS Wingdigs bullets and do not specify Symbol font for it. It shiuld be either UTF-8 or Symbol, but not mixture of both. Change-Id: Ie4a6f7e8fee6cfab21a18fc080f33d1bff455dd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93846 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-05-11tdf#95189: docx import: apply list ovverride only onceVasily Melenchuk2-0/+32
List overrides should be applied only once on first list with override appearance in document. Next reference to this list should not override again and reset list numbering. Change-Id: I7a24398d5980ca97a74fa8ad09d91ac9adff15ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93894 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-05-11tdf#132754: DOCX import: changed default list start nubmerVasily Melenchuk2-0/+16
Default value for list numbering startAt is zero. If it is not proveded numbering starts from this value. Change-Id: I2cf7be9063e7bfb8b72d6ba77fcd9507e33bb848 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93899 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-05-11tdf#105478 sw layout: treat minHeight as "do not split row"Justin Luth4-1/+26
Already, if minHeight is greater than the content of the row, then the row will "stay intact" and not split just because there is space for part of it on the preceeding page. However, if the content is greater than minHeight, it can split anywhere and moveBwd - since LO 5.3. At least for MS compatibility, this needs to not be split. But others agreed to change this for ODT as well, especially since this matches pre-5.3 behaviour, and will help at design-time for MS interoperability, as well as making minHeight consistent for the two different scenarios. Change-Id: Id15c44da2e7c38f6d552ffe32f92ab1c6b3c3349 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93414 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>