Commit graph

1722 commits

Author SHA1 Message Date
Stephan Bergmann
2a32bf29b9 Make getProcessComponentContext/ServiceFactory throw instead of returning null
...with the same rationale as recent 543158edba
"Require XComponentContext.getServiceManager to throw instead of returning null"
(this helps find problems like 065a758d0c2b66c6683d648347b7a6cdef4a80f7 "Enable
experimental gtk3 plugin only via SAL_USE_VCLPLUGIN").

Removed comphelper::createProcessComponent[WithAguments] and replaced its few
uses with direct calls to createInstance[WithArguments].

Change-Id: Ia44b8656f74de88ef6eab3eb6bd597729b08e1c8
2012-09-18 15:08:56 +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
Julien Nabet
d7515f60dc Simplify AutoOGuardArray + rename private attribute
Change-Id: I9d651303fb80ef5c81d608e56a87cb9548c13f8f
2012-09-15 15:16:04 +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
Kohei Yoshida
a663931200 First cut on integrating liborcus into libreoffice tree....
It introduces the 'FilterProvider' property in the media descriptor
to optionally bypass the normal loading process and let the external
filter provider to handle the loading.

For now I'm overwriting the csv import filter just to see how this
could work just as an experiment.

Orcus still needs a lot of work, and it crashes very often at the
moment.

Change-Id: I11b34572c71073144804a7d0dd5176c8067d8deb
2012-09-07 09:10:34 -04:00
Noel Grandin
b679a2a021 fdo#46808, Adapt reflection::CoreReflection UNO service to new style
The XComponent part of the interface made no sense for a singleton,
so it was removed.
Explicitly document the 'theCoreReflection' singleton and move it
into it's own file.
Deprecated the now old CoreReflection service.

Change-Id: Ib8befa87c7da7eb53a2f587948fd54a64c082472
2012-09-05 15:46:55 +02:00
Noel Grandin
206c70eef3 fdo#46808, Adapt TempFile UNO service to new style
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-08-27 15:40:08 +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
Arnaud Versini
1cd0f1bdb5 Replace usage of rtl/memory.h in comphelper with equivalent from string.h
Change-Id: I41d452aa4892606d127e9565cf83c21f78a67392
2012-08-25 12:41:28 +02:00
Stephan Bergmann
fcd990f208 Some clean up after previous commit
Change-Id: Ie419c769c5d661d51c1b43b9808791dcf9e1725c
2012-08-23 09:58:25 +02:00
Noel Grandin
3e7990faa4 fdo#46808, Shiny UNO, Use factory to create XSimpleFileAccess instances
Change-Id: I86e2a8873e5646abd340015f500bf9e872e8e6c5

Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-08-23 09:58:25 +02:00
Michael Stahl
08ab21f27f SwXTextTable: add "TableBorder2" property
This new property is necessary because the old TableBorder cannot be
extended to contain the BorderLine2 structs without breaking
compatibility.

Change-Id: I5e22782256b29224225a9d74c818b2c47fee8526
2012-08-20 12:42:46 +02:00
Michael Stahl
5a4bcd3b75 gbuild: register all jars
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-17 12:52:25 +02:00
Matúš Kukan
e3648d4ebc Revert "Cleanup comphelper::storagehelper"
This reverts commit 72777a66bb.

+using namespace com::sun::uno; in header is not a good idea
Fails to compile and is hard to parse and figure out what was the point,
so just reverting.
Also +using rtl::OUString; is automatic nowadays whenever possible and
RTL_CONSTASCII_USTRINGPARAM is obsoleted.

Change-Id: I24cb24b7f1a6007734d26cbba41d46323cb55b18
2012-08-16 21:54:18 +02:00
Tomaž Vajngerl
72777a66bb Cleanup comphelper::storagehelper
Change-Id: I04313cf4235ce3db20ff340474691435e9b440b6
2012-08-16 20:47:15 +02:00
Stephan Bergmann
cbe5a8c858 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I213bc96fd6c9049c0dba0a527e827ae5d8f0ace3
2012-08-14 10:39:11 +02:00
Thomas Arnhold
2beba8f93e reduce ascii noise and useless comments
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08 13:53:54 +02:00
Thomas Arnhold
49ad17e2b1 remove include comments and boxes
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Thomas Arnhold
87f242e036 remove empty ascii boxes and stuff III
Change-Id: I8b54e8518c219a7edd7e29173a1099611a7e0dbb
2012-08-07 18:08:29 +02:00
Thomas Arnhold
d1ba5419cf Remove non-existing forward declarations
Those classes don't exist. So remove friend class operators too.

Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-08-07 13:45:26 +02:00
Fridrich Štrba
cf2bdd6594 Fix windows build where min and max are macros
Change-Id: I59186db4003564b0b9c202456b7fdf91eaa67751
2012-08-02 10:23:15 +02:00
Stephan Bergmann
889de665ec Typo ressource -> resource
Change-Id: Id13e7acfbe34eca5e124c9032d36d6f158bfb831
2012-07-30 09:26:00 +02:00
Thomas Arnhold
8849f13ea3 Partially revert "Remove unused defines"
This partially reverts 8ca21893e5

http://lists.freedesktop.org/archives/libreoffice/2012-July/035331.html

Change-Id: Iae4347a26b1f388bc5e780d24ab7371ffac8b1f8
2012-07-28 19:48:46 +02:00
Stephan Bergmann
cf7c9599e7 Make comphelper/configuration.hxx work for localized properties
See aebf5bf223 "fdo#52232 ConfigurationSet wrapper
unusable for localized properties" for a discussion of the problems with the
original design.

1  Redesigned configmgr's localized property access to understand ['*<locale>']
paths that select the best existing value match for the requested <locale>.
Adapted ConfigurationWrapper::getLocalizedPropertyValue accordingly.

2  Redesigned ConfigurationChanges to fix the locale at instantiation time.
That takes care of ConfigurationWrapper::setLocalizedPropertyValue,
ConfigurationWrapper::getGroupReadWrite, and
ConfigurationWrapper::getSetReadWrite.  (This required an additional constructor
parameter for the ReadWriteAccess service, to specify a locale at instantiation
time.)

3  Redesigned ReadOnlyAccess to be a service that fixes the locale at
instantiation time.  That allows to take care of
ConfigurationWrapper::getGroupReadOnly and ConfigurationWrapper::getSetReadOnly.

Change-Id: I2ae7342b278b6f4222a0189a1deb2a53e204059f
2012-07-25 19:10:19 +02:00
Michael Stahl
e5762c8488 mhu24: add comphelper::newArray_{null,ex} helpers
Change-Id: I5cba60c8a14fc8d0adc0c4c5273aabbdd9830f91
2012-07-24 11:37:41 +02:00
Stephan Bergmann
deae1af649 Fix sense of SAL_WARN_IF conditions
Change-Id: Idd3dea4e42eb7f63447e1f804d90e991c801cdd3
2012-07-18 14:42:30 +02:00
Matúš Kukan
31b05fe9ff unusedcode: drop CellBlock and one small method
Change-Id: I7cad80ea59b4527193a35ea1b7cfdd56e07a0efe
2012-07-16 07:28:31 +02:00
Thomas Arnhold
1340890ccd simplify include guards
Change-Id: Id4210229b20a1d54b680ff1a2ccbcdd3684ecf5f
2012-07-14 05:44:15 +02:00
Michael Meeks
fdda178d88 targetted improvement of UNO API includes / usage 2012-07-02 14:43:34 +01:00
Thomas Arnhold
8ca21893e5 Remove unused defines
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
2012-07-01 18:33:41 +02:00
Noel Grandin
0dae234811 Java5 update - use generics in code, and general cleanup
Change-Id: I6f2490c48a9d6dbb7de4917c07d5c1fb36c58777
2012-06-29 22:03:03 +02:00
Michael Meeks
2005a34318 re-base on ALv2 code. 2012-06-29 15:51:49 +01:00
Frank Schoenheit [fs]
7be964961f gridfixes: #i117265# implement less-predicate for Date/Time structs 2012-06-29 15:51:44 +01:00
Thomas Arnhold
4c4d748767 Remove some more include guards
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-29 09:25:10 +02:00
Thomas Arnhold
57154616f0 Remove UNO includes comments
Change-Id: I48e193322967fb75e93eaf81e9e2110d3056f92a
2012-06-29 09:25:09 +02:00
Michael Meeks
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
Caolán McNamara
2c757293b8 reduce static_initialization_and_destruction chain
Change-Id: I0c1b2f2d908c31d1510662880c13504d81445a6a
2012-06-25 14:19:03 +01:00
Julien Nabet
e45bb323ee Fix prefix ++/-- operators for non-primitive types
Change-Id: Ibb55fcedecaf66f0817d24d8f408ef69d273ffa2
2012-06-23 23:06:48 +02:00
Michael Meeks
ecf943247f re-base on ALv2 code.
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-22 09:51:05 +01:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Michael Meeks
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
Caolán McNamara
8e01e88145 add a route to compare a O[U]String to one code unit
Seems very awkward to create an entire temporary O[U]String just to compare it
to another when we want to know if that other contains just one char of a given
value

Change-Id: Iacd4e0d87dc5c5211fa06c61c55e1ed85b1e91f3
2012-06-18 15:13:51 +01:00
Caolán McNamara
9bf2d51927 callcatcher: chainsaw out some unnecessary code
Change-Id: I88de7a942fbc9e0c51a3261236f5203f037d2392
2012-06-15 15:41:13 +01:00
Caolán McNamara
df4c929bc3 don't need to realloc string
Change-Id: I17ec5a54b0088b56bd8c8431eb255626dbb1fac8
2012-06-12 13:35:49 +01:00
Caolán McNamara
38fea22431 removeTrailingChars is the same as stripEnd
Change-Id: I3fc618f886082e08e9baae3ae09017f653e729bd
2012-06-11 14:46:44 +01: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
Thomas Arnhold
13887f4848 Remove superfluous include comments
Change-Id: Icd57ca7fd89e30c190c1b06dbe67c30bea8d1b59
2012-06-09 04:51:38 +02:00
Caolán McNamara
e2cd6a77ea drop String::Reverse
Change-Id: Ie06635dc1f242241d48f9d6de4f592898e605bf2
2012-06-06 14:38:42 +01:00
Michael Meeks
93b415a68f targetted prefer prefix operators reversion
Change-Id: I7e1ae9622bc89b584ddbb307dac15b0ed56ae563
2012-05-31 14:58:05 +01:00
Caolán McNamara
5dcf536b69 merge the 5 ConstAsciiString duplicate classes together
a) merge them together and move it into comphelper
b) turn it into a POD rather than having vast amounts
of destructors registered into the cxa_atexit chain

Change-Id: I04d3b9d7804f8e233013c916df9d617a0f84f96a
2012-05-17 14:03:26 +01:00