Commit graph

2447 commits

Author SHA1 Message Date
Takeshi Abe
e2de4357f5 catch by const reference 2011-11-23 02:21:44 +09:00
Stephan Bergmann
d6a8934eeb Remove no longer necessary "(void) x; // avoid warnings". 2011-11-22 17:03:12 +01:00
Stephan Bergmann
70a6b9ffbd New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
  cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
  addressed.
* Some replacements tools String -> rtl::OUString.
2011-11-22 09:41:47 +01:00
August Sodora
ee3ad385fb Convert to boost::ptr_vector 2011-11-20 23:44:21 -05:00
August Sodora
7fc462044e Remove unnecessary includes 2011-11-20 23:32:13 -05:00
August Sodora
d71ffc855f Remove unnecessary includes 2011-11-20 23:26:31 -05:00
August Sodora
25ade2f357 Refactor BasicCharClass out from scanner and make it a singleton 2011-11-20 17:21:03 -05:00
August Sodora
7cc258f35b Refactor BasicCharClass out from scanner and make it a singleton 2011-11-20 17:16:35 -05: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
edc4118e18 Fix scanning bug 2011-11-18 22:27:45 -05:00
August Sodora
76f4712c7d Remove uses of pLine in scanner 2011-11-18 21:40:39 -05:00
August Sodora
53a662f530 Refactoring in scanner 2011-11-18 21:40:39 -05:00
August Sodora
2edba12412 sal_Bool to bool 2011-11-18 01:53:30 -05:00
August Sodora
c8f0503a1b Cleanup GetSuffixType in basic scanner 2011-11-18 01:20:36 -05:00
August Sodora
f3098a52b9 Removed unused headers 2011-11-17 23:06:47 -05:00
Fridrich Štrba
1f2d0c83d0 Put back a method needed by Windows and reformat a bit 2011-11-15 13:19:24 +01:00
Julien Chaffraix
e5f5167e84 FDO#39446 [EasyHack] Bloat Removal. Removing uncallable code with callcatcher
Removed most unused symbols in basic/. The remaining symbols (SdxDecimal) are
Windows specific and thus should be double-checked on a Windows machine prior
to removal.
2011-11-15 10:41:35 +00:00
Caolán McNamara
f017740f50 StaticIsEnabledBroadcasting can only be true 2011-11-06 22:08:36 +00:00
Caolán McNamara
97f2f76452 callcatcher: update and remove some more unused methods 2011-11-06 22:08:36 +00:00
Ivan Timofeev
9b94d385f9 cppcheck: avoid possible null pointer dereferences 2011-11-04 23:01:17 +04:00
David Tardon
8ff1724924 these are files--no trailing / 2011-10-27 16:49:08 +02:00
Olivier Hallot
a5d6dca3e9 Fix for fdo41997 continuation of VCL cleanup 2011-10-25 13:42:00 +01:00
Jan Holesovsky
548fc5db7c A small cleanup after the String -> OUString conversion. 2011-10-21 18:08:49 +02:00
August Sodora
556a61a2f8 Added Frac function to calc formulas and BASIC standard library 2011-10-21 15:10:13 +01:00
Michael Meeks
e31496c938 misc trivial tweaks, and documentation addition 2011-10-21 10:08:58 +01:00
August Sodora
034350a509 String->OUString, with accompanying tests 2011-10-21 10:08:57 +01:00
Stephan Bergmann
d1076b1b7f Second attempt at (cross-platform) OSL_FORMAT. 2011-10-08 18:56:48 +02:00
Tor Lillqvist
256f192582 Revert "Introduced OSL_FORMAT, adpated some places to it."
Breaks the MSVC build for me: 'osl_detail_formatString' : C linkage
function cannot return C++ class 'rtl::OString'.

This reverts commit 6b900b8bed.
2011-10-08 15:07:06 +03:00
Stephan Bergmann
6b900b8bed Introduced OSL_FORMAT, adpated some places to it. 2011-10-08 12:59:09 +02:00
Tor Lillqvist
8529da0851 WaE: unreachable code 2011-10-06 10:12:47 +03:00
Tor Lillqvist
cce8278eba WaE: unreachable code 2011-10-06 09:36:07 +03: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
c50612d516 callcatcher: unused code 2011-09-29 09:33:44 +01:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Caolán McNamara
2a3ce6ac68 ByteString->rtl::OStringBuffer 2011-09-26 10:18:39 +01:00
Caolán McNamara
4eca665bd1 ditch SHL_SBX and don't leak 2011-09-19 09:59:25 +01:00
Caolán McNamara
7a142d8932 drop intermediate ByteString 2011-09-19 09:59:23 +01:00
Caolán McNamara
6eef57ed12 testtool has no need to print (doesn't under unix anyway)
print support never existed under unix, and libapp is only used by testtool,
which has no need to print. And the print apis, etc used are archaic
2011-09-19 09:59:20 +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
558e7410d7 ESOLUTIONCOLLIDE 2011-09-16 11:02:08 +01:00
Caolán McNamara
2c09909bce avoid assert and crash-before-vcl-is-ready-to-show-it in dbgutil testtool 2011-09-16 10:56:59 +01:00
Tor Lillqvist
836eef273f OK, so avoid IMPL_GEN_RES_STR on Windows only then 2011-09-16 12:03:43 +03:00
Norbert Thiebaud
32967e26b5 Revert "I think IMPL_GEN_RES_STR is not needed here"
This reverts commit 9b5c26fe2d.
2011-09-15 17:12:02 -05:00
Tor Lillqvist
9b5c26fe2d I think IMPL_GEN_RES_STR is not needed here
It causes duplicate symbols over in automation when linking testool,
as the same functions that IMPL_GEN_RES_STR expands to also are in the
sts library.
2011-09-15 15:42:31 +03:00
Caolán McNamara
22eb754f61 replace ByteString::Fill 2011-09-15 11:23:37 +01:00
Stephan Bergmann
23b04dae8b sb140: #i117698# no implementations of XIdlClassProvider remain, so code that checks for it can be removed 2011-09-12 22:47:49 +02:00
Allmann-Rahn
8b11173f34 Translated German comments, removed redundant ones till cairo (incl.) 2011-08-31 16:29:43 +03:00