summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocfun.cxx
AgeCommit message (Collapse)Author
2013-01-12Maybe this will make the Windows tinderbox happy...Kohei Yoshida
Change-Id: I9e838d2e4cadd79c55a5648b006f40d3dcd04518
2013-01-11Remove more duplicated code blocks.Kohei Yoshida
Change-Id: I4b392a10b324ba082764df92a8640edb3e225666
2013-01-11Remove duplicate blocks.Kohei Yoshida
Change-Id: If994ea2505078ea7133c162c95df4f89a3c5ba99
2013-01-11Redo DataPilotUpdate() as well.Kohei Yoshida
Change-Id: I8c53c233f42b6640ef8d77982082945e07882979
2013-01-11Actually let's do these earlier so we can bail out early.Kohei Yoshida
Change-Id: I1903efe4dba876e4d373cc329c66595840d7be81
2013-01-11Check this first before instantiating heap objects.Kohei Yoshida
To prevent memory leak. Change-Id: Ia4a5bb3fbad8bdd5646bc92c405458b929b5f7da
2013-01-11Remove duplicate code blocks.Kohei Yoshida
Change-Id: I403b6a1e3639c221b007f38ad07daf19dfd8e643
2013-01-11Remove all checks for NULL pointers from DataPilotUpdate().Kohei Yoshida
Now we can safely assume that both pOldObj and pNewObj are non-NULL, and they are not equal. Remove unnecessary checks to make the code simpler. Change-Id: I263dc377aeb245dc9261b40ee0605e2cb54c28f2
2013-01-11Add a variant of DataPilotUpdate that removes pivot table.Kohei Yoshida
This one became pretty small. Change-Id: Ic1e1e2b7afc35e5d1141a34722a6fe395832d936
2013-01-11Create another variant of DataPilotUpdate() for new table creation.Kohei Yoshida
Again, this version has much less branching. Change-Id: I9138471261f2d4df14b64e603a88d4495b6ea45e
2013-01-11Let's remove this underused bAlive flag....Kohei Yoshida
It's no longer that useful in today's pivot table design. Change-Id: I665a7707126793dfde17a2221ba563d22a59aad1
2013-01-11ScDBDocFunc::UpdatePivotTable: -Werror=deprecated-declarationsMichael Stahl
Change-Id: I0d1b8176c9796ae39bc692d48e4481bdedb6ff09
2013-01-11Let's not return here to prevent memory leak.Kohei Yoshida
There are several heap objects that are deleted at the end of the method. Returning prematurely would leak those objects. Change-Id: If70cb3c9c02e47229d10b30f1542f7b25534d593
2013-01-11Create a self-update variant of DataPilotUpdate().Kohei Yoshida
DataPilotUpdate() is getting more and more complicated, with so many branches. Since self-updating a pivot table object is common, let's create a variant just for that. This variant has much less branching. Change-Id: I75b0512258a09961ef13516d8d9bc8a2939287e1
2013-01-11Makes no sense to 'continue' at the end of the block.Kohei Yoshida
Change-Id: I2b02430944c5c6ecf67d2b7cd02c66bb549c93f9
2013-01-10fdo#59084: Sync dimension members after reloading the group data.Kohei Yoshida
Else the syncing would end up syncing to the older version of the group data before the reload, which (as you can see in the bug report) may lead to a crash. Change-Id: Ibd674a97a59205e5e28efd007f8857731e8df4d3
2012-12-04re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by Herbert Duerr i#118735 prevent endless loop if vlookup/hlookup doesn't find anything http://svn.apache.org/viewvc?view=revision&revision=1239673 Patches contributed by Andre Fischer remove lp_solver http://svn.apache.org/viewvc?view=revision&revision=1199180 i#118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Armin Le-Grand i#118485 - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 i#118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 Patches contributed by lihuiibm i#108860 - Fix range validation. http://svn.apache.org/viewvc?view=revision&revision=1242846 i#118954 Chart data will lost after copy to different file http://svn.apache.org/viewvc?view=revision&revision=1301345 Patches contributed by Ariel Constenla-Haile Fix Linux build breaker: extra qualification on member http://svn.apache.org/viewvc?view=revision&revision=1301591 i#118696 - i#118697 - Fix some Sheet Tab Color API issues http://svn.apache.org/viewvc?view=revision&revision=1225428 i#118697 - Fix uninitialized variable http://svn.apache.org/viewvc?view=revision&revision=1225859 i#118771 - ScUndoImportTab should preserve tab background color http://svn.apache.org/viewvc?view=revision&revision=1230356 i#118921 - Repaint linked sheet tab background color after updating link http://svn.apache.org/viewvc?view=revision&revision=1245177 i#118927 - Undo/Redo "Update Link" does not reset sheet tab color http://svn.apache.org/viewvc?view=revision&revision=1245241 i#118747 - Copy tab color when transferring sheets across documents http://svn.apache.org/viewvc?view=revision&revision=1230355 Patch contributed by Oliver Rainer-Wittman i#118012 - methods <ScBroadcastAreaSlot::AreaBroadcast(..)> and <ScBroadcastAreaSlot::AreaBroadcastInRange(..)> adapt stl-container iteration in order to avoid destroyed iterators during iteration. http://svn.apache.org/viewvc?view=revision&revision=1297916 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 Patch contributed by Daniel Rentz calc69: #i116936# fix VBA symbol Cells http://svn.apache.org/viewvc?view=revision&revision=1172135 Patches contributed by leiw: i#118546 CPU 100% on switched off AutoCalculate with Conditional Formatting on date values http://svn.apache.org/viewvc?view=revision&revision=1301380 Re-add new function documentation. Many various cleanups. Add missing calc66: #o11817313# also look at formula result number format, remove redundant binaries.
2012-11-19database names are case insensitive, fdo#51309Mathieu D
Change-Id: Iac9ac4e48115ea09aeffa11bbd8da399266aede9
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I231f0b367bf0b513c6c1ce4c4cfdb7c3dc8660d5
2012-09-11-Werror,-Wunused-private-field (various sc)Stephan Bergmann
Change-Id: Ia30a2bb6b1f36304a3c420db1d28d177d429a19b
2012-08-30fdo#53938: Don't proceed when error occurs.Kohei Yoshida
This prevents the same error dialog from appearing 3 times in a row, also the pivot table outout from becoming empty. Change-Id: I09a72f78561f3f0446a95732fb9c242c1144878a
2012-08-29move ScProgress construction out of ScTable::SortMarkus Mohrhard
Change-Id: I8e523fbb53b9c40075b62ee32d79eee0b408168e
2012-08-22Don't clear the database data cache here.Kohei Yoshida
This would result in the pivot cache being refreshed twice. This block of code was a leftover from the previous, non-cached version of pivot table, and this logic no longer applies today. In today's pivot table code, the cache gets refreshed first, then the table gets refreshed afterward. We should never clear the cache data during table refresh. Change-Id: Ida6fa1805463facf842cb9ea94f4c1afab716595
2012-07-05fdo#51266: Sync dimension members in several places upon refresh.Kohei Yoshida
Or else the pivot table would generate erroneous results or crash after refresh. Change-Id: Ia14a6e3d25112e6ecd62d21928639f75e6a8ba7c
2012-06-09Remove superfluous include commentsThomas Arnhold
Change-Id: Ie5792855761b9be209bf3fa2cba9e6998523c982
2012-04-11move ScProgress outside of ScTable::FillMarkus Mohrhard
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-05Revert "Cleanup. ScPivot(Collection) is no more."Markus Mohrhard
This reverts commit 568d3912bf8ced76ecb9506bccc3bd361daba082.
2012-04-04Cleanup. ScPivot(Collection) is no more.Kohei Yoshida
2012-04-04ScDBDocFunc::Sort: work around STL assertion in sc_unoapiMichael Stahl
from dbdocfun.cxx:588: error: attempt to subscript container with out-of-bounds index 0, but container only holds 0 elements. The code in sortparam.cxx still looks quite wrong, and in table3.cxx there are various arrays hard-coded to size 3... (regression from a02b445c39d969fedc554fc2c500b88a27a13906)
2012-04-04fdo#45747 remove the limitation to 3 sort entries in calc part1Albert Thuswaldner
2012-03-31revert "remove limitation to 3 sort entries in calc part1"Markus Mohrhard
2012-03-31fdo#45747 remove the limitation to 3 sort entries in calc part1Albert Thuswaldner
2012-03-25WaE: one more newly unused variableMarkus Mohrhard
2012-03-25remove newly unused variableMarkus Mohrhard
2012-03-23Let's just centrally reload group data in DataPilotUpdate()...Kohei Yoshida
It's a no-op when there is no group dimensions anyways.
2012-03-23Some misc changes & some dumping facility for pivot table for debugging.Kohei Yoshida
2012-03-22More bug fixes related to grouped dimension handling.Kohei Yoshida
2012-03-22When updating pivot table with groups, we need to clear the table data.Kohei Yoshida
2012-03-14We need to manually clear the table data in presence of group fields.Kohei Yoshida
There was a hack that did this in ScDPObject, which I removed. But we still need to do the same except this time it's outside of ScDPObject.
2012-03-14When changing grouping in one pivot table, update all linked tables.Kohei Yoshida
We need to do this now because we now store the group field data directly in the pivot cache, which is shared by all referencing tables. Also, actions involving modification of the cache is not undoable, and making it undoable would significantly increase Calc's runtime memory footprint. So, no way.
2012-03-14Rename ClearSource() to ClearTableData().Kohei Yoshida
2012-03-14Let's just do the whole thing in the new method.Kohei Yoshida
2012-03-14Dedicated method for refreshing multiple linked pivot tables.Kohei Yoshida
2012-03-14Use bool.Kohei Yoshida
2012-02-23avoid temporary rtl::OUStringTakeshi Abe
2011-11-28dr78: #i116426# use ODataAccessDescriptor for database import parameters, ↵Eike Rathke
support bookmarks for selection # HG changeset patch # User Niklas Nebel <nn@openoffice.org> # Date 1294842009 -3600 # Node ID e25621ed7fd31753eea52ee5ff3f0a6d170db9a9 # Parent 5ea5624904a5aa39bb40ce197c80a0a41f40b873
2011-11-27remove include of pch header from scNorbert Thiebaud
2011-11-23Reducing header dependency on markdata.hxx.Kohei Yoshida
2011-11-05Moved ScQueryEntry into its own file set.Kohei Yoshida
Because I'll be modifying this struct in the next few days...