Commit graph

5703 commits

Author SHA1 Message Date
Tor Lillqvist
f42a930976 Use prefixes for these UNO components
Change-Id: I719f10818fd211bfe60e5351a5de53a716fdf20f
2012-10-01 21:54:57 +03:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Stephan Bergmann
a00c4e02ac Improvements on previous commit
* Made XDatabaseContext inherit XDatabaseRegistrations non-optionally, adapted
  call-sites to just use XDatabaseContext w/o querying.  (The previous commit
  had inadvertantly effectively removed support for XDatabaseRegistrations from
  the ODatabaseContext implementation, as an optional UNO super-interface does
  not lead to a super-class in the corresponding C++ class hierarchy, but making
  the super-interface non-optional fixes that anyway.)

* Adapted some more call-sites to just use XDatabaseContext w/o querying.

* Added @since tag.

* Replaced new uses of comphelper::ComponentContext::getUNOContext with
  comphelper::getComponentContext (see 03a9f139bd
  "ComponentContext::getUnoContext -> getComponentContext simplification;" I
  intend to get rid of comphelper/componentcontext.hxx much sooner than of
  comphelper/processfactory.hxx).

Change-Id: I68d09f2dbe651629f79ed21cd40cdb6d6b32c624
2012-09-27 15:03:32 +02:00
Noel Grandin
9c00e38b43 fdo#46808, Adapt sdb::DatabaseContext UNO service to new style
Create a merged XDatabaseContext interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Quite a few IDL files had to be marked as published for this to work.

Change-Id: Ie9a0da88d8c33cc83fc9d2334ff83ab2744c222f
2012-09-27 15:03:32 +02:00
Norbert Thiebaud
750fc20611 replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
Stephan Bergmann
c67fedbd56 To ease debugging, display printStackTrace of caught exceptions in jdbc driver
Change-Id: I8c48b09fcab18af196a8441351bcf3180a32005b
2012-09-24 09:52:38 +02:00
David Ostrovsky
e1df1995d8 MResultSet WaE fixed
Change-Id: Ie7261c651c20350fb69fe2ed55f8272a3db132ba
2012-09-21 08:21:07 +02:00
David Ostrovsky
2511e6625d mork driver: refactoring query engine
Change-Id: Ia8dd0c29b4624601d8cb85cece0fcb2842c2d2f9
2012-09-20 23:57:53 +02:00
Stephan Bergmann
730ba5d732 OResultSet: close() is routinely called after dispose()
Change-Id: Ifb916e0c2935876b85fdb135538357f29cfab157
2012-09-19 16:53:22 +02:00
Stephan Bergmann
f9a05f4ddf Some mork driver clean-up and configmgr access fix
Change-Id: I213a9ac5b41c66cd039016315f4641773364fd7c
2012-09-19 16:15:05 +02:00
Stephan Bergmann
58d24271ff Assuming the double iteration is a copy/paste snafu
...causes "error: attempt to increment a past-the-end iterator." with debug-mode
libstdc++.

Change-Id: I89af3944b04ad6ab4ef3561d2aa91b5bab1edf20
2012-09-19 16:15:04 +02:00
Stephan Bergmann
4f18490ca6 Clean up warning/info reporting
Change-Id: Ib2a8da9f837b0b91f980aacda9df1c6c5c691eef
2012-09-19 16:01:44 +02:00
Stephan Bergmann
03a9f139bd ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.

Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
Norbert Thiebaud
b854de954f deprecate oustringostreaminserter.hxx
the intent of this header has canged over time. now it is already
systematically included with ustring.hxx and the operator overload it
provide fit nicely there...

Just to be safe, since that include as been added to the api during the
3.5 timeframe and therefore is already in 'production'
the header remain and simply attempt to include ustring.hxx
but a warning is issued indicating that this header should not be used
anymore... in a couple of major release we will thenr emove it completely

All internal users of that header are converted.

Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad
Reviewed-on: https://gerrit.libreoffice.org/634
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-18 10:10:06 +00:00
David Ostrovsky
77e4adbe47 mork driver implementation
This is a preparation for merge into master, feature/mork
branch is obsoslete and shouldn't be used any more. In
context of this change the usage of old mozilla based mork
driver depends on platform: all non windows platforms use
this new mork driver, windows still uses mozilla.

Because mozilla driver shipping was stripped on feature/mork
branch for all platforms, the corresponding commits were
changed prior to creating this change (the build file changes
are reverted now). So the build and shipping of different mork
driver implementation should be implemented from scratch:
mozilla on windows, new mork dirver on all other platforms.

Currently the new mork dirver is compiled (on all platforms),
but not used. It can be tested with mork_helper executable.

fdo#51004

Change-Id: Ib2413ab6856f163337aa311c4bf7b1182d6c6f63
Reviewed-on: https://gerrit.libreoffice.org/635
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-18 08:30:01 +00:00
Noel Grandin
369e3fdcda fdo#46808, Adapt i18n::LocaleData UNO service to new style
The implementation of the LocaleData implements the optional XLocaleData4,
so rather than creating a new interface for the new-style service, we simply
make the service implement XLocaleData4, which in turn implements
XLocaleData3, XLocaleData2, XLocaleData.

Change-Id: I3e9a48b031be6b2aa5e04b376b3940b942add85a
2012-09-17 14:28:21 +02:00
Stephan Bergmann
9ac86f484b Improvement on previous commit, UCB clean up
* As UCB is only ever initialized with "Local"/"Office", remove this
  configuration vector completely.  The "create" ctor creates an instance
  internally initialized with those "Local"/"Office" keys.  Special (test) code
  can still instantiate an uninitialized one via plain createInstance.  And for
  backwards compatilibity process startup still ensures to create an initialized
  instance early, in case there is still code out there (in extensions) that
  later calls plain createInstance and expects to get the already-initialized
  (single) instance.

* XInitialization is an "implementation detail" of the UniversalContentBroker
  service, do not expose in XUniversalContentBroker.

* ucbhelper/configurationkeys.hxx is no longer needed and is removed.

* ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that
  requires ucbhelper::Content constructors to take explicit XComponentContext
  arguments now.

* The only remaining code in ucbhelper/source/client/contentbroker.cxx is
  Android-only InitUCBHelper.  Is that relevant still?

Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14 18:24:49 +02:00
Norbert Thiebaud
1126ecef09 WaE in connectivity
Change-Id: I2c9e83611fab1e9c4c998af68648df994f89cd6b
2012-09-14 03:49:22 -05:00
Stephan Bergmann
65006ffb0b -Werror,-Wunused-private-field (connectivity/source/drivers/kab)
...and some related clean up.

Change-Id: I26a8720fb7f60615f2e348e4728a3abddf6a33cd
2012-09-13 13:32:27 +02:00
Caolán McNamara
843c83f640 WaE: fix some "empty body" warnings on Mac
Change-Id: Ib65d9dac988851fa90a44cad246ac24e8bfd3370
2012-09-12 22:53:29 +01:00
Michael Stahl
1488e24a34 connectivity: fix some "empty body" warnings on Mac
Change-Id: I832b369d87da9b622759bf7ddd14f95475256c38
2012-09-12 20:22:36 +02:00
Stephan Bergmann
a11940a871 "using namespace ::com::sun::star" caused sdbcx::... ambiguity
Change-Id: I18573cb3c0b70996e3787028fff1a376bded02c4
2012-09-03 18:34:19 +02:00
Noel Grandin
3a36408b73 fdo#46808, Adapt util::NumberFormatter UNO service to new style
Create a merged XNumberFormatter2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I57f35cde0a9dbbe91c1d2c3d068cb3a97c7245e3
2012-09-03 15:55:06 +02:00
Stephan Bergmann
886a3640e2 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I55d99ff74de5825e239772160735a8b0d87cb122
2012-08-31 09:04:14 +02:00
Stephan Bergmann
5466323a8b -Werror,-Wunused-value (Clang towards 3.2)
Change-Id: I2ebaa95bdb446ec10ab015ad2a792e750859da7f
2012-08-31 09:04:14 +02:00
Stephan Bergmann
b60bc27231 '/*' within block comment [-Wcomment] (Clang towards 3.2)
Change-Id: I9c8f631476c15a8f34106af4f9923fef84fc86dd
2012-08-31 09:04:13 +02:00
Noel Grandin
8638f1e72a fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-27 15:40:07 +02:00
Caolán McNamara
ff74564b39 callcatcher: update unusedcode
Change-Id: I18f823b99349002bb148d474a6a9aabdf2d419ef
2012-08-23 14:25:14 +01:00
Matúš Kukan
091c1b6fc5 more old module-description xml files
Change-Id: I9ac503b073ee3f9b8e7958264ffcc26d9446c220
2012-08-22 23:27:34 +02:00
Caolán McNamara
78b2d4d00d callcatcher: update list
Change-Id: Id297f32de5fba9d17fec89d2f8ea21c5d1a2a4bc
2012-08-22 12:08:22 +01:00
Lionel Elie Mamane
e8409cbd72 fdo#53887 ConvertLikeToken(): make escape character properly escape itself
Change-Id: Ic2b79e78f95e298a08794fa11f227d76152244f5
2012-08-21 19:30:20 +02:00
Lionel Elie Mamane
cc430308c3 Put functions exported by sqlbison.hxx into a .hxx file
Change-Id: Ibf4fed39e4d36cb03d079cf55a12d4ec37a70f2b
2012-08-21 19:30:18 +02:00
Noel Power
d88325f73e Revert "fix for fdo#48200.diff import regrex state for filter"
This reverts commit 094654fceb.
2012-08-16 17:43:12 +01:00
Noel Power
094654fceb fix for fdo#48200.diff import regrex state for filter
Change-Id: I46b07341e96d78130e6301e40fa32df6ed2c7879
2012-08-16 17:40:05 +01:00
Jung-uk Kim
ed93117447 fdo#53061: Fix for C++11 #define NULL nullptr
Change-Id: Ia1805aab4bec7fef02c96ec4e7a7a0ed9991d3c3
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-08-14 10:39:13 +02:00
Caolán McNamara
c8218367a0 callcatcher: update list
Change-Id: If9b76e5282c22a479ff709174fbc8ee4d3c337cc
2012-08-13 10:53:42 +01:00
Stephan Bergmann
f50a41437e fdo#53246 Fresh postgresql-sdbc implementation names
The descriptions for fdo#53246 "Libo36 does not start, InvalidRegistryException
from program/services/postgresql-sdbc.rdb" make it look like the user had
installed the functionality that comes bundled in postgresql-sdbc.rdb also as an
extension installed per-user or shared.
<http://wiki.documentfoundation.org/PostgreSQL-SDBC> indicates that what is now
bundled due to c97d74b5f0 "fdo#45090: Changed
postgresql-sdbc from bundled oxt to proper optional part" indeed was once
available as a freestanding postgresql-sdbc-*.oxt that could have been installed
per-user or shared.

To prevent problems with such scenarios, rename the relevant implementation
names by adding a ".noext" suffix.

Change-Id: I43414a64461ba643f0ca0b2749450099cb6c8a4d
2012-08-13 10:05:57 +02:00
Arnaud Versini
4d210ad17d Replace usage of rtl/memory.h in connectivity with equivalent from string.h
Change-Id: I0284aedfd831e8af001534c5ce8a39c3a11214fa
2012-08-07 23:13:46 +02:00
Christophe JAILLET
cf239da5c4 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-06 12:22:10 +01:00
Thomas Arnhold
c04c2114d9 Remove unused macros
Change-Id: I184a7f9c65dd762407b2431d9c6557e718b954b2
2012-08-05 20:31:47 +02:00
Terrence Enger
8cd92447d7 stop some leaked statement handles
Change-Id: I06764e0569ea615e66de6cd5946614c7c538e60e
Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2012-07-19 11:50:33 +02:00
Terrence Enger
ae56c4e025 ODBMetaDataRS ctor: abort if statement handle allocation failed
Change-Id: Ieac069565bbc14c909eeecf3e67588191191992f
Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2012-07-19 11:47:08 +02:00
Terrence Enger
1c3c15081f avoid freeing the NULL handle
Change-Id: Id3f22bacfbf5e582656cc8ac38d60b781a25b4c3
Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2012-07-19 11:40:10 +02:00
Miklos Vajna
e2a443f520 fix error: ‘cerr’ is not a member of ‘std’
Change-Id: I0e2988e99f4a333cf147e41c069913180e94ec93
2012-07-17 09:29:16 +02:00
Lionel Elie Mamane
1e89c6f3d1 fdo#51239 refresh row lazily (when data is requested)
This avoids fetching data that will not be requested when the "cursor" is only moved and no data requested. That is typically what RowSetCache does when its own cursor is moved within its window.

This basically makes the whole {next,previous,absolute,...}_checked story obsolete, by basically always being as fast as the i_bFetchRow==false case, but in a safer way.

Change-Id: I89eaf277069736b3077bde8b45325929db290f2d
2012-07-17 09:19:45 +02:00
Christophe JAILLET
df645a2bd8 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
2012-07-16 11:33:05 +01:00
Caolán McNamara
bfcaa777c4 callcatcher: update unused code list
Change-Id: I045ac2928d4b8cf99f9f76c20a9e489adc34ed66
2012-07-15 22:36:52 +01:00
Thomas Arnhold
5a7e8389f0 hrc cleanup: Remove include guards from src files
Change-Id: I7d52837f4058bab1bb5a0137788521d12834d519
2012-07-14 05:43:47 +02:00
Christophe JAILLET
a767448225 Search for char instead of 1 char long string, when possible.
It is faster and even avoid memory allocation somtimes.

Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
2012-07-13 16:36:04 +02:00
Michael Stahl
2c5cff6930 pq_allocator.hxx: work around spurious MSVC warning
Change-Id: I6c516e4bd125c4075c195980a2fcdb58382c38dd
2012-07-11 00:15:05 +02:00