Commit Graph

43 Commits

Author SHA1 Message Date
Noel Grandin
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
Stephan Bergmann
25cedf1dc7 Introduce com.sun.star.beans.theIntrospection singleton
...deprecating com.sun.star.beans.Introspection (single-instance) service.

Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-03-07 10:33:07 +01:00
Noel Grandin
82625bb98e remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
    buf.append( static_cast<sal_Unicode>('!') );
to:
    buf.append( '!' );

Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-07 09:43:37 +02:00
Noel Grandin
8548abbac5 Remove unnecessary use of OUString constructor in OUStringBuffer::append calls
Convert code like
  aStrBuffer.append(OUString(" AS "));
to
  aStrBuffer.append(" AS ");

Change-Id: I8c1884b5a875f40f0b5e511b6ef38c6c8eeee656
2013-12-17 11:49:04 +02:00
Noel Grandin
1d2f7047f2 convert sc/source/ui/vba/*.cxx from String to OUString
Change-Id: If696cdf2293464dc2a21cab4bdc4f77223cf26c9
2013-10-08 10:03:09 +02:00
Andras Timar
7f436c1fd3 typo fixes in comments
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-26 11:47:45 +02:00
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Thomas Arnhold
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
Donizete Waterkemper
d1f6857d3f String to OUString.
Change-Id: I0a6bba13d71b45a7f9161030073d4d3399ea6ad5
https://gerrit.libreoffice.org/#/c/4012/
2013-05-30 16:12:21 +02:00
Noel Grandin
a39c96af53 fdo#46808, Convert sheet::GlobalSheetSettings service to new style
Change-Id: If5fc10e408427fe5d87968a0ad51a3142f895709
2013-05-13 09:38:02 +02:00
Jean-Noël Rouvignac
a2296128cc Some removal/replacement of the String/UniString with OUString 2013-01-09 10:54:19 +01:00
Radu Ioan
c5132e30fb fdo#39440 - cppcheck cleanliness
Correct some strings

Change-Id: Ic019cb11b87cd51e7ffd1fb8f16b79dff381936c
Reviewed-on: https://gerrit.libreoffice.org/1508
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-12-30 01:11:49 +00:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Michael Stahl
0990da105f clean up more sbxToUnoValue declarations
Change-Id: Ieff54baaff53031712f737dab84f840adb3bb09a
2012-12-04 19:56:52 +01: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
Noel Grandin
b30ee83058 fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-23 13:06:14 +02:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Noel Grandin
8638f1e72a fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-27 15:40:07 +02:00
Norbert Thiebaud
20a132b517 targeted string re-work
Change-Id: I970c967cce1a5d18e2b9b2b99cddfb3118159950
2012-06-01 05:35:31 -05:00
Caolán McNamara
ae92197691 remove static objects from static_initialization_and_destruction chain 2012-04-02 14:53:48 +01:00
Caolán McNamara
71fcd819d5 catch by const ref 2011-08-26 15:32:35 +01:00
Kohei Yoshida
12343c1556 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101 2011-03-10 20:21:13 -05:00
Thomas Arnhold
08282f724b cppcheck: close bracket 2011-01-17 20:48:05 +00:00
Mikhail Voytenko
cd42389ad6 removetooltypes01: #i112600# remove tooltypes from sc 2011-01-17 13:20:22 +01:00
Thomas Arnhold
9bcc3c85b6 Correct bracket closing. 2011-01-16 20:55:26 +00:00
Kohei Yoshida
8bd305d433 cppcheck: removed excess parens. 2010-11-24 23:20:39 -05:00
Gert Faller
b974459252 replace use RTL_CONSTASCII_USTRINGPARAM 2010-11-02 09:18:15 +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
Daniel Rentz
5624330c20 mib16: contributed bugfixes and various new symbols in VBA compatibility implementation 2010-06-15 20:02:53 +02:00
Frank Schoenheit [fs]
ad94448ef2 autorecovery: merged changes from m74. Still need to find out how to re-do two patches (to module_hidden_ooo.scp and file_ooo.scp in scp2/source/ooo) which do not apply anymore. 2010-03-11 11:26:05 +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
Frank Schoenheit [fs]
6d4b358235 autorecovery: merge after rebase to m69 2010-01-08 22:50:33 +01:00
Frank Schoenheit [fs]
89f6e13ee2 autorecovery: SfxViewFrame's SfxFrame is a reference now, no pointer (it can never be NULL) 2009-12-15 23:07:57 +01:00
Mathias Bauer
e1593452b2 merge to m67 2009-12-05 19:29:07 +01:00
Mathias Bauer
a293d0a7b1 #i103496#: split svtools; improve ConfitItems 2009-10-16 00:05:16 +02:00
Noel Power
dfc77d75e1 initial commit of code reorg, existing files that are modified 2009-09-18 15:24:22 +00:00
Ivo Hinkelmann
a08dbc2fa8 CWS-TOOLING: integrate CWS cmcfixes56
2009-03-26 14:46:13 +0100 cmc  r270080 : #i100517# merge changes of locales32 to match
2009-03-26 14:31:32 +0100 cmc  r270079 : #i100517# add some brackets and remove stray ;
2009-03-25 13:30:36 +0100 cmc  r270021 : #i100503# make tralay work again
2009-03-25 10:13:35 +0100 cmc  r269999 : #i100536# remove last unused method
2009-03-24 15:13:50 +0100 cmc  r269955 : #i100517# fix straight-forward warnings
2009-03-24 14:36:37 +0100 cmc  r269947 : #i100469# keep ia64 and arm alignments after fork-exec to signal change, but hackaround for arm to keep userlevel qemu-arm working
2009-03-24 14:02:27 +0100 cmc  r269943 : #i100223# make stl headers warning free for extra gcc 4.3 warnings
2009-03-24 13:58:15 +0100 cmc  r269942 : #i100504# drawinglayer is warning free on ix86 linux
2009-03-24 13:56:15 +0100 cmc  r269940 : #i100469# keep ia64 and arm alignments after fork-exec to signal change
2009-04-01 13:20:55 +00:00
Oliver Bolte
90e0834d56 CWS-TOOLING: integrate CWS npower11
2009-01-21 11:00:00 +0100 npower  r266639 : replace ScAddress::CONV_XL_R1C1 with
formula::FormulaGrammar::CONV_XL_R1C1 
2009-01-21 10:58:33 +0100 npower  r266638 : fixup access for changes to compiler.[ch]xx
2009-01-21 10:57:46 +0100 npower  r266637 : replace the static with non-static  member ( to align with the latest
m39 ) changes
2009-01-20 11:53:52 +0100 npower  r266562 : CWS-TOOLING: rebase CWS npower11 to trunk@266428 (milestone: DEV300:m39)
2009-01-09 23:31:00 +0100 cloph  r266122 : fix typo (missing "="), initialize variables to avoid WaE breakage
2009-01-09 11:57:20 +0100 npower  r266071 : wae Mac OSX gcc-4.0.1 (PPC)
2009-01-08 11:09:49 +0100 npower  r265986 : wae - Mac OSX gcc-4.0.1 (PPC)
2009-01-07 10:33:20 +0100 npower  r265952 : wae Mac OSX gcc-4.0.1 
2008-12-18 19:14:10 +0100 npower  r265712 : wae for wntmsci12 target
2008-12-17 16:14:54 +0100 npower  r265640 : add Outline property for Font, also remove growing list of friend classes
for ScCellRangeObj and replace by a single class.
2008-12-17 16:11:02 +0100 npower  r265639 : fix path variable for 3.1, also tweak the unix logs
2008-12-11 02:39:58 +0100 hanbo  r265233 : fix the vba/vba namespace of constants
2008-11-25 17:05:39 +0100 npower  r264317 : namespace changes
2008-11-25 14:12:37 +0100 npower  r264308 : revert changes made by mistake when migrating cws
2008-11-25 13:30:59 +0100 npower  r264296 : i#93944# namespace changes
2008-11-25 13:29:25 +0100 npower  r264293 : i#93944# namespace changes
2008-11-25 13:27:08 +0100 npower  r264289 : i#93944# namespace changes
2008-11-24 18:24:17 +0100 npower  r264263 : svn migration
2008-11-24 18:22:47 +0100 npower  r264262 : not needed anymore
2008-11-24 18:21:23 +0100 npower  r264261 : svn migration
2008-11-24 18:18:31 +0100 npower  r264260 : svn migration
2009-02-13 13:03:24 +00:00
Vladimir Glazounov
716636d558 CWS-TOOLING: integrate CWS koheicoderemoval 2008-09-30 05:48:28 +00:00
Rüdiger Timm
7d11669f26 INTEGRATION: CWS changefileheader (1.4.86); FILE MERGED
2008/03/31 17:19:48 rt 1.4.86.1: #i87441# Change license header to LPGL v3.
2008-04-11 00:02:33 +00:00
Rüdiger Timm
ec9958dbf2 INTEGRATION: CWS dr58_SRC680 (1.3.34); FILE MERGED
2008/01/11 16:17:17 dr 1.3.34.1: #i10000# missing includes
2008-01-29 14:47:58 +00:00
Vladimir Glazounov
adba4e8f81 INTEGRATION: CWS npower8 (1.2.4); FILE MERGED
2007/10/30 16:18:48 npower 1.2.4.6: #i77189#
2007/10/16 09:36:59 npower 1.2.4.5: #i77189#
2007/07/23 14:36:41 npower 1.2.4.4: more uninitialized value warning removal
2007/07/23 11:47:24 npower 1.2.4.3: i#77189#
2007/07/18 13:46:46 npower 1.2.4.2: #i77189# sync ooo-build and this module
2007/05/10 11:23:10 npower 1.2.4.1: -m#i77189#
2007-12-07 09:53:38 +00:00
Rüdiger Timm
7c35643da4 INTEGRATION: CWS npower6 (1.1.2); FILE ADDED
2007/02/21 17:29:20 npower 1.1.2.3: #i74096 add license
2007/02/12 17:01:35 npower 1.1.2.2: #i74096 use XInterface to dynamic cast from
2007/02/07 21:17:56 npower 1.1.2.1: #i74096# add compatibility api implementation
2007-04-25 15:07:21 +00:00