summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)Author
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: I5c629821b7f30caba4d182d45f3f3cd0159acc5c
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: Ida49b6a482efa12703ce294b9665273ad2d8f68b
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: I93017f16affe16e8e452cd829bc4f9b495670d4d
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: I87d4697fe032e3095406becdda026447edd1d68a
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: Ie9f7f6a5dda1fd23558775b643e5b8fa850f4a89
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: Ie40dff6f1c40bf1866dc9947479299412abfd5ad
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: I51faff15782238620de5abf424aa237648a5c55f
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: Ied8e0b35f193770a6651f1c57dfb8eedd22d837c
2015-09-16convert Link<> to typedNoel Grandin
Change-Id: I9ce05712af8300c8bcea6ea0f670b57cce1ca43d
2015-09-16convert Link<> to typedNoel Grandin
Change-Id: Id5be64f38fa448271a5364c86c32ffddfc309bbf
2015-09-15tdf#62525 editeng: OutlinerParaObjectDaniel Robertson
Convert the pimpled copy-on-write OutlinerParaObject class from editeng to use ::o3tl::cow_wrapper using the default reference counting policy. Change-Id: I7009b9623d5be1bdf806ccaa6781cba82553c302 Reviewed-on: https://gerrit.libreoffice.org/18391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-14sal_uInt16 to sal_Int32Matteo Casalin
Change-Id: I7010e7daefd1710c41b526c085c892ac13f54cd0
2015-09-14Refactor graphite integration and update graphiteMartin Hosken
Change-Id: I09db7262c2a6180a078620ba086dd7a4c132bd82 Reviewed-on: https://gerrit.libreoffice.org/18459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: László Németh <nemeth@numbertext.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2015-09-13cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I39194062ba68c4cb1ccc9b93c629f005ccd02497
2015-09-13Also get rid of :: prefix for cssTor Lillqvist
Change-Id: Ie767abc36047ba614b3ac39991b3290bc19859b1
2015-09-13editeng: com::sun::star->cssNoel Grandin
Change-Id: Ied65d2de394ce54cb2c35abb152cf58ac3139395 Reviewed-on: https://gerrit.libreoffice.org/18503 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
(a use of nStyleNo at the end of SvxRTFParser::ReadAttr had been in a commented- out clode block ever since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import," and later been cleaned from the code) Change-Id: Ic9e30cc1bccca9c4246deb50fbc6d545e3ea31a2
2015-09-09clang-analyzer-deadcode.DeadStoresStephan Bergmann
...uselessly introduced with 94cac4c58d234fa7f75a115351b6d4dc02edab69 "changed to new clipboard interface" Change-Id: I4e446c7e524f1c80fe82d699d8c16e5cfa59932c
2015-09-07cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I2a1add8cf526cdb305ad99ccb138454a88f2fdbd
2015-09-03Fix tdf#93781 Impress copy wrong style name to clipboard whenMark Hung
style name contains Chinese character. Encode style name in multibyte sring (ex,Chinese) properly with RTFOutFuncs::Out_String(). Change-Id: Ibdd1010e28c711d7829643b60b32637ebce58bdb Reviewed-on: https://gerrit.libreoffice.org/18247 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-03Restored missing includes from source files.Ashod Nakashian
These source files relied on pch to include these missing headers (at least on Windows). Also included the script used to find the missing includes. The script is self-contained and includes unittests. It detects superfluous includes and required includes (which was used to restore the includes in this patch). Change-Id: I7ee09e5c712f42d5f6c3524898bc62dda78f5cc0 Reviewed-on: https://gerrit.libreoffice.org/18208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-01tdf#93052 - When save, generate unused list-styles in context.xmlJuergen Funk
First Patch do not solved the problem The evaluation of the 0 is here http://opengrok.libreoffice.org/xref/core/xmloff/source/text/txtparae.cxx#615 and this methode "xNumRule->getCount()" get back the 0. Change-Id: I2a8f53199b0819f36a7d3e1887c75089143b29a9 Reviewed-on: https://gerrit.libreoffice.org/18228 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-31Fix tdf#93438 Impress generate abnormal style when copy-pastingMark Hung
from Writer with Chinese UI. When user configure UI language as Chinese, style names are also translated. However when Copy-pasting from Writer to Impress ( select RTF fromat with paste-special), Chinese (unicode) style names are borken into multiparts, where some of them are empty string. Neither deleting the abnormal style nor saving the file can be achieved. The only remedy is to remove style with emtpy name with macro. With this patch: 1) Catch NoSuchElementException and ignores it, so user still has chance saving file. 2) Make sure style has valid number before inserting it. 3) Prevent text breaking into multiple tokens by handling ucN in ScanText(). Change-Id: I417f70b81c23ac63c175cc13c548068873d13a38 Reviewed-on: https://gerrit.libreoffice.org/18148 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-29sal_uLong to sal_uInt32 as SvxEditSourceHint IDMatteo Casalin
Change-Id: Ic53ed8f1b6fd4554259e7b94640bb76b178f52dd
2015-08-27don't write SvxBackgroundColorItem via inherited SvxColorItem::StoreCaolán McNamara
SvxBackgroundColorItem inherits from SvxColorItem and for backwards compatibility with the StarOffice 5 binary file format (yes, really) writes/reads only rgb and not the transparency value, so copying and pasting text from a sidebar comment in writer to itself or another one results in a black character background as the default COL_AUTO turns into black Change-Id: I18b5105dd8e060b9e49dda6026e26d3a0f00d8f5
2015-08-27Help GCCStephan Bergmann
Change-Id: Ibeace7ce7621033cf04e3186c212bbb4a27492a1
2015-08-27Clean up aEmptyStephan Bergmann
Change-Id: I4c4294b7fb1cb537ba3ae3e6e7e747a3333b7469
2015-08-26Convert vcl Button Link<> click handler to typed Link<Button*,void>Noel Grandin
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
2015-08-21tdf#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: I97726ed32e5aa92e7da7d248380a78b1b201e46e Reviewed-on: https://gerrit.libreoffice.org/17912 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-20tweak config-less sysconfig pathCaolán McNamara
Change-Id: I9b93b740aab2e6e2a19612d8ec41e699c1032e9e
2015-08-20more no-config shortcutsCaolán McNamara
Change-Id: Ieb3ae2d0e99e77b23e6826efdf51de56f3543865
2015-08-19Clean up remaining utl::LocalFileHelper::Convert...Stephan Bergmann
together with 58d68a1bc9146334376206ae7ba8b1a6594a1040 "ConvertURLToSystemPath->getSystemPathFromFileURL" and 28f3464a571a23a2c16bd0980e9021b95d011511 "ConvertSystemPathToURL->getFileURLFromSystemPath," this replaces all those Convert... functionality with direct calls to the corresponding osl::FileBase functions. Change-Id: I2876171cd337a5eb939d25d8cf1e0c1253ff73a7
2015-08-19for testing allow disabling configmgr for time critical pathsCaolán McNamara
Change-Id: I08021f18d53e1748927f8847649994f95252bbc2 Reviewed-on: https://gerrit.libreoffice.org/17844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-15tdf#93052 Fix abundance of calc annotation stylesJan-Marek Glogowski
This is a regression introduced by fixing tdf#47018, which changed the default NumRule and pushed a lot of SVX_MAX_NUM to the SvxNumRule constructors. The changed NumRule default seems not needed to fix the crash; at least it still doesn't crash as described in the old bug report after reverting this part of the change. Change-Id: I908eeb4a827799419d3f28584fdcbc9272cbc76d Reviewed-on: https://gerrit.libreoffice.org/17527 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-14remove default value from SfxPoolItem::PutValueNoel Grandin
more useful to make it explicit. Specifically, otherwise my defaultvalue clang plugin would want to remove lots of places that contains #define constants which, while technically the same as the default value, convey semantic information which is quite useful. Change-Id: I918ad5b0e73ba279fa1b1489b62d900339ff71eb
2015-08-12tdf#93384 editeng rendercontext: don't paint spellcheck result directlyMiklos Vajna
E.g. in Writer create a new comment, type a word that is not in the dictionary, then a space to trigger the spelling, and that painted the spelling error indicator outside Paint(). Change-Id: I8f72486189e04a5596729fb52b6af39772f8e002 Reviewed-on: https://gerrit.libreoffice.org/17671 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-08-11loplugin: defaultparamsNoel Grandin
Change-Id: I2a1255c00a051b29381ec57c380eafb08c4900d9
2015-08-05loplugin:unusedmethodsNoel Grandin
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-03new loplugin: refcountingNoel Grandin
This was a feature requested by mmeeks, as a result of tdf#92611. It validates that things that extend XInterface are not directly heap/stack-allocated, but have their lifecycle managed via css::uno::Reference or rtl::Reference. Change-Id: I28e3b8b236f6a4a56d0a6d6f26ad54e44b36e692 Reviewed-on: https://gerrit.libreoffice.org/16924 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-30tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
with the variadic variants for editeng. Change-Id: I28373dd31b8b922f59b99bf1c12faa31c72b9906 Reviewed-on: https://gerrit.libreoffice.org/17416 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-30loplugin:unusedmethodsNoel Grandin
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-28convert RGCHK constants to scoped enumNoel Grandin
Change-Id: Iafeae0f85f751469900471cf8fccd5f763407890
2015-07-28remove some unused EDITUNDO_ constantsNoel Grandin
Change-Id: Ia2c2f5f42a9d8e2d6041aac415d253f096d47f43
2015-07-28convert EE_ACTION constants to scoped enumNoel Grandin
Change-Id: Iaa51c235a2118e0d808400eba622fbe021571b38
2015-07-24loplugin:unusedmethodsNoel Grandin
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-24convert WALLPAPER constants to scoped enumNoel Grandin
Change-Id: I3b4b4e8a94904e22823a263bd5446a2e1aa47661
2015-07-21loplugin:unusedmethods sdNoel Grandin
Change-Id: I9b5399ace50db3259df2e619f28ae547a38e6c6d Reviewed-on: https://gerrit.libreoffice.org/17254 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-20Removed commentAndrea Gelmini
No evindence of intn.hxx in all git history Change-Id: I435f3082e0bb13b1e3129b49c7eaea80d75ea452 Reviewed-on: https://gerrit.libreoffice.org/17186 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-07-20editeng: replace boost::ptr_vector with std::vector<std::unique_ptr>>Michael Stahl
Change-Id: I29923bc78100d4b196d285dd78f664f7bcf3df19