206 Commits

Author SHA1 Message Date
Tor Lillqvist
22481c65ff Avoid git grep match for "UNX" in comment
Change-Id: Ie8dde0810a3953a03ef6cfdcfaa24445ee45de5a
2013-10-12 20:44:45 +03:00
Stephan Bergmann
f58ee783ee Improve ErrorCodeIOException messages
...and clean up some includes.

Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
2013-10-09 21:02:11 +02:00
Caolán McNamara
ae95703819 Related: fdo#38838 remove UniString::SetToken & UniString::SearchAscii
Change-Id: I5219578fbeb40a0fe363f03c64021a83f7e505fb
2013-10-09 16:59:42 +01:00
Caolán McNamara
5089bdb234 Related: fdo#38838 remove UniString::EqualsAscii
Change-Id: I55c85c1c44452c7fb6ac40591aea7177d054affe
2013-10-09 13:17:27 +01:00
Caolán McNamara
832e5aadbf Related: fdo#38838 remove UniString::SearchAndReplaceAll
Change-Id: I093c95b8700b628375d69293022f7d4b8da2af9c
2013-10-08 14:05:58 +01:00
Caolán McNamara
b8cf30e93f Related: fdo#38838 remove UniString::SearchAndReplaceAscii
Change-Id: I86019d7ab248679cd8518a621fe8e3721b44aeb0
2013-10-07 11:46:58 +01:00
Caolán McNamara
d05a9ae25e Related: fdo#38838 remove UniString::AssignAscii
Change-Id: I263ef2594080ff7d47d5499c2b62e60e1689d2d6
2013-10-01 14:19:25 +01:00
Caolán McNamara
64b720dce8 Related: fdo#38838 remove UniString::SearchAscii
Change-Id: Icb7850aaabe59f96ea26a665a8d25617b2741d68
2013-09-30 11:04:22 +01:00
Stephan Bergmann
edecc4e9af Clean up rtl/character.hxx
It is probably best to base the functions on Unicode code points instead of
scalar values, now that they are also used from sal/rtl/strtmpl.cxx with UTF-16
code units and with arbitrary bytes (with values assumed to be a superset of
ASCII, though).  Rename compareAsciiIgnoreCase to compareIgnoreAsciiCase.  Also,
the corresponding tools::INetMIME functions can be removed completely; no need
to keep them around as deprecated.

Change-Id: I8d322177f4909e70a946e8186e3e0f7fa6d9a43e
2013-09-30 11:49:22 +02:00
Arnaud Versini
89de6ba4c6 Introduce ASCII case conversion and use more/rtl/character.hxx.
Also remove all others implementations.

Change-Id: I1dc108a9103f087bd8ce591dff2ac5dd254746f8
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-09-30 11:49:22 +02:00
Caolán McNamara
b3a8056a49 Related: fdo#38838 remove UniString::SearchBackward
Change-Id: Ia474ee07b1bd411eae8cd1ddd55c4fa83dbd5f47
2013-09-27 11:16:11 +02:00
Caolán McNamara
98de5b40c8 Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-25 19:24:23 +02:00
Caolán McNamara
81202ae748 Related: fdo#38838 remove UniString::CompareIgnoreCaseToAscii
Change-Id: I4a9b34d63d2534a35aa9a878b8c2bec15262c2be
2013-09-22 20:32:02 +01:00
Caolán McNamara
28c9207da4 Related: fdo#38838 remove UniString::InsertAscii
Change-Id: I949b62842d77fe83caed2cc79784fe1e3f3ae400
2013-09-22 12:21:35 +01:00
Caolán McNamara
5167539b10 Related: fdo#38838 one UniString::Search variant now unused
Change-Id: Id0b7b9bf53985f0692cd446a528274fb2009d33e
2013-09-14 14:04:23 +01:00
Caolán McNamara
8b3cbc7115 Related: fdo#38838 remove UniString::ToLowerAscii
Change-Id: Iecb8104ea2891d5229e3ecace54e12287d9b0ac6
2013-09-13 15:24:45 +01:00
Caolán McNamara
d908422f57 Related: fdo#38838 remove XubString alias
Change-Id: I29efbe2bee94c0059f5a2e3dc4d163375e439e1a
2013-09-12 13:09:03 +01:00
Thomas Arnhold
4f702470a2 Related: fdo#38838 Remove String::SearchChar()
Change-Id: Ide40e0ef91aec04c2ae274aaf2a957dd5064854c
Reviewed-on: https://gerrit.libreoffice.org/5894
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-11 11:31:06 +00:00
Caolán McNamara
02740cbe0a Related: fdo#38838 drop String::EmptyString now as well
Change-Id: I849dbf3a40189e700036249b15dd8bde493083b6
2013-09-08 20:44:26 +01:00
Caolán McNamara
7fd6d43c1d Related: fdo#38838 String::GetBufferAccess is now no more
Change-Id: I9fdd600fd0a530c0763875109eee6600e4a77879
2013-09-08 20:44:25 +01:00
Caolán McNamara
ce9c390e1a Related: fdo#38838 String::ReleaseBufferAccess is now no more
Change-Id: Ib5390183e3d98a23f9243debfe3624561ca92535
2013-09-08 14:52:59 +01:00
Marcos Paulo de Souza
1d3483ed27 Remove some unused code from unusedcode.easy
Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d
Reviewed-on: https://gerrit.libreoffice.org/5721
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-01 09:15:44 +00:00
Caolán McNamara
74929bba73 Related: fdo#38838 remove UniString::ToUpperAscii
things got a little out of hand and I ended up
converting quite a bit of calc to OUString

Change-Id: I056326d37ffefa8c120cb2e564d166dd9f20f216
2013-08-30 11:39:01 +01:00
Caolán McNamara
a720ff09d8 Related: fdo#38838 AllocBuffer is now unused
Change-Id: Ib2cf99f3dd9ce5e3acc7364d07d6b6e5d03de423
2013-08-27 10:01:19 +01:00
Caolán McNamara
f00cd93a66 callcatcher: update unused code, esp unused Resource based ctor
e.g. no ImageRadioButton is now loaded from any res/rsc file, so
that ctor and associated code paths can be stripped out

Change-Id: Ic4cf19d45adb7c734f150e0b89eef193157a74a7
2013-08-27 09:58:35 +01:00
Caolán McNamara
cc0b40f6a9 add some a11y relations and enable translation of ms
Change-Id: Ib509a7ae62aefc919bdaed269c1605ac6bae9564
2013-08-18 13:47:31 +01:00
Caolán McNamara
d69d6f4dc8 Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unused
Change-Id: I2a2cc56cf005f564c798b8d43ef7e8c4b7f9eeff
2013-08-16 13:59:30 +01:00
Caolán McNamara
2235f495e3 add a seconds unit
Change-Id: I3507caab5cd61c282102ab21bf034ec54e497af3
2013-08-13 14:51:15 +01:00
Caolán McNamara
9891cb881b Related: fdo#38838 remove String::Equals(const sal_Unicode* ...)
Change-Id: I6eeede3261e7b6f5ad81a4d2fa9ecc6c07002dbb
2013-08-10 21:51:42 +01:00
Lionel Elie Mamane
8ee69b0ba1 fdo#67235 adapt form control code to time nanosecond API change, step 3
Change-Id: I4899c89ee5b2a54c9c05b531ab284365f1558e3d
Reviewed-on: https://gerrit.libreoffice.org/5270
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-08-04 06:51:31 +00:00
Stephan Bergmann
a95d1eff07 Remove effectively unused INetURLObject OString overloads
Change-Id: Icbbe27b229d5454d27be646e00e8b362a77359b3
2013-07-29 08:26:29 +02:00
Caolán McNamara
5efc15f000 reduce use of UniString from ResID ctor
Change-Id: I8d7619e7807ff2d400ec5c7fd181375130245728
2013-07-28 16:45:48 +01:00
Palenik Mihály
9c0a390489 fdo#63133: Write tools/tempfile.hxx out
I deleted TempFile class and changed it to utl::TempFile class
-which in unotools/tempfile.hxx- in the followings: Storage,
StgTmpStrm, SwXMailMerge classes; and RenderAsEMF function.
I modified header in precompiled_sw.hxx.

Change-Id: I3dae5333dc42538e1b905f6a6bbc85534c591dc1
Reviewed-on: https://gerrit.libreoffice.org/4938
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-07-16 18:40:45 +00:00
Palenik Mihály
c66e9cd24c Delete SvCacheStream class
I changed SvCacheStream class to SvMemoryStream class in
the following:  MSE40HTMLClipFormatObj, SfxLockBytesItem,
SwEditShell, INetMIMEMessageStream classes,
MakeLockBytes_Impl function and SwUnoCursorHelper namespace.
I modified header the precompiled_sw.hxx, wrtsh1.cxx, unoobj2.cxx.
I added two functions in SvMemoryStream class: GetBuffer and
GetSize, and I renamed the old GetSize function to GetBufSize.
I deleted SvCacheStream class.

Change-Id: I929236538dfbe23cccfd1eb85f10c1d5411baa8d
Reviewed-on: https://gerrit.libreoffice.org/4847
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-07-16 13:31:53 +00:00
Caolán McNamara
c162a4c8e4 remove String::ReplaceAscii
last remaining users used it as a complicated way to do a simple thing

Change-Id: I810b1542b03bd6faa54f6f076b58cb7d3e680ab0
2013-07-14 20:05:19 +01:00
Caolán McNamara
82937ce3d7 String::SearchAndReplaceAllAscii -> OUString::replaceAll
Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96
2013-07-14 14:04:03 +01:00
Caolán McNamara
d0e6571634 add degrees and pixels as known spin field units
Change-Id: I5937843a5c5485f469ef1fb6b5844aa15c33a14d
2013-07-08 18:40:11 +01:00
Lionel Elie Mamane
6e82772db5 TODO note for future *internal* API change
Signed year so that ~all our date types have about the same capacities.

Change-Id: Iab8a66bee0eb22ffd04608c345302218094e53a7
2013-07-05 12:22:03 +02:00
Michael Stahl
33ff399d72 warning C4389 != signed/unsigned mismatch
Change-Id: I1cc4be1e7068ce3c40340e88fcde75fc7862a18a
2013-07-04 20:08:56 +02:00
Michael Stahl
3835dee3c7 SvStream: remove the error prone operator<</>>(sal_Int64)
As the recent regression after merging AOO patch adding code serializing
"long" variables has shown, this overload (which was added in
7b2a0e541567be9750dfc7d98374555967da3470) is a bad idea.

In a unxlngx build, nm finds uses of the symbols _ZN8SvStreamrsERl
and _ZN8SvStreamlsEl in these files:

- sbxvalue.cxx: this appears to be a legitimate use with sal_Int64

- dateitem.cxx: this was accidentally changed by commit
  9830fd36dbdb72c79703b0c61efc027fba793c5a

- atrfrm.cxx: this was added for Table Autoformat enhancement in
  7e8c0bd73ee59ff3041e55268c77203373962e51, which is after the
  sal_Int64 operators were added, so the file format is now
  platform dependent

Change-Id: I78352b5429b53612c4831cdb81b587b5de5180a9
2013-07-02 16:30:01 +02:00
Norbert Thiebaud
710f41b7ae Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655
Reviewed-on: https://gerrit.libreoffice.org/4627
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-06-30 04:58:49 +00:00
Fridrich Štrba
820901f915 WaE: comparison between signed and unsigned integer expressions
Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf
2013-06-10 14:27:58 +02:00
Fridrich Štrba
4e41227dd6 mingw64: change Link class to use sal_IntPtr instead of long
Change-Id: I2b78c7b714ff064f2f1b8a8eb161e5e2ae121eee
2013-06-10 14:03:40 +02:00
Fridrich Štrba
ce959ab7ce mingw64: use the right integer sizes on win64
Change-Id: Idb263ad369d2dad4fe4de924f2b2404a0fcf62d3
2013-06-10 14:03:34 +02:00
Noel Grandin
2cb247a12d fix file and lineno info for DBG_UNHANDLED_EXCEPTION
which I broke in commit 863d38fbfa4fb4861e476828c46410602100919e
"move DBG_UNHANDLED_EXCEPTION out of line"

Change-Id: Ic30e985cc356d81013ced1ce74ec6c78469d9882
2013-06-10 10:20:45 +02:00
Noel Grandin
6bf00f0f94 fix for linking
caused by my commit
863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line"

Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec
2013-05-21 13:53:21 +02:00
Noel Grandin
863d38fbfa move DBG_UNHANDLED_EXCEPTION out of line
makes it easier to set a breakpoint on it.
Plus it's getting a little big to be a macro.

Change-Id: I2827aa3618ba966fbc85a4a56e0e794a55630730
Reviewed-on: https://gerrit.libreoffice.org/3988
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-21 10:02:39 +00:00
Armin Le Grand
abb6f47bd3 Secured some places where PolyPolygons were created
using a all-points count and a all-points array

(cherry picked from commit 8ee49906f04106317997e9ca3bb890870816e274)

Conflicts:
	svtools/source/filter/wmf/enhwmf.cxx
	svtools/source/filter/wmf/winwmf.cxx
	tools/inc/tools/poly.hxx
	tools/source/generic/poly2.cxx

Change-Id: I57f7f08d8dd87c83c30ab2d16ca22b772b2bd834
2013-05-19 14:47:38 +01:00
Eike Rathke
3126793480 added documentation about non-normalized invalid dates
Change-Id: I88a95d8fac8af9085d41cf1b13c8ff3ee7abb141
2013-05-17 18:26:15 +02:00
Eike Rathke
cd9d1bdf5e resolved fdo#63805 max day of month of the intended month
Since 6619955e72c1c2f29a32e82478d19147c0d7610a Date::GetDaysInMonth()
operates on the normalized value that corresponds to the actual values
set at the Date instance, obtain and set number of days for the intended
month instead of using the rolled-over date.

Change-Id: Ia6b007675104f8e134b278f216c3bb48b72f061c
2013-05-17 14:13:36 +02:00