summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-09tdf#31814 EMF+ Fix an issue when not all elements were displayedBartosz Kosiorek
On on EMF+ images generated by ChemDraw, some elements were not displayed. After investigation, occurs that position of points was not read properly in same cases. This commit fixes such cases. Change-Id: I1d01d8defc41f4e437a669ef1268b8e33823cfc1 Reviewed-on: https://gerrit.libreoffice.org/37406 Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl> Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-05-08Updated coreGabor Kelemen
Project: help fb264eba8c882558fd2a21da25b7134b8a381708 Put a space between ahelp and switchinline tags content Such places are prone to have no space after the previous dot. Change-Id: Id14ae16c2c165e3353f9e65863a05208a3a331b8 Reviewed-on: https://gerrit.libreoffice.org/37364 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-05-08Make kSAME constexpr and move k0 to the same place.Eike Rathke
Change-Id: Id99d2dd799d3ee0cc2badf4aaf1b5acd7fb02c27
2017-05-08Whatever LANGUAGE_SYSTEM may be in future, this has to be 0Eike Rathke
Change-Id: Iddc4dcf3e29919b092560d3bdd81ca85667b224b
2017-05-08Adapt to reality, defines are LanguageType strong_intEike Rathke
... since c70d49c7c888da8cfd73db8585e7be1f37fc398a, so adjust the regex. Change-Id: I460b5983cd7a0d3e4c4368e946bb8b8f6153f9a4
2017-05-08vcl: split jpeg import into two partsMiklos Vajna
Split the import into two: 1) Just create the bitmap, this part is not thread-safe (e.g. OpenGLContext::makeCurrent() is called when OpenGL is enabled). 2) Import the image into an existing bitmap. The point is that the second part takes much more time than the first, and in the future that part may be executed on a thread, while without such a split the whole ImportJPEG() can't do that. For now GraphicFilter::ImportGraphic() simply invokes the two parts after each other, so no real functional changes yet. Change-Id: Iee742a2cd3c581aeaf1a1ed9f55cd543955a85e0 Reviewed-on: https://gerrit.libreoffice.org/37397 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-05-08tdf#39468: Translate German comments/terms in sw/source/filter/html/swhtml.cxxJens Carl
First set of translating German comments and terms. Change-Id: I95a52fd46cace8a254dddffcc8f8406c0ae6a157 Reviewed-on: https://gerrit.libreoffice.org/37311 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-05-08sw: fix doxygen commentMichael Stahl
Change-Id: I89b323a61f0617dfe6c21adbdfb3f8a7c90d6d15
2017-05-08Updated coreStephan Bergmann
Project: translations 1445752e8e2558302b32c90eb5d28ad771651ee3 Typo, missing "emph>" ...causing warning > [HPX] de/helpcontent2/source/text/swriter/guide > Entity: line 1: parser error : Opening and ending tag mismatch: root line 1 and emph > ken Sie in diese Tabelle und wählen Sie &lt;Tabelle - Löschen - Tabelle</emph> > ^ > Entity: line 1: parser error : Extra content at the end of the document > ken Sie in diese Tabelle und wählen Sie &lt;Tabelle - Löschen - Tabelle</emph> > ^ Change-Id: Ib59bbd71ae2baa7a8eb0690afc3565cb15571749
2017-05-08tdf#70960 sw::UndoManager: fix exponential Repeat proliferationMichael Stahl
In case of a multi-selection, the usual pattern is that the EditShell contains a loop around GetCursor()->GetRingContainer() that creates N "groups" of undo-actions, all of which are inside a SfxListUndoAction. If that is then repeated again with a multi-selection, the result will be N*N actions, etc. This is usually not an issue because most repeatable actions are idempotent - except for the resource usage. Prevent the 2nd step of the proliferation by introducing a flag in SwUndo to do nothing in SwUndo::Repeat() that is set for all but the 1st cursor of the multi-selection in sw::UndoManager::Repeat(). (presumably regression from CWS undoapi) Change-Id: I095258f6d57af6bcaa8a39747632422e8311e694
2017-05-08tdf#43157 Cleanup DBG_ASSERT in pstm.cxxFakabbir Amin
Change-Id: Ibc7b7399ccc827168768ee94b6e75e4116fc95c9 Reviewed-on: https://gerrit.libreoffice.org/33882 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-05-08fold SfxPickList::Get and ::ensure togetherCaolán McNamara
Change-Id: Iab68095a9733393b656623ddd6bb8705f7cfda82
2017-05-08Resolves: tdf#107693 move CreateAutoMnemonics from Execute to ActivateCaolán McNamara
Change-Id: Id65dfcc40dd20c391e12108abc6a6531e4c96523
2017-05-08tdf#104312, tdf#105428: use static vars in ReplaceStringHookProcAron Budea
And use call_once to initialize them once. Change-Id: Ic2f97a51ccc6ee400eb1af56da2c8fd88e226a9d Reviewed-on: https://gerrit.libreoffice.org/37318 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-05-08loplugin:checkunusedparams in sw(part3)Noel Grandin
Change-Id: I604aa74e737894daa6e1878ac3ed61d9eeb6512a Reviewed-on: https://gerrit.libreoffice.org/37296 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08drop unneeded checksum from tarball nameDavid Tardon
Change-Id: Ib2f64fcdb92f7162ac4365591cfe50c5786f2f45
2017-05-08Updated coreIlmari Lauhakangas
Project: help 19954e8fcbc157752059462652d55c1b5e40f45b Make wording clearer Change-Id: I5423b72f9f612749ca4dc92c4740915c4c6d0597 Reviewed-on: https://gerrit.libreoffice.org/37299 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-05-08tdf#39468: Translate German comments/terms in sw/source/filter/ww8/ww8par2.cxxJens Carl
Change-Id: I4dc53515e4e05b2de9c875bd2165329847d1bbef Reviewed-on: https://gerrit.libreoffice.org/37310 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-05-08sw: prefix members of SwImpBlocksMiklos Vajna
Change-Id: I6ffe2eb6a1c401ccaa031be5d9ce9fae488d0014 Reviewed-on: https://gerrit.libreoffice.org/37376 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-05-08tdf#39468: Translate German comments in sw/source/filter/ww8/wrtw8sty.cxxJens Carl
Change-Id: I7d3e5a366446007c323681abf2b75f54e427d145 Reviewed-on: https://gerrit.libreoffice.org/37309 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-05-08loplugin:checkunusedparams in sw(part2)Noel Grandin
Change-Id: Ic6829542628ed1f5ed7d6b3d6be1d28ed1b5c75b Reviewed-on: https://gerrit.libreoffice.org/37292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08ofz avoid oomCaolán McNamara
Change-Id: I1cbcdc0aec8596fce4a803f885b328e604dc22fd
2017-05-08loplugin:useuniqueptrTor Lillqvist
Warning fires in the --disable-gltf case. Change-Id: I9f0fb15f581dbbe0e9ba68789ed5a1cd1a9b28d2 Reviewed-on: https://gerrit.libreoffice.org/37235 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-05-08Removed duplicated includeAndrea Gelmini
Change-Id: If24026da701ea041fa3138a8ab0905a175da4ea6 Reviewed-on: https://gerrit.libreoffice.org/37360 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-05-08cleanup tools/debug.hxx includesJochen Nitschke
with command > git grep -l tools/debug.hxx | xargs grep -L DBG_ | xargs sed -i '/#include *\(<\|\"\)tools\/debug.hxx.*/d' don't change files in includes/ and */pch Change-Id: Ie429d6a7dca5dfa1073e0f5ba037f7c84bdbec08 Reviewed-on: https://gerrit.libreoffice.org/37349 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08hNonAliasedFont is unusedNoel Grandin
ever since commit e45d80f20ff6a05888f92ae942abed67609d5b20 Author: Tim Eves <tim_eves@sil.org> Date: Tue Feb 23 16:45:21 2016 +0000 "tdf#97171: Use DirectWrite for OpenGL glyph caching" Change-Id: Ib6675e89caa68a5ee725a36a0d5ded973cc98723 Reviewed-on: https://gerrit.libreoffice.org/37348 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08loplugin:checkunusedparams in sw(part1)Noel Grandin
Change-Id: I4847b0f96033016e020212fb8d7331309db25b55 Reviewed-on: https://gerrit.libreoffice.org/37287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08loplugin:checkunusedparams in xmlsecurityNoel Grandin
Change-Id: I9460e43264a8cbf3bb2aef83893288b767b2736f Reviewed-on: https://gerrit.libreoffice.org/37284 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08loplugin:checkunusedparams in xmloffNoel Grandin
Change-Id: I59d2cb1f69882b62e6fe732e9d9214feec8a79a2 Reviewed-on: https://gerrit.libreoffice.org/37283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08teach loplugin:constantparam about simple constructor callsNoel Grandin
Change-Id: I7d2a28ab5951fbdb5a427c84e9ac4c1e32ecf9f9 Reviewed-on: https://gerrit.libreoffice.org/37280 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08remove unused boolJochen Nitschke
japanese candlesticks has no function since initial commit a41687b62b0a6f2b79e44311ddf74c52e844ee36 New files from xlsx-shared-oox-chart-export-part1.diff bool is unused since last loplugin:unusedparams in oox commit 4cc0b82103e0b1d28a3ada59974aac0e7da18083 Change-Id: I30d51ecdeea851ebe1538e33ed1a0b32e131aa80 Reviewed-on: https://gerrit.libreoffice.org/37351 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08remove unused doubleJochen Nitschke
unused since commit 60fd81d83a2dbcb64a38910de49f8e2620353702 loplugin:checkunusedparams in filter Change-Id: I69af38f19b0c39a778990bc62f3f6823c6d65f34 Reviewed-on: https://gerrit.libreoffice.org/37352 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08cppcheck nitpicks variableScope and redundantAssignmentJochen Nitschke
Change-Id: I1399e066a96bbd9a3b59e2670a75b0022c882a1d Reviewed-on: https://gerrit.libreoffice.org/37354 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08cppcheck: knownConditionTrueFalseJochen Nitschke
remove bDone and simply 'break' the loop when done. Change-Id: Idf4170083cbda3a783cb52bba9e94d3be512f167 Reviewed-on: https://gerrit.libreoffice.org/37355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-08tdf#106479 Make edit context menu dispatcher basedMaxim Monastirsky
This allows us to add there any .uno command and also get the icon and keyboard shortcut for it. Use this to add clipboard commands. Change-Id: Ic42c28add7771f322491e8e7d6df052e3c2c8d75 Reviewed-on: https://gerrit.libreoffice.org/37353 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2017-05-08Set modified flag on entry renameMaxim Monastirsky
Tools > Customize... > Context Menus. Rename some entry, click OK. Open the dialog again, notice that the label modification wasn't saved. Change-Id: I78a7093e958d9d8709192ac34b6e0f178b7956de
2017-05-07tdf#106265 ScopedHDC to clean-up hDC when rendering glyphsTomaž Vajngerl
Change-Id: I96ecf625126740610200c012c3c7002fac7e1548 Reviewed-on: https://gerrit.libreoffice.org/37347 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-05-07ofc avoid oomCaolán McNamara
Change-Id: I2983d97895206db481b990ccd4f0ecd9d8b31b81
2017-05-07convert EESelectionMode to scoped enumJochen Nitschke
Change-Id: I4da22d40d5b14878b5efac1f3e4a5c76adec37b3 Reviewed-on: https://gerrit.libreoffice.org/37341 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-05-07avmedia: remove useless mutex and lockArnaud Versini
Change-Id: Ia6088fdb8734acb76c38067246fa626ddf964f8e Reviewed-on: https://gerrit.libreoffice.org/37344 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-07tdf#31814 Introduce minimal value of line width to fix EMF+ import issuesBartosz Kosiorek
Based on observation of different EMF+ files (eg. exported by ChemDraw), there is minimal value of line width. This commit is fixing all such import issues. Change-Id: I5c26a1b511363eb1e429bf770ad0f482b124ecb5 Reviewed-on: https://gerrit.libreoffice.org/37319 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-05-07drop unnecessary GraphicObjectCaolán McNamara
Change-Id: Iadc741260b3c9f16248c817530b1630b22c626ee
2017-05-07convert to use std::unique_ptrCaolán McNamara
Change-Id: If675a1d506d30ea05c3b2113d114f416b2947466
2017-05-07split clear and set graphicCaolán McNamara
Change-Id: I3e98e872574e9edbe97099e93d787cbbcced60dd
2017-05-07coverity#1399034 Unrecoverable parse warningCaolán McNamara
emit.cpp:1472: assertion failure: emit-ast.cpp:1123: assertion failed: Ran out of fields in aggregate initializer have a guess as what it might be Change-Id: I0a93e2529c7d03e837e269f0903038b160540c84
2017-05-07Revert "coverity#1250405 Division or modulo by float zero"Caolán McNamara
This reverts commit 445ac42cc2f2f759a43d97198039b980026ed70e. Change-Id: I4f106a67385776262f187e63c445ea8c0cb0207b
2017-05-07create color config in ctor instead of on-demandCaolán McNamara
Change-Id: Id45b6cba3665c11074dbdc52757d1b6f0084b020 Reviewed-on: https://gerrit.libreoffice.org/37346 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-05-07ofz check against expected struct sizeCaolán McNamara
don't copy vector and const up as well Change-Id: Ia9c9dd9e0dee2300f8f60eec15b67e4a349c8a93
2017-05-07tdf#107668: fix form wizardJulien Nabet
Regression from https://cgit.freedesktop.org/libreoffice/core/commit/?id=fcf9c22e00db0107391775f51fac53555711b951 Use an hashmap to find the right helpText Change-Id: Ie3389406525fb068fb24262a40b8e6af4c744100 Reviewed-on: https://gerrit.libreoffice.org/37334 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-05-07break circular includeJochen Nitschke
of include/vcl/window.hxx and include/vcl/vclevent.hxx Change-Id: Iacb3cc942693a732de5899af26e08e0977a83102 Reviewed-on: https://gerrit.libreoffice.org/37338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>