summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2015-08-19comphelper: reduce copypasta with UniquePtrValueLess functorMichael Stahl2-20/+6
Change-Id: Ib93b818eeebc2f370535d1b061beabf7e8c65257
2015-08-19Consolidate isFileUrl checksStephan Bergmann1-1/+2
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
2015-08-19Clean up remaining utl::LocalFileHelper::Convert...Stephan Bergmann2-4/+3
together with 58d68a1bc9146334376206ae7ba8b1a6594a1040 "ConvertURLToSystemPath->getSystemPathFromFileURL" and 28f3464a571a23a2c16bd0980e9021b95d011511 "ConvertSystemPathToURL->getFileURLFromSystemPath," this replaces all those Convert... functionality with direct calls to the corresponding osl::FileBase functions. Change-Id: I2876171cd337a5eb939d25d8cf1e0c1253ff73a7
2015-08-19for testing allow disabling configmgr for time critical pathsCaolán McNamara7-19/+58
Change-Id: I08021f18d53e1748927f8847649994f95252bbc2 Reviewed-on: https://gerrit.libreoffice.org/17844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-18Added Test for tdf#74524 ODF import of range annotationVarun2-0/+25
Change-Id: I9e5d67026df1b3d79dda1158d35357a8dae47517 Reviewed-on: https://gerrit.libreoffice.org/17843 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-08-18Added Test for tdf#74230 ODF export stroke and fill in graphic defaultsVarun1-0/+22
Change-Id: I09c15c7d5c9eaabe81029506bc9091fac42af662 Reviewed-on: https://gerrit.libreoffice.org/17840 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-08-18tdf#93096 sw: fix selection with keyboard outside current viewMiklos Vajna1-1/+19
Regression from commit c9175a1bd3249ad573ae6827bf19963a3ebe2fbc (SwViewShell::ImplEndAction: avoid direct PaintDesktop(), 2015-07-03), the problem is that while going via InvalidateWindows() is fine for the double-buffering case, it has side effects when painting directly, so revert back to the old code in that case. Change-Id: Ib1e3b143f5cfe2c6ab8b102a1a2064900282f136
2015-08-17Added test for tdf#60967 deleting paragraph following a tableVarun1-0/+54
Conflicts: sw/qa/extras/uiwriter/uiwriter.cxx Change-Id: Idfb2e9dae026c639916cc5b919bc70ed8f15067f Reviewed-on: https://gerrit.libreoffice.org/17504 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-08-17tdf#93482 vcl rendercontext: add Window::RequestDoubleBuffering()Miklos Vajna1-0/+10
This allows applications to request enabling/disabling of double-buffering of their VCL frame and all its children. It works after-the-fact, too: so in case the start center creates the frame and later that frame is reused for Writer, then Writer can turn on double-buffering, still. From a user's point of view, this means that next to VCL_DOUBLEBUFFERING_FORCE_ENABLE, there is now also a VCL_DOUBLEBUFFERING_ENABLE environment variable that enables a safe subset that is not supposed to draw directly at all. Enable this for Writer only, for now. Change-Id: Ie2cbf7d467eae2cee37fb58a1efc0a8984204408
2015-08-17tdf#39080 Hide Whitespace UI option added to the View menu.Ashod Nakashian6-0/+37
Change-Id: I1f9ba9ef489159ca54db802393d958d7fd6ac8ff Reviewed-on: https://gerrit.libreoffice.org/17280 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-17tdf#39080 Hide vertical whitespace when HideWhitespace option is set.Ashod Nakashian2-5/+9
Change-Id: I1d0a974a0b4b7053f59c23aa883bef61fd1df177 Reviewed-on: https://gerrit.libreoffice.org/17279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-17tdf#39080 Added HideWhitespaceMode ViewOption flagAshod Nakashian3-2/+11
Change-Id: I94ac57881dc3a3628413b9198ea750fdc282accb Reviewed-on: https://gerrit.libreoffice.org/17278 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-17tdf#93284 vcl: fix VirtualDevice leaks in the WMF filterMiklos Vajna1-0/+0
We attempted to have 8884 VirtualDevices in parallel. This number is now 12 after fixing the leaks. The original bugdoc has 135 images, 76 is enough to make Writer on Windows crash. The minimized document has the same WMF data for all the images, but still duplicated inside the ZIP container, so we trigger the resource limit, but the document is still just 99K. Change-Id: I4c6b3853eaf688302323daf67ff7b62dd64fc412
2015-08-17sw: use std::unique_ptr<> in bastypMiklos Vajna2-4/+4
Change-Id: I64909a408ff1c3537790e09e9b96f1ef467f96bd
2015-08-17Put Line under tools namespaceNorbert Thiebaud1-1/+1
Change-Id: I7442848951c0d4579fb2a2a3eef3bfed7135aac4 Reviewed-on: https://gerrit.libreoffice.org/17791 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud12-28/+25
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-16clip Sttbf to available dataCaolán McNamara2-0/+2
Change-Id: Iaa6a8a8505a28cf3c24a48f832bfc618b39c3f32
2015-08-16Fix tdf#87889 and tdf#92535, vertical align issue when docgrid enable.Mark Hung1-2/+1
Change-Id: I2f1f7609e9ceed3804be76775eeebcddd9e443c6 Reviewed-on: https://gerrit.libreoffice.org/17462 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-16sal_uLong to sal_Int32/longMatteo Casalin1-1/+1
Change-Id: Ia4ae190da37351b8c2b7ee9fc953508c5b1ab062
2015-08-16sal_uLong to sal_uInt32Matteo Casalin2-6/+6
Change-Id: Ifcde090747127680a9e4b810ff062d024663632c
2015-08-16Use constants instead of (possibly wrong) magic numbersMatteo Casalin1-2/+2
Change-Id: I0829d271337b9fe77341c62a1c2ef4d6ae62c727
2015-08-16sal_uLong to sal_uInt32 as TextPaM paragraph numberMatteo Casalin2-6/+6
Applied also to related functions. Also fix a couple of minor issues while at it. Change-Id: I615094d047c87a0f4854054e720492d3ab25c575
2015-08-16Spell-check wrong-dirty text upon showing context menu.Ashod Nakashian1-3/+24
This makes for a better user experience when the idle jobs haven't yet ran on some text to check for spelling. This can happen when the user is on a device with insufficient compute power and/or other idle jobs with higher-priority take precedence. This change leap-frogs the spell-checking idle job when the user might already know they mistyped a word and look for a quick fix via the context menu. Change-Id: Id1f7b4555050ded329ebeb56502f893ee7b2bc35 Reviewed-on: https://gerrit.libreoffice.org/17252 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-16Fix tdf#64975: FORMATTING: autoIndent for Chinese should be twoMark Hung1-0/+5
characters. Now it detects CJK language and ident accordingly: 2 chars for Chinese and 1 chars for the others (Japanese and Korean). Change-Id: Ib722e90ecae615faa7887ce1c874aacbb93f8a5e Reviewed-on: https://gerrit.libreoffice.org/17614 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-15Fix tdf#82176 CJK: Cursor position, line selection and non-printingMark Hung3-4/+3
characters do not take account of hanging punctuation. Note that placing a cursor next to the hanging puncuation is still not possible, but the selection and the non-printing characters works fine now. Change-Id: I22c8c2c5044b46c325236caffec67d9f68c23eed Reviewed-on: https://gerrit.libreoffice.org/17591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-15Fix tdf#36884 10n character does not rotate 270 degreeMark Hung1-1/+1
Change-Id: Ife1b85cc55e4e0f4d0be84bbcdfc93104160f271 Reviewed-on: https://gerrit.libreoffice.org/17470 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-14convert pPieceGrpprls to vector and merge calc and load loops togetherCaolán McNamara2-47/+15
we retain the max-short limit but no longer add a null terminating entry Change-Id: Ie195e0c244cc08643a9c22518c85d70a883752b7
2015-08-14skip importing properties if the desired start pos is invalidCaolán McNamara2-12/+15
Change-Id: Iae650d63ccdb95a0a74674b8689813069b750b60
2015-08-14remove default value from SfxPoolItem::PutValueNoel Grandin24-45/+45
more useful to make it explicit. Specifically, otherwise my defaultvalue clang plugin would want to remove lots of places that contains #define constants which, while technically the same as the default value, convey semantic information which is quite useful. Change-Id: I918ad5b0e73ba279fa1b1489b62d900339ff71eb
2015-08-14remove default value from DffPropSet::GetPropertyValueNoel Grandin1-7/+7
more useful to make it explicit Change-Id: Ic76fcc5ffa245b3eb3c99f3a5e4d0656b56c511e
2015-08-14sw: use std::unique_ptr in docnodeMiklos Vajna1-2/+2
Change-Id: I7c67958c7bfea71e8b79588b85d388a8e6838775
2015-08-14Move dropdown menu from 'Save As' to 'Save' buttonSzymon Kłos2-3/+3
Change-Id: I24e9b16ea38811791804e6c85205b304bd781617
2015-08-14reorder of File menuSzymon Kłos1-1/+1
Change-Id: I8265b291554765775871905b0349564131dfa8c7
2015-08-13tdf#93154: Save button often does not saveMihai Varga1-0/+4
The problem is that in tiled rendering LO doesn't always consider the document to be modified. Some operations such as Bold, Italic, etc do not mark the document as being modified, but we need to be able to save the changes. This solved the issue by always allowing to save. Change-Id: Iaf8120abadc768a07b24f42c287c50080b4e4d89 Reviewed-on: https://gerrit.libreoffice.org/17665 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-08-13Added Test for tdf#74363 auto correct of initial captials on startVarun1-0/+17
Change-Id: I1c17778ef4e1d5b977a7c3e6f6f78caca4e0a8ec Reviewed-on: https://gerrit.libreoffice.org/17654 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-13convert pStatus to vector and use at to check offsetsCaolán McNamara2-11/+11
Change-Id: I5186f6a65bb9d5ed8a0d1ab1d71f7e2c13865411
2015-08-13modify error messages a littleCaolán McNamara1-2/+2
Change-Id: I5c2c5a567ffb16d3e072cba2930dffe762a744f3
2015-08-13make Link<> instances typedNoel Grandin2-3/+2
Change-Id: I7d20875cc498d54140cfe75b21373fdab9c369ce
2015-08-13loplugin:stringconstantStephan Bergmann1-1/+1
Change-Id: I2444c480d5bd1aca814bdf1159f8857fcaa85830
2015-08-13check for negative numbers tooCaolán McNamara1-2/+2
Change-Id: I4a798a4f60d0064abd7fc4e689e4c80dff8459ff
2015-08-13wrong row/col count limitsCaolán McNamara1-5/+4
thanks to ccsheller for noticing Change-Id: Idb0f39c48173445b750e0b85ac20b3f6b43691a7
2015-08-13sw: use std::unique_ptr in accparaMiklos Vajna1-6/+6
Change-Id: I0fcc22f987208ae9fa0e99f14253856ee6faa062
2015-08-13tdf#85872 ToxLinkProcessor correct header and testsTobias Lippert2-4/+23
commit 6b9ab853b6a5fa71c0b6c594ed0e6e6016d13a3b changed the behavior of the class, but the header comments were not updated. This commit adds comments for the new behavior. Also: The tested behavior in the unittest was changed. This commit adapts the unittest name to the new behavior. Change-Id: Ia364ebbc3e2bfe1b0b8e3e26269a3c162e1a05d1 Reviewed-on: https://gerrit.libreoffice.org/17510 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-12sw: check 0 paint window in RenderContextGuardMiklos Vajna1-2/+2
As seen by Norbert during CppunitTest_sw_globalfilter. Change-Id: I02dfab78b3cdcc65187f04e86cce7b7432c0a138 Reviewed-on: https://gerrit.libreoffice.org/17677 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-08-12tdf#73691 Implement MSWord's Alt-X: toggle unicode notationJustin Luth5-1/+86
-toggles between characters and their unicode notation -sets Alt-X as a global keyboard accelerator -handles all of the unicode planes -intelligently handles combining characters -if text is selected, limits the input to that text -implemented in Writer, Draw, Impress Change-Id: Idcd8e7f0a4f1b81fa7f5f3200c76be19472ffa37 Reviewed-on: https://gerrit.libreoffice.org/17535 Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-08-12cppcheck: redundantAssignmentCaolán McNamara1-1/+1
Change-Id: I552211d79144fa11f25fe22d84901c33dcd1aa1d
2015-08-12ditch some inline keywordsCaolán McNamara1-40/+37
Change-Id: Idc5c0608a9bc5b6230f603d1deb2327887960204
2015-08-12consider negative nPN a failureCaolán McNamara1-8/+9
translate and consolidate end before start warnings to SAL_WARN Change-Id: I547075c0ca668da184f477112086f401cc9ec4ee
2015-08-12test for end before start, e.g. hang-3.docCaolán McNamara1-1/+12
Change-Id: I3b0c7766cdba31d6303de7fe34a5c85567de8116
2015-08-12sw: unused includesMiklos Vajna2-2/+0
Change-Id: Ie0377766a0ba505e09cad98fe2fba3b37facd206