Commit graph

10209 commits

Author SHA1 Message Date
Lionel Elie Mamane
37b5dce665 ORowSetCache: handle case total data < m_nFetchSize
As a drive-by: fillMatrix update m_nEndSize
2012-02-08 13:22:16 +01:00
Caolán McNamara
849a2471bd update unused list 2012-02-08 09:12:27 +00:00
Josh Heidenreich
b5fa0ec905 Added READMEs for modules used by LibO Base and LibO Calc. 2012-02-08 07:46:58 +01:00
Tor Lillqvist
f8d30ec82d Attempt to disable database connectivity for iOS for now 2012-02-06 16:57:40 +02:00
Norbert Thiebaud
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06:00
Korrawit Pruegsanusak
97e3d1faef remove glitch in sbase dialog 2012-02-01 16:45:48 +07:00
Caolán McNamara
2762c6dcc1 make dbaccess ByteString free 2012-01-31 22:20:21 +00:00
Caolán McNamara
ea44fbc87f useless aFontNr 2012-01-31 22:19:19 +00:00
Lionel Elie Mamane
5f34f5a859 ORowSetCache: keep m_nEndPos better up-to-date 2012-01-31 22:55:04 +01:00
Lionel Elie Mamane
f96a392d2e fdo#45453: use integers rather than booleans
for always-true and always-false tests.
Some databases have poor or no support for booleans.
2012-01-31 21:33:25 +01:00
Stephan Bergmann
6fca59d9c2 Simplify code by making getProcessComponentContext() implicit. 2012-01-31 17:26:57 +01:00
Matteo Casalin
648f6ac7c5 Do not forward declare Splitter or include its header file if unneeded 2012-01-30 22:42:26 +01:00
Caolán McNamara
e216078272 reduce unnecessary includes 2012-01-30 13:18:36 +00:00
Korrawit Pruegsanusak
a1275f841a use SAL_CALL - fix bulid in msvc 2012-01-30 11:41:52 +00:00
Stephan Bergmann
e8bb827571 Fixed cppheader.xsl nillable treatment.
* cppheader.xsl had initially been written under the false assumption that a
missing oor:nillable attribute defaults to "false" instead of "true".  That has
been fixed.
* As a result, many places that use the new simplified officecfg/*.hxx headers
broke as they did not expect value types to be wrapped boost::optional.  To keep
the code simple, I decided to change all occurrences in
officecfg/registry/schema/ of properties that specify a default <value> and do
not explicitly specify oor:nillable="true" to oor:nillable="false".  Strictly
speaking, this is an incompatible change, but in many cases it should be what
was intended, anyway.
* Some places that use the new simplified officecfg/*.hxx headers still had to
be adapted to boost::optional wrapping.
* This showed that unotools/configuration.hxx did not yet work for those wrapped
properties and needed fixing, too.
2012-01-30 12:27:47 +01:00
Lionel Elie Mamane
b86c6ac65c Disable Adabas UI, too 2012-01-27 06:57:28 +01:00
Stephan Bergmann
a2195b2dc3 Replace SourceViewConfig with (simplified) direct configuration access. 2012-01-25 18:18:52 +01:00
Julien Nabet
82a061079a Fix fdo#44040 VIEWING: Crash when page preview after <f4> (data sources)
Caolán fixed Iterator management which was buggy. (thank you !)
2012-01-23 21:09:24 +01:00
Ivan Timofeev
924d0bdd47 add the "Send Feedback..." help menu item 2012-01-23 12:37:07 +01:00
Lionel Elie Mamane
520b8118f4 ORowSetCache::fillMatrix(): fix case m_nFetchsize > table size
When lowering m_nStartPos, do not duplicate rows above its old value
2012-01-23 10:22:48 +01:00
Lionel Elie Mamane
b026e5a4a1 ORowSetCache::fillMatrix(): correct off-by-one error
Symptom: segfault.
Thanks to Julien Nabet for precise pointer to problematic code.
2012-01-22 01:37:08 +01:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Lionel Elie Mamane
1234d599d4 ORowSetCache: overhaul internals 2012-01-19 21:08:10 +01:00
Lionel Elie Mamane
b2345f6d18 janitorial: don't rely on detail of current OSL_ENSURE implementation
As in: that the compiler won't see the variables in the condition when OSL_DEBUG_LEVEL==0
2012-01-19 21:08:10 +01:00
Lionel Elie Mamane
ef08c38172 Oups... where is my brown paper bag? 2012-01-18 13:55:45 +01:00
Lionel Elie Mamane
773668c6ab OKeySet: tryRefetch and refreshRow share most of their code 2012-01-18 13:13:59 +01:00
Lionel Elie Mamane
c2567a6587 janitorial: typo in comments 2012-01-18 12:37:23 +01:00
Lionel Elie Mamane
3623701d65 fdo#44813: make the refresh query filter NULL-safe 2012-01-18 12:37:11 +01:00
Marcel Metz
2a566b1775 Replaced SAL_INFO with SAL_WARN were applicable. 2012-01-17 23:27:44 +01:00
Lionel Elie Mamane
a63d7020ce janitorial: typo in private member name 2012-01-17 15:47:45 +01:00
Lionel Elie Mamane
d30ecc1a23 janitorial: const iterator where may be, indentation 2012-01-17 15:47:45 +01:00
Lionel Elie Mamane
a261e36481 fdo#44813: don't replace NULLs given by the database by type-default values
It makes no sense, because non-nullable columns can have NULL value.
E.g. in "foo LEFT JOIN bar ON condition", the non-nullable columns of "bar"
when it has no row matching "condition".

Even when we are about to insert/update a row, we should not put a
hard-coded value (that just happens to be the one constructed by the
C++ default constructor for that type) in non-nullable columns: there
is no guarantee that this value makes sense in that database's context.
The database may or may not have a default value set for that column.
If it has, we should leave it up to the database to set it automatically.
If it has not, an error *is* the right reaction.

Another place where this substitution does damage is when we refresh a
row. We use the values we have read from the primary key to select the
row again. So we should not mangle those, else the select returns no
row and we mistakingly think the row has been deleted.
2012-01-17 15:47:43 +01:00
Marcel Metz
a18123fb97 Replaced DBG_ERRORFILE with SAL_INFO. 2012-01-16 12:51:33 +01:00
David Tardon
5f166e1d7f WaE: deleting object of abstract class type with non-virtual destructor 2012-01-15 20:27:21 +01:00
Eike Rathke
92bf1c3f60 use INCLUDE instead of SOLARINC, and after local includes 2012-01-13 22:42:33 +01:00
Caolán McNamara
5ac8641b12 these OnInvalidateClipboard don't have to be LINKs 2012-01-13 09:05:59 +00:00
Caolán McNamara
3c62fbcdd7 simplify LocalFileHelper::ConvertURLToPhysicalName 2012-01-10 10:09:28 +00:00
Marcel Metz
5b031b4ea6 Remove superfluous _ZFORLIST_DECLARE_TABLE definition. 2012-01-07 22:14:05 +04:00
Marcel Metz
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00
Marcel Metz
5845c5b6ec Removed unnecessary tools/link.hxx includes. 2012-01-06 23:55:50 +01:00
Michael Stahl
23dd856d3c Merge branch 'feature/gbuild_extensions'
Conflicts:
	extensions/source/ole/servreg.cxx
	extensions/source/plugin/util/makefile.mk
	postprocess/packcomponents/makefile.mk
	postprocess/prj/build.lst
	tail_build/prj/build.lst
2012-01-06 21:09:13 +01:00
Caolán McNamara
2d3203b2db make ReadUniOrByteString return a string 2012-01-06 09:52:42 +00:00
Marcel Metz
53d27eb207 Removed unnecessary tools includes. 2012-01-05 15:38:51 +01:00
Marcel Metz
a1cfce768f Removed unnecessary tools includes. 2012-01-05 15:38:11 +01:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Caolán McNamara
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
Caolán McNamara
30ec94d8d4 WaE and build fixes for OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:14 +00:00
Norbert Thiebaud
1c6f4e6ff7 fix dep to svx/globlmn.hrc inside of tail_build 2012-01-04 01:48:49 -06:00
Lior Kaplan
14c0e038c9 Clean non English strings in the code
we do translation differently.
2012-01-02 22:35:33 +02:00