Commit Graph

51 Commits

Author SHA1 Message Date
Stephan Bergmann
ebb137bd94 Some more loplugin:cstylecast: sc
Change-Id: I75adf1973083a6f4519133f9e97ad83fd7d8658a
2015-01-20 09:06:51 +01:00
Stephan Bergmann
ac97f3388d sc: Use appropriate OUString functions on string constants
Change-Id: Ib4c0df8d7637bff7d7a45d24482fff4342169fae
2014-12-15 10:14:25 +01:00
Kohei Yoshida
2030b9ac6c Dedicated listener type tailored for formula groups.
Right now, it's only used when loading an xlsx file. But eventually
this one should be used everywhere.

Change-Id: I216c3a9a33c4b8040e8284d59299e0637471fb50
2014-11-18 08:31:55 -05:00
Noel Grandin
5bce329040 SfxHint: convert home-grown RTTI to normal C++ RTTI
Also note that I fixed a bug in SvxFontMenuControl::Notify
where the if statement had the check the wrong way around.

Change-Id: I611e8929c65818191e36bd80f2b985820ada4411
Reviewed-on: https://gerrit.libreoffice.org/11147
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-09-06 15:47:44 -05:00
Norbert Thiebaud
d92aa2f445 remove SFX_APP() macro that was a mer wrapper for SfxGetApp()
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-27 17:08:04 +02:00
Markus Mohrhard
37e6631cc5 remove whitespace
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-25 05:41:10 +02:00
Noel Grandin
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
Stephan Bergmann
45f533aee9 loplugin:staticcall
Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e
2014-06-13 17:54:31 +02:00
Markus Mohrhard
c4c51709ea whitespace cleanup in sc
Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c
2014-04-06 17:19:54 +02:00
Noel Grandin
96ef76c1b7 sfx2: sal_Bool->bool
Change-Id: I733cd63e321bdc775739228c269fa66ff7780780
2014-03-18 11:26:05 +02:00
Kohei Yoshida
88955714d3 fdo#71491: Adjust reference during undo of drag-n-drop of cell range.
Also with this commit, the signature of SvtListener::Notify() changes,
by dropping the first argument which nobody uses.  This change was necessary
in order to call it directly without needing to pass any broadcaster instance.

Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
2014-03-15 00:15:06 -04:00
Alexander Wilms
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
Noel Grandin
53516e9c76 sal_Bool->bool
Change-Id: I857b81ea1eea27554980ca7c7a9f771d6aa7db61
2014-02-19 13:05:05 +02:00
Stephan Bergmann
cc2606a785 bool improvements
Change-Id: I740c0e18eefc64cb5f1da5b88ceb77289790ec37
2014-01-28 20:26:23 +01:00
Tor Lillqvist
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03: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
e699c7fcd1 convert sc/.../servobj.hxx from String to OUString
Change-Id: Ie2328bcca4e5858e510cfdd3f7c37e6f13f5129b
2013-10-04 08:48:56 +02:00
Noel Grandin
df00d4c230 convert include/sfx2/linksrc.hxx from String to OUString
Change-Id: I2ee2be4b87ef6f7fa9064ff742ccf4c854d7fea8
2013-08-29 09:30:05 +02:00
Kohei Yoshida
24c5c1185d Remove SC_HINT_DYING. We don't do anything specific for this hint.
Use SC_HINT_DATACHANGED instead, and do broadcast *after* the cell is
removed from the cell array, to avoid the dying cell from being used
during recalculation after the broadcast.

Change-Id: I8eb31eafa50c737ab683ca697657e64e52ae52e7
2013-05-09 13:34:32 -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
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
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
Thomas Arnhold
d8afc8e5e9 Remove superfluous include comments
Change-Id: Ie5792855761b9be209bf3fa2cba9e6998523c982
2012-06-09 04:39:01 +02: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
Norbert Thiebaud
2721235724 remove include of pch header from sc 2011-11-27 13:20:15 -06:00
David Tardon
fba911fea7 gsl_getSystemTextEncoding -> osl_getThreadTextEncoding 2011-11-25 09:07:49 +01:00
Markus Mohrhard
9e8ae1d560 remove ScRangeName::findByName
this method was mmisused and is the source for some "bugs"

we don't allow case sensitive storage of range names and therefore it
does not amke sense to search by case sensitive names, use
ScRangeName::findByUpperName instead
Especially the uno implementation did behave wrongly and allowed to
create two names that were identicall for the model
2011-11-23 06:25:36 +01:00
Caolán McNamara
6ddb02bad5 ByteString->rtl::OString 2011-11-11 11:55:04 +00:00
Kohei Yoshida
12343c1556 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-10 20:21:13 -05:00
Kohei Yoshida
e422d9efc3 Removed SearchName() in favor of findByName(). 2011-03-05 15:21:07 -05:00
Thomas Arnhold
a6e69f8fcd Move DBG_ERROR to OSL_FAIL 2011-03-02 14:58:56 +01:00
Mikhail Voytenko
cd42389ad6 removetooltypes01: #i112600# remove tooltypes from sc 2011-01-17 13:20:22 +01:00
Gert Faller
b9a388b78d cleaning of __EXPORT define 2010-12-11 23:25:30 +01:00
Sebastian Spaeth
63bb42ab7d Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:18 +02:00
Kohei Yoshida
383cb27aeb Ported dde-reconnect-on-load-*.diff from ooo-build.
Improve reliability of DDE connections between documents opened in LO.
With this change, LO tries to reconnect to a DDE server document upon
opening if that server document is being listened to by one of the
open documents.

Also, the old implementation would load a DDE server document
invisible, and would never close it when the user updates the link.
This had the consequence that when the user tries to open this
document while it's loaded hidden, it causes some weird focus issues,
and closing it and opening it again would disconnect the DDE
connection.  The new implementation closes the server document
immediately after the DDE link update is complete.

This change also fixes a bug in Calc where DDE link updates to cells
would fail when the formula syntax is set to something other than Calc
A1.
2010-10-05 15:42:37 -04:00
Vladimir Glazunov
22e99ad710 CWS-TOOLING: integrate CWS changefileheader2 2010-02-17 10:32:35 +01:00
Jens-Heiner Rechtien
4573ccfffd changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Mathias Bauer
f365884ba7 #i107450#: move more code out of svx 2010-01-13 22:25:07 +01:00
Jens-Heiner Rechtien
28ba39eaf9 CWS-TOOLING: integrate CWS calcmultiline
2009-05-13 18:05:10 +0200 nn  r271868 : CWS-TOOLING: rebase CWS calcmultiline to trunk@271830 (milestone: DEV300:m48)
2009-03-15 00:59:24 +0100 erack  r269502 : #i100205# SYLK import/export: treat embedded double quotes and semicolons correctly; changes ID;PSCALC3 to ID;PCALCOOO32 due to incompatibility
2009-03-10 17:54:33 +0100 er  r269286 : #i35913# multiline (newlines) as formula results; contributed by William S Fulton <wsfulton>
2009-05-18 15:28:50 +00:00
Vladimir Glazounov
5c0ecf9b57 CWS-TOOLING: integrate CWS sfxnotifyremoval 2008-09-30 06:36:06 +00:00
Vladimir Glazounov
9a026ee93a INTEGRATION: CWS koheiformula01 (1.9.314); FILE MERGED
2008/04/23 15:10:05 kohei 1.9.314.2: RESYNC: (1.9-1.10); FILE MERGED
2008/03/20 23:20:14 kohei 1.9.314.1: Use the current address convention everywhere instead of always using the OOo convention.
2008-05-14 08:57:35 +00:00
Rüdiger Timm
82cd9a3898 INTEGRATION: CWS changefileheader (1.9.330); FILE MERGED
2008/03/31 17:15:30 rt 1.9.330.1: #i87441# Change license header to LPGL v3.
2008-04-10 21:16:34 +00:00
Vladimir Glazounov
a58aff47bc INTEGRATION: CWS calcwarnings (1.8.110); FILE MERGED
2006/12/01 08:53:27 nn 1.8.110.1: #i69284# warning-free: ui, wntmsci10
2007-02-27 12:09:43 +00:00
Kurt Zenker
a5faa73e4d INTEGRATION: CWS pchfix01 (1.6.214); FILE MERGED
2006/07/12 10:02:35 kaib 1.6.214.1: #i67080# Converted cxx files in sc, added initial project level pch and stripped old PCH definitions.
2006-07-21 12:45:45 +00:00
Oliver Bolte
e407ce2d73 INTEGRATION: CWS dr48 (1.6.174); FILE MERGED
2006/06/01 13:57:58 nn 1.6.174.1: #i63148# IsValidReference for area links etc.
2006-07-10 13:07:49 +00:00
Rüdiger Timm
983af73969 INTEGRATION: CWS ooo19126 (1.5.452); FILE MERGED
2005/09/05 15:04:36 rt 1.5.452.1: #i54170# Change license header: remove SISSL
2005-09-08 19:50:13 +00:00
Oliver Bolte
de9d45c786 INTEGRATION: CWS rowlimit (1.4.322); FILE MERGED
2004/04/07 14:44:20 er 1.4.322.2: #i1967# #i5062# replace Sfx(Broadcaster|Listener) with Svt(Broadcaster|Listener) for mass objects like formula cells
2004/01/14 15:50:20 er 1.4.322.1: #i1967# SCCOL,SCROW,SCTAB replace USHORT; SCsCOL,SCsROW,SCsTAB replace short
2004-06-04 10:26:06 +00:00
Niklas Nebel
7aa78240e8 #94756# ScImportExport uses rtl::OUString also for ExportString 2001-11-14 19:30:03 +00:00
Niklas Nebel
a69ed4de4d #85964# don't access docshell in SFX_HINT_DYING broadcast 2001-04-11 13:37:35 +00:00
jp
136cbbf6a5 change: old data transfer API to the new 2001-03-08 20:00:07 +00:00