Commit Graph

632 Commits

Author SHA1 Message Date
Noel Grandin
0ac9a10d31 fdo#46808, Deprecate configuration::ConfigurationProvider old-style service
...in favor of existing new-style configuration::theDefaultProvider singleton.

Theoretically, ConfigurationProvider instances can be created with specific
Locale and EnableAsync arguments, but this is hardly used in practice, and thus
effectively all uses of the ConfigurationProvider service use the
theDefaultProvider instance, anyway.

theDefaultProvider is restricted to the XMultiServiceFactory interface, while
ConfigurationProvider also makes available XComponent.  However, dispose must
not be called manually on theDefaultProvider singleton anyway, and calls to
add-/removeEventListener are so few (and in dubious code that should better be
cleaned up) that requiring an explicit queryInterface does not really hurt
there.

This commit originated as a patch by Noel Grandin to "Adapt
configuration::ConfigurationProvider UNO service to new style [by creating] a
merged XConfigurationProvider interface for this service to implement."  It was
then modified by Stephan Bergmann by deprecating ConfigurationProvider instead
of adding XConfigurationProvider and by replacing calls to
ConfigurationProvider::create with calls to theDefaultProvider::get.

Change-Id: I9c16700afe0faff1ef6f20338a66bd7a9af990bd
2012-10-31 15:31:36 +01:00
David Ostrovsky
9e716494a8 fix some VS 2010 specific issues
Change-Id: Iae27a96c1e2ed72d2744fcbe100d6ada7dc41c82
Reviewed-on: https://gerrit.libreoffice.org/914
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-28 18:09:02 +00:00
Noel Grandin
33a0f8ce65 fdo#46808, Adapt awt::Toolkit UNO service to new style
Create a merged XToolkit2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Also mark sub-interfaces as non-optional.

Change-Id: I278d0288e92be277033013302267cf93f7d70480
2012-10-24 16:49:49 +02:00
Noel Grandin
5aa2cd1d3f fdo#46808, use service constructor for uri::UriReferenceFactory
Change-Id: I4e72bf5880fa28cb96d93ede7730a63220af7fa6
2012-10-23 11:45:47 +02:00
Noel Grandin
b3c13b940a sal_Bool->bool in xmlhelp
Change-Id: I509cf60e4bbbe7dfb25a3943d97c9d35a22e0bb6
2012-10-04 21:29:34 +02:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Noel Grandin
3bdc99fe19 remove unused fields
Change-Id: Ia2b2fd7623351377df9a0c76ad27cb6b738bc124
2012-09-26 11:20:35 +01:00
Rene Engelhard
ed5c2c95b7 fix system-clucene/-boost build with gcc 4.4
Change-Id: I95d23e6728571b3f3a6421a05fec814f7c5d059c
2012-09-19 20:48:22 +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
Andras Timar
eaa81cc2f0 move help compiler/linker/indexer to a new module
we may want to use syntax highlighter class from svtools later,
which is not available for l10ntools

Change-Id: I5a06b77cb6935e3ef68015fb608aa26ac7c53fac
2012-09-16 20:41:26 +02:00
Julien Nabet
21fbe158f1 Remove useless variable
Change-Id: Id554c4aba878b329351b2c61e0e90d4515debd6a
2012-09-16 11:38:29 +02:00
Olivier Hallot
72fa23ba0e kill RTL_CONSTASCII_USTRINGPARAM in xmlhelp
+ ::rtl:: drop
(only on rebased files)

Change-Id: I5a773936ceb012b0655cee8db7250b496e088464
Reviewed-on: https://gerrit.libreoffice.org/525
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-09-05 22:10:59 +00:00
Caolán McNamara
715e2109f6 Related: fdo#53337 Maybe this is a typeinfo visibility problem
Change-Id: I024de5b400d0f7a443d4cce7bfe4e88841e6049b
2012-08-24 12:42:25 +01:00
Bence Babati
d9eec8f0f0 embed extension's help tree into main help tree
Change-Id: Iddb3c542f50078b13c7d420b528aa704a5cb0767
2012-08-22 16:50:39 +02:00
Stephan Bergmann
9272ce4e6f -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I40354853ad44024c342babd3b706ce305a059ff4
2012-08-14 10:39:12 +02:00
Caolán McNamara
16f75f1f77 reduce static_initialization_and_destruction chain
Change-Id: I9fdefd428b858fd5581412d6f8e896a0eb680fef
2012-08-09 12:47:03 +01:00
Arnaud Versini
acd3b2f070 Replace usage of rtl/memory.h in xmlhelp with their equivalent from string.h
Change-Id: I02a1af9bac1e1283f33bc204cd8737ebd2ebd06c
2012-07-29 15:01:56 +02:00
Michael Stahl
23e2875473 XML_Parse returns enum XML_Status
Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b
2012-07-12 22:08:10 +02:00
Thomas Arnhold
6fcac7dfc4 Remove unused include files
Those never get included at any point in the code.

Change-Id: I17736e005635b9e57759cfc95176a99e7c5e8988
2012-06-27 13:34:23 +02:00
Caolán McNamara
2c757293b8 reduce static_initialization_and_destruction chain
Change-Id: I0c1b2f2d908c31d1510662880c13504d81445a6a
2012-06-25 14:19:03 +01:00
Thomas Arnhold
66cd9eeb90 Remove various commented out defines
Most of them in hrc files.

Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Takeshi Abe
40bb1f631b removed unused forward declarations of class
Change-Id: I32894b853912741e935e2409d2857fe384f67665
2012-06-18 23:04:20 +09:00
Thomas Arnhold
3770bbbdba Remove superfluous empty lines on top
More than two lines are removed for readability.

Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
Noel Grandin
d08578912f fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update calls to factories to use new SimpleFileAccess::create method

Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-06 10:01:22 +02:00
Thorsten Behrens
c9337a8bfc Targeted string re-work xmlhelp/xmlscript 2012-06-01 16:18:09 +02:00
Caolán McNamara
8512e5c2b3 reduce static_initialization_and_destruction chain
Change-Id: I962aeac0c7feeabb7963016d5afcfeca5a48ccfe
2012-05-16 12:04:10 +01:00
Michael Stahl
aea14bd071 work around spurious signed overflow warnings
gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC):
/rtl/ustring.hxx:1293:233:
error: assuming signed overflow does not occur when assuming that (X -
c) > X is always false [-Werror=strict-overflow]
2012-05-08 11:31:50 +02:00
Thomas Arnhold
135c63c8f9 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-04 15:52:57 +02:00
Caolán McNamara
41135b6dd8 WaE: silence warnings from msvc2008 (again) 2012-04-24 14:24:47 +01:00
Luboš Luňák
b3fcbe7d2b do not export usage of CLucene headers outside of l10ntools
that'd require CLUCENE_CFLAGS everywhere where it's used, and it's not necessary
2012-04-24 07:44:52 +02:00
David Tardon
69bd2f3630 gbuildize xmlhelp 2012-04-07 16:18:26 +02:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Takeshi Abe
643a582793 removed duplicate #includes
in vbahelper / writerfilter / writerperfect / xmlhelp / xmloff / xmlscript / xmlsecurity
2012-04-04 01:39:08 +09:00
Michael Stahl
9429bbb0c4 .component files don't need executable bits 2012-03-23 21:58:14 +01:00
Tor Lillqvist
2a1171929e chmod -x 2012-03-21 13:00:45 +02:00
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Thomas Arnhold
d8fc177009 remove all other deprecated header guards 2012-02-23 12:22:39 +01:00
Caolán McNamara
b06d05fbda reduce try-catch CLuceneError block 2012-02-23 10:31:21 +00:00
Caolán McNamara
97fc40055d not every extension's help will have help in all langs, catch that exception 2012-02-23 10:31:21 +00:00
Caolán McNamara
98d6d98f5c ditch archaic headerguards 2012-02-23 10:31:20 +00:00
Caolán McNamara
d5c14a99dc just link to HelpIndexer 2012-02-23 10:31:20 +00:00
Caolán McNamara
170b9551b2 tweak for cross-platformity 2012-02-23 10:31:19 +00:00
Caolán McNamara
8f6321b775 use different OUString ctor for RTL_TEXTENCODING_UCS4 2012-02-23 10:31:19 +00:00
Gert van Valkenhoef
c4e3596820 HelpIndexer and HelpSearch: remove Java 2012-02-23 10:31:18 +00:00
Gert van Valkenhoef
71231b9ea4 Bugfix resultsetforquery 2012-02-23 10:31:18 +00:00
Gert van Valkenhoef
70a7cd0923 Add C++ HelpSearch and call from XMLHelp. Fix string conversion bug. 2012-02-23 10:31:17 +00:00
Caolán McNamara
796818d7b5 tweak build 2012-02-23 10:31:17 +00:00