summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2015-11-02sc: MSVC doesn't do auto parametersMichael Stahl
Change-Id: I4225281e280ea780805b3dc68ed63433f8466bc1
2015-11-02sc: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I51d87693bdb3d57c36d8cafb851fdad10cd93589
2015-11-02sc: remove unused boost::ptr_map ScRangeName::TabNameMapMichael Stahl
Change-Id: I7967f0ee333eda4db320dc50bd91f2229792f0a8
2015-11-02sc: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I21719d513aa4af7a7f9621e19d529fd0c4425f58
2015-11-02implement ScRefCellValue::operator=() without temporary and swapEike Rathke
... just ... why ... was ... that ... ? ... Change-Id: I1bc1ea12600859872c6d238b1ef6fc55f6ff2e04
2015-11-02trash usage of ScRefCellValue default ctor followed by assign()Eike Rathke
... that only results in a performance penalty. Change-Id: Ia161ab7fb03f2d32cf966ce9da9d0319d919fc4c
2015-11-02avoid construction of ScRefCellValue with default ctor, tdf#95419 relatedEike Rathke
... to just assign a new value, which takes a significant amount of time (~13% of ScTable::ValidQuery()) in ScRefCellValue::operator=() due to its implementation using a temporary and swap. Change-Id: Ia205850e10c5fa9083eec5fb7563d98561b52462
2015-11-02cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Ia5aba89f02ee4d99dd573599a3888731efb131b9
2015-11-02LOK: make use of MOUSEMOVE in calcMihai Varga
Change-Id: Ideb7bdabd86e95cf10c7f19f0900110b816970c2
2015-11-02sc lok: fix rounding errors with non-100% zoomMiklos Vajna
There were two problems here: 1) ScTabView::getRowColumnHeaders() did not expose twip values directly, but used ScRow/ColBar::GetEntrySize(), which does a twip -> pixel conversion, and then converted it back to twip. Avoid this unnecessary roundtrip. 2) ScViewData::ToPixel() trunaces the resulting float to an integer, so if the result is e.g. 67.7 pixels, then Calc handled that as 67, but gtktiledviewer rounded that up to 68, resulting in non-matching headers for the rendered tiles. Change-Id: Ie6ed1ea923a423d1526eeb235b7b87106fd2f20b
2015-11-02cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I06186e8f0bbc8522f538e8639a68e816093becc2
2015-11-02sc lok: emit RowColumnHeader info in twipsMiklos Vajna
As that's the unit we use everywhere else in the LOK API. Also, make the ScGlobal::nScreenPPTX/Y calculation more precise, otherwise rounding errors occur during the pixel -> twip conversion. Example with the old precision: col height is 103 px, nScreenPPTY is 0.067, twips is 1537.3134328358208, convering it back is 102.487562189 px. Example with the new precision: col height is 103 px, nScreenPPTY is 0.0667, twips is 1544.2278860569716, convering it back is 102.948525737 px. Change-Id: I19f5285508ef0c751614d07969b3a7a037e7d1ec
2015-11-01no need to use OUString constructor in call to createInstanceNoel Grandin
Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296 Reviewed-on: https://gerrit.libreoffice.org/19704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-31Adapt FuncSum to vectorize better.Michael Meeks
Change-Id: If9b06cb7f1e17ab434bb61656dc8cfe7cf170309 Reviewed-on: https://gerrit.libreoffice.org/19698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-31sc lok: Always provide a reasonable document size.Jan Holesovsky
With an empty document, GetPrintArea() returned false, causing nothing visible on the screen. Also increase the values when I'm touching this. Change-Id: Iee7544a428d5d4d5d5931230a51e605302557f41
2015-10-30tdf#93684 - Remove SalFrame::SyncRyan McCoskrie
Change-Id: Icae9cf0a17f9cdf9a671c7e7278019d6980602b1 Reviewed-on: https://gerrit.libreoffice.org/18453 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-30tdf#95419 fix performance fall-out, tdf#92749 follow-upEike Rathke
Commit 1bea8310747b65516f40f6457ab1d174ef7ddce4 erroneously introduced a hard recalc of all formula cells if ScDocument::CalcFormulaTree() was called only for forced RecalcModeForced formula cells during load when HardRecalcState is HARDRECALCSTATE_TEMPORARY through ScDocShell::AfterXMLLoading() -> ScDocShell::SetDocumentModified() if aDocument.IsForcedFormulaPending() Change-Id: Ib6b9ac07fa183adf26fdb56dcee029ee2b9cc5da
2015-10-30ScTabView::getRowColumnHeaders: emit info about last formatted row/colMiklos Vajna
Change-Id: I6b4f6eacde84433fa3865e62c692a3f97895b887
2015-10-30ScTabView::getRowColumnHeaders: include info about columns, tooMiklos Vajna
Change-Id: Id7db9fa9b451dcf2423142b38c2c12b369e16fae
2015-10-30LOK: initial Document::getCommandValues() for RowColumnHeadersMiklos Vajna
Only the row info and for the entire tiled rendering area as a start. Change-Id: Idbccd805b355e8d151ab7025ac1cf0c686cb237b
2015-10-30loplugin:unusedmethodsNoel Grandin
Change-Id: Ib4277268903e4411f6dabc856270702f40027bdb Reviewed-on: https://gerrit.libreoffice.org/19680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30convert Sequence<XInterface> constructions to use initializer listsNoel Grandin
Change-Id: I66475190cc0f18465c56b94af7bc0d5a1ca81242
2015-10-30loplugin:unusedmethodsNoel Grandin
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29Initialize Sequence<beans::NamedValue> from initializer_listsNoel Grandin
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
2015-10-28unit test for tdf#95395Eike Rathke
Change-Id: I8bbd70f6740019bebc23d20259f923b8f87d4329
2015-10-28Resolves: tdf#95395 force range reference to array only in array formulaEike Rathke
... and not already if the function has a (ReferenceOr)ForceArray type parameter somewhere else in the parameter list. Regression triggered by commit 01eea7fe40c939311bf1920b6e8b4391a93c2e82 for MATCH, HLOOKUP and VLOOKUP first parameter, but behavior already present since OOo for LOOKUP; FORECAST in its first parameter, PROB, LINEST, LOGEST and TTEST in the last two parameters. Change-Id: I4a30ea3362f86274a048b0e3f47fa12da3001a3a
2015-10-28tdf#92256: Don't save CONV_UNSPECIFIED string ref syntax valueKatarina Behrens
The following scenario is how it breaks: 1. user has ExcelA1 as her formula syntax setting, CONV_UNSPECIFIED (that means "same as formula syntax") as her string ref syntax setting 2. she saves the document, it will now contain CONV_UNSPECIFIED value 3. someone else with CalcA1 formula syntax setting opens the document ... since it contains CONV_UNSPECIFIED "same as formula syntax" value, it will use his CalcA1 formula syntax value to evaluate INDIRECT func => #REF! Avoid this by reading formula syntax/grammar value, mapping it to matching string ref syntax and saving that instead of CONV_UNSPECIFIED Change-Id: Ide62d81e6b70c2e9f2ff79648935788107475778 Reviewed-on: https://gerrit.libreoffice.org/19610 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-10-28preserve and renumber duplicate valuesEike Rathke
Change-Id: I5c805fb7d60d8bae7109e3910f7bb0b5dd142909
2015-10-28add comment that some STR_COND_... values must be in sequenceEike Rathke
Change-Id: Ibb1b14aa624b1ff6f52c5db8ba799d8cf30c3484
2015-10-28vcl: getWindow() -> setClipboard() in ITiledRenderableMiklos Vajna
It's cleaner to let the apps do this themselves than exposing their underlying vcl::Window. Change-Id: Iff2442dd325fa65a0cf3ad4aa7f918542dab1e4c
2015-10-28com::sun::star->css in scNoel Grandin
Change-Id: I7774890f46f9343e944e34db27af8bce3b1d0915
2015-10-27don't allocate rtl::Reference or SvRef on the heapNoel Grandin
There is no point, since it's the size of a pointer anyway Found by temporarily making their 'operator new' methods deleted. Change-Id: I265e40ce93ad4bad08b4f0bd49db08929e44b7d6 Reviewed-on: https://gerrit.libreoffice.org/19628 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27sal_uLong to ErrCodeMatteo Casalin
Change-Id: I2b4b2673aa27de664f6c6780e67c70559ec61971
2015-10-27Reduce #include scopeMatteo Casalin
Change-Id: I0dc8e00d65078ba910516a9b4473988fdbfe2cc1
2015-10-27SAL_WARN_IF ScCsvSplits::Insert exceeds its maximum supported sizeMatteo Casalin
and cast size() to sal_uInt32 in ScCsvSplits::Count() Change-Id: I35de736702a58e82df6fe90396fe748161f1ff8d
2015-10-27Simplify by early bail-outMatteo Casalin
Change-Id: I9210db5196e5c40f450e8bedac2ddd9bd2299f9c
2015-10-27Remove inline specifier for functions defined in classMatteo Casalin
Change-Id: Ia0fcd51c5c1cfaff86aeaab2919addcce6621322
2015-10-27Use positioned getToken in ScAsciiOptions::ReadFromString (2)Matteo Casalin
Change-Id: I1e91aa9da6fa3ead16ee8f7628dd8c44a7540238
2015-10-27Use positioned getToken in ScAsciiOptions::ReadFromString (1)Matteo Casalin
Change-Id: I59f1ff177e197db07ac9a9a33487d04c2a5e768e
2015-10-27Use getToken with start position in lcl_decodeSepStringMatteo Casalin
Change-Id: I16fba233346b807a4c216da70a71e66f2bb0e0a3
2015-10-27tdf#92207 sc: Make the text background color button workMaxim Monastirsky
Change-Id: I687a58e17ce30ced101c4585884106cff9b6292b
2015-10-27move SvRefMemberList into idlNoel Grandin
since it's only usage is there Change-Id: I882ddd3e08ab37cf7b3cca8121463598ea3d3bc4
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27inline SvBaseLinkRef typedefNoel Grandin
Change-Id: I0684db21c260e38d1d2e32eb5924cf7e25212b4d
2015-10-26let see if this works on 32-bit crapEike Rathke
... without actually disabling the test for 0.0 for others. Change-Id: I014278dd38535274274536e3187d6bb8cd4dbc2a
2015-10-26tdf#86508: Traffic light colour scale for cond. formattingKatarina Behrens
Change-Id: I35584a36ba4a89187182af8828402040e4b091e4 Reviewed-on: https://gerrit.libreoffice.org/19609 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-10-26loplugin:literaltoboolconversionStephan Bergmann
Change-Id: If7c7461893ad2627f4bf8a95051282a30a77dc3a
2015-10-26Make OpenCL listener global, to avoid perf. cost of copying it around.Michael Meeks
Change-Id: Ic10b70e1d56b941d263ed7632ba8a5146145cab1 Reviewed-on: https://gerrit.libreoffice.org/19600 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>