Commit Graph

1422 Commits

Author SHA1 Message Date
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
5cb2e3104b remove toolkit/unohlp.hxx hack
Change-Id: Idb9971d848870f4d00dbf77e80e48bf7dfde8913
Reviewed-on: https://gerrit.libreoffice.org/4601
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 11:49:28 +00:00
f76cedf1d6 Data-aware ListBox: fix case ListSourceType==TableFields
Change-Id: I9a89374fd1cc56c8185753f5959275a0a2d841ff
2013-06-23 20:05:55 +02:00
4e317158dd ListBox: when LISTSOURCETYPE changes, need to (un)lock BOUNDCOLUMN
Change-Id: If83073ec19c1389bf87fc154fa0ae83fd5bd1f3a
2013-06-23 18:21:01 +02:00
87c50e7563 fdo#66002 correct error introduced by "AppendAscii cleanup"
This reverts
fix endless loop error: 865b5caf6e2256e06f46a39a86d67f03408718a9
which was a partial revert of
AppendAscii cleanup: b7df3446c373a93dc5b77b495a54d873d83a91a7

AND fixes the original error in "AppendAscii cleanup".

Change-Id: Ida29af046b277170388e4945c0cdb4ec6116be98
2013-06-23 15:47:36 +02:00
865b5caf6e fix endless loop error
This partially reverts this commit:
b7df3446c373a93dc5b77b495a54d873d83a91a7

Change-Id: Id05939da35541f9620d03d9d3998e618d0bb9092
2013-06-23 15:04:57 +02:00
177f01b9fe fdo#46808, Convert form::inspection::FormComponentPropertyHandler
.. to new style service

Change-Id: Iee4681f94dc9874271dc8a1d5d74e161d7691a29
2013-06-10 10:20:45 +02:00
95c0d568fd use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.

Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
cee55a2c54 fdo#46808, Convert a copy of ComponentContext to XComponentContext
Looks like this extensions had a modified copy of
comphelper::ComponentContext in it.

Change-Id: I7e29aea4e6480a619f3148530fe6d784efe260e1
2013-06-05 08:13:22 +02:00
dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
f5cd4c2bdd WaE: unused parameter '_rxContext'
Change-Id: I75c9d894f792dd7a4ac85acace586e163d57c077
2013-06-03 11:30:31 +03:00
2838b8eb5e fdo#46808, Convert ComponentContext in connectivity,extension..
...modules.

Change-Id: Ie61976dc12b514bb85ca42496c0d9173a1c56264
2013-06-03 10:00:02 +02:00
0f627e06c9 fdo#46808, Convert form::TabOrderDialog service to new style
The service already existed, it just needed an IDL file.

Change-Id: I10219da7292db5e746a89028ddc4fabb069ac388
2013-06-03 10:00:00 +02:00
979b570f76 setPropertyValue can throw PropertyVetoException
fixes abort in report design when entering e.g. invalid positions or size for control

Change-Id: I38835ed79d5bee15c4d7b57ab6780050d250732a
2013-05-30 14:34:54 +02:00
b7df3446c3 AppendAscii cleanup
Change-Id: I7398272de0bd340ebfb5f31b314d32fcff007eec
Reviewed-on: https://gerrit.libreoffice.org/3974
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-22 21:03:56 +00:00
6a043e9c0a Use the new type-checking Reference constructor to reduce code noise
Also create a Clang compiler plugin to detect such cases.

Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-05-22 10:44:29 +00:00
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
73adc9b6e2 fdo#46808, Convert form::ControlFontDialog to new style
Change-Id: I83487cddbd6b3fce1fdcdfa48623b63a0e026d90
2013-04-25 08:56:38 +02:00
d645a6a17c Data-aware ListBox: can have a BoundColumn even without bound database column
It defines what goes into the ValueList property, what getCurrentValue() returns, and what an external value binding gets.

Change-Id: I9242d3a6040ec98c22b1d4350942dfa0e7aa6c5b
2013-04-22 17:54:39 +02:00
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
70e4329d04 fdo#60724 successfull -> successful
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-15 05:34:02 +02:00
435f5e30c9 fdo#60724 correct spelling
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
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
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
2b7ee1db28 remove boilerplate comments
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-04-01 22:45:36 +02:00
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
d08f360e6d fdo#46808, convert extension from deprecated interface
Change-Id: I2404637c7f1dc0a89882540581ae34a706ff86ee
2013-03-25 10:35:04 +02:00
d80415ec25 extensions/source/propctrlr/{form,pcr}strings.cxx no longer relevant
...since b4f8ab8881785db8e328fbfa84933eadb6bc5dd5 "extensions: get rid of no
longer needed stringdefine.hxx."

Change-Id: I0ab16071267fc08c9a2664be8630f617085fdaad
2013-03-25 08:52:56 +01:00
2d9ce9191d Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...which is a confusing overload with unexpectedly different semantics from the
one-parameter form.  In preparation of marking it as deprecated.

Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
2013-03-20 13:05:35 +01:00
a066525b42 fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext>
mostly in the dbaccess module, but it also affected some other
modules.

Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
2013-03-20 07:32:53 +02:00
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
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
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
b4f8ab8881 extensions: get rid of no longer needed stringdefine.hxx
Change-Id: I53d8a164fe9333c286a04f88a0834feeecacd5ed
2013-03-07 11:14:57 +01:00
41e03a166e doubled using
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-03-05 12:34:33 +01:00
cc71e03d3b audit GetParent harder wrt GetParentDialog
weed out assumption that widgets are direct children of Dialogs

Change-Id: Ib2cf0c8862bd5e82b13380634ed82ca7fcc746b8
2013-03-04 16:07:48 +00:00
33d6a7b2d7 doubled namespaces
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04 13:58:40 +01:00
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
5269589ae4 fdo#38838,::rtl::OUString_to_OUString
Change-Id: I7c9ebd01c16ff066008e53de865560ad78215bab
Reviewed-on: https://gerrit.libreoffice.org/2330
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-25 13:00:14 +00:00
2dca0ccf07 Fix typo recieved/received
Change-Id: I0c838f5c06ff26149113a9bbab970d314758c648
2013-02-23 19:09:11 +01:00
7c7755473e Fix typo "teh" -> "the"
Change-Id: Iacfeb4a0c2bff254e5bcc8d58582994cd0f3993a
2013-02-23 15:28:55 +01:00
616c6924f1 s/the the/the/
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22 09:58:19 +02:00
7acc787052 Tweak properties ordering
That's so that heavily related ones stay together:
 PRINTREPEATEDVALUES
 PRINTWHENGROUPCHANGE

Change-Id: I90513da4ae9ce0798dec91e5057b112735c1cdc2
2013-02-19 12:35:03 +01:00
818b84eb15 property browser: respect property ordering
Consider the following situation:

Property Name     Property Order Index
-------------     --------------------
propA4                   4
propB5                   5
propB4                   4

And the loop goes over these properties in this order.
propB4 should be before propB5, but with the old code,
propB4 would be pushed after propB5: it asks for position
4, but as positions 4 and 5 are already occupied, it gets
pushed to position 6.

Remaining difficulty: properties from different
property index ordering series will be interleaved.
This should be solved at object model level;
ideally property order index should be unique,
at least within an object.

Change-Id: Ie235a4b22155df97df139f1dc354247845626620
2013-02-19 12:35:01 +01:00
1b2debf80a janitorial: indentation
Change-Id: Id21de98433f52c8659a3432c1c47354e18166f06
2013-02-19 12:35:01 +01:00
ca0600f0c9 multiple unsequenced modifications to 'nPos' [-Werror,-Wunsequenced]
...solved by removing the nPos member and instead calculating the index on the
fly.  The difference is that old indices were before calling std::sort in
OPropertyInfoService::getPropertyInfo() while new ones are after, but that
should probably be OK per the documentation of
com.sun.star.inspection.XObjectInspectionModel.getPropertyOrderIndex (which
appears to be the only client of that functionality).

Change-Id: Id346bb219acbdad88ec43cf46feca8c37f2c7cf4
2013-02-14 17:59:43 +01:00
1aaf9a9b36 Renamed hard-to-remember 8-char headers in editeng.
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-12 15:15:06 -05:00
e7a76a0e65 fdo#46808, convert form::runtime::FormController to new-style
Change-Id: Ied761cbb8e23d65596a5fdc4650e1cd2c95e9245
2013-02-11 08:02:18 +02:00
82e3760855 replace (Xub)String with OUString in vcl
Change-Id: I0a44bab196ae239d3bdea75fd2b657bdfa4ecf31
Reviewed-on: https://gerrit.libreoffice.org/2011
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-06 17:12:24 +00:00
bd272cd3da rename SfxSingleTabDialog to SfxNoLayoutSingleTabDialog
Change-Id: I4922b719bf819879909e9949bf7946f20914d1e5
2013-01-24 14:29:46 +00:00