summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2018-06-05tdf#98094 make header able to drag in Navigator root content view afterJim Raykowski1-0/+3
...first drag is done from all categories content view Change-Id: If76b8fa02a60009e2b60b2b57bae6e0519bf8e2d Reviewed-on: https://gerrit.libreoffice.org/53832 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> (cherry picked from commit 0cde287d450700f05a547ce5a334ca137e7ff531) Reviewed-on: https://gerrit.libreoffice.org/55309
2018-06-04SwNumberingTypeListBox fully replaced nowCaolán McNamara10-20/+20
Change-Id: I7610cf8f602c6939dc994dd4c418d9e07aaf6b20 Reviewed-on: https://gerrit.libreoffice.org/55217 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/55252 Tested-by: Jenkins <ci@libreoffice.org>
2018-06-04weld SwSectionFootnoteEndTabPageCaolán McNamara5-418/+178
Change-Id: Ib4246a2f90780a005e79e2d071b43a5629a3242c Reviewed-on: https://gerrit.libreoffice.org/55216 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit cd08397eedbe347784a3ac569481a17a8391e7b2) Reviewed-on: https://gerrit.libreoffice.org/55236
2018-06-02A few assorted improvements to translatable strings before freezeAdolfo Jayme Barrientos1-2/+2
Change-Id: I30d315e0c82afc112cdb4fef17339c1b78b5643a (cherry picked from commit 96895d6a7d07f51a59d8775d5a4fb268e9f075d1) Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-on: https://gerrit.libreoffice.org/55202
2018-06-01Resolves: tdf#116268 use on/off data, not pos to determine which is whichCaolán McNamara1-1/+1
Change-Id: I73127bc6ea78daaf1e79596067c1cdeb692e1566 Reviewed-on: https://gerrit.libreoffice.org/55133 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-05-29weld SvxTransformTabDialogCaolán McNamara1-1/+1
Change-Id: Ib6dabd04e3f834b61363d5a620de7f0219a1e644 Reviewed-on: https://gerrit.libreoffice.org/55018 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-29tdf#117503 DOCX import: fix out of sync first/later top marginMiklos Vajna5-35/+10
Improve the synchronization between the first page and follow page style, so that when the DOC export invokes sw::util::IsPlausableSingleWordSection(), it recognizes that originally these were the same Word section. If they don't match up, then the exporter will insert an explicit section break, meaning we get one more page in the export result compared to the original. (cherry picked from commit b7ae863efeb082816cc4fe660527a9650d90e186) Change-Id: I336cf347698187cdede47be2659cec51e4381e85 Reviewed-on: https://gerrit.libreoffice.org/54988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-28tdf#117601 a11y crash after merging cellsCaolán McNamara3-4/+16
this is similar to tdf#87199, in this case the accessibiles for the merged cells are not visible so not removed when their frame is deleted, but remain in the cache pointing to invalid frames. Change-Id: Ibc5b9f27541683b8f3604839fa3d1431380a4039 Reviewed-on: https://gerrit.libreoffice.org/54902 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-24tdf#106390 Intersect the table borders with upper frames.Mark Hung3-4/+30
Also removes dead code because SwTabFramePainter::Insert() is always called with a cell frame and IsTabFrame() always returns false. Change-Id: I2505d876d20e44ded1faf760bc3b7b1d34b0fd8d Reviewed-on: https://gerrit.libreoffice.org/54684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-24rework custom widget welding to enable inheritenceCaolán McNamara17-170/+152
Change-Id: I0d391b3fe9d2d610ae41e2a03cd2e195a866e103 Reviewed-on: https://gerrit.libreoffice.org/54681 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-24coverity#1435749 silence Uncaught exceptionCaolán McNamara4-7/+7
and coverity#1399120 Uncaught exception Change-Id: If411cd6a392636c6ac99f1ae330b16611b24df93
2018-05-24coverity#1435748 silence Unchecked return valueCaolán McNamara1-1/+1
Change-Id: Iba303276f9c9564eb4afe2a9238b009dc8bbc9d3
2018-05-24[Pardus] tdf#92685 Add insert page count option to header menuGulsah Kose2-0/+13
This patch is sponsored by ULAKBIM/Pardus project. Change-Id: I5ecca4f58ec0ecf6a639153b52a4424af1966820 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/54687 Tested-by: Jenkins <ci@libreoffice.org>
2018-05-24revert tdf#76817 ooxmlimport: connect Heading to existing numbersJustin Luth1-4/+9
tdf#50774 has an example document which was broken by 6.1 commit 8e9e705de29a1a3d9b964c9350aa2a3a17cce6f9. Reverting does a couple of things: -go back to previous behaviour (right or wrong) - no regression. -gives an opportunity to find documents broken by reverting - i.e. it will give an indication as to which state has more broken docs. Can be re-visited in 6.2. -gives me an option to escape from this horrible mess without causing a regression in a production release of LO. Change-Id: Ib594b76d5533a0c4807cf70ef706c107e52cddcf Reviewed-on: https://gerrit.libreoffice.org/54293 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
2018-05-23sw: prefix members of SwScriptInfoMichael Stahl2-82/+86
Change-Id: I1272d53d602052b09101bed8cf0fb4a19fecf52d
2018-05-23sw: fix max->min in SwTextNode::GetScalingOfSelectedText()Michael Stahl1-1/+1
(regression from b1ac01de06262bda39be7f970fbceeda9b267fe4) Change-Id: Ic2e835f19aaa4e9b26741c409515fc8d26cab1d3 Reviewed-on: https://gerrit.libreoffice.org/54707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-05-23toolbar:id is not valid attribute of toolbar:toolbarChristian Lohmaier170-170/+170
according to framework/dtd/toolbar.dtd – and having the same ID everywhere also is kinda pointless.. Change-Id: Ia7768be2f951886e39e24d78fc6d69b4f3c84235 Reviewed-on: https://gerrit.libreoffice.org/54665 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2018-05-23tdf#117247 just send a GRAPHIC_ARRIVED hint after updateTomaž Vajngerl1-121/+12
As we always load graphic complete now, we can just hint that it has arrived. In the future we might properly restore retrieving the stream of a graphic throught link manager, but not creating the partial graphic from it - just an async retrieval of the bytes. The graphic should then always be created completely with the GraphicFilter. Change-Id: I8560c9d41a057d228aa558316131ba99d436645b Reviewed-on: https://gerrit.libreoffice.org/54693 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-05-23tdf#115386: Show Mail Merge toolbar for documents with MM fieldsMike Kaganski2-0/+39
Change-Id: I357a30d72c5ac4af8c64b82b4cc61c3bd606940a Reviewed-on: https://gerrit.libreoffice.org/54612 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-23ofz#8473 Null-dereference READCaolán McNamara1-1/+1
Change-Id: Id6578d180fec3738be127993f02aaf45af915688 Reviewed-on: https://gerrit.libreoffice.org/54682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-23tdf#117505 RTF export: fix incorrect header distance for first/follow pagesMiklos Vajna5-1/+26
In case the first and the follow page format has different header distances, the DOC and DOCX import work with the distance from the first page format when they take the last item from the MSWordSections container at the end of the export. RTF writes section info before the document content, and in case there are separate first and follow page formats, then we work with the follow format since commit 20a53cb9e9c7b797c091fe6ac6a34dfb28c61304 (INTEGRATION: CWS limerickfilterteam08 (1.16.32); FILE MERGED, 2003-09-01) as a fix for i#13107. There is no perfect solution here, the sw doc model can store different header distances for first and follow pages, while Word works with a single distance. But RTF/DOCX/DOC import puts the relevant header distance to the first page format and DOCX/DOC export reads the distance from there, so be consistent and do the same in the RTF export as well. This means the DOCX import -> RTF export -> RTF import sequence from the bugreport will result in a correct header distance. Change-Id: I3f1fe3080360702c41d680b8785cc3602e74685e Reviewed-on: https://gerrit.libreoffice.org/54680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-22ofz#8442 Integer-overflowCaolán McNamara1-2/+7
Change-Id: I8d09ce583abac38420646b60b83f56e02eb48cab Reviewed-on: https://gerrit.libreoffice.org/54656 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-22tdf#117171 support localized sequence numbering stylesLászló Németh1-1/+1
for example, illustration and table numbering in ordinal and cardinal number names and ordinal indicators. Change-Id: I1911d40aba1b18230a49b2e968af2753d1eeb6f3 Reviewed-on: https://gerrit.libreoffice.org/54672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22Fix typosAndrea Gelmini2-2/+2
Change-Id: I5ad14286712e27e8d15174c9ed420bf93367d041 Reviewed-on: https://gerrit.libreoffice.org/54579 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22db04be037b611e296ef9f2542322c52ed82d7a2b follow-up: no new log areaMike Kaganski1-15/+16
Change-Id: Ib0dc0240db4840d3e93f1816d4288644d9e308f0 Reviewed-on: https://gerrit.libreoffice.org/54660 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22cleanup redundant variableMike Kaganski1-3/+2
Change-Id: I9cd40e3752cbfa85d8bf294f8ac444f88d08a881 Reviewed-on: https://gerrit.libreoffice.org/54657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-22sw: prefix members of WW8StyleMiklos Vajna3-92/+92
Change-Id: Ib42250d293b7dc5ae5f4dca8687d8052db8da21e Reviewed-on: https://gerrit.libreoffice.org/54653 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22tdf#117171 unit test for localized page number numbering stylesLászló Németh2-2/+2
Change-Id: Iad92cbe0b0376725c3078d26a4f3201d072c3c16 Reviewed-on: https://gerrit.libreoffice.org/54554 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22tdf#117171 support localized page number numbering stylesLászló Németh4-11/+15
in ordinal and cardinal number names and ordinal indicators. Change-Id: I35fa9c5c31b31f112ac0bb7feb5d310daca819e1 Reviewed-on: https://gerrit.libreoffice.org/54553 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22tdf#108523 Remove @author annotationsAbhyudaya Sharma10-181/+25
Change-Id: Icd9cd2c17657001058f09c4042804a91b4f1d1b1 Reviewed-on: https://gerrit.libreoffice.org/54539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22Fix svg to base64 conversionSamuel Mehrbrodt1-1/+1
This reverts part of ab14a9708d2937bc767c14542610ce91b56dda1e which had a questionable fix by unconditionally removing the first 8 bytes of the svg which led to svgs starting with rsion="1.0" encoding="utf-8"?> instead of <?xml version="1.0" encoding="utf-8"?> Change-Id: I8c4d78db1794473d20ddd77019ae81b88be0bb03 Reviewed-on: https://gerrit.libreoffice.org/54550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-21tdf#117189 Fix table InsertRow redoJim Raykowski1-1/+1
Change-Id: I92ce18105550d9514b18b81080cfd0c19dfe648b Reviewed-on: https://gerrit.libreoffice.org/53618 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-05-21sw: Ask current datetime only onceTakeshi Abe2-4/+6
Change-Id: I99bed9a09ed1701ce441ddb0a19b5259ab37f135 Reviewed-on: https://gerrit.libreoffice.org/54621 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-21dont use SwClient/SwModify in unocore: RefMarkBjoern Michaelsen2-34/+30
Change-Id: I021f410793c9debfe5e984d591144636d6793fd6 Reviewed-on: https://gerrit.libreoffice.org/54610 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-21fix navigate by previous headings does not wrap when cursor positionJim Raykowski1-1/+2
...is before first heading unreported bug fix for a patch I made for tdf#115600 Change-Id: I7ccaad387c5ea344cda71d3cc1f185e590a1f586 Reviewed-on: https://gerrit.libreoffice.org/54059 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-05-21Improve placement of tdf#117024/tdf#117283 patchesJim Raykowski1-2/+2
no need to repeatedly call so relocate the patches Change-Id: I87f8be3c1802924e76134d3221a72b04c1a03e54 Reviewed-on: https://gerrit.libreoffice.org/53919 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-05-21tdf#115600 Display messages in FindBar for Footnote navigationJim Raykowski1-0/+29
...and make Footnote navigation wrap Change-Id: Ie4ab6a5d34ba75119f900f46a983a031b84ab51a Reviewed-on: https://gerrit.libreoffice.org/54556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-05-21dont use SwClient/SwModify in unocore: StyleBjoern Michaelsen1-11/+12
Change-Id: I8b2b7378ea21ad1fcfa607aadb0f442838a6cc27 Reviewed-on: https://gerrit.libreoffice.org/54611 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-21dont use SwClient/SwModify in unocore: BookmarkBjoern Michaelsen1-32/+30
Change-Id: Iea03642c6b1de1160b98e3b61e831588bb6207b7 Reviewed-on: https://gerrit.libreoffice.org/54609 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-20dont use SwClient/SwModify in unocore: TextRangeBjoern Michaelsen2-39/+38
Change-Id: Ib87647671776e9c6ef5a9c5a7b75a638452b4555 Reviewed-on: https://gerrit.libreoffice.org/54605 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-20Fix typosAndrea Gelmini1-1/+1
Change-Id: Id225be0ecc357d6864a32d59291e402d98592d81 Reviewed-on: https://gerrit.libreoffice.org/54575 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-05-20[API-CHANGE] change to GraphicBitmap prop. for NumberingLevelTomaž Vajngerl3-11/+9
To make it consistent, change "Graphic" property (added during image handling rework) to "GraphicBitmap" in style::NumberingLevel, which is already used in text::NumberingLevel. Both of them are accessors for the graphic of bitmap bullets. Change-Id: I70f7bccd80fa9949778c49e23de583c6fb32a796 Reviewed-on: https://gerrit.libreoffice.org/54492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-05-20tdf#35798: Hide empty Database fields' paragraphs (+ compat option)Mike Kaganski26-120/+489
With this change, Database fields that expand to empty values behave as if they are "Hidden Paragraph" fields. A compatibility option to enable this behaviour is added. The option is enabled by default, and for any non-native documents (for compatibility with other office suites). For existing (F)ODT documents, the option is disabled for those documents that don't have this setting set, to keep the layout of legacy documents. Change-Id: Ic5e8cb15a3a7d1a765a984eef4b0d97666df7dfd Reviewed-on: https://gerrit.libreoffice.org/54552 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-20Fix typosAndrea Gelmini2-3/+3
Change-Id: I65300af850f5c6f6795fa88e9e33616e38c7657c Reviewed-on: https://gerrit.libreoffice.org/54571 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-20dont use SwClient/SwModify in unocore: FootnotesBjoern Michaelsen2-27/+25
Change-Id: I12000118f34b8b4e37fcc0b7d1b50a32784cc893 Reviewed-on: https://gerrit.libreoffice.org/54578 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-20NB writer: rearrange home color items according to notebookbar.uiandreas kainz1-4/+4
Change-Id: I68a7ef96fdbdd61dfcc32dc322b2d168eb7ad924 Reviewed-on: https://gerrit.libreoffice.org/54594 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-05-20tdf#117502 fix graphical bullets for OOXML and RTFTomaž Vajngerl5-24/+151
This change has multiple parts: - Move "BulletAsImage" test from ODT only to globalfilter and run it on ODT, DOC, DOCX, RTF formats and extend checks of the XGraphic used for the bullets and the size. - Check if GIF is animated as we need to know this in unloaded graphic or bullets aren't rendered correctly if we assume they are animated. - Use "Graphic" property in writerfilter to get the graphic from a XShape and not the "Bitmap" property which returns a Graphic as a MetaFile and not the original Graphic. - Make sure "GraphicBitmap" is filled with XBitmap and not with XGraphic. - Change "testFDO74215" to use the expected bullet size as it is in the original document. Looks like the initial bug was just asserting the bullet size is set to a value (non-zero). Change-Id: I6b151c0bf9f426669e07522f0fc699fbb652046b Reviewed-on: https://gerrit.libreoffice.org/54477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-05-20dont use SwClient/SwModify in unocore: ParagraphsBjoern Michaelsen1-37/+36
Change-Id: I6e7c90bcedcffb33eea4b241592e9c9ddaebd90a Reviewed-on: https://gerrit.libreoffice.org/54572 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-05-19Fix typoAndrea Gelmini1-1/+1
Change-Id: I4f58c7cabb00a152cb2b38a07bbe50a685c1d0a0 Reviewed-on: https://gerrit.libreoffice.org/54540 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org>
2018-05-19Modifie ID for objects in notebookbar_compact.uiandreas kainz1-291/+270
Change-Id: I1e7d489d68847d9ae994b96735af9326fd0de697 Reviewed-on: https://gerrit.libreoffice.org/54505 Reviewed-by: andreas_kainz <kainz.a@gmail.com> Tested-by: andreas_kainz <kainz.a@gmail.com>