Commit Graph

129 Commits

Author SHA1 Message Date
Stephan Bergmann
d58d1719a4 Unused ScExternalRefCache::mrStrPool
Change-Id: Idc9d05cae6ebee4c5f88dbe53ab182da66781582
2013-10-11 18:40:10 +02:00
Kohei Yoshida
7333881bb7 Formula tokens, formula cells and formula interpreters to use shared strings.
Change-Id: I5da99869fc7f61ce698180fa5daa9be9db9ac132
2013-10-11 12:14:27 -04:00
Kohei Yoshida
7c6848845f Properly intern strings going into matrix objects.
Change-Id: Ieb8befa4f19ebc31f4afa1370c924b469aa77382
2013-10-11 12:14:26 -04:00
Kohei Yoshida
658fc68d57 Store svl::SharedString in document cell storage instead of OUString.
With this, both ScColumn and ScMatrix store svl::SharedString as their
string values, instead of OUString.

Change-Id: I3faece94d98f774881fd72b3ed5f6143504cd350
2013-10-08 15:48:10 -04:00
Noel Grandin
d872c9e8a2 convert sc/source/ui/docshell/*.cxx from String to OUString
Change-Id: I0f2cada87bfa7b59cfcfdd8cf9bc876dd1395654
2013-10-08 10:03:12 +02:00
Noel Grandin
72b9dd277b convert sc/inc/r*.hxx from String to OUString
Change-Id: Iaae69c0914917d9d5851f227be28ff5cd098da8b
2013-10-04 09:09:56 +02:00
Noel Grandin
3c38dd9bfe convert sc/inc/externalrefmgr.hxx from String to OUString
Change-Id: I71c755f05eb47e26193ae87cb2f9cd618cfaf13d
2013-09-19 10:14:14 +02:00
Noel Grandin
bf1db6daca convert include/sfx2/linkmgr.hxx from String to OUString
along the way, de-virtual ScDocFunc::InsertAreaLink, since
it only has one implementation.

Change-Id: I3fc836f9954628f154e01b1c7ae8f90eb7600a76
2013-08-29 09:30:06 +02:00
Noel Grandin
4779373d47 convert includes/sfx2/lnkbase.hxx from String to OUString
Change-Id: I3816ec77dd334823100421dab90d4bc8b67542e3
2013-08-29 09:30:05 +02:00
Pierre-Eric Pelloux-Prayer
f243d07019 sc/externalrefmgr: reduce individual cell queries
Change-Id: Ic0dda47f02cd392234876a8945e240bbc915fa6a
Reviewed-on: https://gerrit.libreoffice.org/5453
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-19 16:08:34 +00:00
Pierre-Eric Pelloux-Prayer
e5d9477e87 sc/externalrefmgr: batch same-type cells copy
Change-Id: I5726261c9fbe479e2b5be6862324d23a30d4ab40
Reviewed-on: https://gerrit.libreoffice.org/5452
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-19 16:07:05 +00:00
Kohei Yoshida
8a19af57bb Now nobody accesses reference members directly. Make them private.
Change-Id: If4499dbee52532cc8a95c380bbe840719fe9279b
2013-07-30 23:50:03 -04:00
Eike Rathke
1ecdc7aaf6 resolved fdo#67249 use ScFieldEditEngine to resolve field content
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-25 16:11:09 +02:00
Kohei Yoshida
ed76237e41 Reduce dependency on the matrix header.
Change-Id: Iade09d108aec78f8cbe92f9103f206d0c99fab8e
2013-07-01 18:55:53 -04:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-07 14:23:11 +02:00
Kohei Yoshida
428b0aecee Move ScFormulaCell into its own header source files: formulacell.?xx.
Change-Id: I65f2cb12c06784b5bcf6c6a2fad773825b6c409c
2013-03-28 17:03:56 -04:00
Kohei Yoshida
26343a5a31 More ScBaseCell reduction...
Change-Id: I3a9f9ce79de7117e7b1410c45b217e5bfe005db7
2013-03-27 00:07:18 -04:00
Kohei Yoshida
f1211bc84d Converted the external ref manager code.
Change-Id: Ifbce13bc8a941e548b1ba647519cf9765b7f55d0
2013-03-27 00:07:15 -04:00
Kohei Yoshida
0327a7cddd More on reducing the use of ScDocument::PutCell().
I'm getting tired of this already...

Change-Id: I77c4f82fc61c9371e8a07fa559088851667949d6
2013-03-22 21:49:20 -04:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
Kohei Yoshida
1732d9e96f Ask the user if she wants to do full recalc on load, for ods and xlsx import.
But allow it to be disabled for filters tests as well as external document
loading.

Change-Id: I5b8533532c6be8b7c2cfcbe15faf780d621aec65
2012-12-04 16:25:47 -05:00
Michael Meeks
16155fdc39 re-base on ALv2 code. Includes:
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-12-04 07:17:12 +00:00
Niklas Nebel
68dad00d0d calc66: #i116940# update link URLs after CompileXML, count only
allocated sheet caches in link API
Conflicts:
	sc/inc/externalrefmgr.hxx
	sc/source/ui/docshell/externalrefmgr.cxx
	sc/source/ui/unoobj/linkuno.cxx
2012-12-04 07:17:10 +00:00
Luboš Luňák
f7a24eff2d mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I231f0b367bf0b513c6c1ce4c4cfdb7c3dc8660d5
2012-10-12 13:34:47 +02:00
Kohei Yoshida
d1cc007108 sal_Bool to bool, String to OUString, in SfxMedium.
Change-Id: I1bc8486b3fbbcdd45407eeda52a7e239646cd204
2012-07-25 15:02:32 -04:00
Kohei Yoshida
b4c774a51f Now, we need to explicitly pass 0.0 as the initial value of a matrix.
The new matrix class allows arbitrary initial values instead of just
0.0 or empty values.  With this, the caller now has to explicitly pass
zero value to the constructor if it wants to create a matrix filled with
zeros.

Change-Id: Ie515358b512fdb83ae60f54ab4ab49c92ca5761d
2012-07-19 14:05:09 -04:00
Kohei Yoshida
c31905c88c Initial cut on matrix backend swapping. Still lots of things to fix.
Change-Id: I5262899171029772f53dccc9aea666c4b83aef36
2012-07-19 14:05:09 -04:00
Thomas Arnhold
d8afc8e5e9 Remove superfluous include comments
Change-Id: Ie5792855761b9be209bf3fa2cba9e6998523c982
2012-06-09 04:39:01 +02:00
Stephan Bergmann
683312377a Removed unused SfxMedium::bDirect
See the TODO comment in sfx2/inc/sfx2/docfile.hxx about a temporary SfxMedium
ctor overload to find not yet adapted uses of another overload, to be removed
again in due time.

Change-Id: Ie22c33c32f8870ce6ebf6d500abc7a4e33d97183
2012-05-24 11:38:12 +02:00
Stephan Bergmann
bd205223ec New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e9 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
2012-03-01 18:00:32 +01:00
Caolán McNamara
906e35f80a merge GetString variants 2012-02-27 09:45:58 +00:00
Kohei Yoshida
5708d3dcb0 More on String to rtl::OUString changes. 2012-01-20 16:36:54 -05:00
Caolán McNamara
45b19123a6 simplify CharClass
multiple variants of toUpper (etc)
some that take a non-const OUString or String and modify it
some that take a const OUString or String and return a new one
some that take part of a const OUString or String and return a new one
2012-01-09 13:28:37 +00:00
Olivier Hallot
49e11ffbe1 Fix for fdo43460 Part XXX getLength() to isEmpty()
Part XXX
Modules
sc
2012-01-07 07:37:38 -02:00
Markus Mohrhard
4ff62bf42a add warning message if you close unsaved referenced document 2012-01-06 19:33:32 +01:00
Markus Mohrhard
63ade823e2 remove entry from unsaved ref container if doc is saved 2012-01-04 15:19:23 +01:00
Markus Mohrhard
32f38931ee better handling for unsaved external references
Now references to unsaved documents can be created in the sheet and not
only through copy/paste
This fixes the problem that otherwise editing these refs resulted in
 #REF
2011-12-27 07:56:06 +01:00
Markus Mohrhard
a0a1a34622 Copy absolute refs between different docs: Part III
support copying from an unsaved document and some improvements

still problems with MoveTab and missing dialog box if we have external
refs to unsaved docs while we save
2011-12-19 23:40:53 +01:00
Kohei Yoshida
2419d3c2de fdo#43534: Fully support external references in CELL function.
Some parameters don't work with external references, however, such
as PROTECT, PREFIX and WIDTH.
2011-12-07 22:35:03 -05:00
Eike Rathke
86adb5cacb get rid of class Date and Time default ctor with system time penalty 2011-12-01 21:04:29 +01:00
Norbert Thiebaud
2721235724 remove include of pch header from sc 2011-11-27 13:20:15 -06:00
Markus Mohrhard
f47455e3cf change ScRangeName's container to boost::ptr_map 2011-11-24 18:39:08 +01:00
Kohei Yoshida
a725d287a2 Unit test for cell function T with external references. 2011-11-22 22:32:05 -05:00
Kohei Yoshida
f7831ed5ca We should clear the cache of external doc when breaking its linkage. 2011-11-22 21:23:42 -05:00
Caolán McNamara
c9e9b3a36f callcatcher: update list, drop some newly unused methods 2011-11-07 12:27:31 +00:00
Caolán McNamara
97f2f76452 callcatcher: update and remove some more unused methods 2011-11-06 22:08:36 +00:00
Kohei Yoshida
5d02007469 fdo#40110: Correctly map external ranges into matrix instances.
This is a simple silly mistake; the matrix representation of the
external range should've preserved the original range; not the data
range which can be smaller than the originally requested range.
2011-11-01 11:51:45 -04:00
Caolán McNamara
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Markus Mohrhard
8445ce0e61 externalrefmgr.cxx is String free
String->rtl::OUString and solve problem with old patch
2011-09-09 04:58:04 +02:00
Markus Mohrhard
67b374980f related #i114504: external reference manager part 2011-09-06 23:53:43 +02:00