summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2015-11-19use comphelper::containerToSequenceNoel Grandin
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-18rename FormulaToken HasForceArray to IsInForceArrayEike Rathke
... to name it was it does and to distinguish from ScParameterClassification::HasForceArray(OpCode) which IS about a function having ForceArray parameters. Change-Id: I8af4e1d0353cdb5ad0a9b837ae0763dc77242734
2015-11-18editeng: wrong default item for EE_PARA_FORBIDDENRULESMichael Stahl
Change-Id: Idad6192fd1e3049913fac3dd906264fde6d1914e
2015-11-18vcl::ITiledRenderable::initializeForTiledRendering: support init. argumentsMiklos Vajna
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-18Unify menu-based toolbar controllersMaxim Monastirsky
The new GenericPopupToolbarController takes by default the popup menu controller that registered for the same .uno:Something command, and sets ToolBoxItemBits to ToolBoxItemBits::DROPDOWNONLY. If a different command specified using the "Value" property - takes the popup menu controller that registered for this command, and sets bits to ToolBoxItemBits::DROPDOWN. Change-Id: I75c5300bd27fcc9f618f2ee0df2aa6aefd088239 Reviewed-on: https://gerrit.libreoffice.org/20040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-18Remove redundant toolbar:text labelsSamuel Mehrbrodt
Change-Id: I9ca5739462742a4e3ec3a034918891e53022d6de
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18use unique_ptr for pImpl in sc/Noel Grandin
Change-Id: I2516c83f8dfca1f1217be7dcb2a28f5dcd2f704e
2015-11-17sc: loplugin:badstaticsMichael Stahl
Not sure if there would be a performance penalty to re-loading these icons every time, so move the static map from ScIconSetFormat::getBitmap() to a member of ScDocument. Change-Id: If560d70cea27e25396dd821d9e77a785e3b79820
2015-11-17Be consistent in using tabs at least hereMatúš Kukan
Change-Id: I961516d92abd693c19efe8a051e35ae5192ef7d2
2015-11-17There is no need for this broken 'if' hereMatúš Kukan
Change-Id: I10f926af9ca19252878b9b6e20365c38c885ce83
2015-11-17Assume this wants to append the numerical representationStephan Bergmann
...not a single sal_Unicode char (aParam.nUserIndex is of type sal_uInt16), just the same as 2211ad695920526e9acf473f342d0732ce1112a8 "First cut on getting ODS import/export of sheet-local anonymous ranges" did in a very similar place in the same file. (And Kohei, author of both places, assumes this is the right thing to do, too.) Change-Id: I12cd8abf1b4aaab7baa54f21d8c5a7ff2e171275
2015-11-17Toolbar: Remove empty attributesSamuel Mehrbrodt
Change-Id: Id78cae55eb89520bd87713f9ea6c009c922f2870
2015-11-17Resolves: tdf#89907 do not modify original ScViewData's ScMarkDataEike Rathke
Change-Id: I2ae5a06f9ffe29de0b1cc5875615010da75f4ae9
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann
Change-Id: I6125c2abe1dbfd0a5ecf020b8363fc277d195157
2015-11-16tdf#95824: Crash: when opening Function WizardJulien Nabet
Regression from http://cgit.freedesktop.org/libreoffice/core/commit/?id=ccde2360d5c29bb99008cfae5ab3675bee4ca46c Let's just initialize m_pDoc in ctor Change-Id: I4fe0f8eff5439b3150c90ac14343aaf8e0a4e43e Reviewed-on: https://gerrit.libreoffice.org/20004 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-11-16sc lok: use client zoom for ViewRowColumnHeadersAndrzej Hunt
Change-Id: I85000851f82ea7cdc4b536683adbc8570de9af7e
2015-11-16-Werror,-Winconsistent-missing-overrideStephan Bergmann
Change-Id: I3bb2764b625d44f6e0cecbdde3363440faef63b5
2015-11-16unit test for tdf#95670Eike Rathke
Change-Id: I5874a7fea97311b0e69dbeae8923517a08b63c9a
2015-11-16Resolves: tdf#95670 propagate ForceArray per parameterEike Rathke
Regression of b5cd11b4b02a85a83db77ba9d8d1763f0cd88cb1 It was always wrong to propagate ForceArray already if a function had a ForceArray parameter *somewhere*, we need to do this per parameter instead. Change-Id: If188d45366279d9a7bf641edc7e4dd7095d6d035
2015-11-16sc: add some assertions on ScAccessibleEditLineTextDataMichael Stahl
JunitTest_sc_unoapi crashed when accessing a disposed ScTextWnd from ~ScAccessibleEditLineTextData(), but the ScTextWnd::dispose() would also call ScAccessibleEditLineTextData::Dispose() and clear mpWindow, so it seems impossible to observe a disposed ScTextWnd in the dtor? Change-Id: If571ee61d9a29601acb1de552ec1b9cc36d0d51e
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-14coverity#1339306 Using invalid iteratorCaolán McNamara
Change-Id: I72d9b1a2729d455431583177208597c554945629
2015-11-13sc: replace that boost::ptr_vector<Reference<T>*> abominationMichael Stahl
This looks like dead code anyway? Evidently it didnt' compile like that. Change-Id: Id6500c18d66c6932b24c15b653d992c449e260c4
2015-11-13sc: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I59831588fb7bc7e907fbffb24ddfe068552b6492
2015-11-13underscores are reservedTomaž Vajngerl
Change-Id: Iee60389ccc9e348db6ed00e48e32b1e86f17b530
2015-11-13improve compile time SSE2 detection, fix broken android buildTomaž Vajngerl
Prereq. to enable runtime SSE2 detection is that the compiler supports it in the first place. MSVS and GCC use different compiler flags for this so use __LO_SSE2_AVAILABLE__ to make this build platform independent. emmintrin.h is unavailable on ARM Android so include this and compile the SSE2 specific code only when we are sure we can build SSE2 code (__LO_SSE2_AVAILABLE__ is defined). Change-Id: I212c4e0b99a314d087b9def822a81325b25f3469
2015-11-13sc: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I81b3d69c0bcd7444325ed2037ac00108f9c43474
2015-11-13sc: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I9bcb6a55b568548e969e5528e5ce1399829e1222
2015-11-13sc: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I4360e3238407d9cc7d664c543868cdb66271dbe8
2015-11-13new loplugin ptrvector - find bad comparison of container<unique_ptr>Noel Grandin
Change-Id: Idb18ae1ca2f7c644680703dc3b7dd3cd6000e040
2015-11-13arraysumfunctor: fast sum a double array, use for SUM() in CalcTomaž Vajngerl
This adds an array sum functor which sums a double array in a as fast as possible way. There are 2 implementations: SSE2 and a simple unrolled implementation. SSE2 implementation is used if SSE2 is detected at runtime. Additional info: SSE implementation at first processes the array until the array is aligned by 16-bit boundary (should only process 1 element). Then the array is processed by summing 8 values in one pass (using 4 variables that are 128-bit wide) where SSE operation can process 2 double values in one call. Change-Id: I24494b08cae049aa3eabcb086867f1bdd4128374
2015-11-13sc: loplugin:badstatics: remove pActiveEdWnd global variableMichael Stahl
Just use a Link, or rather std::function to set a member in the tab page. Unfortunately loplugin:vclwidgets complains about the new member. Change-Id: Ie2f9cb73c38292d02057d43b12694c6609fa0db8
2015-11-13Remove outdated commentAndrzej Hunt
This has now been merged as: LOK: setClientZoom() - sets the client zoom level 96cd2abd748ed24e5aba50cc4c300cf06e512db3 Change-Id: I519a752dd9f18bb719a43f75f1ad3105f58418d9
2015-11-13sc lok: during tiled rendering the cell-cursor is always visibleAndrzej Hunt
Change-Id: Ia802c19f5bfd2fe2e9909e3c611047c529a64200
2015-11-13cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Ife26f55c28c4631aec4ba4105225bfca72da8bff
2015-11-13sc: loplugin:badstatics: _one_ global pActiveEdWnd is enoughMichael Stahl
Change-Id: Idb0eacc8c14b2c56e8255c47c8330e5e6572d5de
2015-11-13sc: loplugin:badstatics: clear ScGlobal::xDrawClipDocShellRefMichael Stahl
Change-Id: Iede68e39a449ad0ea4a07d0a349c70c523ad6633
2015-11-13sc: let's make ScFormulaDlg::pDoc and aCursorPos ordinary membersMichael Stahl
<erAck> mst__: I see no immediately compelling reason why that shouldn't be a member variable Change-Id: I307259337cb068c5c7e397a1f57cf8e7c92b0e12
2015-11-13sc: rename static member ScFormulaDlg::pDocMichael Stahl
Change-Id: I6dc352bf0bcfef18b39926986929d0ba96d2f3cc
2015-11-13some older gcc doesn't like auto in lambdasNoel Grandin
Change-Id: I4491ed75bfe588b5c4e307d17319e1f0feda1678
2015-11-13fix build "error: declaration of size shadows a member of 'this'"Noel Grandin
after my commit 2aacf6c2cd82322b953988ff30d3bc997ae76d7b "sc: boost::ptr_vector->std::vector" Change-Id: I7195b91a61405f16ddcc698ce1e8205e6d20c39e
2015-11-13Revert "sc: boost::ptr_vector->std::vector"Noel Grandin
This reverts commit 9822ddf366459d31148a4ccbf0a49da4f726b3db. something is storing a pointer to maXFIndex in XclImpXFRange Change-Id: I2de7a311da2586351e2356b108f723c80f268245
2015-11-13sc: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I21fdb9f503241c2fa38f3de059a1f674a6631c78
2015-11-13sc: boost::ptr_vector->std::vectorNoel Grandin
Change-Id: Ia78f3596888df89b13578bd383df2615bcb854a7
2015-11-13sc: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: Ie152e03e6219495683ebc50d916406fff0e54b6d