summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen8.cxx
AgeCommit message (Collapse)AuthorFilesLines
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-20drop unnecessary tools/string includesCaolán McNamara1-1/+0
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-18convert remaining String in SC to OUStringNoel Grandin1-2/+2
Change-Id: I3ee8c3b59bf9d6ef6516f1da64cbe5f0b35af2d0
2013-10-08Support for passing non-double formula results from group interpreter.Kohei Yoshida1-1/+8
Change-Id: I1cbe6b32d8a9b86a575e9806802f7a2a45eee873
2013-10-08Store svl::SharedString in document cell storage instead of OUString.Kohei Yoshida1-2/+2
With this, both ScColumn and ScMatrix store svl::SharedString as their string values, instead of OUString. Change-Id: I3faece94d98f774881fd72b3ed5f6143504cd350
2013-09-01These pieces of code are no longer needed.Kohei Yoshida1-38/+0
Change-Id: I93a4abc84856a43d9d3a27ebadf111e589c62604
2013-09-01Auto spell-check is no longer done in ScDocument.Kohei Yoshida1-249/+0
Change-Id: I7ecfd6160443299887e31d784322a00580aac067
2013-08-29add support for in-place style previewNoel Power1-4/+25
selecting a style in the styles dialog ( without double clicking ) will apply the style to the currently selected cell(s) You can with the keys navigate to other styles and they in turn will also be applied. Preview will end when you click back onto the document. *FIXME* - the styles dialog isn't really suitable for previewing, a new dialog ( possibly in the toolbar ) might be nicer ( see Excel ) *FIXME* - when there is a multiple selection the highlight colour (applied as a transparent overlay) is most annoying ( and is mixed with any background colour applied if part of a style ) see ( ScGridWindow::UpdateSelectionOverlay() ) However my puny attempts to make the selection use a transparent colour made all the borders of the selected cells dissappear. I guess maybe a box/border around each selected cell ( or group of cells ) would also work but I didn't try that Change-Id: I0950e79085ffb75f60ee961835665df0c230172f
2013-06-27Implement a way to set an array of formula results to formula cell group.Kohei Yoshida1-0/+9
Change-Id: Ifdea531e963339607a5066f81af32ffedfd408aa
2013-06-27Use double and string arrays directly when creating matrix from cells.Kohei Yoshida1-0/+19
Change-Id: Ib251075418baeb7d884696c54504b8851bc9f65e
2013-06-24Prevent crash during on-line spell checking.Kohei Yoshida1-0/+2
The new ScHorizontalCellIterator internally uses iterators for each column to track positions. This means that, if a cell value in the iteration range chnages while the iteration is on-going, those internal iterators get invalidated. Allow the client code to rehash the iterators when modifying a cell content during iteration. Having said that, it's best not to modify cells during iteration. Change-Id: Ida453d4f883e1fbcbab4eb0401e37fea8c0b901d
2013-06-24Move ScEditDataArray out of cell.?xx and into its own files.Kohei Yoshida1-1/+0
Change-Id: I107cec7d70f4d00ff52cb071d69a615fbab8d9f2
2013-06-24Switch to using multi_type_vector for cell storage.Kohei Yoshida1-0/+9
The old style cell storage is no more. Currently the code is buildable, but crashes during unit test. Change-Id: Ie688e22e95c7fb02b9e97b23df0fc1883a97945f
2013-06-03This looks like a typoStephan Bergmann1-1/+1
...from a11be8a87a749f56d5c5514bbd9ffd90b3f75392 "use size_t where possible and fix some more places." Change-Id: I27c6d3532dd3f672d7b06b60add32d44a20d9068
2013-06-01use size_t where possible and fix some more placesMarkus Mohrhard1-17/+18
Change-Id: I43c315aa9867cf871657064fd9455700b31879ab
2013-05-21fdo#46808, Convert some XMultiServiceFactory to XComponentContextNoel Grandin1-1/+1
and remove unnecessarily storing the global XComponentContext Change-Id: Ifb230b88661fea38d96a9d7f0994f92b9632ef79
2013-05-10resolved fdo#35756 import more than 64k HTML table cellsEike Rathke1-1/+1
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used also in RTF import Calc and Writer, so that could benefit as well. * changed all EditEngine,Outliner,... related paragraph index/count variables from sal_uInt16 to sal_Int32 * sal_Int32 instead of sal_uInt32 to match accessibility API * matched some Outliner methods' paragraph parameters from sal_uLong to sal_Int32 * containers capable to hold size_t nevertheless are limited to a maximum of sal_Int32 * changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to SAL_MAX_INT32 + added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize ESelection with what previously were hard coded 0xFFFF all over the place + for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL to initialize an ESelection spanning all available text like aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL) Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00 Reviewed-on: https://gerrit.libreoffice.org/3838 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> 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ňák1-23/+23
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-03-28Remove GetCell() from ScDocument, and make PutCell() private.Kohei Yoshida1-15/+15
At this point, only ScTable and ScFormulaCell call PutCell(). Make them friends of ScDocument (for now). Change-Id: I7b8795580eafe7ea0ba5a4325f531efe53a2ea5b
2013-03-28More on killing direct use of ScEditCell (and some of ScBaseCell).Kohei Yoshida1-11/+8
Change-Id: I65d530333213f8b3db38a269e74a0beabcd1ff89
2013-03-26Use an 8bpp virtual device (instead of a 1bpp one) in sw and sc for iOSTor Lillqvist1-0/+4
The reason why a 1bpp virtual device is used in these two places in sc and sw is unclear to me. It causes complications on iOS as such a bitmap gets passed to CGBitmapContextCreate() which does not accept 1bpp bitmaps. But let's keep the 1bpp for other platforms. Change-Id: Ia34927cf728d4be05a31e88b7da78200d0b799ba
2013-03-22More on reducing the use of ScDocument::PutCell().Kohei Yoshida1-7/+17
I'm getting tired of this already... Change-Id: I77c4f82fc61c9371e8a07fa559088851667949d6
2013-03-14Move TEXTWIDTH_DIRTH to globalnames.hxx.Kohei Yoshida1-0/+1
Change-Id: I648da6f2c43a10137c0834659022296883368dc9
2013-03-14We should exit the idle calc when the sheet changes.Kohei Yoshida1-0/+3
Otherwise the code would end up in an undefined state. Change-Id: I47f58698ac1eb94bf92ab7278bb7521d892ba340
2013-03-14Forgot to increment the iterator.Kohei Yoshida1-0/+1
Change-Id: Ica8c9be8a383879a509d90c6da6309d2eee4fe8c
2013-03-14IdleCalcTextWidth() now sets cell text widths to the new container.Kohei Yoshida1-12/+10
No more direct access to ScBaseCell's nTextWidth. Change-Id: I5a0a5fd24555d9fa8e1de895f0f9d8b710cc8094
2013-03-14First cut on column text width iterator implementation. Untested.Kohei Yoshida1-0/+1
Change-Id: Ic615e5645f1a89a4b1a60dc519eb79ff921203a9
2013-03-14Some renaming of local variables...Kohei Yoshida1-10/+9
Change-Id: I27b5512d90eba0c0235d11d1b4f1c9cafc4bcce6
2013-03-14Reduce scope level.Kohei Yoshida1-95/+97
Change-Id: I28db9130864ac3408398834bfbbdeb904ca4948e
2013-03-14A bit more re-organization.Kohei Yoshida1-14/+7
Change-Id: Ie722a910303ff8852c164ccc9ae256d52f4695f0
2013-03-14Move the style sheet pool handling too.Kohei Yoshida1-16/+15
Change-Id: Ia24e2effa8d6200eb0e9ad5e30fb5c9a4d8dd670
2013-03-14Move progress bar handling to the scope object too.Kohei Yoshida1-10/+19
Change-Id: Iff93958c5025e000f7e39eb71e3f91ff41db911a
2013-03-14Use a scope object to avoid manual unwinding at the end of the call.Kohei Yoshida1-55/+103
Change-Id: Id2565dfa250b93ba4f70e596d6b66f3e5e55fb5f
2013-03-14Reverse the logic of enable / disable idle flag...Kohei Yoshida1-4/+5
so that true -> enabled and false -> disabled. This is much easier for human brain to process. Change-Id: I51059ee9090610ad8455a072b165860527cd9d50
2013-03-14Use inline function over preprocessor macro.Kohei Yoshida1-12/+16
Change-Id: I08d83f274af1ce891235c2f24d5e4b697de19309
2013-03-14Annotate this algorithm & a few cleanup and one possible bug fix.Kohei Yoshida1-11/+21
Change-Id: Ifd101364119db7c30ba28e66b4a8b1320a54fe66
2013-02-12Made similar change to SetData() of ScEditCell.Kohei Yoshida1-6/+3
Change-Id: Ie1475eb19a4ad41e5eac1ca00419a1af5c207b12
2013-02-12Go through all ScEditCell instantiations and fix memory leaks.Kohei Yoshida1-10/+11
Changed the signature of the constructor (one that clones the text object) to take a reference instead of a pointer, to smoke out the callers that use this constructor. Went through all its callers and made changes to either 1) pass ownership to the cell instance (if the text object uses the SfxItemPool instance returned from ScDocument::GetEditPool()), or 2) pass as const reference to make it clear that the instance will get cloned. Change-Id: I669e066d4739536bf8d3b356186503dcdfa303b0
2013-01-29Slightly better way to skip pivot table ranges during spell check.Kohei Yoshida1-2/+7
Change-Id: I43e45cbd11f532f35ca9f0063236850ebc2e518e
2012-12-29Some cppcheck cleaningJulien Nabet1-3/+2
Change-Id: Id027823617d2328b9e827268825812634731a828
2012-12-04re-base on ALv2 code. Includes:Michael Meeks1-23/+14
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-28prevent some nasty ScRangeList->ScRange->ScRangeList conversionMarkus Mohrhard1-0/+10
Change-Id: I9dac82ffeed920ce39aab16d89a91e2f9083908b
2012-11-22AllSettings with LanguageTagEike Rathke1-1/+1
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-05fdo#46808, Adapt i18n::Transliteration UNO service to new styleNoel Grandin1-1/+1
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-09-07fix crash on area link updateDavid Tardon1-2/+1
Example spreadsheet: http://www.gummy-stuff.org/Excel/Yahoo.xls Change-Id: Icd16ed4fb05986bc199ac3f913cee656c7a434ff
2012-07-25delete svl/svstdarr.hxxMichael Stahl1-1/+0
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-06-12Convert SV_DECL_PTRARR(SvBaseLinks) to std::vectorNoel Grandin1-16/+16
Change-Id: I9197dc4fd7ed32f030de8121913265ec78c83585
2012-05-03New menu now inserts current time into cell.Kohei Yoshida1-1/+1
2012-02-27merge GetString variantsCaolán McNamara1-4/+2
2012-02-01Always look up chart objects by name, change method names' casing.Kohei Yoshida1-1/+1
The old container always perform lookups by name only.