summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann896-11260/+11260
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-10tdf#95071: fix spacing calculations for border with page offsetMike Kaganski2-1/+1
With commit ebf767eeb2a169ba533e1b2ffccf16f41d95df35, some previously hidden bugs manifested themselves, this is one of them. The margin size calculated incorrectly when border offset was from page. The border is drawn from the margin inwards, so the margin should be equal to OOXML w:space attribute, and border distance should be OOXML page margin - border distance - border width. Incorrect calculation gave negative margin, with IllegalArgumentException thrown in SfxItemPropertySet::setPropertyValue. Change-Id: Ifcf4a348e975df53410933aab3684d17f68b688c Reviewed-on: https://gerrit.libreoffice.org/19586 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-10sw: prefix members of SwNavigationPIMiklos Vajna4-344/+344
Change-Id: I801c9c93921719955431716c6e56e79eed529800
2015-11-10sw: prefix members of SwStyleNameMapperMiklos Vajna3-172/+172
Change-Id: I374caad0258624e9794993a01ab39c60fbb65a1a
2015-11-10sw: prefix members of SwBoxAutoFormatMiklos Vajna2-280/+280
Change-Id: I9849dcd31dae2e5db9ce3178640d2bf605b78238
2015-11-10sw: prefix members of SwContentTreeMiklos Vajna2-362/+362
Change-Id: Ia45ad08339ab7e6b2532d85f7a271156f29d1947
2015-11-10tdf#92648 unit test for DOCX import regression (textbox shrinking)László Németh2-0/+17
Change-Id: I810708bbd337b325ed58927fcdd67f24f70f1252
2015-11-09yet another member of SwXTextPortion needs to be guarded in the dtorBjoern Michaelsen1-0/+5
Change-Id: Ia1e3febd6a2f0c18c686a04ef5b98ee1ad2d8b88
2015-11-09another missing SolarMutex in Writer UNOBjoern Michaelsen1-0/+3
Change-Id: Ia9451b3f6180f97fda6ff16c65b5fbfcd17b75ec
2015-11-09also fix SwXFlatParagraphIteratorBjoern Michaelsen1-0/+3
Change-Id: Ib35759c4d9e6ebc8e211d57d53d923f15ac9845a
2015-11-09fix a set of race conditions in the writer uno wrappersBjoern Michaelsen8-4/+35
- whenever SwClients are added or removed, the SolarMutex should be locked - locking the mutex there would be a performance killer - thus only DBG_TESTSOLARMUTEX() and fixing the fallout on DBG_UTL builds Change-Id: I3b10b9a01c40fbe68d15ce6e9c5c74db34eb1eb6 Reviewed-on: https://gerrit.libreoffice.org/19856
2015-11-09Revert "Revert "fix tdf#94818 while retaining the tdf#90504 fix""Andras Timar1-5/+18
This reverts commit dad32b63f852716af94cf995696b62b6e60724bd.
2015-11-09Revert "fix tdf#94818 while retaining the tdf#90504 fix"Andras Timar1-18/+5
This reverts commit 959ac511dbebeb3983da92052ced837b39b74ed9.
2015-11-09java: add some @Override annotationsNoel Grandin1-0/+1
Change-Id: I291db1dff5ab3ce40fda6f822a0e3ff1e6ef36c1 Reviewed-on: https://gerrit.libreoffice.org/19855 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-09new loplugin: oncevarNoel Grandin4-11/+5
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-09formatting improvements in sw/Noel Grandin136-564/+485
after my recent "com::sun::star->css in sw" commit Change-Id: I2545648fc6f14ea0ebcabbe012e91546cf392b16
2015-11-08tdf#57950 Replace chained O(U)StringBuffer::append() with operator+Sedat Ak1-13/+9
Change-Id: I7065f88c752dbd6b7db3f4b4efaec85d083edede Reviewed-on: https://gerrit.libreoffice.org/19839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-11-07Misc tweaks and cleanups.Ashod Nakashian21-133/+133
Streamlined a couple of hotspots and some minor cleanups. Change-Id: I85a9423e03f7e20ce78736a44d668da859a443cd Reviewed-on: https://gerrit.libreoffice.org/19720 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-11-06tdf#92648 fix DOCX import regression (textbox shrinking in footers)László Németh1-2/+4
caused by the fix for tdf#91260 Change-Id: I4a5a27b51c4cb1304647b5432c06ca9c5a96590d
2015-11-06sc lok annotations: paint range and anchor overlayMiklos Vajna1-0/+15
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
2015-11-06tdf#94624 calculation of power operator fixedOliver Specht1-0/+2
cell values are added in parentheses to make sure negative values are handled correctly Change-Id: I7366493e3cd6c25607e311d4b610ef8aa704a8bb Reviewed-on: https://gerrit.libreoffice.org/19821 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-06sw lok annotations: disable the scrollbar for nowMiklos Vajna1-0/+6
Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
2015-11-06sw lok annotations: paint all child windowMiklos Vajna4-23/+21
And use map modes to get the painting to the correct position instead of manually adjusting each and every Paint() method. Change-Id: I66798321b8bbf2c7968d6ac1edebb1f8df60bce8
2015-11-06loplugin:stringconstant: elide explicit ctor usage (manually due to macros)Stephan Bergmann1-1/+1
Change-Id: Iaac8da990acdcd03858fa9187416400f0e310972
2015-11-06com::sun::star->css in sw/source/coreNoel Grandin322-3227/+3043
Change-Id: I30016977f1be8fb53dd239367d043de92a9467d9
2015-11-06coverity#1338232 Explicit null dereferencedCaolán McNamara1-0/+1
Change-Id: I4be589325b89eac129328f98f9db7ce8c741892d
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann69-229/+228
Change-Id: I55970d363ab53eb78d580192006e52d9240d46fb
2015-11-06sw: prefix members of SwXMailMergeMiklos Vajna2-267/+267
Change-Id: If8ad3b57bd2b5af83cbf44737db24e44af92d6b7
2015-11-06sw: prefix members of SwStdFontTabPageMiklos Vajna2-347/+347
Change-Id: Ia0de4c400937305baab7fef0e414777f0cd906e9
2015-11-06sw: prefix members of SwHTMLTableLayoutMiklos Vajna2-319/+319
Change-Id: I8a0563551f1ee71e9ab9359c7b75ff5855b436b5
2015-11-06sw: prefix members of SwTextFormatInfoMiklos Vajna2-223/+223
Change-Id: I116b4c6b8eed53ad19263fdc3a11ee67756fe472
2015-11-06com::sun::star->css in sw/qa/Noel Grandin9-32/+32
Change-Id: I4a0282291c7737a981dbff0722228824904f07e4 Reviewed-on: https://gerrit.libreoffice.org/19804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06com::sun::star->css in sw/incNoel Grandin109-2237/+2042
Change-Id: I6ffdb1deaa32156c65f997a1a1056928b7cd863d Reviewed-on: https://gerrit.libreoffice.org/19803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06tdf#91781 Add Form related commands to insert and tools menusYousuf Philips1-18/+66
Change-Id: I56a51bf1b9edd8a032167c3b648b69236a3d8e74 Reviewed-on: https://gerrit.libreoffice.org/19765 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-11-05tdf#76995: updated cached value on Evaluate() of db name fieldOliver Specht1-0/+1
Conversion of fields to text while creating mail merge documents returns a cached value. This needs to be set before also for db name fields. Change-Id: I5796adc82e11005ea045fb220b81201db5ff0b28 Reviewed-on: https://gerrit.libreoffice.org/19806 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-05sw tiled rendering: initial annotation supportMiklos Vajna7-4/+57
Change-Id: I4fcb05f8a58965341cf44a1b7e2367b5cbff981d
2015-11-05java: remove ((unnecessary)) parenthesesNoel Grandin3-15/+11
Change-Id: I39fbe3a260c8dbfc203662c54eec4db064b88195
2015-11-05fix tdf#95488, crash in report wizardNoel Grandin2-6/+6
This reverts commit bb76b8f10697f3d5ca1f9a2f19902b043bd61cd7 "loplugin:mergeclasses" Change-Id: Ib65459ab45cd4cefa859ed75f9ddc4f070879b1d
2015-11-05sw: prefix members of SwHTMLParserMiklos Vajna14-1702/+1702
Change-Id: I3d4b39a79c49f847c6814215593d86e8d992b38a
2015-11-05use uno::Reference::set method instead of assignmenNoel Grandin36-85/+73
Change-Id: I76671a74150791e1a74ece3d5bcf40fd6c727ac7
2015-11-05sw: prefix members of SwHTMLWriterMiklos Vajna13-924/+924
Change-Id: I571b3cc8c6120ccddc79659e8e58b536c79f2430
2015-11-05sw: prefix members of SwMailMergeConfigItem_ImplMiklos Vajna1-376/+376
Change-Id: Ia46ee03a73fde0d0fe82ebbba6f7b63c9629f99b
2015-11-05sw: prefix members of SwLabItemMiklos Vajna7-590/+590
Change-Id: I8346c5f7a12deb5cbd4e4d9cc87ecadb30ebbeb4
2015-11-04tdf#83910 Formatting of lines which consist of a single dummy line onlyTobias Lippert1-1/+8
The document which is attached to the ticket runs into an infinite loop because GetLineNr() does not increase since only dummy lines are added during formatting. Change-Id: I92689c776fe69bb6f62af26b577989db7f34de43 Reviewed-on: https://gerrit.libreoffice.org/18896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-04Make number recognition work in writer tables againNiklas Johansson2-1/+71
It seems that number recognition in tables are not working properly enter 10-10-10 and it should be converted to a date but it is not. I tracked it down to the fix of bug fdo#32082. It looks like bSetNumFmt was changed to false by mistake. Since then it has changed name to bSetNumFormat. From what I can tell fdo#32082 still works after this patch, but I might have missed some nuance of that bug report. Added two tests, one for the bug mentioned above and one to check that number recognition is working. At least with a simple date. Change-Id: Id58849a223eb602054c66c7379cd56a68a93dea2 Reviewed-on: https://gerrit.libreoffice.org/19563 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2015-11-04loplugin:stringconstantNoel Grandin20-72/+68
Change-Id: Ic135382652966e80c288f3407508bdaf0c60316e
2015-11-04tdf#95077 Check Index != 0ccsheller1-1/+1
follow code: ScVbaCollectionBase::getItemByIntIndex .... return createCollectionObject( m_xIndexAccess->getByIndex( nIndex - 1 ) ); .... my test code of vba: Application.ActiveWindow.Panes(1).View Change-Id: I5229142377364f374e4bbc24bd3b8dfd5d351f56 Reviewed-on: https://gerrit.libreoffice.org/19239 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-04sw: fix non-dbgutil buildMiklos Vajna1-2/+2
Change-Id: I2b521c516caf85892dafe782da79364a534d55a2
2015-11-04sw: prefix members of SwCacheObjMiklos Vajna3-24/+24
Change-Id: I416c43f5f6819029e279bc2f5fb696b59917ef06
2015-11-04sw: prefix members of SwOrderIterMiklos Vajna2-34/+34
Change-Id: I9bea22d07a95eb521d9c3729b2aba1694cf02def