summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)AuthorFilesLines
2015-05-28Rewrite all calls like Dialog(params).Execute()Philippe Jung17-40/+40
Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-28LOK: change PAGE_COUNT to a more generic DOCUMENT_SIZEMiklos Vajna2-2/+10
Change-Id: If94af4072c321358d7bd4d678eeed181dc0f44db (cherry picked from commit 63a40c45018ad2e6f4a660a520a5907beb1d7801)
2015-05-28SwXTextDocument::initializeForTiledRendering: allow having different defaultsMiklos Vajna1-0/+5
SetHardBlank() configures the gray background for non-breaking spaces. Change-Id: I779503189085cc6537b776deb3d30cb93b316acd (cherry picked from commit e3b0bae416b22f6dbf0a63efb645dadf75763a9c)
2015-05-27Resolves: tdf#91403 no wrtshell during initial layoutCaolán McNamara1-1/+4
(cherry picked from commit ff44502d836880d2bdb057e7fdfd9b5abeb87842) Change-Id: I0d0b8027e07f9dc2dfff584abd026d1b496d93dd
2015-05-27tdf#91145: Set Cell Background Color in Table Broken in Writer 5.0Bjoern Michaelsen1-6/+6
- iterate over PaMs, not over Shells - regression from 0ed7c8b55a026d7d98f9c994ad5e8626dd9504b2 Change-Id: I33ea486d416a7e64fd97938ce09492209c102c88
2015-05-27Fix accidental mis-uses of VclPtr address-of operatorStephan Bergmann1-1/+1
Change-Id: I3a82423378d3198a25f90ddfbf42af55d85c96fb (cherry picked from commit 668408fa1c69eaf0f0a37f24e2ec8b4a38fe3db7, w/o the accidentally included sw/htmlexport-swobjects.patch)
2015-05-27SwPaM::Find: fix backwards-search in shape textMiklos Vajna2-18/+62
Change-Id: I79157853d16ead4cb4147763ef0590702b3d8be6 (cherry picked from commit 122b149826d270b8cbb26e2044f8da25b1d29c25)
2015-05-27loplugin:unreffunStephan Bergmann1-0/+2
Change-Id: Ib7311448e15d23b041ebb4552df80046523a32f2 (cherry picked from commit 077cd88f2da8538e4e89bce2614d6662ccfedce2)
2015-05-27CppunitTest_sw_tiledrendering: disable the search test on non-Linux for nowMiklos Vajna1-0/+2
Change-Id: Iae2de9b9ada2046beca29990a8abda09947d7b34
2015-05-27Add SwTiledRenderingTest::testSearch() testcase.Miklos Vajna2-0/+41
Fails if the last hunk of commit bdc1824ea7acfa2fe9d71cdbe57882acce155577 (SwPaM::Find: search in shapes anchored to the range, 2015-05-19) is reverted. Change-Id: Id239e781ce493ee8952bcd9a018aa78146933433 (cherry picked from commit 01d422d8659d1b19676de16b199c3438a148506f)
2015-05-26unit test for DOCX import fix of vertical pos. of inline imagesLászló Németh2-6/+9
(regression of commit ab81e3bff2a1844be67209bc8947d539edbaf8e6) Change-Id: I329e68e7ecb9fd30de238f31c73f8de04efde9da Reviewed-on: https://gerrit.libreoffice.org/15917 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-26tdf#91389 EDITING: Crash when deleting headerPhilippe Jung1-5/+6
Replaced MyDlg(pParent).Execute by VclPtr equivalent Change-Id: I7e03913665f770d694f53949e08425ba60adc6ad Reviewed-on: https://gerrit.libreoffice.org/15908 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-26Audit all PostUserEvent calls and instrument for VclPtr.Michael Meeks8-11/+10
Hold a reference on the VclPtr while we're waiting for the UserEvent. Change-Id: I55c2671ca12eb14761c6a7dffd551af71547ecbd
2015-05-26tdf#90315 RTF import: fix \colsx default valueMiklos Vajna2-0/+13
See SectPageInformation::mnColsx on the libreoffice-3-6 branch + the spec agrees, too. Change-Id: I6f70a125f8d962621f319e3e75e2865e5f126859 (cherry picked from commit e18adb7369d140f33b947668a69da2fa78738e7b)
2015-05-26SwView::UpdatePageNums: add LOK callback about page count changeMiklos Vajna1-0/+2
Change-Id: If9ab69c9f3ec3f9f518738792ff020ef4cfd6390 (cherry picked from commit fb2e4da0e20fea3c085ddec899376e7f3671e1b1)
2015-05-26SwPaM::Find: forgot to show the cursor after ending the text editMiklos Vajna1-2/+5
Without this, if you searched inside a shape, then got a next hit outside the shape, you didn't get your blinking cursor even if you clicked into the writer text. Change-Id: I053af9672dc9290728b16780f21301b3b840cb55 (cherry picked from commit 1633fb2651e32f3dab5104b11074e7904cdcbec3)
2015-05-25tdf#90882 Add table insert uno commands to menu bar and fix labelsYousuf Philips1-0/+5
Change-Id: I4f5f2daeb27b8ba486abc685e42596030de6d2d1 Reviewed-on: https://gerrit.libreoffice.org/15863 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> (cherry picked from commit 54b9bdc7b14b75f93a043c9af60ae605e57b194d) Reviewed-on: https://gerrit.libreoffice.org/15881 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-25tdf#81475 Additional improvements to Writer's toolbarsYousuf Philips9-40/+60
Change-Id: Ibf64cecd88faca1dce7f081a630faabd0ee76046 Reviewed-on: https://gerrit.libreoffice.org/15860 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> (cherry picked from commit 89f7a5670ae0b21c8a80f73d27b5bc1181021373) Reviewed-on: https://gerrit.libreoffice.org/15864 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-25fix assert on export of ooo40760-1.sxw to docxCaolán McNamara3-5/+13
and a pile more Change-Id: I7334233c789bb0ed7a60387ef7d84dd34ab5a187 (cherry picked from commit 3185b6c8caf97afa602c864f588d079cbbe04038)
2015-05-23tdf#91429 do not convert ooxml preset shape modifier valuesAndras Timar2-0/+9
Revert "Resolves: #i124703# adapt coordinate range from ms relative..." This reverts commit c764a3d978beb2e6197a8d3f7df53d81ebf72467. The reverted commit did not fix anything in LibreOffice in the first place. The document referenced in #i124703# is as good without the patch as with it. But it caused a regression. Conflicts: oox/source/drawingml/customshapeproperties.cxx Change-Id: I65eb114423039e9c9c684cc55009275fd06caacd Reviewed-on: https://gerrit.libreoffice.org/15875 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit da0a44b415f630ce39617b8c8f0c366177a7705e)
2015-05-22tdf#90946: sw: ODF import: ignore invalid gradient-name if style SOLIDMichael Stahl1-1/+11
The bugdoc has a fill-gradient-name that refers to a non-existent gradient and also draw:fill="solid"; handle this combination without exception. Change-Id: I2c912b28a6b1550e2e4c6c71ff8889ae1779c618 (cherry picked from commit 00eab70295cbce40368d57224c3f51c6e5f2457e)
2015-05-22tdf#91140: tweak fix a bit, turns out xmloff was also passing empty URLMichael Stahl1-0/+2
Change-Id: Ia6e1fbe18e72c9c06915e1b437076a1f56a6c206 (cherry picked from commit 12f907da9535ae9fb28fb7ef1b05240eabf51e82)
2015-05-22sw: avoid CrossRefBookmark assertion when importing ooo83574-1.docMichael Stahl1-0/+5
One of the thousands of redlines in the document contains a paragraph that has a cross-ref bookmark on it. At the end of the import the redlines get hidden, i.e. copied and deleted from the body. Because this redline starts in the middle of a paragraph, the CrossRefBookmark on its last paragraph gets its position corrected onto the middle of a paragraph, and it becomes unhappy and asserts. Probably this can only happen in WW8 import, since other imports insert the redline data into the redline area in the nodes array. Change-Id: I5bfd94cacf9c2e76fd646728a123b3297b47c255 (cherry picked from commit 27384cdf7df20d6bc46e5d028f27be41b49b0f02)
2015-05-22sw: fix -Werror=shadowMiklos Vajna1-3/+3
Change-Id: I8ad37290a2b5dab41d180799f9e5ec7d603952ba
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1018-49652/+49652
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-20tdf#76941 and tdf#87539: docx export image greyscale, watermark, black&whiteJoren De Cuyper5-2/+47
Thanks to Miklos :) Change-Id: Ib6344ff654e39bf712d7071545573fb2ec525b63 Reviewed-on: https://gerrit.libreoffice.org/15733 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-20tdf#85911 docx: export comment initialsJoren De Cuyper3-1/+12
Change-Id: I1437c197312911a15a50715235d840b24117bfba Reviewed-on: https://gerrit.libreoffice.org/15742 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-20SwEditWin::MouseMove: ignore visual area when tiled renderingMiklos Vajna1-1/+1
With this, it's possible to do mouse-button-down + move several times + mouse-button-up desktop-style selection of Writer text. Change-Id: If0711c5d397a8342b31c9b5448bf6223990529e4
2015-05-20tdf#90882 Writer: insert row/col before/afterPhilippe Jung5-16/+95
From the contextual menu, it is now possible to insert rows or cols before the current position. Number of rows/cols inserted is based on current selection. Change-Id: Ie1a718fbb1b8caf67716f9c8fad21f90d182ca79 Reviewed-on: https://gerrit.libreoffice.org/15773 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-20LOKit mouse move handlerMihai Varga3-0/+18
Change-Id: I783bf782df66329ea4a1f78346aa2c36b9e4e425 Reviewed-on: https://gerrit.libreoffice.org/15799 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-20fiX OSX buildNoel Grandin1-1/+1
Change-Id: I5dafc2c8a76356a7bbb258ec9563085d8f2b05cc
2015-05-20fix OSX buildNoel Grandin1-1/+1
Change-Id: I5f2ce7043802963c5fa41f0710c176a270e2d23b
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin12-17/+17
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-20convert ANTIALIASING constants to scoped enumNoel Grandin1-5/+5
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
2015-05-20convert DRAWMODE constants to scoped enumNoel Grandin3-18/+18
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-20convert TEXT_DRAW constants to scoped enumNoel Grandin5-9/+9
Change-Id: Ic0f7f8fa236bb478b3598ae3fd3c1b30ebbf1a01
2015-05-20convert SAL_LAYOUT flags to scoped enumNoel Grandin1-2/+2
Change-Id: I0aeea1f32136e43e90a1afb0ea84dbaff2b77587
2015-05-20sw: prefix members of SwCondCollPageMiklos Vajna2-23/+23
Change-Id: I8e290ab6264dff4d361e1dc0eee6b69a14512d03
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos2-2/+2
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-19SwPaM::Find: search in shapes anchored to the rangeMiklos Vajna1-5/+21
Change-Id: I028f95029deaebddcacf2730d429ad53abbc79fa
2015-05-19Add sw::DocumentDrawModelManager::Search()Miklos Vajna3-0/+66
Change-Id: Idcbbb9e049f0fbc5d6503b86fd506df9fb2ad3c5
2015-05-19Add SwView::EnterShapeDrawTextMode()Miklos Vajna2-0/+9
Change-Id: Ic19519ee727bd4b6c18d14dc3eb21b2eeb4395c9
2015-05-19tdf#67421: Prevent unloading objects due to cache fullMike Kaganski1-4/+2
When an object is added to OLE objects cache, when cache is full, old objects are tried to be unloaded. This triggers notifications that cause all loaded objects to become active, and to be added to cache (moved to front). As the new object already was added to front of the cache, later activity pushes it to back, until it is the last object in cache. The cache in this process is overfilled, so each next refresh tries to unload current last OLE object. So, in the end, this effectively unloads all cached OLE objects. This patch prevents this by first unloading last object, and then adding new object to front of cache. Also, removed needless creation of reference (makes at least 200 function calls for no reason). Change-Id: Ia903f4df101971df1b0b0148320fc8e45ac1e79c Reviewed-on: https://gerrit.libreoffice.org/15772 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-19SwPaM::Find: when no more result in the shape, unmark itMiklos Vajna1-0/+3
So that when the next result is found in the normal Writer text, only that will be selected. Having both shape selection + Writer text selection is confusing. Change-Id: I52d399e7224b472f76d39d93ffc394c2e3107a86
2015-05-19tdf#90905 fix for url encoding in internal urlsVasily Melenchuk3-2/+15
Do not try to use INetURLObject class for encoding of internal document links. External URLs are encoded as before. Change-Id: I90621819ed21c3f793171ac4ab3fc7d49ac69f56 Reviewed-on: https://gerrit.libreoffice.org/15625 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-19check for and handle missing base in mail merge (related: fdo#33266)Bjoern Michaelsen1-1/+44
Change-Id: I3e362a873c28026cbecf005c07def1295aa920e0
2015-05-19tdf#91261: DOCX import: snapGrid property of paragraphs are ignoredMark Hung2-0/+19
Fix the situation for OOXML import filter: a) While handling DocGrid type, SnapToChars was treated as None. Now it is implemented as described in the article: http://linpeifeng.blogspot.tw/2007/02/text-grid-enhancement.html Both LinesAndChars and SnapToChars will be translated to Writer grid type "lines and characters", and set SnapToGrid property to false or true accordingly. b) All the imported paragraphs snap to grid because SnapToGrid was appended to grabbag, now it allows SnapToGrid property in paragraph and paragraph styles to be imported properly. Change-Id: I446b4c64c0ed86960896bcd61a1006c9173a757a Reviewed-on: https://gerrit.libreoffice.org/15732 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-19LOKit callback for search not foundMihai Varga1-0/+15
Needed for signaling the user when no match was found for the searched input Change-Id: I171ee956d94d6fd83036ae34102c2f1bdd5661de Reviewed-on: https://gerrit.libreoffice.org/15798 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-19sw: prefix members of SwLayouterMiklos Vajna2-24/+24
2 members were prefixed, 2 not, it was confusing. Change-Id: I41940e5172ff1fcec8f90afc1b5389072d0869f4
2015-05-19Remove include stdio (part3)Julien Nabet15-36/+4
Change-Id: I0b44a33dc38b76130a7b230962de7ce86bd4574b Reviewed-on: https://gerrit.libreoffice.org/15793 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>