Commit Graph

417 Commits

Author SHA1 Message Date
9e958cd987 Use a simpler fix for bad old libexttextcat constants.
Don't patch the upstream sources. Don't do version dependend checks.
Just define the missing constants ourselves if they are missing.

Change-Id: Ie0c56474e5ff20c092c99c1648cd15b97149041f
Reviewed-on: https://gerrit.libreoffice.org/4200
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-06-10 05:02:52 +00:00
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
d49a0b4304 One more XPropertySet -> XLinguProperties
Change-Id: I9ce34899181416f6c5e38289035af35ed5533616
2013-05-14 20:25:40 +03:00
708cab47c4 fdo#46808, propogate XLinguProperties through some more code
Change-Id: I89258875094e9731921fcafdc903278ca8f95aa8
2013-05-14 13:39:30 +02:00
b4d9ed1434 small optimization, don't call objectAtIndex twice
(cherry picked from commit a88630fb326fa4dcbe28edd1c149c8e5e7b7f123)

Conflicts:
	lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx

Change-Id: Ic48281be27bf43f8a564f46684ddb53a2d83d80e
2013-05-09 12:03:39 +01:00
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
221960b028 libexttextcat: mis-spell it again for old versions
Also, windows build cunningly uses an included version header that would
be overwritten by configure.

Change-Id: Id01b5dcd0f021a11d016571b6ee81e4fb8495020
2013-03-25 21:44:34 +01:00
a81f44c707 libexttextcat: fix the --with-system case too...
... by introducing a version check that is so horribly ugly that it will
hopefully be removed again as soon as a new upstream release with the
rename is available.

Change-Id: I8e0409ba7331dec7140d2a4a49720c804e90582f
2013-03-25 19:12:25 +01:00
e21114a928 Missing _TEXTCAT_RESULT_SHORT -> TEXTCAT_RESULT_SHORT_STR
...cf. d4244efeb171632f309c8cfcbea4fbe2a3de3193 "libexttextcat: fix spelling of
TEXTCAT_RESULT_UNKOWN."

Change-Id: I65e8327296450324205e937fa762b656afebe2dd
2013-03-25 18:20:23 +01:00
d4244efeb1 libexttextcat: fix spelling of _TEXTCAT_RESULT_UNKOWN
and remove the _ prefix too while at it

Change-Id: I30ee8cd5aead53abac19fdc372e1fe45b3cbf55f
2013-03-25 16:29:08 +01:00
002a0d91e4 Fix spelling errors and typos: 'unkown' change to 'unknown'
Change-Id: Ia3ff77d2b99c9ef6c4c9b510bb30f349592c0b94
Reviewed-on: https://gerrit.libreoffice.org/3030
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-25 14:12:42 +00:00
98029f1625 fdo#60427, fdo#59337: spell words with ZWNJ/ZWJ, f-lig. (only 8-bit dic.)
Change-Id: Ie8ac76373f4f4a456cdfb7f1a77ce640a5595d10
2013-02-08 08:29:33 +01:00
a05f2eef8f do not use removed A2OU macro
Change-Id: I1af159daed382e78f8c9933af10df9dba2010193
2013-01-30 16:08:02 +01:00
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
6ad708912c Reduce scope
Change-Id: I58a1f5d36939dd95648ea42b31331e757c65ee57
2013-01-17 22:54:51 +01:00
241ccc2568 resolved fdo#58503 restore awkward handling of empty locale for legacy
Partly reverts d7a5ec62e91ce3dc5b784815254218f16181f676

An empty locale was treated as LANGUAGE_NONE, effectively being
interpreted as absence or undetermined or multiple or all depending on
context. Restore this behavior as it was an undocumented feature of the
API.

Change-Id: If4b1641e776d10dea0d3037f7a62725c2b8d612c
2013-01-09 16:59:47 +01:00
cf068828d3 Fix SimpleGuesser::operator=' should return 'SimpleGuesser &
Change-Id: I29205bc8db7569cf123a52dd248a9165ebaef3a3
2012-12-29 13:37:25 +01:00
4ef5ed9d21 fdo#57545 remove redundant capitalType functions
capitalType functions from the hyphenator, thesaurus and spellchecker
dispatcher have been replaced by a unique function in linguistic/misc.cxx.
The capital type is now represented as an enum.

Change-Id: I0c2768b06f995cf34c105de117c7bab138c727a9
Reviewed-on: https://gerrit.libreoffice.org/1460
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2012-12-21 15:49:05 +00:00
90874ab3c7 do not trigger liblangtag init during startup
Initializing the liblangtag database stuff takes much percentage of
startup time, avoid that.

Change-Id: Ieb12ff71c2b1421a5644acebaef4c8366694c249
2012-12-11 13:00:31 +01:00
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
f1beaad9e6 some more LocaleToLanguage() replacement
Change-Id: Idde3595e92744a8bfc81a0c4714fde67e2220ea5
2012-11-24 21:17:37 +01:00
d7a5ec62e9 get rid of CreateLocale() and related
Change-Id: Iba035ff20b149b3d85a8c0ea25430892c3e40e3f
2012-11-24 19:53:03 +01:00
af60316514 some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-23 23:09:16 +01:00
42455e1447 use LanguageTag
Change-Id: I800638b4e4493988c30470359a78850c4149500b
2012-11-17 00:27:45 +01:00
70dcf3426d fix typo
Change-Id: I4a2bc7307e40ddb8a9a039c1d1b738338dcc5122
2012-11-10 12:37:09 +01:00
31219f0f97 convert libexttextcat to gbuild
Change-Id: I633892a6d611e6481e49f9bd2739d3886563a24a
2012-11-09 17:48:15 -05:00
43d9f35c26 fdo#46808, Adapt linguistic2::LinguServiceManager UNO service to new style
Create a merged XLinguServiceManager2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I297bada1066cd74809108641b56ee4d5898112ec
2012-10-30 11:02:39 +01:00
625e91c75f More useless code, "#if 0" blocks in lingucomponent, sal, and rsc
Change-Id: I1dda0f2b3bc2bb4a4a877c160026e53a90471d54
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2012-10-17 09:32:47 +02:00
ebf82e52c9 Kill use of macro LINGU_EXCEPTIONS
This macro is not defined, so we can kill all code that have the
"#ifdef LINGU_EXCEPTIONS". Just a cleanup, the rationale is the same.

Change-Id: Ib6f784859210d5a59210af51766ef4d7b8d7ead6
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/778
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-10-09 21:37:59 +00:00
3d556fcc1e WaE: variable 'numusr' is uninitialized when used here
Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
2012-10-08 13:51:22 +03:00
60337134e4 re-base on ALv2 code. Includes:
linecap: Reintegrating finished LineCap feature
    Patch contributed by Regina Henschel
    http://svn.apache.org/viewvc?view=revision&revision=1232507

    disable extended linecap API for now.

    gnumake4 work primarily from Mathias Bauer
    http://svn.apache.org/viewvc?view=revision&revision=1394326

    misc. dead code cleanups
    Patch contributed by Ariel Constenla-Haile
    http://svn.apache.org/viewvc?view=revision&revision=1204995
    http://svn.apache.org/viewvc?view=revision&revision=1207270
2012-10-08 11:36:37 +01:00
ce3d8addce cppcheck: Unused variable
Defined the aDicLangInUse within the #ifdef block where it is used.

Change-Id: I872cf178a803c3210898f7f317211a8d3a2d368e
Reviewed-on: https://gerrit.libreoffice.org/782
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-10-06 22:13:03 +00:00
b377ccca01 sal_Bool->bool in lingucomponent
Change-Id: Ic3b55606faf60648d3a680b7a60c331047151ab5
2012-10-04 21:29:32 +02:00
d3b7a3acb4 support system dicts named using bcp47 scheme
but fallback to LANG_REGION on failure

Change-Id: Ic31ba142209cdea1565adef2b592fd59111d9162
2012-10-04 12:49:27 +01:00
303b86bc23 Use prefix
Change-Id: Iee586539871acee78a32d13141dd446feb43efdb
2012-10-02 11:46:15 +03:00
6beb0d37b0 64-bit fix
Change-Id: Ifa5b084da7f59f6e123bf49b49bf68725741e0ef
2012-09-27 23:52:21 +03:00
0ba9114c12 prefix more components
Change-Id: I9bf304a791b62f6b96711eb058f302cadfdb276a
2012-08-25 12:45:35 +02:00
51065497ea Cleanup memory managment and constructor in SpellChecker
Change-Id: I086596bc54cada121f5eaaf8f4c0f12e836b3ac9
2012-07-22 15:32:37 +02:00
bccf34c19a ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03 21:24:35 +01:00
278000a28b Remove unused defines
Some of them were commented out for documentation purpose.

Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
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
25a605f365 this is supposed to just be the number of bytes
Change-Id: Iecd376aba13f94c5c62fab2f3278c5f3efda20b4
2012-05-28 13:03:01 +01:00
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
3c62fbcdd7 simplify LocalFileHelper::ConvertURLToPhysicalName 2012-01-10 10:09:28 +00:00
45b19123a6 simplify CharClass
multiple variants of toUpper (etc)
some that take a non-const OUString or String and modify it
some that take a const OUString or String and return a new one
some that take part of a const OUString or String and return a new one
2012-01-09 13:28:37 +00:00
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00