Commit graph

569 commits

Author SHA1 Message Date
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
Daniel Di Marco
f7303fcac7 eliminate SvUShorts type 2011-11-01 12:19:05 +00:00
Caolán McNamara
576d7aaada drop some unused code 2011-10-28 10:22:59 +01:00
Norbert Thiebaud
0e73ffc339 Surely every target processor know how to do logical shift left efficiently 2011-10-26 09:19:09 -05:00
Stephan Bergmann
b786a33cfd Undo basis/brand split: Move SDK and ure-link, remove OOO_BASE_DIR and BaseInstallation. 2011-10-24 13:59:58 +02:00
Caolán McNamara
084d665b61 meh, fix build failure 2011-10-24 11:25:22 +01:00
Caolán McNamara
c67a343bd9 don't leak contenttype registrations 2011-10-24 10:48:03 +01:00
Stephan Bergmann
bf1f0183d5 Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64). 2011-10-18 23:10:56 +02:00
Lior Kaplan
d6f2418d08 Align a rebellious line 2011-10-18 14:17:51 +01:00
Lior Kaplan
89a4f63bc5 Compact the enumeration spaces from previous commit 2011-10-18 14:17:51 +01:00
Lior Kaplan
45e5cdd99f Remove .chaos file types, except 3 which are in use in the code 2011-10-18 14:17:50 +01:00
Pierre-André Jacquod
1353a64402 cppcheck scope reduction in svl/..zforlist.cxx 2011-10-07 15:57:34 +02:00
Pierre-André Jacquod
c36fbb450d cppcheck scope reduction in svl/szitem.cxx 2011-10-07 15:57:34 +02:00
Bjoern Michaelsen
e94a19f3e0 simplfy dmake to gbuild bridgefile 2011-10-05 00:31:50 +02:00
Caolán McNamara
ae3a5e9c2d SvByteStrings can go now 2011-10-04 11:52:28 +01:00
Tor Lillqvist
27be19bd8b WaE: '==' : signed/unsigned mismatch 2011-10-04 13:11:35 +03:00
Tor Lillqvist
deb6a43c1f WaE: unreachable code 2011-10-04 13:11:33 +03:00
Tor Lillqvist
14c8a75cf3 WaE: '==' : unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-04 13:11:31 +03:00
Caolán McNamara
04723baf6e callcatcher: various unused methods 2011-10-04 09:00:05 +01:00
David Tardon
59abf8c506 we do not need the counter now 2011-10-04 09:18:08 +02:00
Maciej Rumianowski
d4f1b520cd Get rid of SvNums
SvNums is a define for SvUShort and SvULong, both are replaced with std::vector
2011-10-04 08:48:26 +02:00
Maciej Rumianowski
ff76d2927b Finally remove SvULongs
In all places SvULongs have been replaced with std::vector, now can be totally removed.
2011-10-04 08:48:26 +02:00
Caolán McNamara
02abccf953 more uselessness in msvc 2011-10-03 14:11:30 +01:00
Caolán McNamara
d1420b9235 revert this, reported windows bustage 2011-10-03 12:44:57 +01:00
Caolán McNamara
9efb60f39f callcatcher: update list 2011-10-03 09:37:18 +01:00
Caolán McNamara
b48e2d958c callcatcher: various unused methods 2011-10-02 23:19:50 +01:00
Stephan Bergmann
c35ad52639 Cleaned up svldata. 2011-09-30 19:05:03 +02:00
Norbert Thiebaud
57dbe3e466 temp fix to issues stemming from 979e2c8f8b 2011-09-30 11:39:46 -05: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
Tor Lillqvist
58462caa51 Fix error reported by gcc 4.4.3: NULL used in arithmetic 2011-09-30 10:45:20 +03:00