10315 Commits

Author SHA1 Message Date
Jan-Marek Glogowski
9ec3b1e1bf Always schedule with the same time
No need to always update the time - scheduling should be fast!

Change-Id: Ic4c01f5a5759ef4970f1385aab6ef93cd67f33b6
2017-01-17 16:08:46 +01:00
Jan-Marek Glogowski
9e51007039 tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more
Timers and Idles.

Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
2017-01-17 16:08:46 +01:00
Noel Grandin
5830ef9a65 use rtl::Reference in DocPasswordRequest and SimplePasswordRequest
Change-Id: If1bad2bc852712b8315e44480ee81f797736bb95
2017-01-17 15:27:33 +02:00
Noel Grandin
3b395bc73f manage SvxPropertySetInfoPool.mpInfos with rtl::Reference
instead of with manual acquire()

Change-Id: I9fac619730df6a070c5f0d887ecf9249bd7d65a6
2017-01-17 15:27:33 +02:00
Takeshi Abe
15ad47fe31 Fix typo in comments: Not that -> Note that
Change-Id: I1c143f1f8b9cdbdb11055907f55a93e4bbadd7e9
2017-01-17 21:19:15 +09:00
Noel Grandin
70fed865df new loplugin: useuniqueptr: forms..framework
Change-Id: I4300a13f455148b7156ac3f444c7102d63ae6db3
Reviewed-on: https://gerrit.libreoffice.org/33164
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-17 11:31:40 +00:00
Vitaliy Anderson
7fa20da88a tdf#104349, tdf#104668 MS Word compatibility trailing blanks option
The commits: 1c1747ac13a9d895df0fcba2fbb1bd266dccd74b and 4a410dd147f7160c1d62e3e0b67388a178d5136c
make trailing spaces and their highlighting compatible with the Ms Word.

The option is enabled by default for imported MS Word formats: .doc, .docx, .rtf
For the ODF files the option is disabled by default

Also it allows saving and loading the option state to the ODF UserData.

It may be manually set in Tools->Options->LibreOffice Writer->Compatibility

Change-Id: I5a86359c52d18e50bbb54b9f37c79b672591c369
Reviewed-on: https://gerrit.libreoffice.org/33046
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-01-17 10:51:59 +00:00
Noel Grandin
49bfc59272 new loplugin: useuniqueptr: sfx2
Change-Id: I544c615105d14fa258fed7f30790d305e987f523
Reviewed-on: https://gerrit.libreoffice.org/33206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-17 10:48:27 +00:00
Noel Grandin
034cb09f56 use rtl::Reference in SvXMLExport
instead of storing both a raw pointer and an uno::Reference

Change-Id: I83774937d3556b9fed550a7f3e757dc975b4098a
2017-01-17 11:00:06 +02:00
Noel Grandin
2757ee9fe6 used std::map in SfxItemSet
instead of naked array

SfxItemIter ended up needing to take copies of stuff because various
code likes to iterate over the items and delete items inside the loop.

The gdb pretty printer is no longer quite as pretty as it was before,
but it still prints useful info.

Change-Id: I59b07ea42f6b1c74798a15402970b9dbd8233dbe
2017-01-17 10:07:10 +02:00
Abhilash Singh
bc8eb82877 tdf#103574 Imagemap dialog lacks on confirmation button
Change-Id: I95af2542fdb29efabd2d671597837c79e6336f37
Reviewed-on: https://gerrit.libreoffice.org/32925
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-01-17 06:55:22 +00:00
Noel Grandin
f5e9c29136 use rtl::Reference in MasterPropertySet
no need to store a raw and a smart pointer

Change-Id: Ic6b0b716812ec1dca3111f2162379c11389e963a
2017-01-17 08:51:48 +02:00
Noel Grandin
b2a4c1e085 use rtl::Reference in ChainablePropertySet
no need to store both a raw pointer and a smart pointer

Change-Id: If0bde337e6d9fa575a2fc7104ecffa97a8c37c31
Reviewed-on: https://gerrit.libreoffice.org/33159
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-17 06:37:00 +00:00
Noel Grandin
d9884a62a2 new loplugin: useuniqueptr: connectivity
Change-Id: I016f6a62814f1e93373dc70f59893fa38361464b
Reviewed-on: https://gerrit.libreoffice.org/33149
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-17 06:34:31 +00:00
Michael Stahl
ac2105e777 cppuhelper: mark these with SAL_DEPRECATED
Change-Id: Ide792910c39b3b33e2712268416e7950087877f3
2017-01-16 23:15:50 +01:00
Szymon Kłos
b33715c00e tdf#102139 : prevent the notebookbar from switching to empty tab
Change-Id: I0b463fef98d7597c9b7f22ee84701519a0f2b575
Reviewed-on: https://gerrit.libreoffice.org/33100
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Tested-by: Szymon Kłos <eszkadev@gmail.com>
2017-01-16 14:07:24 +00:00
Maxim Monastirsky
535f2b2b0a Convert RID_MENU_NOTEBOOKBAR to xml
Brings a lot of features (icons, keyboard shortcuts,
customization, context menu interception etc.)

Other changes:

- Make SfxDispatcher::ExecutePopup take PopupMenuFlags
  arg, to be able to pass NoMouseUpClose, so that the
  menu won't close on mouse-up under anything != gtk3.
- Make .uno:OpenFromWriter and .uno:OpenFromCalc async
  slots, to avoid crash under gtk3 when recycling the
  current frame.
- Don't show the menu in customization dialog, if
  experimental mode disabled.

Change-Id: Ieea2f73f6b48fbaf4bdfc4acf1a33d25422357cb
Reviewed-on: https://gerrit.libreoffice.org/33101
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2017-01-16 13:07:58 +00:00
Noel Grandin
26b0e86405 inline InteractionContinuation_Impl
since it only contains one field, and does nothing special with it

Change-Id: Ie1c099a4507a6b99af28be5852793ccaa557aa72
2017-01-16 13:53:39 +02:00
Noel Grandin
54019e6601 new loplugin: useuniqueptr: comphelper
Change-Id: Iafbaff60d10c9de7b57421e0c24809b08d813987
Reviewed-on: https://gerrit.libreoffice.org/33146
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-16 11:29:53 +00:00
Noel Grandin
5fb99f271a new loplugin: useuniqueptr: filter
Change-Id: Ie5cee5d7dd067df121397b60a7adc85c62906e54
Reviewed-on: https://gerrit.libreoffice.org/33155
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-16 10:48:31 +00:00
Ashod Nakashian
3db1ce30ab Lok: improved tile invalidation compression
Handle corner cases better and eliminate
invalid rects and out-of-bounds coordinates.

Change-Id: Ib9247ae4f0306cf68937cd2678f6386fe7710eec
Reviewed-on: https://gerrit.libreoffice.org/31665
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-01-16 09:09:33 +00:00
Noel Grandin
0b272cdf00 new loplugin: useuniqueptr: svx
Change-Id: I0eb3d43d7bcfc491df16a72997a0720a6aec2c5c
Reviewed-on: https://gerrit.libreoffice.org/32959
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-16 06:10:36 +00:00
Tomaž Vajngerl
61af2bae8d vcl: add SVM metafile reading and writing test and extend xml dump
Change-Id: I88ffb795a9c33ea62d05d599757a287335c7d680
Reviewed-on: https://gerrit.libreoffice.org/32914
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-01-14 23:01:40 +00:00
Kohei Yoshida
4ae705d02d tdf#97597: Ensure that each parsing thread has its own buffer.
Change-Id: I93077f954a49b3922930e4fc86c80228be0f4dd2
Reviewed-on: https://gerrit.libreoffice.org/33069
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2017-01-14 17:30:30 +00:00
Caolán McNamara
6391993d1f move Image(Bitmap, MaskBitmap) code to last user of it
the last use looks rather dubious to me, I wonder if anything can really end up
here

Change-Id: I13314610405463122891b3ed0f311da65fd1d542
2017-01-14 16:12:08 +00:00
Caolán McNamara
773ec34047 coverity#1398585 Uncaught exception
and

coverity#1398587 Uncaught exception
coverity#1398588 Uncaught exception
coverity#1398589 Uncaught exception
coverity#1398590 Uncaught exception
coverity#1398592 Uncaught exception

Change-Id: I603fc492df9215e0d67419640afc3d6a2af28c10
2017-01-14 11:14:03 +00:00
Noel Grandin
24fa5d0570 better fix for tdf#101563: Export to PDF creates huge PDF files
Change-Id: Idda6a5ac824090e620fc6577fc82d5c5f1234b7e
Reviewed-on: https://gerrit.libreoffice.org/33037
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-13 18:22:58 +00:00
Caolán McNamara
467e32348f coverity#1371198 Missing move assignment operator
Change-Id: I89a718a245ea36f33c47f8044280bf7e46c0f66a
2017-01-13 14:20:23 +00:00
Noel Grandin
cd8fdb46fd new loplugin: useuniqueptr: editeng
Change-Id: I6df65eab882780d996ee996b5fef8020186b6d98
Reviewed-on: https://gerrit.libreoffice.org/32958
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-13 13:08:52 +00:00
Noel Grandin
e8b49f0907 new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec
Reviewed-on: https://gerrit.libreoffice.org/32948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-13 06:49:23 +00:00
Caolán McNamara
a70a62c013 silence coverity#1371305 Missing move assignment operator
Change-Id: I761e07d1583262d83074addbff4ca67b01640387
2017-01-12 11:18:50 +00:00
Caolán McNamara
4ff1b35890 fold ImplConstruct into ctors and reduce to necessary
ImplConstruct sets mnAnimationLoopCount, but is always followed by
ImplAssignGraphicData which overwrites it so we can omit that

ImplConstruct sets mnDataChangeTimeStamp, but is always
followed by ImplAssignGraphicData which always calls
ImplAfterDataChange which overwrites it so we can omit that

Change-Id: I2304dc1ea590071a83ca30768426f721c1bd259c
Reviewed-on: https://gerrit.libreoffice.org/32953
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-11 16:14:21 +00:00
Caolán McNamara
f4785d5754 make XOBitmap uncopyable
Change-Id: I9c28434e8923451ddb1af4fa3c63917db206f47a
Reviewed-on: https://gerrit.libreoffice.org/32940
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-11 08:51:59 +00:00
Noel Grandin
feade09e18 SfxUShortRangesItem is unused
Change-Id: I6f88f37eca2bdd6b40c8713f1b2e35ad0be94ab0
2017-01-11 10:11:02 +02:00
Caolán McNamara
a1d3dc1cbd post ctor, pre dtor there is always a mpMgr and its mpGlobalMgr
move the ImplEnsureGraphicManager calls to be the first thing
in the ctor to ensure that its also always available during
the ctoring, this is hopefully a good change

Change-Id: Iccddee7cac152df66dec0039df207a7575e1fa54
2017-01-10 14:18:45 +00:00
Markus Mohrhard
ad915fafd5 tdf#104830, need an own termination listener for lib objects
The destruction of the SwDLL object happens already through the normal
termination listener but the other termination listeners might still
depend on it. Also the outstanding events might need the SwDLL instance
to be still around.

This makes the destruction of the instance explicit and at a time when
it should be safe. We should use the same code for calc, impress, math
and base as well.

Change-Id: I50b8f30426f5a4a54e362e748fe962839abca73e
Reviewed-on: https://gerrit.libreoffice.org/32856
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-10 13:23:43 +00:00
Caolán McNamara
8065e33626 move the ImplRegisterObj outside ImplSetGraphicManager and rename it
Change-Id: I1eded3ee41787b9a3339e01cf6e1157724bba1a6
2017-01-10 12:18:56 +00:00
Caolán McNamara
3a44ef1d5d GraphicManagerDestroyed would just set the default manager again
which is the only one that could already be set. Seeing
as the manager is always there if a Graphic exists then
the maObjList must be empty at the dtor time

Change-Id: Id447d1e62a4b94b0ef986edf3cc05629c90e511b
2017-01-10 11:30:19 +00:00
Caolán McNamara
8564b5beb1 first GraphicManager* arg of ImplSetGraphicManager is thus always null
Change-Id: I3da98280d3c1d95663e6e43ce7a5ca82c001c334
2017-01-10 08:53:15 +00:00
Noel Grandin
56d071c10c rename SAL_DEBUG_TRACE to SAL_DEBUG_BACKTRACE
since "trace" is such a generic term, this makes it easier to actually find the feature when you need it.

And add feature to limit stack depth of the reported backtrace.

Change-Id: Iab3e4ceb2e8480e7b5e2b920eb6c5d7631e21c43
Reviewed-on: https://gerrit.libreoffice.org/31752
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-10 06:31:33 +00:00
Noel Grandin
014b9ac2e4 loplugin:unusedmethods
Change-Id: Ibe11923601760ded53a277c48631e4893606b2d6
Reviewed-on: https://gerrit.libreoffice.org/32875
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-10 06:29:10 +00:00
Caolán McNamara
4434b00290 defaults are good enough
Change-Id: I4520e00b8c48938a4ff1ed89e3c61948d886972c
Reviewed-on: https://gerrit.libreoffice.org/32889
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-10 00:18:45 +00:00
Caolán McNamara
855fbe4edc second arg of deformed copy ctor isn't used
except in the qa test

Change-Id: I84d1a06194e4c11b218c417663f12195c9f76526
Reviewed-on: https://gerrit.libreoffice.org/32890
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-09 20:35:21 +00:00
Stephan Bergmann
ff7ee9796f New loplugin:externvar: i18npool
Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
2017-01-09 15:42:59 +01:00
Stephan Bergmann
387a035d74 New loplugin:externvar: sal
Change-Id: Iefc33784f21e7a0b88c8d6308618926e38ab8554
2017-01-09 15:41:25 +01:00
Caolán McNamara
ea86f1ca5c defaults are good enough
and protected isn't necessary

Change-Id: I6219632fe1da36d484864c2500e9ac14978f2cb8
2017-01-09 12:12:22 +00:00
Caolán McNamara
eef56fc73b Related: coverity#1371305 unnecessary inheritence
SvDataCopyStream used to do extra Load/Save things that are long
gone, so there is no reason for the common base anymore

Change-Id: Ib321021002adb480bb96298f199141dc3fe2ec2b
Reviewed-on: https://gerrit.libreoffice.org/32851
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-09 11:19:33 +00:00
Caolán McNamara
e497d4d490 coverity#1371227 Missing move assignment operator
Change-Id: I2de6b5e2910ff570c08e662769d5e6ee188825a7
Reviewed-on: https://gerrit.libreoffice.org/32843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-09 09:05:41 +00:00
Oliver Specht
048e30c1f8 tdf#101828 handle rtf/richtext correctly
Change-Id: Id894f62a918bd6e6fa59f8d546307343bf2bd4b0
Reviewed-on: https://gerrit.libreoffice.org/32682
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-01-09 00:34:30 +00:00
Maxim Monastirsky
a1f97ed2aa XSubToolbarController is only used by SvxColorToolBoxControl
Change-Id: I10c31aa9c773649c99b52c2d34cb648a37bf42ac
2017-01-08 16:07:28 +02:00