Commit graph

634 commits

Author SHA1 Message Date
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
Caolán McNamara
92f396733e 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 10:10:58 +00:00
August Sodora
bbe9cf453c callcatcher: Remove unused code 2011-12-20 15:23:34 -05:00
August Sodora
db8ff2610a callcatcher: Remove unused code 2011-12-19 14:36:10 -05:00
Stephan Bergmann
4c1c531435 Missing dependencies. 2011-12-13 17:13:33 +01:00
Stephan Bergmann
bcdea3b379 Simplified, type-safe C++ configuration access.
* New offapi com.sun.star.configuration entities to access the complete
  configuration read-only or read/write...
* ...configmgr adapted to support those new services/singletons...
* ...new unotools/configuration.hxx is the type-safe C++ plumbing on top of
  that...
* ...officecfg now generates C++ headers to access all the properties and sets
  given in the .xcs files...
* ...and svl's asiancfg.cxx exemplarily makes use of the new
  officecfg/Office/Common.hxx to access the configuration.
* There is still TODOs:  For one, see those listed in
  officecfg/registry/cppheader.xsl.  For another, at least a notification
  mechanism for the new read-only configuration access and the C++ wrapper is
  missing.
2011-12-13 12:50:34 +01:00
Caolán McNamara
90ca7d9e24 callcatcher: remove newly unused code 2011-12-13 10:11:44 +00:00
Michael Stahl
5924454a86 slideshow: play back embedded media:
The slideshow uses the UNO API to access the drawing objects,
so add a property to get the temp file URL from the media object.
2011-12-12 21:53:46 +01:00
Marcel Metz
9fd35cc973 Related: fdo#38832 Replace Table with std::map 2011-12-12 16:50:32 +00:00
Caolán McNamara
87ec1f8857 callcatcher: remove unused code post automation removal 2011-12-09 13:57:16 +00:00
Bjoern Michaelsen
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
Stephan Bergmann
f141ea7d74 Use configmgr directly in SvxAsianConfig. 2011-12-06 20:28:57 +01:00
Eike Rathke
86adb5cacb get rid of class Date and Time default ctor with system time penalty 2011-12-01 21:04:29 +01:00
August Sodora
443a7229f9 Remove uses of charAt 2011-12-01 11:10:28 +01:00
Eike Rathke
c593018f6f no need to check for Gregorian cut-off date here 2011-11-30 13:15:54 +01:00
Eike Rathke
dca69d5bb2 renamed Date::IsValid() to IsValidAndGregorian() to prevent misassumptions
Once smaller than 1582-10-15 decrementing a Date will not produce a valid date.
2011-11-30 02:05:22 +01:00
Bjoern Michaelsen
d73e574d8a move reconfigure into gbuild 2011-11-29 17:25:14 +01:00
Michael Stahl
b1447d6466 svl: remove unnecessary libs from cppunittest 2011-11-28 14:29:27 +01:00
Stephan Bergmann
2af9040d38 Cleaned up utl::UCBContentHelper. 2011-11-28 10:09:57 +01:00
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
3f2ff54778 remove pch from the include list 2011-11-27 15:24:45 -06:00
Norbert Thiebaud
70d24b9f33 remove include of pch header from svl 2011-11-27 13:24:11 -06:00
Norbert Thiebaud
992757cc5e remove pre-compiled header support in gbuild and gbuildified module 2011-11-27 11:49:38 -06:00
Markus Mohrhard
c97b6bde2e add missing licence headers 2011-11-27 08:32:52 +01:00
August Sodora
641d8928f8 String->OUString 2011-11-27 01:31:44 -05:00
August Sodora
69ee7654fa Remove unnecessary includes 2011-11-26 22:57:22 -05:00
August Sodora
a627ec05ce Cosmetic 2011-11-26 22:57:22 -05:00
August Sodora
d5737d5b4c Remove unnecessary casts 2011-11-26 22:57:21 -05:00