summaryrefslogtreecommitdiff
path: root/comphelper
AgeCommit message (Collapse)AuthorFilesLines
2016-06-16LOK: tile rendering regression fixAshod Nakashian1-0/+12
Calc fast rendering requires us to offset the are being rendered and shift all bitmaps accordingly. This however is breaking Impress rendering since the offseting logic is common (in svx and vcl). This adds new API to enable or disable this local rendering (as opposed to rendering a full document as was previously done. The new flag is then set by Calc to enable the offseting logic in isolation without affecting other applications. In one case isolation was achieved by checking the MapModeUnit. Change-Id: Ia0aadfc3f6df7c1a891b97dc731f5897414c9420 Reviewed-on: https://gerrit.libreoffice.org/26367 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-21fix missing BaseURL when loading embedded objectsMichael Stahl1-6/+18
When the object is edited in the UI, the m_xClient is set to a SfxInPlaceClient and the DocumentBaseURL is retrieved from it. But if the object is not edited, it will be loaded during export via the API and without a m_xClient; in this case the DocumentBaseURL must have been set previously to be available during import. There appears to be no way to get the URL of the document via the API while it is being imported; SfxBaseModel's m_sURL is unfortunately only initialized from SfxObjectShell::FinishedLoading(). During ODF import, the SvXMLEmbeddedObjectHelper creates the embedded object, so let's make it pass in the parent's BaseURL. The "DefaultParentBaseURL" parameter already exists but was unused previously. (cherry picked from commit b0fc09daf1086423a9bd457d9a2c043e7ff41451) (cherry picked from commit 4118f8f4c20ae711b95ab3052656bde673aa8852) sw: loading embedded ODF objects requires unordf component (cherry picked from commit b3b7982f4690f4ac0f0e9680970ba544157c36dc) Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733 Reviewed-on: https://gerrit.libreoffice.org/20761 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit fe4c7f20c272cf7a984d0db79199fe74bd31fc86)
2015-11-03lok: Introduce LOK_CALLBACK_UNO_COMMAND_RESULT callback.Jan Holesovsky1-2/+7
Posting of the .uno:Something commands is asynchronous. To be able to find out when eg. .uno:Save finished, this commit introduces a callback that fires when that happens. To be able to receive such a notification, the appropriate postUnoCommand() must be called with 'true' as the parameter for bNotifyWhenFinished (defaults to 'false'). (cherry picked from commit 8c987fababbddb6e4f81b0cd717b59b9a9ff9be0) Change-Id: I254939ebc8ea5f309ae39686dcaaeddd5148b0c9
2015-10-08comphelper: add string::join()Miklos Vajna1-0/+11
If there is a need for it, this could be extended later to work with uno sequences and/or OUStrings as well. Change-Id: Id0af8b1755c8e4b668720563d10a052337e1b2c9 (cherry picked from commit fce720b3e4691eb3b7deef1d005d76b23123a5cb)
2015-10-06comphelper: add LibreOfficeKit::set/isViewCallback()Miklos Vajna1-0/+12
Change-Id: Iad0b2ee419327daf478f3ddda2378effe0184067 (cherry picked from commit 1704221067e2bc6ba26eaa83573d29964b413a34)
2015-08-06tdf#92130 fix DoEvents to be recognized as keywordMarek Doležel1-0/+1
Change-Id: I24868acec66a72abbb52b8026ed3a092dbd97632 Reviewed-on: https://gerrit.libreoffice.org/17347 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 11f24bc2f032b31095663cb09ef948eee2c61f49) Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-06-22Add SwTiledRenderingTest::testGetTextSelection() testcase.Miklos Vajna1-4/+4
Fails without commit 193b907b2bc49b9e48cfab2583e81a24aaa2e666 (SwXTextDocument::getTextSelection: fix missing editeng forward, 2015-06-18). Change-Id: I5fdab128471c12901f930b6b4ab4e2304dd3fe64 Reviewed-on: https://gerrit.libreoffice.org/16359 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit bcace9acafa24d5251e90587af776fdb0a808ed8)
2015-05-18comphelper::PropertySetInfo: convert legacy assertionMichael Stahl1-8/+2
Change-Id: I23dbe1b3cf6cc611efe8a39c49f4e5b47bf25a49
2015-05-18comphelper::PropertySetInfo remove unused parameterMichael Stahl1-7/+3
Change-Id: I960b31befe749860e926e5bb567c0b8d0f87867a
2015-05-15tdf#62475: partial handmade fixesAndrea Gelmini32-265/+1
Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4 Reviewed-on: https://gerrit.libreoffice.org/15712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-06Add support for progress bar callbacks to LibreOfficeKit clientsTor Lillqvist1-0/+27
The comphelper::LibreOfficeKit bits. Also will need additions to the libsofficeapp bits in desktop and then to the StatusIndicator implementation in framework. Change-Id: I15c2505bbf6439c07d1956685d0a6d2a22aefc58
2015-05-06sal/log.hxx is what was missingStephan Bergmann1-2/+2
Change-Id: I11aa264391aa4fcd90d171b9a6d93ed8e430b6cc
2015-05-06If using std::random_device fails, fall back to just time(nullptr)Tor Lillqvist1-7/+17
For instance, if using LibreOfficeKit in a chroot jail, there might not be a /dev/urandom, which causes the std::random_device ctor to throw a std::runtime_error exception, at least in the libstdc++ I have. Change-Id: Icc91a4ddf92ce66c66b6ffb8b4d1a02ab5f29ee9
2015-05-05seed mt19937 with random dataNorbert Thiebaud1-1/+2
time(NULL) is a poor seed. It is quite predictable and multiple instance starting in the same second will get the same seed and therefore the same pseudo random number sequence Use std::random_device, witch is meant to provide 'true' random data.. mix time(NULL) just in case the std implementation is crappy. PS: sadly std::random_device.entropy() cannot be relied on as clang and gcc are known to return 0 despite their random_device being non-deterministic, hence the prophylactic systematic mixing with time(null) Change-Id: I44dab9970f8f0388dc1c99e9816d49d1afbecf18 Reviewed-on: https://gerrit.libreoffice.org/15591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-04-22comphelper::dispatchCommand: allow passing command argumentsMiklos Vajna1-2/+2
Change-Id: I6464c5d1a46fadac2510700101f3c8cc29dd7995
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann6-2/+7
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-21No more need for PartialWeakComponentImplHelper hereStephan Bergmann1-9/+0
...since 70626249cd247d9acdad417b8eaf252bae22c059 "API CHANGE a11y unpublishing and add/removeListener rename." Change-Id: I89d81326d97712abcac94c3436a13905954c55cf
2015-04-21Get rid of trivial comphelper::in-/decrement wrappersStephan Bergmann1-3/+2
Change-Id: Id3a12ef9d56c30719f483e610c8a8b08caf05def
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin5-8/+8
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-02Move osl::LibreOfficeKit stuff to comphelper for nowTor Lillqvist2-0/+35
Let's see where it actually will be needed. Sal is a "picky" place for new API, even inside LIBO_INTERNAL_ONLY. Change-Id: Ia0c5ee8cfc6ee526c5ad34d2f8aab0b14b5f805b
2015-04-02loplugin:staticmethodsNoel Grandin1-4/+4
Change-Id: I1f6c6d13697aa397067478d6b07429120106e6bd
2015-04-01Add isReadOnly() support to simplified configuration accessStephan Bergmann1-1/+12
[API CHANGE]: extends the css.configuration.XReadWriteAccess in an incompatible way, but that is unpublished, has been commented as "still unpublished and unstable," and was specifically introduced for internal use by the simplified configuration access, so should not affect 3rd party code. Change-Id: I99ce045f5bd8c598e689d46fb0d3626dfaa6d0a0
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann4-4/+4
Change-Id: I8dd0e5c8837fe1615aa9d5f546c2fd1c0985f044
2015-03-31V597: introduce a rtl_secureZeroMemoryCaolán McNamara1-1/+1
Change-Id: Id28046eb318cd3b2ed0b813fd266617547cf6ee2
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann3-18/+18
Change-Id: I062024d4768374e319b6c67ed8c7abcc89f9d552
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann4-14/+14
Change-Id: Icdb619101a992a740c71545e669e138cb5dc63a6
2015-03-27new clang plugin: staticmethodsNoel Grandin2-7/+11
Genius suggestion from Tor Lillqvist, write a clang plugin that finds methods that can be static. Change-Id: Ie6684cc95d088e8750b300a028b49f763da00345
2015-03-19fix windows build and sal_Bool->boolCaolán McNamara1-6/+4
Change-Id: If88a5b1171ef0b586861dd071820bc993c4cf06e
2015-03-19fix windows buildNoel Grandin1-4/+4
after my commit 48bb2913a7459edb17a5f62c2f6e6fbc4f1051e2 "convert SFX_FILTER_ constants to enum class" Change-Id: Ieaf524e076f5ecfe16b312a310cd6f5cb8bd637d
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin1-18/+18
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-16Factor out the .uno: command dispatching to a separate function / file.Jan Holesovsky2-0/+65
Change-Id: I8486933d57d42992e66be7f17443320cfc2ad629
2015-03-10tdf#89592 Using initializer_lists to populate Sequence<PropertyValue>Swachhand Lokhande1-5/+5
Change-Id: Idef9dd55eb1719eaf592bc4a86440cbd5aa4fb32 Reviewed-on: https://gerrit.libreoffice.org/14781 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-03-09V801: Decreased performanceCaolán McNamara4-26/+21
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-02-27comphelper: compare implemented as subtractionMichael Stahl1-9/+4
Change-Id: Ic7abd7dd588339e06b6764659829f35b4ea87adb
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin1-7/+7
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-16boost::noncopyable->'= delete'Caolán McNamara3-35/+32
Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara2-30/+22
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-12these can all be made constCaolán McNamara1-12/+12
Change-Id: I6a8af82e8612196f20143f4997eb95c80a2ca13d
2015-02-11comphelper: add SAL_INFO for exception when graphic cannot be loadedMichael Stahl1-1/+3
Change-Id: Ia0a4834987ae040a31e19276ece20b74b59ca445
2015-02-07loplugin:deletedspecialStephan Bergmann1-1/+0
Change-Id: I0aeba0c65b19c1107f617ed0af0028cced9bd434
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage1-4/+5
Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-06shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara1-9/+8
and boost:make_shared->std::make_shared Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara2-3/+1
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-02-05comphelper: do not use "r" prefix for uno::ReferenceMichael Stahl1-9/+9
Change-Id: I5e92ca9dbb0c9f33c9511cc4b12db1433e40fa68
2015-02-05Updated all precompiled headers.Ashod Nakashian1-3/+12
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-20Some more loplugin:cstylecast: comphelperStephan Bergmann3-5/+5
Change-Id: I6d3ffb195a7c9a3c44744d296fb9d9eca00115cd
2015-01-16Fix getTypes() of OPropertySetHelper and derivedStephan Bergmann1-9/+6
...broken with 60d60caf99a40ca0c3891bf230c5a1fdbae5f49c "Renamed XPropertySet2 to XPropertySetOption" et al Change-Id: I684736ffafc4642548b7c24171cc52c1acb32252
2015-01-15Really remove eventsJulien Nabet1-1/+1
Change-Id: Ie73b7ead02434a0614287f61f0ffd49eeab32aba Reviewed-on: https://gerrit.libreoffice.org/13681 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-01-06include time.h for timeCaolán McNamara1-0/+1
Change-Id: Id2fbc93fb99cd97473298e127dd5a3d82f22e438
2015-01-06boost::random->std::randomCaolán McNamara1-10/+11
Change-Id: I1b823b6c17b731e427bff88c6fff7897f66ddb5c