Commit graph

297436 commits

Author SHA1 Message Date
Eike Rathke
7613359985 handle dates with year < 1000
* Read dates with years consisting of less than 4 digits.
  ISO 8601 specifies that years are to be written with a minimum of 4 digits.
  However, be lenient in what we accept.
* Write years < 1000 with leading zeros to comply with ISO 8601 YYYY.
2011-11-30 02:05:25 +01:00
Eike Rathke
07a7b2937a fixed fdo#40363 freeze chart wizard with non-gregorian date
Use the newly introduced Date::Normalize() instead of a never ending
while(!date.IsValid())
2011-11-30 02:05:24 +01:00
Eike Rathke
6619955e72 introduced Date::IsValidDate() and Date::Normalize()
+ IsValidDate() checks only day and month regarding the year, not Gregorian
  cut-off date as now does IsValidAndGregorian().
+ Normalize() carries over invalid day and month values to next months and
  years.
* All methods that return or internally use a day count now internally
  normalize the date values, without modifying the actual Date instance. So,
  if the date is not valid you may get unexpected results.
  * Previously, a date with month>12 would had accessed the days-of-month
    array out of bounds on all such methods. So you would had gotten
    unexpected results anyway..
  * Affected methods are:
    GetDayOfYear()
    GetWeekOfYear()
    GetDaysInMonth()
    static DateToDays()
2011-11-30 02:05:23 +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
Jan Holesovsky
cb937da55c online update: Now check even the checkForUpdates(). 2011-11-30 00:24:52 +01:00
Jan Holesovsky
358ce1e9c1 online update: Cleanup after UpdateInformationProvider::load() rewrite. 2011-11-30 00:24:51 +01:00
Jan Holesovsky
b87fa222f1 online update: Unit testing framework + rewrite of load().
- introduce first two basic tests (to be improved)
- rewrite of UpdateInformationProvider::load() to use comphelper
- smaller splitting of functions to be able to unit test
2011-11-30 00:24:51 +01:00
Jan Holesovsky
4432a44e75 online update: Make the test for update to actually start (still fails). 2011-11-30 00:24:51 +01:00
Caolán McNamara
920a261c8a getenv based debugging code doesn't make complete sense, remove
i.e.

mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X();
mnOutWidth = maPaperSize.Width() - 2*maPageOffset.Y();

might possibly be intended to be

mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X();
mnOutHeight = maPaperSize.Height() - 2*maPageOffset.Y();

either way, its behind a special getenv, so ditch the lot
2011-11-29 23:23:06 +00:00
Rene Engelhard
b7b23ac999 don't remove Makefile on make distclean, we need it now in all cases... 2011-11-29 23:51:55 +01:00
Rene Engelhard
7f31dfc4b6 fix test: s/==/=/ 2011-11-29 23:51:55 +01:00
Stephan Bergmann
d008ebbeed Check for empty URLs after all, to avoid warnings from canonic(). 2011-11-29 23:03:09 +01:00
Stephan Bergmann
438054572e Adapted to new assertion/logging mechanisms. 2011-11-29 22:59:59 +01:00
Stephan Bergmann
da65218ce1 Enabled sc/qa/complex again.
sc/qa/complex/calcPreview/ tests do not work automatically and have been left
alone.
2011-11-29 21:50:07 +01:00
Luboš Luňák
a115442064 import docx m:m 2011-11-29 21:20:29 +01:00
Luboš Luňák
82c78e8790 finish reading in while() also when end of stream, just in case 2011-11-29 21:20:29 +01:00
Luboš Luňák
ad1a6c6d50 improve import of docx m:d 2011-11-29 21:20:29 +01:00
Luboš Luňák
d193f127db docx OMathArg can actually be more than one element 2011-11-29 21:20:29 +01:00
Luboš Luňák
dff36f4c4c docx m:r can contain multiple m:t 2011-11-29 21:20:28 +01:00
Luboš Luňák
34e2e7dd84 implement docx m:groupChr 2011-11-29 21:20:28 +01:00
Luboš Luňák
6e91e7d4e7 implement m:func, m:limLow, m:limUpp 2011-11-29 21:20:28 +01:00
Luboš Luňák
49987bbb47 fix reading when the next tag can be one of several 2011-11-29 21:20:28 +01:00
Luboš Luňák
5c897753a6 better debug output when skipping an element 2011-11-29 21:20:27 +01:00
Luboš Luňák
f92bb66096 no debug about skipping tags if not actually skipping 2011-11-29 21:20:27 +01:00
Luboš Luňák
6bbca34846 make debug output print tags as strings rather than id numbers 2011-11-29 21:20:27 +01:00
Luboš Luňák
eb31865c85 merge processing of OMathArg and OMath, for now 2011-11-29 21:20:27 +01:00
Luboš Luňák
09f94dc9d8 m:f docx import is reasonably done 2011-11-29 21:20:26 +01:00
Luboš Luňák
020eddb20a try to avoid unnecessary space in created formula 2011-11-29 21:20:26 +01:00
Luboš Luňák
7bdccfdc1d implement import of docx mathml m:d 2011-11-29 21:20:25 +01:00
Luboš Luňák
e9ed9d4d45 do no re-sort oox tokens
Search me why writerfilter rolls its own, but otherwise they use
different ids, because writerfilter does not sort them.
2011-11-29 21:20:24 +01:00
Luboš Luňák
86927dd6e8 static const 2011-11-29 21:20:23 +01:00
Bjoern Michaelsen
a8fd6eb67e remove another debug line 2011-11-29 20:38:47 +01:00
Markus Mohrhard
92440ddb00 move sc's macros_test to the subsequenttest target 2011-11-29 20:29:03 +01:00
Bjoern Michaelsen
eef80c23ff use gb_MINISOLARENV for platform check 2011-11-29 20:15:24 +01:00
Bjoern Michaelsen
2c4537471c dont mindlessly touch the icc-header file on every build
- this little gremlin touches the header file everytime it is run
- as icc is very low level, this causes a lot of pointless rebuild
- everything from vcl up gets relinked
- this slows every empty 'make build' down by more than 40 percent
- would really need to check if the file changed before writing, but as we
  rarely change icc itself, I didnt bother with that
2011-11-29 20:08:31 +01:00
Stephan Bergmann
d3c772229c Use rtl::Reference<>. 2011-11-29 20:03:23 +01:00
Stephan Bergmann
ca6052b9a6 Special casing can be removed again. 2011-11-29 20:03:23 +01:00
Ivan Timofeev
1e19c59d51 merge SwSortedObjsImpl into SwSortedObjs 2011-11-29 21:52:02 +04:00
Michael Meeks
1932529adf postgresql: work around uninitialized warning. 2011-11-29 17:32:29 +00:00
Michael Meeks
4cc501d817 WaE: sizeable postgresql warning cleanup 2011-11-29 17:32:29 +00:00
Bjoern Michaelsen
dd750cf42b with announce letters shalt thou count to three, no more, no less 2011-11-29 18:11:51 +01:00
Bjoern Michaelsen
b1d20f6847 set gb_PARTIALBUILD in CustomTargets 2011-11-29 18:11:51 +01:00
Norbert Thiebaud
a7069c2aa2 git rev-parse argument are not files, no need to try to find abs-path
This was causing some error message on Windows
2011-11-29 11:00:12 -06:00
Thorsten Behrens
2e76553c7c Fix previous merges to build. 2011-11-29 17:57:33 +01:00
mst
6e26550c82 slidesorter1: #i116412# Temporarily turning off slide tracking to avoid unwanted repositioning of visible area.
* found as LGPLv3-only fix at svn rev 1172132 (http://svn.apache.org/viewvc?view=revision&revision=1172132)
2011-11-29 17:57:33 +01:00
mst
bdfbbb33a4 slidesorter1: #i116014# Outliner holds ViewShell as weak_ptr.
* found as LGPLv3-only fix at svn rev 1172131 (http://svn.apache.org/viewvc?view=revision&revision=1172131)
2011-11-29 17:57:33 +01:00
mst
d00e10d0d5 slidesorter1: #i114252# Fixed selection in slidesorter.
# HG changeset patch
# User Andre Fischer<andre.f.fischer@oracle.com>
# Date 1298997222 -3600
# Node ID bca8ed5c98e5c645a6c69c7fb90cd3da84627212
# Parent  5d52cdcf6d9357e7a6dcc1aa80ba27840042a6de

 * found as LGPLv3-only fix at svn rev 1172130 (http://svn.apache.org/viewvc?view=revision&revision=1172130)
2011-11-29 17:57:32 +01:00
mst
86e093007b slidesorter1: #i114107# Temporarily reset StartWithActualPaget to make startWithArguments use FirstPage property.
# HG changeset patch
# User Andre Fischer<andre.f.fischer@oracle.com>
# Date 1283353420 -7200
# Node ID 770385ae0c265c62134bf57eeca8283f7fe80b48
# Parent  2ebd15d9e8a637b5c563f1ae49768668412e2baa

 * found as LGPLv3-only fix at svn rev 1172126 (http://svn.apache.org/viewvc?view=revision&revision=1172126)
2011-11-29 17:57:32 +01:00
mst
f215333002 slidesorter1: #117012# Update preview when text editing ends.
* found as LGPLv3-only fix at svn rev 1172129 (http://svn.apache.org/viewvc?view=revision&revision=1172129)
2011-11-29 17:57:32 +01:00
mst
5b6487aa8c fs34c: #i117666# check first if value is null
* found as LGPLv3-only fix at svn rev 1172125 (http://svn.apache.org/viewvc?view=revision&revision=1172125)
2011-11-29 17:57:31 +01:00