summaryrefslogtreecommitdiff
path: root/sc/source/core/data
AgeCommit message (Collapse)AuthorFilesLines
2013-12-02Import data streams - reuse infrastructure for ScAreaLink.Matúš Kukan1-2/+3
Change-Id: I18db991d2e8e665d5e4ca778344993e79772ccd5
2013-12-02we want to delete anytime that attribs are overwritten, fdo#72149Markus Mohrhard1-1/+1
Change-Id: I1ed50e6daf5b363c46e31d1a0efacf7728621b1a
2013-11-27Clear the cache here too.Kohei Yoshida1-0/+4
Change-Id: I4dcc7244e508fcdf484b73dc843b21f4b0a18a73
2013-11-27Not a good idea. This makes group calculation 5 times slower.Kohei Yoshida1-14/+0
Change-Id: I954606a9d6d9b0fc66f2f3496e204c8e6496db88
2013-11-27Clear column data array cache when the document content changes.Kohei Yoshida2-0/+19
Change-Id: I09ffa455e79199e37ca6168753ec9ef4d5aa33dc
2013-11-28resolved fdo#71589 reimplemented horizontal range lookupEike Rathke2-1/+103
Regression introduced with ebdd9c300718bce454ef56a31d5d8fb699fc1822 (first eaea417bfdf8d06df2b7f2e42c904c32ce77e871) that removed the bMixedComparison member from ScQueryParam under the false assumption that is was only used to emulate a legacy Excel behavior. In fact it was also needed to do the at least horizontal range lookup in sorted mixed data, though didn't evaluate exactly the same conditions as Excel and defined in ODFF. Reimplemented a similar behavior for the new code structures but this time also checking for the additional condtion that a query ByString does not return the last numeric result and vice versa, which previously was missing. Change-Id: I46061777879ba5301bfcaca2d50cf87a994f93f2 (cherry picked from commit f0701470858f57a855ba57c0c2283e52953db327)
2013-11-28iterating through all cells is not a good idea, fdo#71934Markus Mohrhard3-3/+52
Change-Id: I370f641f0fffed8835a32c577c2f2e841ba419aa
2013-11-28checking every cell on a sheet is expensive, related fdo#71934Markus Mohrhard2-0/+30
This is only the first of two places that does this. Change-Id: I57fe1eb07630ecd86b112e88b7ad32c16e9f793a
2013-11-27We shouldn't check isValid() here.Kohei Yoshida1-6/+6
When the referenced range consists of entirely empty cells, we get an empty array, which is correct, but an empty array returns false when calling isValid(), which is not correct. After some thought, it's best not to check for isValid() here. Change-Id: I50dcea4f2b55d5f5c6f1226cca4106ddcad62145
2013-11-26Fix additional bugs in the vector array fetching code.Kohei Yoshida1-5/+5
And a test case to catch it. Change-Id: I233269822b383afa9783bdc7318eddee31d1eaa3
2013-11-23resolved fdo#61946 use correct TabDelta for UpdateReferenceEike Rathke1-1/+1
The sheet delta was reverted resulting in the references not being updated when conditional formats were copy-pasted between sheets. Saved to .ods then was an identical calcext:target-range-address as for the copied source range. Change-Id: I038b58f20f71ff1393dccafa3021dac02cd69e4b (cherry picked from commit ef8e0beba442f58abe3bc77f6f55fc6109025dd4)
2013-11-22Set default cell style directly, without UNO API.Kohei Yoshida1-0/+9
This also avoids unnecessary row height adjustments. Change-Id: Icfecf0a5fdf7ef18db368ebadcf9d0b8700c0b65
2013-11-22Call the method directly via ScDocument, not via obscure UNO API.Kohei Yoshida1-1/+0
Change-Id: I27628314337ae4df31420d63d7c09148369a6759
2013-11-20Fix a few of my own thinkos, and add some assertionsTor Lillqvist2-1/+6
Fix two obvious mistakes from 8c37bafbc5adc0c79f218f9db2dc25ca8e683125. Add asserts to make sure the calls to ScFormulaCell::CreateCellGroup() that now don't take the nStart parameter any more (but assume that the cell for which this methoid is called is the start one) match the old ones in semantics. Change-Id: I50cb0cdaf620253881225baf39ae9cd935917b27
2013-11-20Try to make the background OpenCL compilation conditional at run-timeTor Lillqvist1-13/+36
Change-Id: I2366465f4e786f905c32b17a15c16486c4c21d38
2013-11-20Fix some life-cycle issues for backgroup OpenCL kernel compilationTor Lillqvist1-1/+1
Now it no longer asserts or crashes in light testing, but it doesn't properly recalculate either. Change-Id: I7dc117341eff5ac1b21d7400122cc6e04ae2baf7
2013-11-20WIP: Background ahead-of-time OpenCL compilationTor Lillqvist2-239/+242
Work in progress, does not work. That's what WIP means. Change-Id: I31459624a45370384e00392937ac9a5b9cd893c2
2013-11-20WIP: Background ahead-of-time OpenCL compilationTor Lillqvist1-0/+3
Change-Id: I6e9906fb68a22eb0adab753726ec0d62dd05fe9b
2013-11-20Avoid crash in unit testTor Lillqvist1-1/+2
Change-Id: Ic452c1a2a8a7099a22584130e6a161c25bccabae
2013-11-20WIP commit of threaded OpenCL compilation workTor Lillqvist1-6/+16
Change-Id: I210d0ded9cb38569b0831355522d8309cee05f56
2013-11-20Use the more generic CompiledFormula typeTor Lillqvist1-1/+1
Change-Id: I91d2e956b76919c56d14712789198c3c10470742
2013-11-20Point to the group's top cell in ScFormulaCellGroup instead of the top rowTor Lillqvist2-17/+10
It will make implementing the background compilation of OpenCL kernels easier, I hope. That needs data accessible through the ScFormulaCell. Change-Id: I77ad5a94eb13551e6238d5f5285f1c916d7cb992
2013-11-20Add "sc.opencl" logging areaTor Lillqvist1-0/+1
Change-Id: Icd851c17bab1f55cd16d5a48cc71ff2ac91daa2c
2013-11-20WIP: Do OpenCL compilation in advance in a worker threadTor Lillqvist1-0/+42
Change-Id: I9fbf848bd487e5ea49a383461f04e3c1678af607
2013-11-20Refactoring in preparation for threaded OpenCL kernel compilationTor Lillqvist1-0/+1
Introduce a new abstract class CompiledFormula, of which the (existing) class BinaryKernel, that represents one OpenCL kernel, is a concrete subclass. Change-Id: I70fd26fa4bd3de026276727bf9fa8ed01bfb62c9
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructorNoel Grandin1-2/+1
Convert code like: OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OStringBuffer aKeyName("NDX"); which compiles down to the same code Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin2-10/+8
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin3-3/+3
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-2/+2
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-18Handle sheet-local range names too.Kohei Yoshida1-1/+1
Change-Id: Ib1503c3b69d77946b4437bdc0e1bfa5ebacbb602
2013-11-14Create string from token array directly from ScTokenArray. Still WIP.Kohei Yoshida1-0/+16
And make it re-entrant for thread safety. This method should not modify the internal state of the token array object. The one with ScCompiler is not re-entrant. Still some way to go. Change-Id: I06de3637341727aef0963dddfb98527f415bf7fa
2013-11-14Rework SvtListener and SvtBroadcaster internals.Kohei Yoshida2-10/+11
The old code was simply awkward. Change-Id: I1a58a9af86c100be238d306570b40f70c5100314
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-3/+0
Change-Id: I5e7898dc8b0f01cfae48ac564fc8157931a06f9f
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-30/+0
Change-Id: I89170a2d79605f72e40d5e7664458cad9590ec0b
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-15/+0
Change-Id: Iabe3b1dac4c3f0997e786cb641faf43e791018b1
2013-11-14remove unnecessary sal_Unicode casts in SC moduleNoel Grandin6-19/+17
Change-Id: Iee7688ea60b4d45d3e6725afd46e9cbb5ebe26c5
2013-11-13move ScRefreshTimerProtector into its own header fileMatúš Kukan1-0/+1
So that, we don't have to include "refreshtimer.hxx" in docsh.hxx. Also implement destructor in source file. Change-Id: Ie0251ad3511b44cf1dd6dae34e22ade0ab32cec4
2013-11-12Reduce the amount of RPM token generation.Kohei Yoshida1-0/+6
Change-Id: I03941690114b17d8ab63cfb9b1b23a2ff1741b10
2013-11-11This is clearly a mistake.Kohei Yoshida1-1/+1
Change-Id: Id87e120d80b823db9be989db7a7b2ac383304f77
2013-11-11Revert "Guard access to external ref manager instance."Kohei Yoshida2-21/+10
This reverts commit 7cf9ea71ad1364d00eaca95b309cc6c0f35cf6cb.
2013-11-11Make this thread safe too.Kohei Yoshida1-0/+2
Change-Id: Ic8508f693f8a6e9bae513d6b5b6eaaaae618194b
2013-11-11Guard access to external ref manager instance.Kohei Yoshida2-10/+21
Change-Id: Ie3208844b523463954c482d080f02d726ae749f9
2013-11-11convert STRING_NOTFOUND in sc moduleNoel Grandin1-4/+5
ScGlobal::FindUnquoted - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 - remove last two parameters because noone was using them ScCompiler::GetDocTabPos - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 inputhdl.cxx/lcl_MatchParenthesis - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 - make function static, no-one outside this module is using it Change-Id: I141ab082db180ff2da5a7ca6813cd3607b9ea7f7
2013-11-11remove unnecessary use of OUString constructor in SC moduleNoel Grandin2-23/+23
Change-Id: I2d40c589eb3b5c99300f36cd705c32cf824b2a98
2013-11-08"%1 is replaced to ..." ... maybe, or maybe notEike Rathke1-0/+15
Translations may have omitted the %1 placeholder in SCSTR_COLUMN and SCSTR_ROW, or not have it translated newly yet because it was introduced later. In these cases append the column indicator / row number as it was done before. Change-Id: I331cf0c529bebea02277784ea145c202eb6f6fda
2013-11-07Umgekehrte Polnische Notation is German for Reverse Polish NotationTor Lillqvist2-6/+6
Change-Id: I80480f963b643596ff1c0e93af3eaa6ffc63c9dd
2013-11-06Allow instantiation of more than one SvNumberFormatter from the document.Kohei Yoshida2-8/+25
Change-Id: Ide6875e031268337bf6a21286176a38905c12691
2013-11-06Avoid duplication of ScTokenArray during formula cell construction.Kohei Yoshida2-2/+50
For slightly less overhead. Change-Id: Ie5861d585d6e22fbd19dfd57edfebae4f4504839
2013-11-06Modify ScFormulaCell's ctor to take a const reference to ScTokenArray.Kohei Yoshida9-34/+61
Instead of a pointer to ScTokenArray, and then clone its instance. If the token array gets cloned in ctor, take a const reference. Change-Id: I280fd7eb9eaea9905dbf954a1ace904ab0814dfe
2013-11-05convert xub_StrLen to sal_Int32Noel Grandin1-2/+2
Convert code like: xub_StrLen nLen = aStr.getLength(); into sal_Int32 nLen = aStr.getLength(); Change-Id: Ib0af6b747068257478918fd1cc93e4925f32ac47