summaryrefslogtreecommitdiff
path: root/sot
AgeCommit message (Collapse)AuthorFilesLines
2016-01-19sot: accept JPEG as a clipboard format where we accept PNG alreadyMiklos Vajna2-0/+43
(cherry picked from commit f731ecfd7bd3c703455e07447e9bb593e7b6e059) Conflicts: include/sot/formats.hxx sot/source/base/exchange.cxx Change-Id: I64602d31e8aa873e2280f86eaf618dd6007acaf1
2015-08-20tdf#93018 - Copying forms not working anymore (part2)Noel Grandin1-3/+1
I missed a similar bug lower down Change-Id: I673c69dd1d36cc1b502a7de7821a05d859313aac (cherry picked from commit 0c08cb23b4902f19ed0e1050b5c9a52164c0d2ac) Reviewed-on: https://gerrit.libreoffice.org/17537 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-08-20tdf#93018 - Copying forms not working anymoreNoel Grandin1-3/+1
Bug introduced by commit fb14be5f8f74f83ba89e15f891ddf1f753dcc62f "create new 'enum class' SotClipboardFormatId to unify types" Change-Id: I3febb927f658ac27d2b864869775db3b71940a5c (cherry picked from commit f7d65b04126b614bbb0b1bc0e7b6309900d4dc8d) Reviewed-on: https://gerrit.libreoffice.org/17536 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-08-06tdf#92037 fix dragging DataSources field into documentNoel Grandin1-2/+2
Bug introduced by my commit fb14be5f8f74f83ba89e15f891ddf1f753dcc62f "create new 'enum class' SotClipboardFormatId to unify types" Change-Id: I7347fb9e653077205476e2b0c2b8107dc9caae0e Reviewed-on: https://gerrit.libreoffice.org/16396 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos1-1/+1
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-08callcatcher: update unused codeCaolán McNamara1-97/+0
Change-Id: I8563922204d3ec93bf138cbd1aaba620c0215bf7
2015-05-07Reduce enum class StorageMode to bool transactedStephan Bergmann1-10/+10
Change-Id: I04e53d7de9f2f26e9338a82f7d5ae5dab1682712
2015-05-07StorageMode::DiskspannedMode is effectively unusedStephan Bergmann1-4/+0
Change-Id: I977b0a51a609d3cbc30abd308715f91cad2cfdfa
2015-05-07StorageMode::CreateUnpacked is never usedStephan Bergmann1-55/+36
Change-Id: I7285c90c82b04e3ebb2db371b675689de9c183d7
2015-05-07SotStorage ctor nStorageMode param is effectively only used as bool transactedStephan Bergmann1-2/+2
Change-Id: I3458ae46c256206e31ad268f47e8b92a30f3738e
2015-05-07Remove unused SotStorage ctor nStorageMode paramStephan Bergmann1-2/+2
Change-Id: I6af399ef26d3f3ee97a49592cf97c590c0781eb0
2015-05-07Remove unused SotStorage::OpenSotStream nStorageMode paramStephan Bergmann1-5/+2
Change-Id: Ieda14d984f1614056c701a50ce637ea6fe9620f3
2015-05-07Remove unused SotStorageStream ctor nStorageMode paramStephan Bergmann1-8/+1
Change-Id: I5f114f4ca92d991d17ad871d11a78a5306191f9c
2015-05-07Unwind SotStorageStreamRef typedefStephan Bergmann2-4/+4
Change-Id: If7652a7c0251b741660365848a717c06954ca419
2015-05-07Unwind SotStorageRef typedefStephan Bergmann3-12/+12
Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1
2015-05-07Turn StorageMode into a scoped enumStephan Bergmann1-12/+12
Change-Id: I481c153815fff793e9334153d863f26982b879cb
2015-04-30Gradually typed LinkStephan Bergmann3-6/+6
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-24loplugin:simplifyboolStephan Bergmann1-8/+8
Change-Id: If2d2970160803bcaa1feabb8274f83bba0ba722c
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann1-0/+1
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-17loplugin:implicitboolconversion clean-upStephan Bergmann2-11/+13
Change-Id: I10d50f76dff5d5e456b28393c48b4de21201779b
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin1-2/+2
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-07Remove dead INetProtocol::VimStephan Bergmann1-2/+2
...which removes the need to abstract over the standard URI '%' escape prefix vs. the silly vim '=' special case invention. Change-Id: I54a52dd912c3aafc38275a0ac2466a6daeec328f
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann1-2/+2
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann1-2/+2
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin3-9/+9
Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann1-142/+142
Change-Id: I07d6cd7191c4ac1eeca4bba5edf8f86dd9d9467e
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann1-1/+1
Change-Id: I413b3716b3c5bda204619e8b1ff2b724f95a5c38
2015-03-30drop rather awkward debugging hunkCaolán McNamara1-12/+0
Change-Id: Ia0441caec222227f173a9508530d7c4cefd7892e
2015-03-30loplugin:staticfunctionNoel Grandin1-1/+1
Change-Id: I4b7b04031fa74956379c5a1b21abe10b0717f3e9
2015-03-29Clean up remaining C-style casts among void pointersStephan Bergmann1-1/+1
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann7-17/+17
Change-Id: I1d157bfc82f09f2438e59eca4fcd92931ca38723
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann2-8/+8
Change-Id: Ib6842b6215ff70a31299d1410ed66c3ea34e7c78
2015-03-19loplugin:constantfunction: sotNoel Grandin3-16/+5
this appears to be completely unused Change-Id: I74dad8b0c478a1aed035ce9cc663a74de157816e
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin1-2/+2
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-18SotClipboardFormatId::FILE->SotClipboardFormatId::SIMPLE_FILECaolán McNamara2-65/+65
Change-Id: Ice4963da8a856b1d2ada13e5b699157a0217e06c
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin10-1169/+1178
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-09V801: Decreased performanceCaolán McNamara2-12/+12
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-02-25convert EXCHG_DEST_ constants to enum classNoel Grandin1-22/+22
Change-Id: I8484b985e46ad34fa45b02aa07130d3259336082
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin1-1/+1
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-05try to avoid overflows in some compare functionsMichael Stahl2-7/+6
Change-Id: I6144d7d6527dc401b7f1b577d1a227361e39e7bb
2015-02-05Updated all precompiled headers.Ashod Nakashian1-0/+1
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-29callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara2-98/+0
i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin <noel@peralex.com> Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d
2015-01-20Some more loplugin:cstylecast: sotStephan Bergmann2-10/+10
Change-Id: I7192a4d29937fc6222457a4a0f53db11e620fcdc
2015-01-16remove unnecessary parenthesesNoel Grandin4-7/+7
left over from "SVStream operator>> to Write method" conversion Change-Id: I619eb743d7890d5c70d0a94e51ce263567fa6f3b
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl1-1/+1
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-07fix windows buildNoel Grandin2-2/+2
and a handful of other currently uncompiled spots, after my commit 7f8f277b94704a289fbbd1b836e4e5d66311580d "fdo#84938: convert STREAM_ #defines to 'enum class'" Change-Id: I550f6fb850e1d71a6f08767eeb222a18071b89d5
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin11-134/+109
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara2-2/+5
Change-Id: I82f668ef72e916d2ff11df5cda2a02653999f66f
2014-12-30fdo#84229 - don't set error when seeking beyond end of valid data.Michael Meeks1-2/+13
XclImpStream and elsewhere does an initial seek to the end, then a tell to work out the true length of the stream. In order to let us attempt to rescue data from the beginning of otherwise corrupt / truncated streams, we should avoid setting an error here. Interestingly, we also (probably) don't want to return the true length of the valid data - as this is how SotStorage has worked historically. Change-Id: Ie0ff0e183220b81871ae3bf83980a24b57ac8694
2014-12-30fdo#84229 - add sot storage unit test.Michael Meeks2-0/+26
Change-Id: Ic11c397984602bf8a2e292bc901cd7bf71ad555d