Commit graph

661 commits

Author SHA1 Message Date
Stephan Bergmann
6fca59d9c2 Simplify code by making getProcessComponentContext() implicit. 2012-01-31 17:26:57 +01:00
Stephan Bergmann
ca3e3e7e31 Move unotools/configuration.hxx to comphelper
...so that other code in comphelper can use it.
2012-01-31 15:50:10 +01:00
Noel Grandin
61451fec9b fdo#44981 - remove obsolete SWAPLONG macros 2012-01-30 13:18:38 +00:00
Caolán McNamara
47e1e8494d make svl ByteString free 2012-01-30 13:18:38 +00:00
Stephan Bergmann
db59e44816 Do not move nCurUndoAction < 0.
(Could easily happen when max undo steps is set to 1.)
2012-01-27 15:04:26 +01:00
Caolán McNamara
2563c8dd79 can't see the point of calling String::Erase before delete String 2012-01-23 11:37:06 +00:00
Mariusz Dykierek
ac7a8bfe4e Removed NfCurrencyEntry::ApplyVariableInformation(). 2012-01-23 13:58:13 +05:30
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Michael Stahl
ca7aa53477 svl: add new test to subsequenttests 2012-01-20 15:16:37 +01:00
Keith McRae
c6f2e3e46d fdo#39428 Remove/audit SvStream operator>>/<<(long)
Replaced calls to operator<<(long) with sal::static_int_cast<sal_Int32>
Replaced calls to operator>>(long) with operator>>(sal_Int32)
2012-01-18 22:56:13 -05:00
Thomas Arnhold
105546f7f1 remove unused code 2012-01-18 20:45:14 +01:00
Marcel Metz
d2c8003ecb Replaced SAL_INFO with SAL_WARN were applicable. 2012-01-17 23:27:44 +01:00
Eike Rathke
0f1fc0dfea a can't-happen-but-do-it-correct-anyway one character fix 2012-01-17 17:57:37 +01:00
Stephan Bergmann
bd8851e319 Make test code compile on Mac OS X. 2012-01-17 11:49:06 +01:00
Stephan Bergmann
0e163ead17 Disable CppunitTest_svl_urihelper for now due to bad dependencies. 2012-01-17 11:20:32 +01:00
Stephan Bergmann
7e69e6485f Adapted svl test_URIHelper to gbuild. 2012-01-17 11:07:29 +01:00
Marcel Metz
a18123fb97 Replaced DBG_ERRORFILE with SAL_INFO. 2012-01-16 12:51:33 +01:00
August Sodora
94b1b36ee5 Remove SvStringsDtor 2012-01-14 00:39:07 -05:00
Eike Rathke
92bf1c3f60 use INCLUDE instead of SOLARINC, and after local includes 2012-01-13 22:42:33 +01:00
Olivier Hallot
38423e0ad2 Fix for fdo43460 Part XXXVI getLength() to isEmpty()
Part XXXVI
Modules
svl
2012-01-13 19:11:34 -02:00
August Sodora
9556b3847e Remove SvStringISort 2012-01-11 18:32:15 -05:00
Eike Rathke
cfec56f89f fdo#44636 use date acceptance patterns in number scanner
Get rid of the lax "any 1-2 possible date separators used with 2-3 numbers
forms a date" date recognition. Use locale data's DateAcceptancePattern
elements to match against, or ISO 8601 yyyy-mm-dd, or an already applied date
format.
2012-01-11 13:18:49 +01:00
Eike Rathke
f6c465e355 lower date acceptance with only two numbers 2012-01-11 13:18:45 +01:00
Eike Rathke
8298a4741d strict date recognition using locale's separator and ISO 8601
- Removed separators '-', '.' and '/' working in all combinations in all
  locales forcing a date even for 23/12.99 (if locale has DMY order)
* Only the locale's date separator is accepted, plus '-' if the input may
  represent an ISO 8601 date yyyy-mm-dd, check is lax though on minimum
  digits, y-m-d is also accepted.
* Additionally, accept yy-month-dd or dd-month-yy with month name. Year must
  be <1 or >31, 2-digit year magic for values 0,32..99 is applied, or has to
  be prefixed with leading zero.
2012-01-11 13:18:45 +01:00
Eike Rathke
958cdbdcf5 accept and display years < 100
+ Years < 100 without being hit by the 2 digits year magic can be entered by
  preceding them with a leading 0 if at least 3 digits are present, e.g.
  099-1-1 is year 99, not 1999.
+ Years < 100 in an yyyy format are always displayed as 0099.
2012-01-11 13:18:45 +01:00
August Sodora
bcb9ddaa7e Remove _SVSTDARR_STRINGSISORTDTOR 2012-01-10 23:18:14 -05:00
Caolán McNamara
3c62fbcdd7 simplify LocalFileHelper::ConvertURLToPhysicalName 2012-01-10 10:09:28 +00:00
Caolán McNamara
58ef08f5e1 toLower->lowercase 2012-01-09 20:33:30 +00: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
Marcel Metz
5b031b4ea6 Remove superfluous _ZFORLIST_DECLARE_TABLE definition. 2012-01-07 22:14:05 +04:00
Marcel Metz
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00
Caolán McNamara
2d3203b2db make ReadUniOrByteString return a string 2012-01-06 09:52:42 +00:00
Caolán McNamara
9999eab5fe getPropertyMap can return a reference instead of a pointer 2012-01-05 22:41:56 +00:00
Christina Rossmanith
6fd08caf5f Translated German comments 2012-01-05 22:08:59 +01:00
Christina Rossmanith
764040ac4e removed unused #define_SVSTDARR_sal_uI(n)t16S(SORT) 2012-01-05 22:08:58 +01:00
Takeshi Abe
5493951893 catch exception by constant reference 2012-01-06 00:22:51 +09:00
Marcel Metz
53d27eb207 Removed unnecessary tools includes. 2012-01-05 15:38:51 +01:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Caolán McNamara
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
Brad Sowden
2004a9920e Easyhack fdo#38831 remove SvStrings
Remove SvStrings definition and obsolete #defines.
2012-01-04 13:49:11 +01:00
Eike Rathke
b0aaaeb7bd recognize arbitrary y-m-d format for editing as ISO 8601 yyyy-mm-dd 2011-12-22 19:04:30 +01:00
Caolán McNamara
9d97f5e8ab callcatcher: newly unused code 2011-12-22 09:07:48 +00:00
Eike Rathke
6c37252eb9 resolved fdo#37978 - Date formatting in Spreadsheet is inconsistent
* SvNumberFormatter::IsNumberFormat() ISO 8601 date input results in
  yyyy-mm-dd format if no other date format was set.
* SvNumberFormatter::GetInputLineString() preserves ISO 8601 date format for
  editing if such was set.
2011-12-21 18:06:23 +01:00
Caolán McNamara
c1d49234e5 tweak for pre language-defect #77 2011-12-21 13:44:52 +00:00
Caolán McNamara
5c24789ca3 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 13:44:52 +00:00
Caolán McNamara
c4f0efc237 convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 13:44:52 +00:00
Caolán McNamara
6708977331 needs more work first
This reverts commit 92f396733e.
2011-12-21 10:30:10 +00:00
Caolán McNamara
fffae28952 bah, need to tweak for pre c++0x
This reverts commit d00fc0e293.
2011-12-21 10:29:33 +00:00
Caolán McNamara
d00fc0e293 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 10:10:58 +00:00