summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2019-08-01Unified size of zoom slider/zoom box in statusbarMatthias Seidel
Notes: prefer: bcf7efd9f09a11756333beaca2c64a3fff315fcc
2019-06-05Cleaned up whitespace, removed maskcolorMatthias Seidel
Notes: prefer: a2ba500c70292a33e7b34a6428cc86c17078a72c
2019-05-12OpenOffice Calc offers functions for converting from old national currencies ↵Matthias Seidel
to EURO. Additional countries joined the euro area: Estonia (2011), Latvia (2014) and Lithuania (2015), see: https://www.ecb.europa.eu/euro/changeover/estonia/html/index.en.html https://www.ecb.europa.eu/euro/changeover/latvia/html/index.en.html https://www.ecb.europa.eu/euro/changeover/lithuania/html/index.en.html This patch adds those currencies and conversion rates for CONVERT (Calc.xcu) and EUROCONVERT (interpr2.cxx). Notes: prefer: 21c8b5815a21b6586fe13b12d00a9fb432c2aef4
2018-12-03The scui library also needs to link to cppuhelper.Damjan Jovanovic
Patch by: me Notes: ignore: obsolete
2018-12-01correct typo - closed #120336 https://bz.apache.org/ooo/show.cgi?id=120336Mechtilde Stehmann
Notes: prefer: eccc5f97ba245faadf61cf4577b21d4f8da6460d
2018-08-22Small change to Calc toolbarMatthias Seidel
Notes: prefer: 6ea42ddf8f06b7551e80a906908dbad0766a68c6
2018-08-14Cleaned up resource file for page dialog.Matthias Seidel
Removed entries for MASKCOLOR. Notes: prefer: 6022a17e79e2cc0a483122bf7f73fcb3e246caf6
2018-08-10Cleaned up resource file for edit header/footer dialog.Matthias Seidel
Removed entries for MASKCOLOR. Notes: prefer: 75ee75cd5e6b2bf98f4918bb586eac8af935e0c7
2018-05-02Don't use !this as an alias for a constant that evaluates to false inDon Lewis
unconditional asserts. The former requires code to evaluate the condition at runtime and also causes warnings from clang. While here, translate the associated assert messages. Notes: ignore: obsolete
2018-04-22Fixed typos, removed whitespaceMatthias Seidel
Notes: ignore: obsolete
2018-01-17Fixed typosMatthias Seidel
Notes: prefer: 6dc98de97f6bc4325407b098bb153f359000c717
2017-12-15Enhance gb_LinkTarget_set_*_optimization functions to allow multipleDon Lewis
targets to be specified. Convert optimization overrides in the gbuild library makefiles to use gb_LinkTarget_set_*_optimization. There should be no functional change. Notes: reject: convenient workarounds in the build system for toolchain bugs is the road to a hell of buggy toolchains
2017-10-30Make spreadsheets ask to update links. CVE CVE-2017-3157pats
Notes: prefer: 74844277cc2194c9e43f5bd7a6f78a9603da32f3
2017-01-18Fix a main/sc JunitTest typo.Damjan Jovanovic
Patch by: me Notes: ignore: obsolete
2017-01-16Build fixes for vbaobj on Windows.Damjan Jovanovic
Don't use SC_DLLIMPLEMENTATION, and link to sot. With this, main/sc finally builds on Windows. Patch by: me Notes: ignore: obsolete
2017-01-16Fix symbol visibility problems with main/sc modules.Damjan Jovanovic
SC_DLLIMPLEMENTATION must only be defined for sc itself, not for scui or scfilt, as that stops them from importing sc's symbols. Should fix building main/sc on Windows. Patch by: me Notes: ignore: obsolete
2017-01-15Fix some initial main/sc build issues on Windows caused by theDamjan Jovanovic
port to gbuild. Note that it still doesn't build on Windows. Work is ongoing. Patch by: me Notes: ignore: obsolete
2017-01-15Port main/sc to gbuild.Damjan Jovanovic
Also add the ability to add extra image directories to resources, which is needed by main/sc. Patch by: me Notes: ignore: obsolete
2016-09-03In the SAL_UNUSED macro, __attribute((__unused__)) should beDon Lewis
__attribute__((__unused__)), but both clang and gcc seem to understand both. Since __attribute__((__unused__)) can preceed the variable name, just like __pragma(warning(suppress:4100;suppress:4101)) for Visual Studio, so de-parameterize the SAL_UNUSED macro. Gcc whines if __attribute__((__unused__)) is used for a struct member, so create a separate define, SAL_UNUSED_MEMBER, which is empty for gcc, to handle struct members. Notes: prefer: 7c704c78d3c652504c064b4ac7af55a2c1ee49bb
2016-09-01Fix by far the largest source of -Wtautological-undefined-compareDon Lewis
compile warnings. The class definition for SdrMarkView in svx/inc/svx/svdmrkv.hxx contains two inline methods that take a reference argument and perform an &rArg == NULL test on it. The compiler warns that this condition should always be false because dereferencing a NULL pointer to generate a reference is not valid in C++ and a valid reference will never be at address 0. Warnings are generated every time this header is included in a .cxx file. It turns out that there are no callers for the IsGluePoint() method, so just comment out its definition. It also turns out that all the callers of IsPointMarked() pass it a dereferenced pointer, so convert IsPointMarked() to take a pointer argument and modify all the callers to pass a pointer without dereferencing it first. Notes: prefer: 16889f355d1f7157bad84b42ad5a1b2b715ae767
2016-09-01Fix -Wunused-private-field errors in sc/inc/compiler.hxx. The structureDon Lewis
ScDoubleRawToken contains four unused private fields. Mark these as unused to eliminate the warning message. We can't delete these fields because we want the layout of this structure to match ScRawToken. Notes: prefer: d6500b19afc6a15e63e679765317690eac0d4207
2016-08-07Merge branches/gbuild-reintegration to trunk.Damjan Jovanovic
Notes: ignore: obsolete
2016-05-31RAND(): Destroy the random pool after seeding.Pedro Giffuni
We are using rtl_random() only for seeding, we can save some memory here. Notes: prefer: 5b2f8231945fedc46425e00f1234dcac90628c1d
2016-05-22Spelling, spelling ...Pedro Giffuni
Why worry about some sprinkled German when we haven't yet learned English. Notes: prefer: b37a07f2da6c4fcc1a01cc3ea547c558c23edd71
2016-04-04#i126901# CSV import: values with + or - followed by thousand separator andDamjan Jovanovic
3 digits (eg. +,123) are imported as a number Do not allow numbers parsed from CVS files when "Detect special numbers" is off, to contain thousand separators before digits, even if after a +/- sign (eg. -,123 or +,789). Treat these as strings instead. Also added unit tests for this and exported the ScStringUtil class so it can be tested. Patch by: me Notes: merged as: 00cf864e5d317016d7224c199aa982d07bd70113
2016-02-17#i118023# Calc: Cut-and-paste between spreadsheets causes incorrect cell ↵Damjan Jovanovic
reference changes When pasting cut cells, Calc updates references to their old positions to instead refer to their new positions. This is done using the tab index, row and column, however the document is not taken into account. As a result, when cutting and pasting between documents, cells in the target document end up getting changed instead of in the source, potentially leading to formula corruption, which is undoable but could easily go unnoticed, causing data loss when the document is saved. We don't really support inter-document reference updates anyway, so fix this bug by restricting reference updates to the intra-document cut and paste case only. Patch by: me Reviewed by: kschenk Notes: ignore: fixed
2015-12-06#i126701# Patch for adding bit shift functions to calcDamjan Jovanovic
Patch by: Pathangi Janardhanan Jatinshravan <JATINSHR001 at e dot ntu dot edu dot sg> Review by: me Notes: prefer: c6b49f9098fb6c9816202e8d465c342788736af5
2015-11-22#i126668# Addition of Bitwise Arithmetic Operations (BITAND, BITOR and ↵Damjan Jovanovic
BITXOR) in calc Patch by: Pathangi Janardhanan Jatinshravan <JATINSHR001 at e dot ntu dot edu dot sg> Review by: me Notes: prefer: c6b49f9098fb6c9816202e8d465c342788736af5
2015-11-12#i35093# Find (and replace) on selected cells is misleadingDamjan Jovanovic
When any cellc in Calc are selected at the time the "Find & Replace" dialog is opened, automatically check the "Current selection only" checkbox, just like Writer does when multiple lines of text are selected when this dialog opens. Users expect this from Writer and other spreadsheets, and not doing it can even lead to wrong cells being changed when "Replace" is used! Patch by: me Notes: prefer: b592eb99d1eaa241fe34d4c9e8f3903ef7b775d1
2015-11-03#i60307# search for strings in date formats fails.Damjan Jovanovic
When "Search in" is set to "Values", search the formatted values instead of just the raw input. This fixes a 9 year old bug that's been duplicated at least 6 times, and matches what Excel does. Tests show even "Replace" works, and works well: if "October" is replaced by "November", it converts the original month from 10 to 11; it only converts the cell type to text if the resulting text is no longer a valid date. Also added BVT tests for the expected behaviour. Notes: prefer: 9a85743766e8a063d20d5f93ee88758e243397f4
2015-10-06#i126572# Use correct priority when updating links.Andrea Pescetti
Notes: prefer: 77cc71476bae2b3655102e2c29d36af40a393201
2015-09-12#i126516# Document the return values for the TYPE() formula function in the ↵Damjan Jovanovic
online help too. Notes: merged as: 23b530d3e7d0c63318510dd353ba9896e16b802e
2015-09-09#i123901# formula DGET() gives #VALUE! error when fetching calculation ↵Damjan Jovanovic
resulting in string Gets ScDBQueryDataIterator::DataAccessInternal::getCurrent() to handle formulas returning strings. Added a spreadsheet test for this behaviour. Notes: prefer: c0ca1ef1990226cd5d7af6c1f76872e9ad8711f2
2015-09-06Clean up all of typos that cause header guard warnings when building thePedro Giffuni
OpenOffice source with clang. Submitted by: Don Lewis Notes: prefer: 35acb8a54171eb14555632179e69cbb9cf28f9e8
2015-09-02Fix some perl shebangs.Pedro Giffuni
Mosrt important perl scripts already use a portable method but fix these nevertheless. Notes: prefer: 1529c3f6ac71f7f2bd27ffd13944574793de389f
2015-04-21Minor cleanups in the random generator code.Pedro Giffuni
Drop unused variables. Enhance slightly the naming of static variables. Notes: prefer: 8f436d3de7e99268a8862664d2cb2574231c3b18
2015-03-26Re-implement Calc's RAND() function using a variant of KISS PRNG.Pedro Giffuni
George Marsaglia's KISS algorithm is a rather simple implementation of a random number generator but it has interesting properties with respect ot the traditional Mersenne Twister. I used the 2011 32 bit Multiply-with-carry variant, with an undetermined period which is known to be not less than 10^40000000; it is known to pass all the statistical tests. The Apache OpenOffice implementation uses an aggressive seeding scheme based on the internal rtl_random functions, rendering the function basically unpredictable. As a side effect it is also not possible to specify a seed for repeatability. No claims are made concerning crypto-safeness. The specific adaption for Apache OpenOffice is: Copyright 2015 Pedro Giffuni All rights reserved. Huge thanks to Steve Kargl for pointing me to the algorithm and the late George Marsaglia for creating it in the first place. Notes: prefer: 8f436d3de7e99268a8862664d2cb2574231c3b18
2015-01-30#i105692# rearrange the order of the controls and fix name of typeTsutomu Uchino
Notes: prefer: 1845b6af3991ca5521eef48aafe1d0489e2ff8f6
2015-01-27#i85241# store settings about value highlighting in documentTsutomu Uchino
Notes: merged as: 7daf15884d980a8b848f3bdf9bdaed498dcb7b55
2015-01-22#i107619# update search result while repeating searchTsutomu Uchino
Notes: prefer: ea1cd1a10cc2d2bbf4f82aeca689fe81a3b79856
2015-01-15#i117843# avoid shrinking the range from external file until the matrix ↵Tsutomu Uchino
supports gap from the original range Notes: reject: would break a pile of things
2014-06-02i124638 Second step of DrawingLayer FillAttributes for Writer objects, now ↵Armin Le Grand
added support for Paragraph and PageStyle (including Header and Footer) for direct attributes and style attributes Notes: merged as: 7d9bb549d498d6beed2c4050c402d09643febdfa
2014-05-15#i124422# fix implicit conversions to pointer from bool/int32Herbert Dürr
implicit conversions from bool or int32 to pointer types are not a good idea and clang>=3.4 or xcode>=5.1 now report errors for such code. The errors break the build and so they have to be fixed. Notes: prefer: 99c2a1c64b3517a4cbbc0ddcf9acd3e190188d1e
2014-04-29Many spelling fixes: directories r* - z*.Pedro Giffuni
Attempt to clean up most but certainly not all the spelling mistakes that found home in OpenOffice through decades. We could probably blame the international nature of the code but it is somewhat shameful that this wasn't done before. Notes: merged as: 820a29950b3085a713026995fdc43e32b6ded5f7
2014-03-19Merge back branch alg_writerframes to trunkArmin Le Grand
Notes: merged as: 6e61ecd09679a66060f932835622821d39e92f01
2014-03-11Bug 123622 - [ia2] Calc: No focus event fired on cell when new spreadsheet ↵Steve Yin
is created Notes: merged as: a96ac994f0fc4fc52dab7a496a8485d3eba10913
2014-03-10i124361: Removed empty and unused makefiles.Andre Fischer
Notes: ignore: fixed
2014-03-10i124361: Removed unreachable code to avoid warnings.Andre Fischer
Notes: prefer: 91e181ea585855bea97a07823f7334d0b98b20d5
2014-03-10i124361: Enable exception support for all sc source files.Andre Fischer
Notes: ignore: fixed
2014-03-10i124361: Removed some warnings from sc.Andre Fischer
Notes: ignore: fixed