Commit Graph

60 Commits

Author SHA1 Message Date
Jacobo Aragunde Pérez
20a174ac12 comphelper: code refactor
Change-Id: Ica71d0691cf02aeaa03b6570015d9828cd7daeed
2014-02-24 13:24:51 +01: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
Stephan Bergmann
d12e472474 comphelper: sal_Bool -> bool sequel
Change-Id: I2b9bd19abf4510fccef0374a539069cb8222ccae
2014-02-19 14:31:09 +01:00
Stephan Bergmann
05f742d28b comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17 17:55:19 +01: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
Radu Ioan
bd888a331b fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
- replaced RTL_CONTEXT_ with SAL_INFO
- replace OSL_* with SAL_*

Change-Id: I0054bc90fdcaa2fef7e1d98a0528277be4fc341e
Reviewed-on: https://gerrit.libreoffice.org/3917
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-20 18:58:25 +00:00
Armin Le Grand
1ba29be90f Resolves: #i119941# Avoid crash when chart is removed in Writer...
by keeping it's storage and graphic stream.

Patch by: Clarence Guo, zhaoshzh
Review by: alg
Found by: Shan Zhu

(cherry picked from commit 0b71c735dc10202b26972cf91779954b6a96af9a)

Conflicts:
	comphelper/inc/comphelper/embeddedobjectcontainer.hxx
	comphelper/source/container/embeddedobjectcontainer.cxx

Change-Id: I6ec172644806309d0f06f8522eb8a2adb45899ed
2013-05-15 10:12:59 +01:00
Andre Fischer
dbec45e813 Resolves: #i120168# Do not call storeOwn() when not necessary
Patch by: lizh.fee
Review by: Andre Fischer
(cherry picked from commit 822661c165198467b56fa2a1034ddc002ba99f7e)

Change-Id: Ibb8e39b98360ef918890a627449c654e311f0f21
2013-05-12 20:11:39 +01:00
Tor Lillqvist
008b5c6ae6 WaE: 'e' : unreferenced local variable
Change-Id: I06319bf6607ecc25a768f85de3ec142388bfa572
2013-04-26 17:17:07 +03:00
Miklos Vajna
6238cfe27f fdo#58949 EmbeddedObjectContainer: guard against embed::WrongStateException
The problem was that in case an exception was thrown, it was only caught
outside the loop, so in case any error occurred, we didn't even try to
export the remaining objects. At least in case of
embed::WrongStateException, this is safe to do.

Change-Id: I71a7abc45a89bebc667664bc001245bb886a8d83
2013-04-26 13:03:49 +02: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
Chr. Rossmanith
b2f8318dbd simplify OUString assignments
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb
Reviewed-on: https://gerrit.libreoffice.org/2863
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-03-20 10:28:58 +00:00
Michael Stahl
44f74a0c2b EmbeddedObjectContainer: log some exceptions
Change-Id: I7356dfedc6121876641ef0e5f41d50db725980d4
2013-02-08 20:40:52 +01:00
Chr. Rossmanith
be9d9fee66 RTL_CONSTASCII_(U)STRINGPARAM removed in comphelper
Change-Id: Ib068c06956bc9f04bb7c468375aacd2e6e9db77d
2013-01-31 10:21:07 +01:00
Noel Grandin
251f1b0b38 fdo#46808, Adapt embed::*EmbeddedObjectCreator UNO services to new style
The services already existed, it just did not have an IDL file.
Adapts
  com.sun.star.embed.OOoEmbeddedObjectFactory
  com.sun.star.embed.OLEEmbeddedObjectFactory
  com.sun.star.embed.EmbeddedObjectCreator

Change-Id: I8ba01c7fd956a46c87d02dc7d61bdd5fcdf21ab8
2013-01-15 09:56:03 +02:00
Markus Mohrhard
5dad4d7a23 correct indentation
Change-Id: Ibcbcb69c96e8bbd6bccc0f852240a2a6cef2c1c0
2013-01-12 05:34:08 +01:00
Caolán McNamara
5870db7df2 better to throw and report exact failure 2012-10-18 14:47:27 +01:00
Noel Grandin
4aa117b81e sal_Bool -> bool in comphelper
Change-Id: Ib7f2a10a4ff0227a5d5c137602c3c2f353334d24
2012-10-04 21:29:32 +02:00
Michael Meeks
2005a34318 re-base on ALv2 code. 2012-06-29 15:51:49 +01:00
Julien Nabet
e511a7d639 Fixes a bunch of "Prefer prefix ++/-- operators for non-primitive types" 2012-03-29 23:56:31 +02:00
Caolán McNamara
6d14db4514 catch by const ref 2012-01-05 09:18:20 +00:00
Olivier Hallot
00a67c0f90 Fix for fdo43460 Part VII getLength() to isEmpty()
Part VII
Module
comphelper
2011-12-13 11:57:55 +04:00
Norbert Thiebaud
b8ee1f9b5f remove include of pch header in comphelper 2011-11-27 13:00:14 -06:00
Caolán McNamara
40fbc430fd callcatcher: some unused code 2011-11-02 09:58:53 +00:00
Thomas Arnhold
3d874bdf40 Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...) 2011-03-19 14:11:09 +01:00
Thomas Arnhold
0c35d637f7 Move OSL_ENSURE(0,...) to OSL_FAIL(...) 2011-03-12 14:19:18 +01:00
David Tardon
22d875b263 WaE: suggest parentheses around '&&' within '||' 2011-02-26 13:51:55 +01:00
Thomas Arnhold
fcb8fd3ba5 Move bogus OSL_ASSERT(msg) to OSL_FAIL(msg) 2011-02-26 10:38:15 +01:00
Fridrich Strba
e99fcbe58e Bulk move libs-gui to boost unordered containers 2011-02-04 01:10:15 +01:00
Caolán McNamara
365e5c0ee5 WaE: gcc 4.6.0 various warnings 2011-01-24 10:57:21 +00:00
Caolán McNamara
34dff4e6b4 micro opts 2010-10-24 21:05:46 +01:00
Sebastian Spaeth
4905a19032 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-14 17:02:15 +02:00
Jens-Heiner Rechtien
8764506704 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
Rüdiger Timm
498a742cd8 CWS-TOOLING: integrate CWS cmcfixes51
2008-12-08 10:12:55 +0100 cmc  r264975 : #i96203# protect with ifdefs to avoid unused symbol on mac
2008-12-05 12:23:47 +0100 cmc  r264898 : CWS-TOOLING: rebase CWS cmcfixes51 to trunk@264807 (milestone: DEV300:m37)
2008-12-01 14:45:17 +0100 cmc  r264606 : #i76655# ehlos apparently required
2008-11-28 17:49:30 +0100 cmc  r264567 : #i96655# remove newly unused method
2008-11-28 10:41:28 +0100 cmc  r264531 : #i96647# better ppc-bridges flushCode impl
2008-11-27 12:58:40 +0100 cmc  r264478 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 12:32:49 +0100 cmc  r264476 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 12:26:02 +0100 cmc  r264475 : #i96655# redundant old table export helpers
2008-11-27 11:49:06 +0100 cmc  r264473 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:38:35 +0100 cmc  r264471 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:14:21 +0100 cmc  r264467 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:06:22 +0100 cmc  r264464 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:58:18 +0100 cmc  r264462 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:41:44 +0100 cmc  r264461 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:19:24 +0100 cmc  r264460 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:13:39 +0100 cmc  r264459 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:06:14 +0100 cmc  r264458 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:59:54 +0100 cmc  r264457 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:52:51 +0100 cmc  r264456 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:48:26 +0100 cmc  r264454 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:40:20 +0100 cmc  r264452 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:35:26 +0100 cmc  r264451 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:31:00 +0100 cmc  r264450 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:24:08 +0100 cmc  r264449 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:26:15 +0100 cmc  r264443 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:21:01 +0100 cmc  r264442 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:09:40 +0100 cmc  r264441 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 23:51:56 +0100 cmc  r264440 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 23:49:09 +0100 cmc  r264439 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 18:09:54 +0100 cmc  r264432 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 18:07:40 +0100 cmc  r264431 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:28:02 +0100 cmc  r264429 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:27:39 +0100 cmc  r264428 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:18:36 +0100 cmc  r264426 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 16:22:16 +0100 cmc  r264415 : #i96624# make implicit braces and brackets explicit to avoid warnings
2008-11-26 16:00:23 +0100 cmc  r264409 : #i90426# remove warnings from svtools
2008-11-26 15:59:17 +0100 cmc  r264408 : #i90426# remove warnings
2008-11-26 15:47:32 +0100 cmc  r264404 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:46:57 +0100 cmc  r264394 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:19:50 +0100 cmc  r264387 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:15:26 +0100 cmc  r264386 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:11:26 +0100 cmc  r264384 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 13:44:23 +0100 cmc  r264380 : #i96084# comfirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 13:12:24 +0100 cmc  r264372 : #i96604# silence new warnings
2008-11-26 12:35:02 +0100 cmc  r264369 : #i96203# make qstarter work in 3-layer land
2008-11-26 12:33:04 +0100 cmc  r264368 : #i96170# ensure gtypes are up and running
2008-12-11 07:05:03 +00:00
Rüdiger Timm
31011bf56d INTEGRATION: CWS rptchart02 (1.24.4); FILE MERGED
2008/04/16 06:36:18 oj 1.24.4.2: RESYNC: (1.24-1.25); FILE MERGED
2008/03/12 09:30:03 oj 1.24.4.1: check if storage is readonly
2008-06-16 12:53:59 +00:00
Rüdiger Timm
848d21376b INTEGRATION: CWS changefileheader (1.24.18); FILE MERGED
2008/04/01 12:26:28 thb 1.24.18.2: #i85898# Stripping all external header guards
2008/03/31 12:19:31 rt 1.24.18.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:57:38 +00:00
Kurt Zenker
360ef49ee9 INTEGRATION: CWS rptchart01_DEV300 (1.23.4); FILE MERGED
2008/02/21 12:09:02 oj 1.23.4.4: #i85225# rong default value
2008/02/19 07:26:03 oj 1.23.4.3: #i85225# rename of method
2008/01/24 14:33:28 oj 1.23.4.2: #i85225# new document type
2008/01/14 11:41:11 oj 1.23.4.1: #i85225# new methods to store obj
2008-03-05 17:28:47 +00:00
Kurt Zenker
f4977548cb INTEGRATION: CWS mav26 (1.22.50); FILE MERGED
2007/11/27 15:13:13 mav 1.22.50.1: #i79302# avoid duplicate objects
2007-12-12 12:20:50 +00:00
Ivo Hinkelmann
8d2998b99c #i10000# build fix 2007-07-11 13:09:53 +00:00
Jens-Heiner Rechtien
d147d5e03a INTEGRATION: CWS mav21 (1.20.4); FILE MERGED
2007/06/05 14:00:15 mav 1.20.4.1: #i77319# the scenario was broken by the changes for m213
2007-06-26 15:10:39 +00:00
Vladimir Glazounov
505b5db9c0 INTEGRATION: CWS chart2mst3 (1.16.34); FILE MERGED
2006/11/29 16:10:43 mba 1.16.34.5: #i64497#: avoid setting visAreaSize explicitly for all objects when they are copied for clipboard
2006/11/25 09:27:51 bm 1.16.34.4: RESYNC: (1.18-1.19); FILE MERGED
2006/11/24 15:52:12 bm 1.16.34.3: RESYNC: (1.17-1.18); FILE MERGED
2006/10/18 17:33:55 bm 1.16.34.2: RESYNC: (1.16-1.17); FILE MERGED
2006/10/13 16:19:20 mba 1.16.34.1: #i64497#: make sure that parent of documents is set before loading it as some documents (chart2!) need this
2007-05-22 19:19:18 +00:00
Vladimir Glazounov
07bdb63371 INTEGRATION: CWS pj65 (1.17.12); FILE MERGED
2006/11/06 10:16:46 pjanik 1.17.12.2: RESYNC: (1.17-1.18); FILE MERGED
2006/10/24 06:42:44 pjanik 1.17.12.1: #i70649#: Prevent warnings on Mac OS X.
2006-11-21 16:51:03 +00:00
Vladimir Glazounov
3172f3c8a0 INTEGRATION: CWS inplaceobjects (1.16.46); FILE MERGED
2006/09/28 20:47:15 mba 1.16.46.2: RESYNC: (1.16-1.17); FILE MERGED
2006/06/09 10:34:41 mba 1.16.46.1: #i66239#: create OLE objects with special MiscStatus
2006-11-01 17:30:51 +00:00
Oliver Bolte
9d9019b4c8 INTEGRATION: CWS pchfix02 (1.16.68); FILE MERGED
2006/09/01 17:19:38 kaib 1.16.68.1: #i68856# Added header markers and pch files
2006-09-17 16:06:48 +00:00
Kurt Zenker
aa4422acd2 INTEGRATION: CWS mav19 (1.13.22); FILE MERGED
2006/01/17 09:09:29 mav 1.13.22.5: #i56586# set size for the objects that need size after loading
2006/01/17 09:08:54 mav 1.13.22.4: #i56586# set size for the objects that need size after loading
2006/01/02 15:32:34 mav 1.13.22.3: #i56250# allow to copy replacement to the same container if the different name is used
2005/11/17 19:14:42 mav 1.13.22.2: RESYNC: (1.13-1.14); FILE MERGED
2005/11/01 14:34:52 mav 1.13.22.1: #i57128# embeddedobjectcontainer should not switch object to running state usually
2006-02-01 18:31:40 +00:00
Oliver Bolte
dc65f73947 INTEGRATION: CWS optstor2 (1.12.28.2.2); FILE MERGED
2005/11/11 12:04:38 mav 1.12.28.2.2.2: RESYNC: (1.12.28.2-1.14); FILE MERGED
2005/10/19 09:08:51 mav 1.12.28.2.2.1: #i55785# add loging
2006-01-20 09:00:00 +00:00
Rüdiger Timm
2ec957c667 INTEGRATION: CWS cov2src (1.13.20); FILE MERGED
2005/10/17 16:23:48 rt 1.13.20.1: #126234# Join MWS COV680 m4 into SRC680
2005-10-19 11:47:47 +00:00
Rüdiger Timm
3570695933 INTEGRATION: CWS ooo19126 (1.12.22); FILE MERGED
2005/09/05 15:23:55 rt 1.12.22.1: #i54170# Change license header: remove SISSL
2005-09-08 01:44:57 +00:00
Kurt Zenker
fbace6ce3b INTEGRATION: CWS mav18 (1.11.14); FILE MERGED
2005/06/08 13:52:13 mav 1.11.14.2: #121099# let the ReplacementImages storage be commited on storing of the document
2005/06/07 14:29:24 mav 1.11.14.1: #i50429#,#i48568# creation of a copy of an object
2005-07-12 11:27:31 +00:00