summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2017-01-18new loplugin: useuniqueptr: svl..svtoolsNoel Grandin5-35/+23
Change-Id: Ia4d5b37ee3cf67318e3cc01525e4b733af60d038 Reviewed-on: https://gerrit.libreoffice.org/33251 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-18manage pField with tools::SvRefNoel Grandin1-2/+2
since it is a SvRefBase subclass Change-Id: Ib7d1e22336d673405d7455d40464df29f547d351
2017-01-18tdf#104349, tdf#104668 MS Word compatibility trailing blanks option part 2Vitaliy Anderson1-2/+6
Create the option in Tools->Options->LibreOffice Writer->Compatibility Change-Id: I7c766138db9210d3e7a97eea48b9265ee9762199 Reviewed-on: https://gerrit.libreoffice.org/33148 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-01-17comphelper: try to fix MSVC buildMichael Stahl1-0/+6
error C2027: use of undefined type ´comphelper::PasswordContinuation´ Change-Id: Iff5cfd1a81abc6adfbf1d3aedfb4f871b96d3504
2017-01-17loplugin:staticmethodsTor Lillqvist1-1/+1
Change-Id: I8864342b6ffd2c63c231ca4d72220a8242da24ca
2017-01-17we can use XInteractionAbort instead of AbortContinuationCaolán McNamara1-3/+3
Change-Id: I7b3a6e0dc4dba345ee9581f4743a3b4fd9f7d736
2017-01-17replace #ifdef SOLARIS with #ifdef __sunMichael Stahl4-6/+6
Check for a macro that is defined by the compiler, we don't really need one defined by the build system. Change-Id: Iccb8e3198396881395c97a6b81690ebe64b7e9d2
2017-01-17Change Idle to be a Timer subclassJan-Marek Glogowski3-27/+56
Drops a lot of duplicated code, as Idle is just a convenience class for instant, mostly low priority timers. Change-Id: I847592e92e86d15ab1cab168bf0e667322e48048
2017-01-17Refactor Scheduler to add Task classJan-Marek Glogowski3-36/+52
Moves all the "task-specific" stuff into a Task class and just keeps the "real" static Scheduler functions in the original Scheduler class. Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
2017-01-17Convert bTimer => bIdleJan-Marek Glogowski3-4/+4
All other places already refer to being Idle, so change the Scheduler::ProcessTaskScheduling argument to bIdle and adapt all other scheduler-related functions. Change-Id: If5a605abbc3e620092127b65ada29f11215a0343
2017-01-17Always schedule with the same timeJan-Marek Glogowski2-4/+6
No need to always update the time - scheduling should be fast! Change-Id: Ic4c01f5a5759ef4970f1385aab6ef93cd67f33b6
2017-01-17tdf#97087 GDB pretty print the Scheduler task listJan-Marek Glogowski3-1/+15
In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
2017-01-17use rtl::Reference in DocPasswordRequest and SimplePasswordRequestNoel Grandin1-6/+7
Change-Id: If1bad2bc852712b8315e44480ee81f797736bb95
2017-01-17manage SvxPropertySetInfoPool.mpInfos with rtl::ReferenceNoel Grandin1-1/+2
instead of with manual acquire() Change-Id: I9fac619730df6a070c5f0d887ecf9249bd7d65a6
2017-01-17Fix typo in comments: Not that -> Note thatTakeshi Abe2-2/+2
Change-Id: I1c143f1f8b9cdbdb11055907f55a93e4bbadd7e9
2017-01-17new loplugin: useuniqueptr: forms..frameworkNoel Grandin1-5/+6
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-17tdf#104349, tdf#104668 MS Word compatibility trailing blanks optionVitaliy Anderson1-0/+3
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-17new loplugin: useuniqueptr: sfx2Noel Grandin4-6/+7
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-17use rtl::Reference in SvXMLExportNoel Grandin1-4/+3
instead of storing both a raw pointer and an uno::Reference Change-Id: I83774937d3556b9fed550a7f3e757dc975b4098a
2017-01-17used std::map in SfxItemSetNoel Grandin2-25/+17
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-17tdf#103574 Imagemap dialog lacks on confirmation buttonAbhilash Singh1-0/+1
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-17use rtl::Reference in MasterPropertySetNoel Grandin1-3/+3
no need to store a raw and a smart pointer Change-Id: Ic6b0b716812ec1dca3111f2162379c11389e963a
2017-01-17use rtl::Reference in ChainablePropertySetNoel Grandin1-2/+2
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-17new loplugin: useuniqueptr: connectivityNoel Grandin4-4/+4
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-16cppuhelper: mark these with SAL_DEPRECATEDMichael Stahl1-0/+2
Change-Id: Ide792910c39b3b33e2712268416e7950087877f3
2017-01-16tdf#102139 : prevent the notebookbar from switching to empty tabSzymon Kłos1-1/+2
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-16Convert RID_MENU_NOTEBOOKBAR to xmlMaxim Monastirsky1-1/+3
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-16inline InteractionContinuation_ImplNoel Grandin1-3/+1
since it only contains one field, and does nothing special with it Change-Id: Ie1c099a4507a6b99af28be5852793ccaa557aa72
2017-01-16new loplugin: useuniqueptr: comphelperNoel Grandin1-1/+2
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-16new loplugin: useuniqueptr: filterNoel Grandin2-6/+9
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-16Lok: improved tile invalidation compressionAshod Nakashian1-0/+4
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-16new loplugin: useuniqueptr: svxNoel Grandin12-19/+26
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-14vcl: add SVM metafile reading and writing test and extend xml dumpTomaž Vajngerl1-0/+4
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-14tdf#97597: Ensure that each parsing thread has its own buffer.Kohei Yoshida1-2/+4
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-14move Image(Bitmap, MaskBitmap) code to last user of itCaolán McNamara1-1/+0
the last use looks rather dubious to me, I wonder if anything can really end up here Change-Id: I13314610405463122891b3ed0f311da65fd1d542
2017-01-14coverity#1398585 Uncaught exceptionCaolán McNamara1-5/+5
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-13better fix for tdf#101563: Export to PDF creates huge PDF filesNoel Grandin1-1/+1
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-13coverity#1371198 Missing move assignment operatorCaolán McNamara1-1/+0
Change-Id: I89a718a245ea36f33c47f8044280bf7e46c0f66a
2017-01-13new loplugin: useuniqueptr: editengNoel Grandin12-28/+34
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-13new loplugin: useuniqueptr: vclNoel Grandin10-13/+20
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-12silence coverity#1371305 Missing move assignment operatorCaolán McNamara1-1/+1
Change-Id: I761e07d1583262d83074addbff4ca67b01640387
2017-01-11fold ImplConstruct into ctors and reduce to necessaryCaolán McNamara1-1/+0
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-11make XOBitmap uncopyableCaolán McNamara1-3/+4
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-11SfxUShortRangesItem is unusedNoel Grandin1-20/+0
Change-Id: I6f88f37eca2bdd6b40c8713f1b2e35ad0be94ab0
2017-01-10post ctor, pre dtor there is always a mpMgr and its mpGlobalMgrCaolán McNamara1-3/+7
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-10tdf#104830, need an own termination listener for lib objectsMarkus Mohrhard1-7/+33
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-10move the ImplRegisterObj outside ImplSetGraphicManager and rename itCaolán McNamara1-4/+1
Change-Id: I1eded3ee41787b9a3339e01cf6e1157724bba1a6
2017-01-10GraphicManagerDestroyed would just set the default manager againCaolán McNamara1-1/+0
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-10first GraphicManager* arg of ImplSetGraphicManager is thus always nullCaolán McNamara1-1/+0
Change-Id: I3da98280d3c1d95663e6e43ce7a5ca82c001c334
2017-01-10rename SAL_DEBUG_TRACE to SAL_DEBUG_BACKTRACENoel Grandin2-4/+21
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>