summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
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-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-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-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: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-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-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-07ofc avoid oomCaolán McNamara
Change-Id: I2983d97895206db481b990ccd4f0ecd9d8b31b81
2017-05-07ofz check against expected struct sizeCaolán McNamara
don't copy vector and const up as well Change-Id: Ia9c9dd9e0dee2300f8f60eec15b67e4a349c8a93
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>
2017-05-07Fix typosAndrea Gelmini
To complete commit 076758857a98 Change-Id: I6424109e3aee8a3236e40168bdd98c725a7afafb Reviewed-on: https://gerrit.libreoffice.org/37306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-05-07revert OSL_ASSERT changesChris Sherlock
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
2017-05-07tdf#43157: convert sw module away from OSL_ASSERT to assertChris Sherlock
Change-Id: I2018d669e4886040882c90012ad2b2c9f8a07331
2017-05-06ofz avoid oomCaolán McNamara
Change-Id: Ibfa71bc898ff97c2a50528c8396b1d17dcbf30b7
2017-05-06coverity#1405890 Unchecked dynamic_castCaolán McNamara
Change-Id: Ib17e612d8d9b9e9fb712f3fdb4dba24d583a6dba
2017-05-06Typo: attibute(s)->attribute(s)Julien Nabet
Change-Id: Ief134396d3144257e64832cad2590db5d477447a Reviewed-on: https://gerrit.libreoffice.org/37312 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-05-05Fix typosAndrea Gelmini
To complete commit 0ef94e2b559547bc4e906e7f24e57ff5d642e108 and f12096272e684ddcd8ffa4e34dcb0a680cc594c2 Change-Id: Ie86bbfbd58dd728a013bef221e4d5c8fbcaf8e03 Reviewed-on: https://gerrit.libreoffice.org/37199 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-05-05sw: fix invalid downcast in sw::UndoManager::Repeat()Michael Stahl
(regression from 64ea8306b0ceb001132ac9cbc945a12afc01b8cd) Change-Id: Ie5343b9911feea329fc176f0abe31edc9e68a33e
2017-05-05ofz: fix leakCaolán McNamara
Change-Id: I38a3056dc38997a062904c0368a34fdd405715dc Reviewed-on: https://gerrit.libreoffice.org/37282 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-05-05sw: avoid warning duplicate style name of family 101: "Default_20_Style"Michael Stahl
Change-Id: If0c0ae10d56b0153b4686b9c8ec66adc52c42c72
2017-05-05fix spelling, methode -> methodNoel Grandin
Change-Id: I1c7a4e657601e28d9d50d86e24c4e0ba7579b9d4 Reviewed-on: https://gerrit.libreoffice.org/37289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-05move aItemSet out of classCaolán McNamara
Change-Id: Id3c026ced7d7e8484c25387c228a75b85f1f0519 Reviewed-on: https://gerrit.libreoffice.org/37281 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-05-05tdf#39468: Translate German comments in sw/source/ui/{dbui, frmdlg, index}Jens Carl
Change-Id: I685875a3e58379aa5a1e338b17f3773efb859b8e Reviewed-on: https://gerrit.libreoffice.org/37271 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-05tdf#39468: Translate German comments/terms in sw/source/filter/ww8/wrtww8.cxxJens Carl
Change-Id: Ib4277ee56045bffceea085f54daf858d4d3ae644 Reviewed-on: https://gerrit.libreoffice.org/37272 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-05-05tdf#39468: Translate German comments and terms in sw/source/filter/ww8/Jens Carl
Change-Id: I5becfe1131ba1dbd17cde2595f37c068cb9fcbc5 Reviewed-on: https://gerrit.libreoffice.org/37273 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-05tdf#103158 ctrl+shift should work on key upMaxim Monastirsky
Under gtk/gtk3 we send CommandEventId::ModKeyChange on key down, to support the auto-accelerator feature. But at least the handler in SwEditWin::Command must get it on key up, in order to not interfere with other ctrl+shift+X shortcuts, which work on key down. To achieve that, we need: - On key up pass the key that was just released, instead of the current state of nothing being pressed. - Have a flag of whether it's a key down or up event, so it can be checked by the application code. Change-Id: If188d6ccdc3b214a2c3ed20aad291d74d46b358f Reviewed-on: https://gerrit.libreoffice.org/37275 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2017-05-05loplugin:checkunusedparams in toolkit..vbahelperNoel Grandin
the extra argument on the runtimeexception method was only ever passed an "OUString()" Change-Id: I0ea19ae9328760918f1267f27ba103432fff0b47 Reviewed-on: https://gerrit.libreoffice.org/37274 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-05Defining SID_UNICODE_NOTATION_TOGGLE once is enoughMaxim Monastirsky
Change-Id: I6d63ee582ad5530ecb713dd65350912ee27dc15d
2017-05-05tdf#106127: Sidebar: Enable patterns as page backgroundKatarina Behrens
don't know who in their right mind would want to use it, but it's possible to set such background in the dialogs, so let's make this consistent Change-Id: I0d5dea0edfeae8d8ca65ad2bd18ced9a982a224c Reviewed-on: https://gerrit.libreoffice.org/37265 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-05-05loplugin:checkunusedparams in svtoolsNoel Grandin
Change-Id: Iea68d7c0683740acaf4f85c14efe2a33e0cf13e7 Reviewed-on: https://gerrit.libreoffice.org/37201 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-05loplugin:checkunusedparams in svx(part4)Noel Grandin
Change-Id: I032b49f4e1228ef275d7ff8d87ba969dcef687ab Reviewed-on: https://gerrit.libreoffice.org/37248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-05convert HTML_TOKEN_IDS to scoped enumNoel Grandin
Change-Id: I525506e0103e4f17e5b8b95f15c1285d65b93de9 Reviewed-on: https://gerrit.libreoffice.org/37220 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-04tdf#39468: Translate German comments in sw/source/core/text/itrform2.cxxJens Carl
Change-Id: I39c918c4c89e94aac2031674646ca2f1f5ca3fd1 Reviewed-on: https://gerrit.libreoffice.org/37219 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-05-04tdf#107573 change label of outline numbering in menu and dialogYousuf Philips
Change-Id: I38334bf726ab617bab390f0c45bb79c387aae424 Reviewed-on: https://gerrit.libreoffice.org/37200 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2017-05-04tdf#39468: Translate German comments and terms in sw/source/core/unocore/Jens Carl
Change-Id: I7e9a7b1721de6b183d2511e36b3e20a32a8118f1 Reviewed-on: https://gerrit.libreoffice.org/37224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-04tdf#39468: Translate German terms in sw/source/core/graphic/ndgrf.cxxJens Carl
Change-Id: I7507a4389d1dc9a5361dadbaa3efa63b2153b7dc Reviewed-on: https://gerrit.libreoffice.org/37221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-04tdf#39468: Remove obsolete German comments in sw/source/core/sw3io/swacorr.cxxJens Carl
Change-Id: Iabe8b652d1e8e45ad10c5c8d24dfc4933ba5d688 Reviewed-on: https://gerrit.libreoffice.org/37222 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-04AutoText: fix dotm supportSzymon Kłos
+ dotm files don't contain additional empty paragraphs at the end of AutoText entry + added test for dotm import Change-Id: I336145dcf8a5dd69aa9ed82318a0f05a6f62596c Reviewed-on: https://gerrit.libreoffice.org/37230 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2017-05-04loplugin:checkunusedparams in sfx2Noel Grandin
Change-Id: Iea88ddd619f10a2a2586ee24edbf07e246dcbb49 Reviewed-on: https://gerrit.libreoffice.org/37191 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-04Resolves: tdf#107603 crash after loading new numrule in numbering dialogCaolán McNamara
Change-Id: I0f270793a4b0312e23079789a37c402b31e54238
2017-05-04Replace all OUString("") with OUString()Arnaud Versini
Change-Id: Ie14c4d76cb61cfbe0410103adfc1afc8ade0f3e0 Reviewed-on: https://gerrit.libreoffice.org/37146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-03tdf#105293 tdf#81475 Tweak standard and formatting toolbarsYousuf Philips
Change-Id: Iec9750b2b0c3c3d3aefd7ebae73924bd4311b87a Reviewed-on: https://gerrit.libreoffice.org/37203 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2017-05-03AutoText: first tests & windows fixSzymon Kłos
First tests for AutoText DOCX import: + checking if nothing will be imported when there is no AutoText, only normal content + checking count of loaded entries + checking names of entries + checking first and last paragraph Windows fix: Added swdocxreader to msword library Change-Id: I3cf02572dd85e72b1566ce523e373753a4bd346c Reviewed-on: https://gerrit.libreoffice.org/37176 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2017-05-03tdf#107033 DOCX import: fix unexpected missing footnote separatorMiklos Vajna
Regression from commit 330b860205c7ba69dd6603f65324d0f89ad9cd5f (fdo#68787 DOCX import: handle when w:separator is missing for footnotes, 2013-09-04), the problem was footnote settings were modified also in case there were no footnotes at all in the document. Make the bug scenario and the original one working at the same time by touching footnote settings only in case there is at least one footnote in the current section. Change-Id: I163d11769cbd97957662607fbedfba404181e002
2017-05-03tdf#39468: Translate German comments and terms htmlnumwriter.cxxJens Carl
Change-Id: I4cb4060d1b5208dabb6205516110c8bb7f8b38e3 Reviewed-on: https://gerrit.libreoffice.org/37115 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>