Commit graph

10086 commits

Author SHA1 Message Date
Michael Stahl
8666469d7b #i108468#: clean up xmluconv code duplication, measured approach:
modify sax::Converter::convertMeasure to use sal_Int64 instead of BigInt:
  should be sufficient, since the largest number is SAL_INT32_MAX * 10^7.
 remove duplicate methods from SvXMLUnitConverter:
  convertMeasurePx, convertMeasure (static variants)
 remove entirely duplicative class SvXMLExportHelper:
  GetConversionFactor, GetUnitFromString, AddLength
 change SvXMLUnitConverter interface from MapUnit to css::util::MeasureUnit.
 change SvXMLExport constructor params from MapUnit to css::util::MeasureUnit.
 rename some methods to turn compiler into merge conflict detector :)
2011-10-11 17:57:01 +02:00
Michael Stahl
ae3e2f1700 #i108468#: clean up xmluconv code duplication, DateTime edition:
remove duplicate methods from SvXMLUnitConverter:
  convertTime (all variants), convertDateTime (DateTime variants),
  convertTimeDuration.
 move convertAny from SvXMLUnitConverter to sax::converter.
2011-10-11 17:57:00 +02:00
Michael Stahl
3ca2bef768 #i108468#: clean up xmluconv code duplication, part 1:
move convertNumber64 from SvXMLUnitConverter to sax::converter.
 remove duplicate methods from SvXMLUnitConverter:
  convertBool, convertPercent, convertColor, convertNumber, convertDouble,
  indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars,
  clearUndefinedChars
2011-10-11 17:57:00 +02:00
Michael Meeks
9142f9a1a1 WaE: win32 cleanup 2011-10-07 16:30:52 +02:00
Caolán McNamara
9a8593e69f ByteString->rtl::OStringBuffer 2011-10-05 10:41:04 +01:00
Bjoern Michaelsen
e94a19f3e0 simplfy dmake to gbuild bridgefile 2011-10-05 00:31:50 +02:00
Caolán McNamara
1b78b83fbd tweak ambiguities for F-15 gcc 4.6.1-9 2011-09-30 09:09:26 +01:00
Caolán McNamara
2774cab826 add modelines 2011-09-29 09:33:46 +01:00
Caolán McNamara
44eb2b3355 remove archaic header guards 2011-09-29 09:33:46 +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
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Tor Lillqvist
4f3e9f30a0 Always link with user32 2011-09-22 15:46:15 +03:00
Caolán McNamara
5ab3360cf7 WaE: unused variable 2011-09-21 16:09:17 +01:00
Thomas Arnhold
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
Stephan Bergmann
c9b1cb5ae3 Avoid premature deletion of objects in ODatabaseContext::m_aDatabaseObjects.
Access of deleted objects found with valgrind/memcheck of dbaccess/qa/unoapi.
2011-09-19 21:40:11 +02:00
Michael Stahl
f69eb5b703 dbaccess: databasecontext.cxx: copy m_aDatabaseObjects
this fixes an STL assertion due to invalidated iterator.
2011-09-15 14:07:30 +02:00
Michael Stahl
3c6d38fed0 dbaccess: RowSet.cxx: update m_bIsInsertRow
fixes an STL assertion; this line was accidentally removed in merge commit
bc3bbd2bb4
2011-09-15 14:07:29 +02:00
Lionel Elie Mamane
b89da4bbb9 Type: BROWSER_INVALID_ID -> BROWSER_INVALIDID 2011-09-12 17:46:56 +02:00
Lionel Elie Mamane
f7ed67f2cf cleanup BrowseBox, DbGridControl & friends handle & invalid column handling
- BrowseBox: Check Handle column-related invariants when adding a
   column:
   # only one handle column
   # it is the first

 - BrowseBox: Check column id-related invariants when adding a column:
   # Id is not the special "handle column" value
   # Id is not the special "invalid ID" value
   # unicity of the ID among columns

 - GetColumnId: return BROWSER_INVALIDID, not 0 (== id of handle
   column) for an invalid column; adapt code calling GetColumnId to
   this change.

 - Use the correct const or #define'd symbol instead of magic
   constants; introduce such a symbol if needed

 - General other miscellaneous cleanups:
   # Translation of comments
   # typo/spelling in comments, error messages and the like
   # parenthesise #define'd value
   # use SAL_MAX_UINT16 instead of USHRT_MAX where a sal_uInt16 is
     expected
   # BrowseBox::SetColumnTitle: nItemId is checked to be non-zero, so
     don't test if for zeroness again.
2011-09-12 16:40:51 +02:00
Lionel Elie Mamane
fea84e0041 typo in parameter name 2011-09-12 16:40:51 +02:00
Caolán McNamara
07f9a847f0 callcatcher: various unused methods 2011-09-12 09:09:59 +01:00
Jenei Gábor
bc0a497f08 Fixes fdo#36594 Syntax error in SQL on "--" comment (and "//" and "/**/")
The SQL parser implementation does not handle comments.
Temporarily remove "-- ..." and "// ..." end-of-line comments and "/* ... */"
inline comments of a query and append comments after recomposition of the
query.

NOTE: The original comment positions are not preserved, all comments are
      appended to the query!

Based on the original patch further development was done for inline comments
and preserving comments' line order.
2011-09-03 01:19:51 +02:00
Julien Nabet
78c1a9f5c4 Some cppcheck cleaning 2011-09-01 21:34:19 +02:00
Caolán McNamara
8de61c9fb6 grabbag of unused code 2011-08-31 10:43:23 +01:00
Caolán McNamara
2f5856b20d WaE: dbglevel=2 2011-08-30 09:32:23 +01:00
Caolán McNamara
01f5362e79 String::CreateFromInt64->rtl::OUString::valueOf 2011-08-25 09:42:07 +01:00
Jan Holesovsky
326494b71c gb_Library_set_cxxflags -> gb_Library_add_cxxflags 2011-08-24 01:33:44 +02:00
Noel Power
117281ba12 fix leaking 'Pictures' streams from basic dialogs in base
With database document, any contents of the Pictures folder ( afaics only basic dialogs store content here ) is never cleaned up between saves.
2011-08-22 15:44:55 +01:00
Norbert Thiebaud
d64bbd6bf8 detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly set 2011-08-19 18:29:07 -05:00
Caolán McNamara
d1fb13adf9 convert tools::Config to rtl::OString 2011-08-19 09:30:44 +01:00
Norbert Thiebaud
ff20c561ac odbcconfig is not a console application 2011-08-13 07:17:08 -05:00
Caolán McNamara
58ee09b87b ByteString, shrink api 2011-08-12 11:51:11 +01:00
Kohei Yoshida
f871b281c9 No more FORWARD_DECLARE_INTERFACE in dbaccess. 2011-08-11 19:53:21 -04:00
Takeshi Abe
b2bd33ea25 prefer makefile-gmake-mode to plain makefile-mode 2011-08-10 02:12:48 +09:00
Gabor Jenei
8dd90858a2 patch for xmlfilter.cxx 2011-08-09 14:48:08 +01:00
Caolán McNamara
13ff96fe03 fix assert, names expected to be sorted 2011-08-08 13:04:43 +01:00
Caolán McNamara
4b596c2e54 use SAL_N_ELEMENTS 2011-08-08 13:04:43 +01:00
Takeshi Abe
30fea02f30 Emacs modeline compatible with vim's one 2011-08-05 10:55:09 +09:00
Kohei Yoshida
fdfc75797e Use rtl::OUStringHash. 2011-08-04 21:31:14 -04:00
Caolán McNamara
b82efddccf callcatcher: remove unused code 2011-07-31 23:52:16 +01:00
Caolán McNamara
f014ba75fd convert to new api
this code looks suspiciously like a no-op, i.e. that the intent
is to append the generated string, but the old code threw
away the string, so not a new bug but in there since 2001
2011-07-31 21:12:56 +01:00
Tor Lillqvist
36aeabdc8b Add consistent Emacs and vim mode lines 2011-07-30 23:01:01 +03:00
Jan Holesovsky
c2a7f87b92 Merge commit 'libreoffice-3.4.2.3' 2011-07-28 10:14:00 +02:00
Caolán McNamara
bc04067352 catch by const reference 2011-07-26 23:02:25 +01:00
Bjoern Michaelsen
d8fa358911 Merge branch 'master' into feature/gnumake4 2011-07-24 19:22:58 +02:00
Bjoern Michaelsen
dae8595066 revert to dbaccess gbuildization from master mostly
* only add JunitTest_dbaccess_complex, which was missing on master
* disable complex.dbaccess.DatabaseDocument in JunitTest_dbaccess_complex for
  now as it fails
2011-07-23 10:13:13 +02:00
Kohei Yoshida
2835baa19e Adjusted for HTMLParser::GetOptions return type change. 2011-07-22 16:04:43 -04:00
Bjoern Michaelsen
53e20b0c77 postmerge fixes for gnumake4 2011-07-22 21:26:31 +02:00
Tor Lillqvist
c7ed86bbe6 Plug MinGW gaps 2011-07-22 14:58:37 +03:00
Tor Lillqvist
ae29172571 Do compile adodatalinks.cxx always for Windows
Don't test any bogus PROF_EDITION, and don't bother with
WINDOWS_VISTA_PSDK either.
2011-07-22 14:56:26 +03:00