summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-05-07refactor "TextEdit" & co. to use RenderContextTomaž Vajngerl
Change-Id: Ib26ecb9640d23714acec73304f26e2fd6af90ed4
2015-05-07sw: prefix members of MSWordStylesMiklos Vajna
Change-Id: I9cd8474c658643d1f6044ecf6c56efdd42530979
2015-05-07tdf#91122 unit test for docx import with wrong vertical positionLászló Németh
Change-Id: Id268393bf28a6edb4a481d7a74ae412b337b3fc8
2015-05-06sw: clean up some defensive programming in modcfg.cxxMichael Stahl
Change-Id: I901d934d1c2bdf6f15760292481091eb740dfda1
2015-05-06SvxOpaqueItem takes a sal_uInt16 nId as first argumentStephan Bergmann
This code was like that ever since 84a3db80b4fd66c6854b3135b5f69b61fd828e62 "initial import." From other uses of SvxOpaqueItem, the best bet appears to be RES_OPAQUE. Change-Id: I19de8fac4f41716d9c2a73bda4a8cea200ae99f8
2015-05-06cleanup DIALOG_NO_PARENT, follow on to tdf#91090Noel Grandin
remove the DIALOG_NO_PARENT abomination and replace it with a flags parameter Change-Id: I71b7dc46c619f2db56af6d4dc2c17daf0a2c8534 Reviewed-on: https://gerrit.libreoffice.org/15645 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-06sw: add SwDBData::sEmbeddedNameMiklos Vajna
It is supposed to contain the name of a stream in the document storage (like "Object 1") that has an embedded database for mail merge data source definition purposes. It's just loaded / saved from ODF at the moment, it's not yet used for anything. Change-Id: Ida366478fd83aa51e66e958ac09d852332c227c9
2015-05-06drop useless temp debugging stringsCaolán McNamara
Change-Id: I3dbcc792278814df6c23d0f593bd6d86b5d4907e
2015-05-06convert BMP_MIRROR constants to scoped enumNoel Grandin
and fix bug in svx/source/xoutdev/_xoutbmp.cxx,XOutBitmap::MirrorGraphic where it was not correctly translating between different flags types. Change-Id: I78b4965544da2aa54b67ec18307fa54c8ffc3aee
2015-05-06convert BMP_SCALE constant to scoped enumNoel Grandin
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
2015-05-06convert USER_OPT constants to scoped enumNoel Grandin
Change-Id: I85a1c9f89ac79e0e54fcd8dfd1908325fae9a8ac
2015-05-06convert DEFAULTFONT_ constants to scoped enumNoel Grandin
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-05-06convert SUBSFONT_ to scoped enumNoel Grandin
Change-Id: Ic66191ac4cdfa753dc784e7bd1a6dd20f50def6b
2015-05-06convert CONFIG_MODE constants to scoped enumNoel Grandin
Change-Id: I1b0fb976e7bf8d7de06da0c30012e8bba1320498
2015-05-06Use various typed ToolBox::Set*Hdl LinksStephan Bergmann
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
2015-05-06sw: make SplitRedline() a little more readableMichael Stahl
Change-Id: Icd99c8d98ae4c5cd6c6552a929c28ad0f096c214
2015-05-06sw: fix crash due to redlines on tables on ooo121112-2.docxMichael Stahl
Problem is that after import there are SwRangeRedline that start in the first cell of a table and end in the paragraph following the table. There are <w:del> elements covering every individual paragraph in the table; all of these are merged into one SwRangeRedline. This could possibly be fixed in writerfilter by buffering the m_pParaMarkerRedline until after convertToTable() to prevent the merging, but perhaps it's better to fix it in SwXText::convertToTable(). Change-Id: I853ae624fffedb59a48bd90decb0973bf33beb68
2015-05-05Use more proper integer typesMatteo Casalin
Change-Id: If1515df57cd90451f2c912bf5c268fec8688c063
2015-05-05Store getColumnCount()/getRowCount() results in sal_Int32Matteo Casalin
instead of sal_uInt16, to match type preferred by following code. Also use size_t for calculating products, just to stay on the safe side Change-Id: Id875e01aa2087fc27e60536d5e3ef152b22aadc6
2015-05-05Use more proper integer typesMatteo Casalin
Change-Id: I8200af6fcb111edd8a00cb77824e84e2231bee1b
2015-05-05Use more proper integer types and range-based for loopsMatteo Casalin
Change-Id: Icbda6c3ab23622e1d9f73d3a9a30ff0c278684cf
2015-05-05drop useless temp debugging stringsCaolán McNamara
Change-Id: I7731d16044fe884d5678330920bf468ccff87d19
2015-05-05sw doc model xml dump: include SwDBDataMiklos Vajna
Change-Id: I082a9d3ca268d19ac21c28a6b453d457ed27c959
2015-05-05vcl: rename other members of StateChangedType for consistencyMichael Stahl
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05Remove using directive that has become unusedStephan Bergmann
...with 7ebed1d63e2ad5728fa81b65fa98f09b0406965d "fix windows build" Change-Id: Ibb8182cbfab47fed117c731f24fa90519b20653b
2015-05-05loplugin:staticmethodsNoel Grandin
Change-Id: I5d02ba0db00e11af3c17eaf77ce19c635a52077f
2015-05-05Various loplugin warningsStephan Bergmann
Change-Id: I8d38521f08441f123a236729c01909f2da4ec478
2015-05-05-Werror,-Winconsistent-missing-overrideStephan Bergmann
Change-Id: If6643acec764def691a3229655a992ae852e1238
2015-05-05Use typed Idle::SetIdleHdl LinkStephan Bergmann
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05tdf#34555 add crop features to swPhilippe Jung
Adds Crop (by handles) to writer. Proposal of new Format menu and image context menu organisation. This is part of a serie of 4 patches that adds Save graphic, Change Picture, Edit with external tool, Crop (by handles) in all products (scalc, sdraw, simpress, swriter). Main menus, toolbars and contextual menus are updated accordingly. Change-Id: I6fe8907e08519326c78f0bc71f27032b5716bb8e Reviewed-on: https://gerrit.libreoffice.org/15590 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2015-05-05fix windows buildNoel Grandin
Error is "ambiguous call to overloaded function" Rename methods to something more specific to avoid this. Change-Id: Iac275e38cf7fb06be55cd859041acc641c13db35
2015-05-05Adapt SwSrcEditWindow's SyntaxTimerHdl to being used in an Idle nowStephan Bergmann
...not a Timer, since d843f3de731667a298a83fc66637c7f983f3b24d "changed timers to idle" Change-Id: If8c6a52d6fb7b1e392e8f31bc8f0db22b2f049e1
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-05loplugin:staticmethodsNoel Grandin
Change-Id: I90dd921077bbfc57200e398e7959306f26c65cfe
2015-05-05typo: strech -> stretchAndras Timar
Change-Id: I0de1cfaa0df460c7bc8e49752b31056f95c30053 Reviewed-on: https://gerrit.libreoffice.org/15628 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2015-05-05drop useless temp debugging stringsCaolán McNamara
Change-Id: Iee9c1bd37664188e4dc10b929eb72b6370001417
2015-05-05RtfSdrExport::StartShape: use std::unique_ptr<>Miklos Vajna
Change-Id: I236d7d951bae8c40d2caaa5ecd6dfd669f8ea982
2015-05-04drop useless temp debugging stringsCaolán McNamara
Change-Id: I7e9edae135bd8f3b958c2013fe6d944ab3de2100
2015-05-04Revert "Delete unused strings in undo.src and undo.hrc"Joren De Cuyper
This reverts commit 4c07124cf4f7684d271d0e71a095c67e0f988e45. It looks like these strings are used via an iteration in docundo.cxx So, restore them. Change-Id: I1b0428de3d56b04908284c94b47dc6021375cc8e Reviewed-on: https://gerrit.libreoffice.org/15629 Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org> Tested-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-04tdf#91077 unit tests for shape import of discarded DOCX header/footerLászló Németh
Change-Id: I3e78e3104af97eed91c102e9ca5546e0785c5f8c
2015-05-04cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I1f5272cdf05b36d1c6958159a29c04ed7374592d
2015-05-04Include <cstdint> early to be sure to get SIZE_MAXTor Lillqvist
Turns out that at least with the glibc version I have on openSUSE 12.3, whether <stdint.h> defines SIZE_MAX and friends or not depends on whether __STDC_LIMIT_MACROS is defined, and that gets defined (in our case) only when <stdint.h> gets included through some boost include file, or through <cstdint>. In the case of this compilation unit, apparently <stdint.h> gets included directly somewhere before SIZE_MAX is used in sw/inc/docary.hxx. Possibly a better fix would be to make sure we include <cstdint> everywhere and not <stdint.h>. That wouldn't help in case it is through some 3rd-party C library include file that the <stdint.h> gets included, though. This reverts commit 8e6527a97bc6f05c5db9f0485089b5cde97531fe Change-Id: I200985ee70eaf90fc3fa9341fdf9d657750e49ee
2015-05-04Fix error: use of undeclared identifier 'SIZE_MAX'Tor Lillqvist
Not sure why I get that error here but elsewhere SIZE_MAX works fine. But anyway, we have SAL_MAX_SIZE, so use it. Change-Id: I2c650bed35a560ed685ac01b4df4dc143af8bcd3
2015-05-04Delete unused strings in undo.src and undo.hrcJoren De Cuyper
These strings were only used in the src and hrc file. No usecase in any .cxx file found. Change-Id: I079f42818bf397c5226a7c1f9d2db37b841437c6 Reviewed-on: https://gerrit.libreoffice.org/15613 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-03tdf#89783: Adjust to new GetPos retval (size_t vs. sal_uInt16)Katarina Behrens
Some of the usages of GetPos were just misusing it to find out whether a vector contains given element -- use Contains() in those cases This patch is partially based on work of Christoph Lutz Conflicts: sw/source/filter/ww8/wrtw8esh.cxx sw/source/filter/ww8/wrtw8num.cxx Change-Id: I40bedba905e7577ba23f69acee178e0ea7cc1521
2015-05-03tdf#89783: sal_uInt16 replacement by size_t: sectionsVasily Melenchuk
These replacements allow LO to load, save and mail merge documents having more than 65536 sections in total. Change-Id: I0e70889b1edc6e472a39f1f2638ac3c70a0d7058 Signed-off-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-05-03Use range-based for loops, better integer types and avoid some castsMatteo Casalin
Change-Id: Ife8bb0bb1d20655c0526aad1d4921713c961eb7a
2015-05-03Use auto and constifyMatteo Casalin
Change-Id: Ib871b2c8bb5696bc7c31413548362410f0d35187
2015-05-03Expand macro that is used just onceMatteo Casalin
Change-Id: I93078315c6113bbde630ab8a2cb6c11668c9d041
2015-05-03Use auto and range-based for loopsMatteo Casalin
Change-Id: I5fecd9cfb64fee9d18e4491e6219c1b90e64ea7c