1737 Commits

Author SHA1 Message Date
Noel Grandin
591ef78440 fdo#46808, Use singleton util::theMacroExpander new-style constructor
And deprecate the old-style service util::MacroExpander

Change-Id: Ifcefe31a8f8c68c6d44d6ec19616727eb607e1cd
2013-02-11 08:02:13 +02:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Michael Stahl
a53586f4ef gbuild: do not copy boost headers around
- do not use gb_UnpackedTarball_copy_header_files for boost
- adapt the optimization in concat-deps.c for new path
- use boost_headers in all LinkTargets that require it
- add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus

Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26 22:20:06 +01:00
Michael Stahl
c106167f5f PRODUCTEXTENSION: fix various obvious strings and such...
... to look pretty; most of these expect PRODUCTEXTENSION to be a word
like "Beta" but nowadays it is ".micro.rc.alphabeta" numbers so there
should be no space before it.

ReplaceStringHookProc adds insult to injury by refusing to
replace %ABOUTBOX variables unless some %PRODUCT is in the string.

Change-Id: Ib676f3837ab0785529a226fc9359e8defacf3459
2013-01-18 23:46:34 +01:00
Noel Grandin
77d215ae2e fdo#46808, use new method OConfigurationTreeRoot::createWithComponentContext
.. everywhere that was using createWithServiceFactory, and delete the old
method.

Change-Id: I02cb2bfbcc2390494383579d2f14caa4fc5b8014
2013-01-09 08:08:15 +02:00
Noel Grandin
fd5a2eb070 fdo#46808, new method OConfigurationTreeRoot::createWithComponentContext
and use it to replace usage of createWithServiceFactory, and thus
replace usage of XMultiServiceFactory.

Change-Id: Id2f44066683ce17cf7a22f80916031556ef0e82a
2013-01-09 08:08:14 +02:00
Tor Lillqvist
4427bb0c58 The "ProductSource" (MWS name) makes no sense any more 2013-01-06 15:30:04 +02:00
Luboš Luňák
59074c09b8 remove use of #pragma optimize
All these are years old, guessing from some comments as old
as Windows 9x support. These workarounds do not seem to be needed now.

Change-Id: If67baa5cdefcec33b28696c764b1ed96143b7ccd
2013-01-01 22:39:15 +01:00
Tor Lillqvist
f98407403f Revert "String Cleanup and news OUString methods/constructors"
Broke a unit test and made all tinderboxes red.

This reverts commit 3179055dc3e267c961a5618c810fbc0df1858d72.
2012-12-29 12:50:32 +02:00
Ricardo Montania
3179055dc3 String Cleanup and news OUString methods/constructors
Change-Id: Ia6142020330d0e12650fdc519b66f00e607eac42
Reviewed-on: https://gerrit.libreoffice.org/1491
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-12-28 18:16:04 +00:00
Jan Holesovsky
45a85b5af8 Get rid of C2U in unotools.
Change-Id: I0ec321e1e4cdf7f20dba31f42ff493b2f3c7e74d
2012-12-28 02:21:19 +01:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Caolán McNamara
84a99c009e Related: fdo#50284 apple's modern symbol font is unicode encoded
So codepoints that are from the legacy range need to be converted to their
unicode equivalents even in the presence of an installed "symbol" font on
MacOSX.

This should work out ok if input codepoints that exist in the apple symbol
unicode are used, they should be left untouched by this conversion.

Change-Id: Ia9996e2d9bf632c86c8d26832d77c7c662cf1076
2012-12-18 16:13:06 +00:00
Michael Meeks
439d600138 32bit compile fix for OString::valueOf usage. 2012-12-17 20:19:47 +00:00
Caolán McNamara
0d777f33a1 Resolves: fdo#31055 fallback to a default bullet on symbol lack
a) fix up some entries in Wingdings for which we do have a suitable mapping
after all

b) on complete failure for mapping to OpenSymbol show a default
bullet, which is better than no glyph

c) document that the original tables were against StarSymbol which
had extra glyphs (and/or I thought it had)

Change-Id: I5e43cc0a5216e76d00b7df1a69967e08c3656e21
2012-12-17 15:54:29 +00:00
Eike Rathke
1d486e6c65 added FIXME-BCP47 marker, adapted debug check
Change-Id: I334b00c907099517d327bf6314c4e853530a58cf
2012-12-13 21:56:38 +01:00
David Tardon
54107c9b3c more explicit ctors
Change-Id: If91343890d9ed29ff2887e47c7c0a332baa5a8e1
2012-12-04 14:26:30 +01:00
Luboš Luňák
a1c05acd19 fix SAL_WARN_UNUSED placement
Change-Id: Icd320e2a7459b1850de42c83854ab8a905d97a56
2012-12-01 01:15:21 +01:00
Caolán McNamara
df46204c5c shake out unused option instances
Change-Id: I2a7ac1ed79455f28f2ba2043b9183a77c63e68ab
2012-11-30 14:10:06 +00:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
Noel Grandin
f96db7d0dd fdo#46808, use service constructor for i18n::Collator
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
2012-11-30 13:59:46 +01:00
Stephan Bergmann
4b5e98967f Remove SvtStartOptions
...the single remaining user can use officecfg/Setup.hxx instead.

Change-Id: Icc1b56d820a9fcd7ecc52e279bcdde3aac4499d4
2012-11-30 12:13:57 +01:00
Stephan Bergmann
a83c6301d8 Remove deprecated and unused entries from /org.openoffice.Setup
...but ooSetupInstCompleted is apparently not (yet) deprecated.

Change-Id: I21237f804266e1f119bcf51f957ff4f22a64e3b2
2012-11-30 08:54:55 +01:00
Noel Grandin
c2bbc9797c fdo#46808, use service constructor for i18n::NativeNumberSupplier
Change-Id: I092ca8f912e26f0743909920c6e740d648b8677e
2012-11-27 18:18:06 +01:00
Stephan Bergmann
5d0402cfcc Make ~SearchParam non-inline
...so clients do not need to link against tl merely because of ~String.

Change-Id: I1cf1dd17c6bed96f6bea765747adbbe962a93fb1
2012-11-25 01:09:48 +01:00
Eike Rathke
af60316514 some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-23 23:09:16 +01:00
Eike Rathke
b8a467b707 obtain LanguageTag from SvtSysLocale
Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb
2012-11-21 18:35:53 +01:00
Tor Lillqvist
56d3de7360 Bin pointless _SOLAR__PRIVATE which was always 1 anyway
Change-Id: I98f35920f02d4ee71787a9968158b220af69bde6
2012-11-20 15:01:31 +02:00
Eike Rathke
7ccdadb57c use LanguageTag::reset()
Change-Id: I592cb042465ceda960a0b34dfe3eb6d669868acf
2012-11-16 14:42:36 +01:00
Eike Rathke
3f4c6698d5 need more coffee
Change-Id: I0ca6898de11e42a36453e3f0fae8d86d84c9352f
2012-11-16 13:56:37 +01:00
Eike Rathke
9f7cf6c8e5 correct include order and include languagetag.hxx
Change-Id: If7b7d10765faba62907eca35f77b8e8d4a1e9391
2012-11-16 13:51:13 +01:00
Eike Rathke
5138bde880 merge failure
Change-Id: I5c716353b231d9c36972bce8c99d9c3c3e74b1e4
2012-11-16 13:36:15 +01:00
Eike Rathke
2814ecb92f converted to use LanguageTag
Change-Id: I25c5d965d953146e91903cf2ff8e6b58f978ad20
2012-11-16 12:49:40 +01:00
Eike Rathke
4a2236a4a8 changed tabs to spaces
tabs creeped in with b4d1aaa074e2be9fd778134c40f99d2ab8a01e93

Change-Id: Idb73a4db82970a3af06e7d50e4d71d4a3ece44cf
2012-11-15 12:54:33 +01:00
Noel Grandin
d2f6a87ac7 fdo#46808, use service constructor for i18n::NumberFormatMapper
Also create a utility constructor for LocaleDataWrapper, which
simplifies many of the calling sites.

Change-Id: Ic8510b51c4201fa17fc0620e18d3e258e43636ba
2012-11-15 08:28:44 +01:00
Caolán McNamara
a94b6ec2d5 callcatcher: update unused code post binfilter death
Change-Id: I5b25d14ef2769126f98523551597f43812b9feb7
2012-11-14 10:11:32 +00:00
Stephan Bergmann
12fa9ece66 Avoid global static data
...that (indirectly) allocates memory via rtl/alloc.h, thereby causing the
rtl_cache_wsupdate_init thread to be spawned before main, as on Mac OS X that
would interfere with the code in sal_detail_initialize to close all file
descriptors >= 3 -- on Mac OS X the pthreads implementation makes use of KQUEUE
file descriptors.

* This commit removes enough global static data to make ui-preview work again on
Mac OS X (where it crashed at startup when the main thread closed the KQUEUE fd
used by pthreads implementation threads).  gengal uses further static data (at
least from module sb), so needs further clean-up.

* Avoiding global static instances derived from class Application required the
introduction of vcl/vclmain.hxx.

* That the vcl library was linked against the static vclmain library (which only
provides an implementation of main) appears to me to be a historic relic (all
executables should either include a SAL_IMPLEMENT_MAIN or link against vclmain),
so I removed that.

Change-Id: I048aa616208cb3a1b9bd8dcc3b729ba1665729bd
2012-11-13 18:04:26 +01:00
Jeremy Brown
b4d1aaa074 fdo#36324 fdo#42929 - option to ingore system input language changes
Created a new checkbox on the Langauges options page:
[] Ignore system input language

This is unchecked by default so that the current behavior remains the
default, i.e. newly entered text will be flagged as whatever the
current system input language is.

When checked however, this instructs LibreOffice to ignore the system
language (on Windows for example, the language from the Language Bar)
when determining the language for newly entered text. This is handled in
the lcl_isNonDefaultLanguage method of sw/source/ui/docvw/edtwin.cxx.

The option is also saved in registrymodifications.xcu

There are two main use cases:
1. This allows someone to use a single "international" keyboard on
Windows to type in multiple languages, (e.g. English, French, Spanish)
without changing the system keyboard. The person is then responsible for
setting the language for each word or run of text themselves in
LibreOffice. This seems to be the preferred workflow for some
translators and some educators developing language materials.

2. This allows someone writing in a minority language that is not
represented in one of Windows' locale options to still be able to type
in LibreOffice in their language using a keyboard tagged for another
language. Once they set the language in LibreOffice (e.g. to Teke-Eboo
[ebo_CG]), they can type with a keyboard as being for "Swahili" but
still succeed in entering new text in their language. This allows
spell-checking to work properly without them having to select each new
word they enter and reset the language of that word to Teke-Eboo (as is
currently the case).

Change-Id: I86248f5865b69048eb1f3e427a8c03b093138796
Reviewed-on: https://gerrit.libreoffice.org/1029
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-12 10:23:58 +00:00
Noel Grandin
0666e43c45 fdo#46808, use service constructor for i18n::CharacterClassification
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
2012-11-05 18:05:00 +01:00
Stephan Bergmann
7c884716a7 fdo#46808: Slight simplifications of previous commit
Change-Id: I9e0158faa24d388176427529500f073b8b6f34bd
2012-11-05 16:43:15 +01:00
Noel Grandin
d2c45d0460 fdo#46808, Adapt i18n::Transliteration UNO service to new style
Simply make the service implement XExtendedTransliteration, since all
of the implementatins already do that.

Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-05 16:43:15 +01:00
Noel Grandin
b70a330d4f fdo#46808, rename method
Rename
    utl::OConfigurationTreeRoot::tryCreateWithServiceFactory
to
    utl::OConfigurationTreeRoot::tryCreateWithComponentContext

Change-Id: Ib39b44b21d206b5fdfa4162106fbdeb30b1dd37c
2012-11-05 16:43:14 +01:00
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
Noel Grandin
8fff6bf6bd fdo#46808, Adapt i18n::LocaleCalendar UNO service to new style
Did not need to create a new interface, because XCalendar3
already covers the whole service interface.

Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882
2012-10-29 17:32:57 +01:00
Noel Grandin
e8aa70b5d4 fdo#46808, convert comphelper::ConfigurationHelper to XComponentContext
Convert the helper methods to take an XComponentContext parameter,
instead of XMultiServiceFactory.

Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
2012-10-24 11:29:53 +02:00
Noel Grandin
fb741b5e1e fdo#46808, Adapt xml::sax::XWriter UNO service to new style
Create a merged XWriter interface for the service.
The xml.sax.Writer service already existed, it just did not have
an IDL file.

Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-10-22 17:01:11 +02:00
Caolán McNamara
9d2cfee5e9 some more clang warnings
Change-Id: I4359784279875dc9dac99bc4d2db95dccf094b20
2012-10-22 09:11:40 +01:00
Norbert Thiebaud
8eb5db8997 replace sxub_Unicode by sal_Unicode
Change-Id: Icf4b434a1961cc4964ee6e362491868e898a1831
Reviewed-on: https://gerrit.libreoffice.org/887
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-19 10:55:56 +00:00
Markus Mohrhard
ac60fba3b5 delegating a constructor can't work like this, fdo#55033
Change-Id: I6b057ad68054fe5806daec722b3bfe4e33bc3602
2012-10-19 10:44:59 +02:00
Markus Mohrhard
1c0f4d8ca7 don't catch this exception, we want to crash if this fails and fix it
Change-Id: I6aa0e1ba94b1702a54c7520a5093e6d0ba75a0d9
2012-10-19 10:37:23 +02:00