summaryrefslogtreecommitdiff
path: root/sc/inc/global.hxx
AgeCommit message (Collapse)Author
2014-10-23Remove ScToken from the formula::FormulaToken hierarchyStephan Bergmann
...to keep UBSan from complaining about illegal downcasts from FormulaToken to ScToken (which were practically harmless, given that ScToken did not add any data members). Change-Id: I8fdc026eec363442cc4b720b71d65c972b4a4446
2014-09-04create type-safe bitfield for sc insert/delete flagsNoel Grandin
The most important part of the change is in sc/inc/global.hxx It creates a type-safe struct that prevents the accidental interaction between regular integer types and the flags struct. It also provides utility methods that make combining and testing the flags type-safe. Change-Id: Ibc5b20058b1655df913490682b679afd1297b36d Reviewed-on: https://gerrit.libreoffice.org/11071 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-07-08fdo#73148 add options to Calc function AGGREGATEWinfried Donkers
matrix-ranges not supported Change-Id: I902c78da6d9c7a4a5f8c5e4a7e1678b69d49a6fe Reviewed-on: https://gerrit.libreoffice.org/9449 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-25fdo#73148 (partial patch) Add Excel 2010 function AGGREGATEWinfried Donkers
Change-Id: If8fc8608699a14e573456af2e1180342be942dd1 Reviewed-on: https://gerrit.libreoffice.org/8475 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-19fixincludeguards.sh: scThomas Arnhold
sorry, huge one...
2014-04-07Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
2014-03-27sfx2, sc: remove macros for using Windows NT Call ProfilerMichael Stahl
Apparently this tool was available for early versions of NT; googling finds a caplib.zip from 1992 but that is missing the CAP.dll so there's no way to use this anyway. http://cd.textfiles.com/cica/cica9308/UNZIPPED/NT/CAPLIB/CAP.TXT Change-Id: I4718af0e175b78bcdad38bbca0fc9579b3b12111
2014-02-27remove unused code ScGlobal::GetStandardFormatNoel Grandin
full signature: ScGlobal::GetStandardFormat(double, SvNumberFormatter&, unsigned long, short) Change-Id: Ifa2946cdb1d27f3a7bca1541c8f569456cb45b88
2014-02-12sal_Bool->boolNoel Grandin
Change-Id: I82da14d2dec7f6110d1f6b7c4ece1f3498d82b6a
2014-02-12sal_Bool->boolNoel Grandin
Change-Id: I3d7d146723900b676e852132e8b99b60122c0b2b
2014-01-30Keep the standard row height situation under control.Kohei Yoshida
With this change, applying cell attributes to default cells will no longer change the row heights inadvertently. Change-Id: I57c3546e1725c5e8b37696242e9642b1617f59c3
2014-01-28bool improvementsStephan Bergmann
Change-Id: I740c0e18eefc64cb5f1da5b88ceb77289790ec37
2014-01-28Better check this with a static assertStephan Bergmann
...check had been introduced with ac14ac29a4d069b3e85032237efed2f899a10c7b "fdo#69450 - IDF_ATTRIB & IDF_CONTENTS must be disjoint" but confuses compilerplugins/clang/literaltoboolconversion.cxx. Change-Id: I6577e127a02b9007d098dc6201e48e8dbd5b6a55
2013-11-11convert STRING_NOTFOUND in sc moduleNoel Grandin
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-08"%1 is replaced to ..." ... maybe, or maybe notEike Rathke
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-10-20drop unnecessary tools/string includesCaolán McNamara
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-18convert remaining String in SC to OUStringNoel Grandin
Change-Id: I3ee8c3b59bf9d6ef6516f1da64cbe5f0b35af2d0
2013-10-08convert sc/source/core/data/*.cxx from String to OUStringNoel Grandin
and fix a bug in ScDPCache::ValidQuery where an inner loop was re-using an outer loop counter. Change-Id: Ie750234a079646bdb7174983814d8d9caf52f491
2013-10-03de-GetBuffer calcCaolán McNamara
Change-Id: I6bb013cc32d5b363dd08738543b1fb834d39f516
2013-09-27fdo#69450 - IDF_ATTRIB & IDF_CONTENTS must be disjoint.Michael Meeks
Change-Id: Ib971824a7f274334012b872acec65310535ad767
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
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-08-22fdo#39484 - don't loose outlines while trying to undo formulae changes.Michael Meeks
Change-Id: Ib3b2bab5beffb8164a8cd2c0b4db4c97f427507e
2013-07-25resolved fdo#67249 use ScFieldEditEngine to resolve field contentEike Rathke
ScEditUtil::GetString() iterated over the paragraphs of an EditTextObject where GetText() does not resolve field content but returns the embedded field markers. To resolve field content an ScFieldEditEngine is needed. This makes it necessary to pass an ScDocument* to obtain the ScFieldEditEngine from, or for cases where there is no ScDocument in the context use a static ScFieldEditEngine which unfortunately is not capable of resolving document specific fields of course, such as DOCINFO_TITLE and TABLE. Also added unit test. Change-Id: Ife3c23b2fec2514b32303239d276c49869786eb5
2013-07-09Attempt to fix windows link error.Kohei Yoshida
Change-Id: I27ef805c16dde46b9dff037356e8316e32c2d8c0
2013-06-24CELLTYPE_DESTROYED no longer relevant. Chuck it.Kohei Yoshida
Change-Id: Ie56cf8dc87eebd801cdb68ce70ffae7bcd16e4d7
2013-05-09Remove broadcaster from ScBaseCell, remove ScNoteCell and CELLTYPE_NOTE...Kohei Yoshida
and Calc is now officially broken. Let's start fixing this bit by bit... Change-Id: I383c88245fe1e573666da636c6a8ca8815352ce7
2013-04-19fdo#61541 : Count Number of selected Cells in calcPrashant Pandey
Change-Id: Ic9c911552f2b03bb496f47251917a3736494dce1 Reviewed-on: https://gerrit.libreoffice.org/3213 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-03-26Get the whole change tracking code entirely ScBaseCell-free!Kohei Yoshida
This took me a whole day.... Change-Id: Ida757b1efa284fc9d071a225f45666c340ba89ea
2013-03-23Fix the build with OSL_DEBUG_LEVEL > 0.Kohei Yoshida
Change-Id: I4633df8ffafe10397bf80d9b0f5c20aa0ed36416
2013-03-22Nobody uses CELLTYPE_SYMBOLS anymore. Chuck it away.Kohei Yoshida
Change-Id: I7b9b221c3536c94fbf56c9b5230e62927efe6e1f
2013-03-14fdo#38838: Replaced some (Uni)String to OUString in core/scelixir
Change-Id: I4fa27b933c5b3cf2645b139bf6349b90f613feab Reviewed-on: https://gerrit.libreoffice.org/2735 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-02-19fdo#38838 ScGlobal::GetRscString() now returns OUString instead of String.Jean-Noël Rouvignac
Cleaned up the call sites. Change-Id: I6c688cecd4f872ed064ccfa3af4b402a779860dc Reviewed-on: https://gerrit.libreoffice.org/2155 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-04moved the export row check to qahelper, made it useful for import/exportNoel Power
Moved old row test from export to qahelper in order that it can be shared with the import only tests, also added some new test documents and test data for some additional row height checking Change-Id: I023844b8dba8935d4bcdaac7fd16496e99251d78
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-10-28UniString->rtl::OUStringBufferCaolán McNamara
Change-Id: I9938d7c4ab5594baeb10f405f0aa0964ef84d6c5
2012-08-09fix column navigation with CTRL + direction, fdo#45020Markus Mohrhard
Change-Id: I422b1b85e539d4e2819b93deaf8543410b44b9bd
2012-07-05Replaced deprecated tools/String with OUString in ScMatrixSören Möller
Change-Id: If431e5ef8b5c97384a1bb1c7fa36c6894ece8343
2012-07-02Remove unused definesThomas Arnhold
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-01Remove unused definesThomas Arnhold
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
2012-05-25Revert "fix bad import positions of shapes & controls fdo#49430"Noel Power
This reverts commit 9dc4fa1b22a533ba0a6ce0353112c55eef8a14ef.
2012-05-03include vector for std::vectorCaolán McNamara
Change-Id: I5d356210ec802fbccea512561cc67e85da760146
2012-05-03fix bad import positions of shapes & controls fdo#49430Noel Power
Change-Id: I5635ee681288cb39a11d00c5573e61c582d7daf7
2012-04-19Revert "do not include contents of huge sc/sd/sw libs into tiny unittests"Luboš Luňák
The need to export symbols for tests is apparently not considered worth the big extra disk space. This reverts commit 69d46dd7a6adfffd71da055bb65108c80d27395f. Conflicts: sd/CppunitTest_sd_uimpress.mk sw/CppunitTest_sw_swdoc_test.mk
2012-04-07do not include contents of huge sc/sd/sw libs into tiny unittestsLuboš Luňák
This decreases debug build dir size by about 0.5G for gcc and 1G for clang.
2012-01-11ScGlobal::GetAutoFormat not always required to create fresh instance.Stephan Bergmann
...at least in ~ScAutoFormatObj it appears unnecessary and can lead to crashes during Desktop::DeregisterServices (when ScGlobal::ppRscString is already null and ScAutoFormat ctor calls ScGlobal::GetRscString). Therefore split GetAutoFormat in two, GetOrCreateAutoFormat for cases that probably need a non-null return and GetAutoFormat for those that are OK with a null return.
2011-11-11translation of german comments to english plus rename of define MAX_COL_HEIGHTWinfried Donkers
2011-11-07sal_Bool->bool in ScDocumentMarkus Mohrhard