summaryrefslogtreecommitdiff
path: root/sc/inc/attarray.hxx
AgeCommit message (Collapse)Author
2017-03-07tdf#50916 Simplify and refactor source codeBartosz Kosiorek
Change-Id: Ibcb3068318180f2adfdc41aac5d75299c1ffaffc Reviewed-on: https://gerrit.libreoffice.org/34711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2016-11-10Refactor ScAttrArray for tdf#50916Dennis Francis
For a default column, now ScAttrArray does not store the default format. So the case of default pattern from 0 to MAXROW is represented as nCount = 0 and pData = nullptr in ScAttrArray. A new ScAttrArray object (aNextColAttrArray) is introduced as a member of ScTable. This is used to store the formatting of *unallocated* columns (whose indices are from aCol.size() to MAXCOL). In next patches for this bug, I plan to refactor table*.cxx functions related to formatting such that : 1) In formatting setter functions, if colspan of the input range spans the colrange(aCol.size() to MAXCOL) then instead of allocating columns, apply that formatting to aNextColAttrArray. 2) In formatting getter (const) functions, if requested colspan has some intersection with the colrange(aCol.size() to MAXCOL) then use the formatting info stored in aNextColAttrArray to calculate the formatting of the input range. 3) In general setter (non-const) functions if we really need to allocate new columns (example, when data is entered), use the formatting info stored in aNextColAttrArray to create pAttrArray of the new column. Change-Id: Ieb56f853209b396d92fdb2c27e39361703576423 Reviewed-on: https://gerrit.libreoffice.org/27828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-11-07loplugin:expandablemethods in scNoel Grandin
Change-Id: Ib417c5e978fca563f8c0ef0dbe6b9d50fead9828 Reviewed-on: https://gerrit.libreoffice.org/30566 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-26implement prototype for more stable calc cell style namesMarkus Mohrhard
This should ensure that as long as the style does not change the cell style name is the same after an import export cycle. Each ScPatternAttr stores a unique ID and we store the ID to name mapping during import. During export if we find a ScPatternAttr that has a key that is also stored in the map we write back the style name from the map. To avoid name collisions we block the style names from the import for the export. The missing piece to make this completely awesome is now to make sure that styles are sorted by name during export. That way we can reduce the diff between import and export even more. Change-Id: Ie4fe2aa00f07efec27ea129e314ac0b6b7e0d8c0 Reviewed-on: https://gerrit.libreoffice.org/29255 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-09-26convert HASATTR constants to typed_flags_setNoel Grandin
Remove unused constant RTL. Inline PAINTEXT constant since it is only used in one place. Change-Id: I7b2c15e7579fc5bc475d00fe714f17592bd5e2a1
2016-06-03loplugin:constantparamsNoel Grandin
Change-Id: Ib162ba9297b9d900ea42c7e5216e152d3e58a361 Reviewed-on: https://gerrit.libreoffice.org/25769 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25Convert SC_MF to scoped enumNoel Grandin
Change-Id: I3089006b502e33710bfb2564f051ebf2892ad08a Reviewed-on: https://gerrit.libreoffice.org/25085 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-07loplugin:unuseddefaultparamsNoel Grandin
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795 Reviewed-on: https://gerrit.libreoffice.org/22971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-04tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionalsRohan Kumar
I made small changes to disable some test code conditionally by adding a few new debug macros. Change-Id: Ieaf6f1b29343fb896cc64163a116c629165e8db3 Reviewed-on: https://gerrit.libreoffice.org/22711 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-01-15loplugin:unusedmethods unused return value in scNoel Grandin
Change-Id: I3ccc98d2e042120093e2e8508518681588692393
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-02-07loplugin:deletedspecialStephan Bergmann
Change-Id: Ieeca9fe957e7bc6a4cf9d7d6ac57f9ed150aab78
2015-01-07fdo#82014: Remove old conditional formats when setting new one by UNO APIMatúš Kukan
Change-Id: I76488045eba281227124041da505e38c4c3d31c1
2015-01-03need algorithm for std::minCaolán McNamara
Change-Id: Ib26b448f49c2ca633c557075b282ecbfb99dadea
2014-05-27resolved fdo#79228 resync ScPatternAttr if changed in GetNeededSize()Eike Rathke
Change-Id: Ida47df6223a20939ad5971dc00b8f3462a92dd3e
2014-04-19fixincludeguards.sh: scThomas Arnhold
sorry, huge one...
2014-01-24Optimize copy-n-pasting of single cell replicated over a range.Kohei Yoshida
This is a very common operation. Let's speed it up a bit. TODO : Handle cell comments. Change-Id: I5442bf19008475a9427b889c1eb641cacd8ff161
2014-01-22some clean-up of 6b8704d974abd4ab7fb58036a961fa0b7136aaa7Eike Rathke
const methods, removed this->..., naming Change-Id: I0db1cf445936bab04003062bc59ce0a0c2fc8b71
2014-01-03Resolves: #i123909# Select one column, paste cell range...Steve Yin
with merged cell in, no response (cherry picked from commit acc76cb44c51fbefc8f34009300acb9382c3ad27) Conflicts: sc/inc/attarray.hxx sc/inc/column.hxx sc/inc/document.hxx sc/source/core/data/attarray.cxx sc/source/core/data/column2.cxx sc/source/core/data/documen3.cxx sc/source/core/data/document.cxx sc/source/core/data/table4.cxx Change-Id: Id9c1e0fe86876da6e39ea2b34a484d69eb5d8633
2013-08-31fdo#62475 removed pointless commentsJelle van der Waa
Change-Id: Ifc9837e9f6e3c6a84e9f01c192f10271b184fb6d Reviewed-on: https://gerrit.libreoffice.org/5720 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-01-30unfriend this class and the methodMarkus Mohrhard
Change-Id: I43645409bee380ef6664109c4480ca37c5f3ecd2
2013-01-30this parameter was always trueMarkus Mohrhard
Change-Id: If78c958c11b5786f31127fc729806e1e5bc5d58a
2013-01-30prevent copy c'tor and operator=Markus Mohrhard
Change-Id: Ibf45ab23a2272043729e7404de89ad514735bf06
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-02More methods that can be marked const.Kohei Yoshida
Change-Id: Ia3eb38ae6500463c41e6935a169fa1ac08edc681
2012-11-02Mark these methods const.Kohei Yoshida
Change-Id: I9b9a8c156e1da89045ba3210960732ccbf2c9dd0
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-10-06also support removing of conditional formatsMarkus Mohrhard
Change-Id: I47ba632ccf752611a41b29c0da8e5d0f28a88565
2012-10-06support overlapping conditional formatsMarkus Mohrhard
Still missing: *Removing conditional formats *Handling of Manage Names dialog *UNO *Undo/Redo *Import/export *Adjusting the dialogs to support this Change-Id: I72481cfb807fee2c3a1546222fe7e786d515ab44
2012-09-10Change some comments to meet doxygen standardsFaisal M. Al-Otaibi
Change-Id: I3e5a40237f2ec3ac884c50e34a1592a029d9050d Reviewed-on: https://gerrit.libreoffice.org/591 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2012-07-15Revert "don't delete ScPatternAttr from doc pool for swap, i#118877"Markus Mohrhard
This reverts commit 902082656655aeab559c0b5781907ff004179468.
2012-07-13don't delete ScPatternAttr from doc pool for swap, i#118877Markus Mohrhard
the original apache commit is quite ugly and should not be used!! Change-Id: Id02d2cf474e49b97bfe285fe76867d1b1d944ec3
2012-07-09Revert "Revert "export all style information to xls/xlsx, fdo#46738""Markus Mohrhard
Lesson: Never trust that nobody was crazy enough to use my commits! This reverts commit 9e9e53a2d961d489440f4addc25af90d3a6b793b.
2012-07-09Revert "export all style information to xls/xlsx, fdo#46738"Markus Mohrhard
This reverts commit 5d123a0b0e827aba59ddb50ef1b961a529a34a15. Conflicts: sc/source/core/data/attarray.cxx Change-Id: Ie4bd09d2350faf0689c375d6a3f0f2b307cedcae
2012-06-23removed unused forward declarations of classTakeshi Abe
except moving ScPostIt into source/filter/inc/xeescher.hxx Change-Id: I85fbfe88e30edce5a48a65c494ced7b2129964ff
2012-03-27export all style information to xls/xlsx, fdo#46738Markus Mohrhard
Fixes that if more than 84 empty but formatted rows at the end of a file have been found the export skipped those rows.
2012-01-10callcatcher: update listCaolán McNamara
2011-11-10sal_Bool to boolEike Rathke
2011-09-06merge area does not need to be increased if a shadow is attachedMarkus Mohrhard
2011-03-28Moved SvxBorder* into editeng namespace to avoid duplicate DOUBLE on windowsCédric Bosdonnat
2011-03-26fix debug build. use OSL_DEBUG_LEVEL instead of DBG_UTIL macroNorbert Thiebaud
2011-03-18Merge remote-tracking branch 'origin/integration/dev300_m101'Jan Holesovsky
Conflicts: chart2/source/controller/main/UndoManager.cxx chart2/source/tools/RegressionCurveHelper.cxx sc/inc/address.hxx sc/inc/attrib.hxx sc/inc/bigrange.hxx sc/inc/callform.hxx sc/inc/cell.hxx sc/inc/chartarr.hxx sc/inc/chartlis.hxx sc/inc/chgtrack.hxx sc/inc/collect.hxx sc/inc/compiler.hxx sc/inc/detdata.hxx sc/inc/document.hxx sc/inc/fillinfo.hxx sc/inc/olinetab.hxx sc/inc/prnsave.hxx sc/inc/queryparam.hxx sc/inc/sc.hrc sc/inc/scabstdlg.hxx sc/inc/table.hxx sc/inc/validat.hxx sc/inc/zforauto.hxx sc/source/core/data/documen2.cxx sc/source/core/data/document.cxx sc/source/core/data/table1.cxx sc/source/core/tool/address.cxx sc/source/core/tool/token.cxx sc/source/filter/excel/frmbase.cxx sc/source/filter/excel/impop.cxx sc/source/filter/excel/xename.cxx sc/source/filter/inc/formel.hxx sc/source/filter/inc/xename.hxx sc/source/filter/xml/xmlexprt.cxx sc/source/filter/xml/xmlnexpi.cxx sc/source/filter/xml/xmlnexpi.hxx sc/source/ui/dbgui/filtdlg.cxx sc/source/ui/inc/docfunc.hxx sc/source/ui/inc/namedlg.hxx sc/source/ui/namedlg/namedlg.cxx sc/source/ui/src/namedlg.src
2011-03-10Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Kohei Yoshida
2011-03-10translate german comments in /sc/incNicolas Christener
2011-01-17removetooltypes01: #i112600# remove tooltypes from scMikhail Voytenko
2010-10-28add modelines to .hxx files as wellCaolán McNamara
2010-10-04Ported calc-perf-xls-import-cellstyles.diff from ooo-build.Kohei Yoshida
Like the previous commit, this one improves performance of large xls files.
2010-09-29I think that this eliminates the remaining //UNUSED commentsJustin Malcolm
There were still some of these comments (actually, a lot of them). The most recent attachment should get rid of the last of them. (fd#30442)