summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2016-02-08remove some unnecessary declarations from *.sdi fileNoel Grandin1-2/+0
found with a bunch of grepping Change-Id: I920609fb7df5a5e55ecbf5c2bf4880ff972cfbed
2016-02-08loplugin:unusedmethodsNoel Grandin6-71/+1
using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-07sw - single search after find all selects the 2nd occurrence - fixedMarco Cecchetti2-0/+15
Now, after a search all action we place the cursor at the beginning of the document so that the single search selects the first matching occurrence in the document instead of the second. Change-Id: I8c295bcd316c6197154c68ae97eb424ee6cc9904 Reviewed-on: https://gerrit.libreoffice.org/22175 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-02-06lok: Search result should contain info if it is a 'search all' result.Jan Holesovsky1-3/+4
Change-Id: Ia3ee81ced4f74c0d029a478bd59eff44d72ef327
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock2-2/+2
Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-02-06vcl/apptypes.hxx is goneStephan Bergmann1-1/+0
Change-Id: I6c3f7ffa8d7c1cac360ae28c1a52ef3b55da3a3d
2016-02-06vcl: split exception types from input typesChris Sherlock3-24/+31
Having them in the file apptypes.hxx isn't necessary helpful, IMO so I've split the types into inputtypes.hxx and exceptiontypes.hxx Change-Id: I89a1ff168c3ae276b2f5486669d4ec2dda062d57
2016-02-05interface to new XTextSearch2 with SearchOptions2, tdf#72196Eike Rathke2-4/+5
Places that had utl::TextSearch::UpgradeToSearchOptions2() introduced are worth an inspection if the new SearchAlgorithms2::WILDCARD search should be supported or at least use SearchOptions2 instead of SearchOptions to eliminate the small performance penalty that conversion involves. Change-Id: I565f73af2b551ae9ad0f488e672823dc6c5c1109
2016-02-05sw: move all SwXTextTable implementation details to pImplMichael Stahl2-69/+73
... and drop some obviously unnecessary SolarMutexGuards. Change-Id: Ie61198a264d52d1ebf7bd7c7de12a83845f4beb1
2016-02-05sw: remove redundant SwXTextTable::Impl::m_isDescriptorMichael Stahl1-9/+11
Change-Id: I51139c1c7658e6b71ebb704a8d02d1a8366a32d5
2016-02-05sw: move the SwXTextTable descriptor members to SwXTextTable::ImplMichael Stahl2-72/+68
Now SolarMutex is locked only once in the destructor. Change-Id: I945fcf2ac25ddc46fef521777109f4b4ac5e5232
2016-02-05sw: move SwTextTable's SwClient to SwTextTable::ImplMichael Stahl4-32/+47
Change-Id: If86bf825a714be00d678d50e80adddaced48c3e2
2016-02-05sw: move rest of SwXCellRange implementation details into pImplMichael Stahl2-103/+147
Change-Id: Id2002e535fa1a0c04aadd96e70ed2683bd5eb603
2016-02-05sw: fix SolarMutex asserts from SwXCellRange dtorMichael Stahl3-56/+110
Happened when loading a report from the attachment of tdf#97033, but that bug is apparently about a different crash. Deploy the sw::UnoImplPtr, which is clearly the best way to avoid such problems. Also another silly weak pointer this, for tdf#72695. Change-Id: Ice8db95ca3eecc638bd4a4ef7fa8967d180bd525
2016-02-05remove unnecessary comments from .SDI filesNoel Grandin1-874/+0
Change-Id: Ic78ae8ce5bf396f55fdc847d6b70476c9dab4ee9
2016-02-05sw: remove no longer used SwViewShell::setTiledRendering()Miklos Vajna3-11/+0
It only set a flag that was used by the already removed isTiledRendering() equivalent. Change-Id: Idc908c4b6bc432e4478fb1db6a8883faf2f864fd
2016-02-05Fix typosAndrea Gelmini16-19/+19
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-02-05remove commented out stuff from .SDI filesNoel Grandin6-54/+3
Change-Id: I1e893afcd33bf9a5cf934a021fe40548ddc33699
2016-02-05remove unused UUID and VERSION from .SDI filesNoel Grandin27-83/+0
Change-Id: Ieb3e47c10c497a6f642f28a6741ac0fd2ecfd419
2016-02-05remove unused Readonly from .SDI filesNoel Grandin1-73/+0
Change-Id: I179200ad65492c517ef5e986fd05758896d38813
2016-02-05remove unused Automation from .SDI filesNoel Grandin46-82/+34
Change-Id: I65e1ca6e022dc76ac96ed75da2c5e78e9356a3e9 Reviewed-on: https://gerrit.libreoffice.org/22107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused GET/SET/STATUSBARCONFIG in .SDI filesNoel Grandin1-419/+0
Change-Id: I74404d72e9146950a9881d2a59323c2bf08c9742 Reviewed-on: https://gerrit.libreoffice.org/22100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused HasDialog from SDI filesNoel Grandin1-419/+0
Change-Id: I26f2cef48fcc7a6c4a6b93668b836879254f3eb0 Reviewed-on: https://gerrit.libreoffice.org/22098 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Synchron from SDI filesNoel Grandin1-326/+0
Change-Id: I0b8c63a97bfa4a49ac87869e164ab22d2aa99de3 Reviewed-on: https://gerrit.libreoffice.org/22097 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Cachable keyword from SDI filesNoel Grandin5-428/+1
Change-Id: I60c423b799f34f79f58bc39cf7ea616ec4f5d16a Reviewed-on: https://gerrit.libreoffice.org/22096 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04new loplugin fpcomparisonNoel Grandin1-2/+2
Find code that compares floating point values with == or != It should rather use rtl::math::approxEqual Change-Id: I9026e08823340fa1d6a042c430515344c93215bd Reviewed-on: https://gerrit.libreoffice.org/21997 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04vcl: take into account the font width is the average font widthChris Sherlock18-66/+66
I'm changing the Font class function names: - SetSize -> SetFontSize - GetSize -> GetFontSize - SetHeight -> SetFontHeight - GetHeight -> GetFontHeight - SetWidth -> SetAverageFontWidth - GetWidth -> GetAverageFontWidth That's because it really makes no sense to say that there is a single constant font width because obviously proportional fonts don't have one - the best we can do is an average font width, which is what folks like Microsoft sort of do already. On a fixed font, the average is still accurate, for obvious reasons :-) I'm also not a fan of GetSize/SetSize as I find it a might too generic. Change-Id: Ib80a604ba62d6883fd6cbc7994da763976be5c70 Reviewed-on: https://gerrit.libreoffice.org/22069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-03remove unused HasCoreId from SDI filesNoel Grandin1-419/+0
Change-Id: I4aca4b8a79ce92d64ce004ccdb7e9a0f408dc768
2016-02-03lok: Avoid the 'alien format' warning in LibreOfficeKit.Jan Holesovsky1-0/+7
We immediately cancel all the dialogs that potentially come up when using LibreOfficeKit; which means that when you tried to save a .docx to a remote server (which triggered the 'alien format' warning), the save operation couldn't be completed. Change-Id: I6bb5eadac994c1f515d7a49299c21960b3491bbe
2016-02-03Added Test for checking newly created writer document with AppYieldVarun Dhall1-0/+65
Change-Id: If331fb2b0c03cd153387ddad7b33bbc28727ac11 Reviewed-on: https://gerrit.libreoffice.org/21995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-03add EDB-39396-1 test-caseCaolán McNamara1-0/+0
Change-Id: I8afd1db3859b99cf09d0d52e999bbd95cd88ed10
2016-02-03Improve DrawingML export of rotated/flipped customshapesAndras Timar2-0/+19
When we export the customshape as polypolygon, we need to take into account, that the polypolygon of the shape already has flipped coordinates, but coordinates has to be relative to the rotated bounding rectangle. Change-Id: I4f3b015e439d3d6041adc67eddd460f5bd4dfca1 Reviewed-on: https://gerrit.libreoffice.org/21905 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-02-03Autocompletion: complete year (part) to current dateLászló Németh1-0/+31
to check or insert it during typing. For example, typing "201" or "2016-0", Writer will suggest "2016-01-30" - the current date in ISO 8601 format - in a tooltip, and it's possible to insert it pressing enter. There is no autocompletion for single years (e.g. "2016") to avoid unintentional text insertion at line ending, e.g. typing "30 January 2016" in a letter header. Change-Id: I230a449b0e19d5316b8369d780d7c7fda57fea37 Reviewed-on: https://gerrit.libreoffice.org/21928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-02-03tdf#97407: Remove duplicate custom entryRishabh1-1/+2
Remove custom entry before updating the spacing listbox Change-Id: I9476e639f4d54e87a2c9049159e6abefb02a9b5e Reviewed-on: https://gerrit.libreoffice.org/21942 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-02-03tdf#97501: crash in SwDBManager fixedOliver Specht1-10/+16
copy the connections to a temp container and iterate that because disposing connections changes the data source params container Change-Id: I06c59a19a6bcf97a541b32481d1d2a63f5c34032 Reviewed-on: https://gerrit.libreoffice.org/22027 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-02-02tdf#97505 Account empty pages for print previewJan-Marek Glogowski1-4/+9
Commit 1296f9dc9e502abd8422dfeee1ac7747a82aee17 was just a workaround to fix the crash, while I couldn't find a way to get the layout from the print preview, as all shells seemed empty. Took me a while to realize the SwViewShell also has a layout, which is available, so we can account for the empty pages correctly. Change-Id: Icf0e9fdc0c1eeb6cadc48482595482545fd553e7
2016-02-02loplugin:stringconstantStephan Bergmann1-1/+1
Change-Id: Ie4554214e475da1bddba7ab0694ce23d1d93f06f
2016-02-02xmloff: tdf#96147: ODF export: fix duplicate fo:background-colorMichael Stahl1-0/+80
... attributes that happen if both CharHighlight and CharBackColor properties are used, because the CharBackTransparent property wasn't taken into account, and combining the CharBackColor and CharBackTransparent properties happens *after* XMLTextExportPropertySetMapper::ContextFilter() runs. Also, it looks like a transparent highlight wouldn't export properly but apparently DomainMapper::getColorFromId() won't create such. (regression from f880962f5bf26bfaef06bd3f9e67e2d901a2e74c) Change-Id: Ib628ef8bb377482f74fadb97c81afb95fbbf7184
2016-02-02tdf#95408 -"Toggle" in Writer Navigator to be more explicit in what it togglesakki952-2/+5
Bug resolved. Removed toggle button from non-master documents. Toggle button working for master documents only. Changed toggle button tooltip to "Toggle Master View" Change-Id: I7b77bae812ac208b0b93fff9e114b063d2ae2520 Reviewed-on: https://gerrit.libreoffice.org/21913 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-02-02tdf#70998 Termchange: Graphic/Picture->Imageakki952-2/+2
Changed visible terms as required. Change-Id: Id4335629977aa8512c753241d7c2203820716b73 Reviewed-on: https://gerrit.libreoffice.org/21857 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-02-02sw: -Werror,-Winconsistent-missing-overrideMiklos Vajna1-1/+1
Change-Id: I96ce357b1e5a7260c07872182763eaea22a7d0c3
2016-02-02LOK: add Document::setClientVisibleArea()Miklos Vajna2-0/+11
... and implement it in Writer. Otherwise there is no way we can perform e.g. page down in an expected way. Without this, the core visible area depends on the zoom in the document, and the client visible area can be something entirely different. Change-Id: Iadfb5a225da09a2551ffa41ddf503bb3d22b3eae
2016-02-02tdf#84843 Stop using PseudoSlots for drawing slotsMaxim Monastirsky5-46/+94
Instead of fighting with this obsolete thing, let's just kill it. This fixes disabling in read-only doc, as well as pressed/unpressed states. Change-Id: I4d06ba3395024ffd09d77c6d22653a2c5e227115 Reviewed-on: https://gerrit.libreoffice.org/22010 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-02-02boost::hash->std::hashNoel Grandin3-3/+0
Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-01sw: for better or worse getParagraph() is 1-basedMichael Stahl7-13/+14
Change-Id: I2bc99b4cbb86a368b6218b3c1a7dfc693858d1c9
2016-02-01writerfilter: tdf#97417: don't insert numbering on end-of-sectionMichael Stahl2-0/+12
... paragraph, it will be copied to every following paragraph. (Before commit 2b78f2cd7b9e4bab0f3b3b9119238f36a1bbc7b2 the properties of the end-of-section paragraph would be overwritten by the properties inside the header) Change-Id: Ibe095cf873a09ef9e12f898d09b5fd6f61c914c9
2016-02-01boost::unordered_set is not used anymoreNoel Grandin1-1/+0
Change-Id: I0d38b254a1a23c124247a7b747f5d1331c571f54 Reviewed-on: https://gerrit.libreoffice.org/21977 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-31boost::tuple -> std::tupleCaolán McNamara2-17/+17
Change-Id: Ia08c184b792ff73d3ed49d6a5d54dec1a35943e9 Reviewed-on: https://gerrit.libreoffice.org/21955 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-01-31tdf#97362: Deleted CheckTable.java(this test translated to Python already.)kadertarlan2-293/+0
v2: Deleted CheckTable.java in JunitTest_sw_complex.mk Change-Id: I737a887d6f48fb2cacbe893289a430dd8312b3d8 Reviewed-on: https://gerrit.libreoffice.org/21949 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-31OSL_THIS_FUNC is a rip-off of BOOST_CURRENT_FUNCTION so we can use thatCaolán McNamara1-1/+0
as a direct drop in I guess Change-Id: I3add63f1459f4e659019bd6db54da2f5431958ce Reviewed-on: https://gerrit.libreoffice.org/21941 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>