summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2017-04-18convert readonly menu to .uiCaolán McNamara
Change-Id: Ia9400b3c4b410dbf70633e55286a4af77f0d651a
2017-04-18rework SwReadOnlyPopup to not inherit from PopupMenuCaolán McNamara
Change-Id: I707b44fee1356586b53e43c4ac37fc4f2adc3afe Reviewed-on: https://gerrit.libreoffice.org/36639 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-04-18AutoText: loading dotx documentsSzymon Kłos
For testing purposes patch introduces simple import. New AutoText entries are imported if document contains single paragraph AutoTexts. Change-Id: I3f0e17c63e109eac6514ae0cb8cc168e8282b55b Reviewed-on: https://gerrit.libreoffice.org/36634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2017-04-18tdf#107158 Groupedbar variant of the Notebookbar for Writerandreas kainz
patch 2 missed the patch 1 stuff so now everything should be there Change-Id: Ia2d35eb3d3791af4be683baca23635d8dc5e0dd1 Reviewed-on: https://gerrit.libreoffice.org/36546 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-04-18sw: prefix members of SwOneExampleFrameMiklos Vajna
Change-Id: I7965ef1be7c348768c219fbab4bbb43edc6906d0 Reviewed-on: https://gerrit.libreoffice.org/36632 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-04-18loplugin:redundantcast (clang-cl)Stephan Bergmann
Change-Id: I996ec829794a0a78ad986cb1c87d6deb9f9d75cb
2017-04-18tdf#105672 Heikobar: Fix style and links group buttonsYousuf Philips
Change-Id: I55db80e0a73690374d40ff926aeedb94f07843c5 Reviewed-on: https://gerrit.libreoffice.org/36518 Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com> Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-04-17tdf#103258 Contextual footnote in its own sectionYousuf Philips
Change-Id: I55e4cb5ad0dec8c2680fd276de11c598ff3049da Reviewed-on: https://gerrit.libreoffice.org/34078 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2017-04-17Make the testTdf106974_int32Crop pass on my Mac, tooStephan Bergmann
cf. 1391f3702a3daaefc67a8ee4b62ac38959db283f "Make the testTdf106974_int32Crop pass on my Mac". For some reason, on my Mac the Right value is 40474 resp. 40471 the two times the function gets called. Change-Id: I731ff9c5cf76be9d4817ad14f296807017d10dbd
2017-04-17tdf#106742: OOXML import/export: treat "tblInd" properly.Vitaliy Anderson
Since MS Word 2013+ if you change cell margin at the table, the border won't be shifted. The decision is to do the same ( see https://bugs.documentfoundation.org/show_bug.cgi?id=106742 ). Change-Id: Ia58693c44f63ed21dca2cd99591002ba68927b65 Reviewed-on: https://gerrit.libreoffice.org/36084 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-17tdf#107025 advance only if grid is wider than font.Mark Hung
EvalGridWidthAdd decide distance to advance by subtracting the grid width and the height of the CJK font of default style. Text cluttered if the value is negative on Windows or break into multiple lines if it overflow on Linux. Change-Id: I085d420ef168238cde2eac3fb129020d5e5608da Reviewed-on: https://gerrit.libreoffice.org/36568 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2017-04-17Avoid C1128Tor Lillqvist
Change-Id: I5799ff84a8a93e8b9ca87831ab0968a3b1a050de
2017-04-16cppcheck: arrayIndexThenCheckJulien Nabet
Change-Id: Ie3ca646fae94ff5a06a29fc2823a1cacafc3deb1 Reviewed-on: https://gerrit.libreoffice.org/36575 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-04-15tdf#106639 Don't add space if Snap To Chars of text grid is effective.Mark Hung
SwFntObj::DrawText() don't process added space of justified text if Snap to Chars is effective when text grid is Lines and Chars, however SwTextCursor::GetCursorOfst and SwTextCursor::GetCharRect count them despite that and make the cursor movement irregular. Change-Id: Ic31577e207b5a033298970a831016221f99d3499 Reviewed-on: https://gerrit.libreoffice.org/36291 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2017-04-15tdf#43741 do not add space to the last character.Mark Hung
Adding space to the last chracter make textlines extrude the boundary. Check SpaceStop to prevent adding space after hole portion or the last character. Change-Id: If252a8a57cf55752cb152aa78688157f5d528b99 Reviewed-on: https://gerrit.libreoffice.org/35978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2017-04-15Fix typosAndrea Gelmini
Change-Id: I0238202c0dc0380b0e33a9c4567a9513c0afbe91 Reviewed-on: https://gerrit.libreoffice.org/36556 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-14tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw/ Change-Id: Ie82178842f6d9e4b2b1f4cac1bcee1e8a5b8b957 Reviewed-on: https://gerrit.libreoffice.org/36547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-04-14tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw/ Change-Id: Ib85027a2f456395d99a1a0bbf8919fddbfd028bd Reviewed-on: https://gerrit.libreoffice.org/36549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-04-14AutoText: .dotx files visible when importSzymon Kłos
Change-Id: Idd2cdd9696a15ca5a215fc42b46cc470c4c25a28 Reviewed-on: https://gerrit.libreoffice.org/36550 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2017-04-14tdf#106736 do not insert kern portion before tab portion.Mark Hung
Postion of SwTabPortion is set in constructor and is not expected to change later. If it is changed later, overflow will make the line full and push the content to the next line. Change-Id: I75fa9842c2c5bc0c2c16f9c5c17c43cdf88ea6ff Reviewed-on: https://gerrit.libreoffice.org/36061 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-04-14update cppunit to 1.14.0Markus Mohrhard
Change-Id: I95fa42f4ef0580734b605df859c1660b29adb8b2 Reviewed-on: https://gerrit.libreoffice.org/36499 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-04-13Don't crash when deleting a non-existing comment.Jan Holesovsky
Change-Id: If03f19c988f4c7ba6dfe1d3058c71ec11cd1b732
2017-04-13Make the testTdf106974_int32Crop pass on my MacTor Lillqvist
For some reason, on my Mac the Right value is 41226, both times the function gets called. (On my Linux box, it is 46387 and 46394.) So compare to 41000 instead of 46000. Or would it be better to just bypass the test on macOS, as we already do for other tests in this file...? Change-Id: I71e292d42a2a956fbd28eb47fc5bfe3c7d849efe
2017-04-13ofz: header has to be at least 1 pair longCaolán McNamara
Change-Id: I5725048519a2b68265e90d12b1e4bcb506c56fc2
2017-04-13sw: revert another gb_CppunitTest_use_instdir_configurationMichael Stahl
Change-Id: I82410b583da003a4b7b7b7395545677e83ad7676
2017-04-13convert annotation menu to .uiCaolán McNamara
Change-Id: Id15e1c2040d3d202e90984888598da4426b5fec4
2017-04-13convert TableChgMode to scoped enumNoel Grandin
Change-Id: Ib667b15a878bb59cdfe80e9692b31afda85ec5b7 Reviewed-on: https://gerrit.libreoffice.org/36475 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-13convert BKM_TYPE to scoped enumNoel Grandin
Change-Id: Ib68da24186cdfa556ca3a36ebc1c43d483cff048 Reviewed-on: https://gerrit.libreoffice.org/36477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-13convert TableMergeErr to scoped enumNoel Grandin
Change-Id: Ie3d15845e47c514411baadecff92025f3e0c4e21 Reviewed-on: https://gerrit.libreoffice.org/36476 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-13convert TableChgWidthHeightType to o3tl::typed_flagsNoel Grandin
Change-Id: I9009f3302f4d117744d80f8816ddd177bae6639d Reviewed-on: https://gerrit.libreoffice.org/36460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-13Removed duplicated includesAndrea Gelmini
No automatic tools. Manual checked and tested. Change-Id: Ife260fa4e1d786cf81f2917a901664cc54943754 Reviewed-on: https://gerrit.libreoffice.org/36371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-04-12can use gb_CppunitTest_use_configuration and still access .ui filesCaolán McNamara
after... commit 506cab1a01b0481d0831a7a692a26dc5a5b55e91 Author: Caolán McNamara <caolanm@redhat.com> Date: Wed Apr 12 16:14:10 2017 +0100 take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR Change-Id: I9cffdc092206c038da32a32a2cfe629e68b5c258 Change-Id: I906d16037cdf0b9203a4120cb1a5e9846a5c7b7f Reviewed-on: https://gerrit.libreoffice.org/36482 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-04-12ofz: avoid oomCaolán McNamara
Change-Id: I64dd130f618ea18b802117b7a2cf0eeb8f271046
2017-04-12tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw/ Change-Id: Idc788ab3a62d29489893e086a51329ace59a6465 Reviewed-on: https://gerrit.libreoffice.org/36401 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-04-12enum spelling: throught -> throughJustin Luth
git grep -l "[ _\.]THROUGHT" | xargs sed -i 's/THROUGHT/THROUGH/g' git grep -l -i "[ _\.]THROUGHT" | xargs sed -i 's/throught/through/g' In ENUMs: THROUGHT = THROUGH (preserved as valid alternate spelling) In ooxmlexport8 - unit test confirms THROUGH = THROUGHT Change-Id: Iae0fef9a8adcb96761989f38903a24ffb1b91e77 Reviewed-on: https://gerrit.libreoffice.org/35998 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-04-12take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIRCaolán McNamara
Change-Id: I9cffdc092206c038da32a32a2cfe629e68b5c258
2017-04-12ooxmlexport4 triggers .ui loading tooCaolán McNamara
Change-Id: I9ed7b3a90f87d9235f80b7d5201ea35ac1ec01e1
2017-04-12tell cppunit test about .ui requirementCaolán McNamara
Change-Id: I2346732db5c4b120025594b89c003f544588048e
2017-04-12sw: fix typos in URLsMichael Stahl
Change-Id: I51adbc08515352242b3e5b5f9eee071aee5a3951
2017-04-12fix typo @trhowsMichael Stahl
Change-Id: Ia57df88476b3dad0ed140d4f33a2cb813274376e
2017-04-12tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw/source/filter/html/parcss1.cxx Change-Id: Ib36ba2214d621a2f5272928922c5999a718d86bb Reviewed-on: https://gerrit.libreoffice.org/36442 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-04-12convert header/footer menu to .uiCaolán McNamara
Change-Id: Ia1aed81bfd806fbca78acc3b23886056a23ade4d
2017-04-12tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw Change-Id: I1c9f64d91e7e490e92eb83ee348de0e90232942e Reviewed-on: https://gerrit.libreoffice.org/36439 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-04-12convert annotation page break menu to .uiCaolán McNamara
Change-Id: I822029c8fe2dc8ae0a0f52091375d79c0784b7ce
2017-04-12convert SwTableSearchType to o3tl::typed_flagsNoel Grandin
Change-Id: I4fbe114d96ac34540d0774fedbe1fed210efa906 Reviewed-on: https://gerrit.libreoffice.org/36459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-12use std::unique_ptrCaolán McNamara
Change-Id: I74ab04b58c848961b1c4d30b68e8dd5ff5dd1f0d
2017-04-12drop unused argumentCaolán McNamara
Change-Id: Ibbf3d6cbf694b1ca693d53c9ac92076a85df125f
2017-04-12ofz: timeout, guard against going backwardsCaolán McNamara
Change-Id: Ib91ae165147582bdb44690215a1df6f01ede796b
2017-04-12fix indentCaolán McNamara
Change-Id: Iaee640be234199b34c24a5a0e1e841914f92133a
2017-04-12convert SelectionType to scoped enumNoel Grandin
Change-Id: Iefdf6d47b1c0189c3b3e39ad5a025e95f18fe6b6 Reviewed-on: https://gerrit.libreoffice.org/36446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>