Commit graph

560 commits

Author SHA1 Message Date
August Sodora
d9ce7a484f Remove unused SttResMgr from basic 2012-01-16 23:35:49 -05:00
August Sodora
cd10d4e8a6 Remove SbErrorStack[Entry] 2012-01-16 20:47:40 -05:00
August Sodora
ad5bc7a1ec String->OUString 2012-01-16 11:37:34 -05:00
David Tardon
d54349233f remove useless misleading macros 2012-01-15 20:27:18 +01: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
Caolán McNamara
2d3203b2db make ReadUniOrByteString return a string 2012-01-06 09:52:42 +00:00
August Sodora
25e84ee959 fdo#44172: Basic function VAL produces bad result 2012-01-05 14:46:09 -05: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
Noel Grandin
583582c5bf German translations
By Mike Whiteley/Noel Grandin, some smaller changes by myself; changes to binfilter removed from patch
2011-12-12 22:35:05 +01:00
Olivier Hallot
91d4fe75ee Fix for fdo43460 Part III getLength to isEmpty
Part III
Module
basic
2011-12-10 21:13:58 +04: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
Caolán McNamara
6f33482f8f ByteString->rtl::OUStringToOString 2011-11-28 09:55:03 +00:00
Norbert Thiebaud
2ca38d3c7c rmove include of pch header in basic 2011-11-27 12:55:59 -06:00
mikew
5c76e221fe Some German to English comment translations. 2011-11-25 11:18:19 +00:00
David Tardon
fba911fea7 gsl_getSystemTextEncoding -> osl_getThreadTextEncoding 2011-11-25 09:07:49 +01:00
Caolán McNamara
ca02d72808 remove [Byte]String::EraseAllChars 2011-11-19 21:11:02 +00:00
Eike Rathke
4b030331f7 add narrow (one letter) month names
While introducing Calendar2 and the XCalendar3 interface anyway, as well the
"one letter" narrow month names sometimes needed in calendaring can be added.
These are not always the first capitalized letters of the months in all
locales, and might even not necessarily be just one character.

Introduces a new struct css::i18n::Calendar2 that is not derived from
css::i18n::Calendar because it uses a new struct css::i18n::CalendarItem2 to
hold the NarrowName elements.

In locale data the elements DaysOfMonth, MonthsOfYear and GenitiveMonths now
have an optional element DefaultNarrowName. If not specified, the first
character of DefaultFullName is taken.

LocaleDataWrapper and CalendarWrapper use and return the new Calendar2 and
sequences of CalendarItem2 structs. Application code adapted.

The number formatter now displays narrow month names (genitive if applicable)
for the MMMMM code, previously it displayed the first 16 bit code point of the
full name (not even utf-16 aware).

Narrow day names currently are not used, except in svtools' Calendar control.
2011-11-19 16:15:22 +01:00
August Sodora
556a61a2f8 Added Frac function to calc formulas and BASIC standard library 2011-10-21 15:10:13 +01:00
Caolán McNamara
ebbfc7ea4a callcatcher: newly unused methods 2011-09-30 12:39:35 +01:00
Caolán McNamara
acc5c0734c callcatcher: remove newly unused code 2011-09-30 09:09:27 +01:00
Caolán McNamara
1f5c696c37 add mode-lines to .m files and last round of merged files, etc. 2011-09-30 09:09:25 +01:00
Caolán McNamara
7a142d8932 drop intermediate ByteString 2011-09-19 09:59:23 +01:00
Caolán McNamara
32b2e810ad use read_uInt8s_AsOString and comphelper::string::padToLength
which allows us to simplify the read in DTable.cxx quite a bit
2011-09-17 23:20:46 +01:00
Caolán McNamara
22eb754f61 replace ByteString::Fill 2011-09-15 11:23:37 +01:00
Allmann-Rahn
8b11173f34 Translated German comments, removed redundant ones till cairo (incl.) 2011-08-31 16:29:43 +03:00
Takeshi Abe
e1a1091d0a catch ignored exceptions by const reference 2011-08-24 11:30:17 +09:00
Tor Lillqvist
0236af5e65 dllmgr-x86 expects stdcall-decorated names 2011-08-16 18:43:43 +03:00
Caolán McNamara
f822cc5e8f use OSL_VERIFY instead 2011-08-02 11:07:15 +01:00
Michael Meeks
a4c573ada0 move required SttResId into libapp.a where it is required for automation/ 2011-08-01 12:24:43 +01:00
Matúš Kukan
c8e76fbfed convert basic to gbuild 2011-07-30 10:39:20 +02:00
Julien Nabet
37d7efc5f9 Some cppcheck cleaning 2011-07-30 10:08:45 +02:00
Caolán McNamara
f921ca3cc5 check return of osl_setFilePos 2011-07-22 10:17:52 +01:00
Thomas Arnhold
01ea434011 remove runsInSetup which has a const return value 2011-07-12 17:01:19 +02:00
Thomas Arnhold
6a7ba51092 callcatcher: remove unused StarBASIC::StaticEnableReschedule 2011-07-12 17:01:18 +02:00
Caolán McNamara
c46bc9ed20 callcatcher: remove unused implFoo* 2011-07-11 09:04:34 +01:00
Michael Meeks
ee6c4017da cleanup loop iteration to be simpler 2011-05-31 14:17:43 +01:00
David Tardon
1bf36db7af make the loop finite .-) 2011-05-31 11:55:58 +02:00
Michael Meeks
aedc5eb4af fix snafu identified by Julien Nabet 2011-05-31 10:27:44 +01:00
Jan Holesovsky
ca39c0ee5f Merge commit 'libreoffice-3.4.0.2'
Conflicts:
	basic/source/app/app.cxx
	basic/source/runtime/iosys.cxx
	desktop/unx/source/start.c
	sfx2/source/appl/appdata.cxx
	sfx2/source/appl/appinit.cxx
	sfx2/source/inc/appdata.hxx
	svx/AllLangResTarget_svx.mk
	sysui/desktop/productversion.mk
	sysui/desktop/share/makefile.mk
2011-05-31 10:45:50 +02:00
Jan Holesovsky
5a9d7a54e9 Merge branch 'master' of git://anongit.freedesktop.org/libreoffice/libs-core 2011-05-27 20:49:48 +02:00
Jan Holesovsky
9df8682ced Merge remote-tracking branch 'origin/integration/dev300_m106'
Conflicts:
	basic/source/classes/sbunoobj.cxx
	basic/source/inc/runtime.hxx
	basic/source/runtime/step1.cxx
	desktop/source/deployment/dp_services.cxx
	drawinglayer/prj/d.lst
	drawinglayer/source/primitive2d/makefile.mk
	sfx2/source/appl/appinit.cxx
	sfx2/source/appl/appquit.cxx
	sfx2/source/inc/appdata.hxx
	sfx2/source/view/viewfrm.cxx
	svx/source/fmcomp/gridctrl.cxx
	vbahelper/source/vbahelper/vbahelper.cxx
2011-05-27 20:46:20 +02:00
Caolán McNamara
f6a80c4dee getDirectoryPath is unused, see comphelper::LinkResolver if restored 2011-05-24 21:44:03 +01:00
Tor Lillqvist
11c71842f6 Drop OS2 2011-05-21 16:26:08 +03:00
David Tardon
908d9588d4 delete[] after use 2011-05-16 15:39:27 +02:00
Noel Power
7c8d2e74df fix for fdo#36898
remove some extra _USE_UNO #ifdef(s) that should have been removed when the associated define _USE_UNO was removed
2011-05-06 14:46:17 +01:00