Commit graph

598 commits

Author SHA1 Message Date
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
August Sodora
38ba2f002b String->OUString 2011-11-26 22:57:21 -05:00
August Sodora
530fc2fef8 Added test to lngmisc 2011-11-26 22:57:21 -05:00
August Sodora
83345ff8d8 Simplification and accompanying tests 2011-11-26 18:13:27 -05:00
August Sodora
e280ff03f3 Remove unused parameter 2011-11-26 18:13:26 -05:00
August Sodora
919abbfe9b Avoid use of the preprocessor 2011-11-26 18:13:26 -05:00
August Sodora
82e5a0ddcb Remove unnecessary includes and cosmetics 2011-11-26 15:21:12 -05:00
August Sodora
734d838f80 Simplification in lngmisc with accompanying tests 2011-11-26 15:16:49 -05:00
August Sodora
f04882ba6a sal_Bool->bool 2011-11-26 14:31:55 -05:00
August Sodora
2554f7a543 Mark as private 2011-11-26 14:29:28 -05:00
August Sodora
38e0df5b2e Remove newly unused code 2011-11-26 13:57:29 -05:00
August Sodora
091ba739ba Added test for linguistic::RemoveHyphen and some simplification 2011-11-26 13:55:52 -05:00
August Sodora
e81f36f6b6 C-style cast -> C++-style cast 2011-11-26 13:19:58 -05:00
August Sodora
a97dc8f45d Remove unnecessary includes 2011-11-26 13:18:03 -05:00
Bjoern Michaelsen
f2f0dbd273 make gbuild makefiles run independant of pwd again 2011-11-25 12:04:40 +01:00
Caolán McNamara
709c1f365b remove various EraseLeadingAndTrailingChars 2011-11-23 23:16:45 +00:00
Stephan Bergmann
0c7bff0271 Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.
A compile time check ensures the common case of streaming just a plain
C-style string literal still produces reasonably compact call-site code.
The format-string variants are still available in sal/detail/log.h, but
only to be used in obsolete osl/diagnose.h etc., and going to be removed
again eventually.
2011-11-23 15:50:58 +01:00
Eike Rathke
e9f303624c use cased month names only if no hard coded literal string follows 2011-11-23 12:29:57 +01:00
Eike Rathke
d66a2c4525 scan genitive and partitive month names only if they differ 2011-11-22 14:52:41 +01:00
Eike Rathke
3b5ee26d2c added partitive case month names
* Locale data:
  * nominative (nouns) month names always given in <MonthsOfYear>
    element
  * optional genitive case month names in <GenitiveMonths> element,
    following the <MonthsOfYear> element; if not given take nominative
    names
  * optional partitive case month names in <PartitiveMonths> element,
    following the <GenitiveMonths> element, or following the
    <MonthsOfYear> element if the <GenitiveMonths> element is not
    present; if not given take genitive case names, or nominative if
    genitive names aren't defined
    * currently known partitive case matters in Finnish locales

* Rules for use of nominative / genitive / partitive case month names in
  number formatter:
  * no day of month (D or DD) present in format code => MMM or MMMM
    display nominative month name (noun)
  * day of month (D or DD) after MMM or MMMM => genitive name
    * no genitive names defined => nominative names
  * day of month (D or DD) before MMM or MMMM => partitive name
    * no partitive names defined => genitive names
      * no genitive names defined => nominative names
2011-11-22 14:52:41 +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
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
Eike Rathke
769511019b use possessive genitive case month names in number formatter
* Switching between noun and genitive case month names is very simply done:
  * If the format contains a day of month (D or DD) code, genitive case is used.
  * If there is no day of month, the month noun is used. For example for
    a standalone MMMM code or a combined MMMM-YYYY code.
* For input both, noun and genitive case, forms are recognized.
2011-11-19 16:15:21 +01:00
Eike Rathke
29e4c61d9d use new possessive genitive case month names locale data API 2011-11-19 16:15:21 +01:00
Caolán McNamara
dca04e2361 add a StringUtils-alike remove (can replace EraseAllChars) 2011-11-17 23:04:10 +00:00
Norbert Thiebaud
0ea8c014ef tweak gbuild standart Makefile to allow partial build in unsourced env
This allow to run make in a module wihtout the need to source
Env.Host.sh.
2011-11-16 06:18:54 -06:00
Stephan Bergmann
b11bd0323e Removed comphelper -> unotools processfactory.hxx duplication. 2011-11-14 11:50:26 +01:00
Caolán McNamara
a2fc48ea64 can ditch the ByteStringPtr typedef now 2011-11-14 07:35:58 +00:00
Stephan Bergmann
c1758889cb Heavily simplified utl::ConfigManager. 2011-11-11 22:49:21 +01:00
Julien Chaffraix
c437b03374 Removed several String <-> OUString conversion in fsstor. 2011-11-11 11:35:40 +00:00
Markus Mohrhard
832c18da69 change the code a bit to make it a bit more clear
this should do nearly the same as the old code
2011-11-10 05:20:35 +01:00
Daisuke Nishino
ff9fab243b Removed SvStringsSortDtor 2011-11-09 16:52:56 +00:00
Markus Mohrhard
56d1c2e4ec fdo#37925: don't show -0 as number in a cell 2011-11-08 04:51:43 +01:00
Caolán McNamara
2ea9da7147 don't need typename outside a template 2011-11-07 12:41:47 +00:00
Daisuke Nishino
6401ca3325 Get rid of SvStringsSort 2011-11-07 12:27:32 +00:00
Kohei Yoshida
5ec42cf012 Support rtl::OUString reference here as well. 2011-11-04 22:40:27 -04:00