Commit Graph

448 Commits

Author SHA1 Message Date
16e21955d2 coverity#707953 Uninitialized scalar field
Change-Id: I7ae556a065f250774c7d0f8ca4f6f9c9c2c6c533
2014-02-11 14:33:34 +00:00
604a0b7282 fdo#44314 Unicode hyphenation at soft hyphens with two extra char.
Change-Id: I4b8eba6d8353e4207cac4a8b24d2b9f0440ce9e6
2014-02-04 22:04:02 +01:00
e63923b033 fdo#44314 non-standard hyphenation at soft hyphens + with pers. dic.
Change-Id: I25e7c13036c6ce1948cc33d45901ef69a258fb03
2014-01-30 14:56:30 +01:00
c5685ec791 fdo#63154 Removed unused solar.h ref. in linguc., sfx2, starmath, svl and svx
Change-Id: I241661119371b75804fcf9215ff5e5da2a5b9265
Reviewed-on: https://gerrit.libreoffice.org/7732
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-30 11:16:27 +00:00
679e4152ad Drop the unnecessary extra directory level
Just like other lingucomponent parts, besides altlinuxhyph is a
historical library name that no longer exist.

Change-Id: I803c4483633c3c8993d70e0057f0c825b1020ace
2014-01-01 19:10:20 +02:00
25fe5fe9fd WaE: unused variable 'aPathOpt'
Change-Id: I6544fdddd1662850a715e8841dcad35135fb1d94
2013-12-26 18:42:15 +02:00
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
a83b2af9ab Clean-up uno/lbnames.h
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-16 21:43:12 +01:00
7666149128 Revert "fdo#56443 allow different name for .dic and .aff files"
This reverts commit cb56ab9bca5e917d86a7dc24eb144353c405f07c.
2013-12-09 22:37:16 +01:00
cb56ab9bca fdo#56443 allow different name for .dic and .aff files
For example, de_CH_frami.dic and de_AT_frami.dic use de_DE_frami.aff.

Change-Id: I1d3770ad871b4714f7e595e1cd13f5fd7f224a1f
2013-12-09 20:22:26 +01:00
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
ef90021abe convert OUString !compareToAscii to equalsAscii
Convert code like
   if( ! aStr.compareToAscii("XXX") )
to
   if( aStr.equalsAscii("XXX") )
which is both clearer and faster.

Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11 12:58:12 +02:00
e2451bd729 Convert indexOf->startsWith and lastIndexOf->endsWith
This is both an optimisation and a cleanup.

This converts code like
   aStr.indexOf("XX") == 0
to
  aStr.startsWith("XX")
and converts code like
  aStr.lastIndexOf("XXX") == aStr.getLength() - 3
to
  aStr.endsWith("XXX")

Note that in general
  aStr.lastIndexOf("X") == aStr.getLength() - 1
converts to
  aStr.isEmpty() || aStr.endsWith("X")
so I used the surrounding context to determine if aStr could be empty
when modifying the code.

Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-31 08:34:21 +02:00
704f95e525 fdo#54938: More uses of cppu::supportsService
Change-Id: I90a7a07a43559b8d7e1d4b886b2624255200d46b
Reviewed-on: https://gerrit.libreoffice.org/6406
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-25 08:19:58 +00:00
f852bda5ec clean up some include guards
Conflicts:
	sw/source/ui/inc/content.hxx

Change-Id: I58d81881271fc6e3320bf3b5f1321594b28614a6
Reviewed-on: https://gerrit.libreoffice.org/6388
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-23 10:28:07 +00:00
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
e6e0098be8 String -> OUString
Change-Id: Ied50819f226d1fa7fd7f6d004a796b5a08194a23
2013-10-20 23:00:36 +02:00
45e366eadb drop unnecessary tools/string includes
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-20 19:00:36 +01:00
d5f33e2db4 the dreaded hu_HU_u8.dic of myspell-hu needs exceptional handling
Change-Id: I2cef8d0dd306ce22552db0b5d8890c754be9e835
2013-10-11 23:00:44 +02:00
3ec4fedc6a CID#983035 fix potential memleak
Change-Id: If41d78ce424e85390c7a92eaa36f912c43eef390
2013-10-02 20:26:00 +01:00
91a1e61ec6 clearly it's enough to obtain the const array once
Change-Id: I6d9ffef6b052012d09ff54d2a457e1314e6239ee
2013-09-17 14:07:33 +02:00
75be8fd665 convert LINGUCOMPONENT module from String to OUString
Change-Id: I1a47545127885f92e9fcdbf855ca60fbbef1395d
2013-09-17 09:05:30 +02:00
b291852c2f get rid of unnecessary conversion, use LinguIsUnspecified(OUString)
Change-Id: Ib1074e3025680306c0a8bf7dcff651cefdcb90ba
2013-09-12 19:31:45 +02:00
2f6551b016 a set of LanguageType fallback converted to is utter nonsense here
Change-Id: I02881a2a7ab3178521388b76e2413b7e1cd6c443
2013-09-12 19:31:44 +02:00
22dc925e35 no need to count, just find
Change-Id: Ia4fa44c2382f6d1f5a6b3fed533f401bcb03be53
2013-09-12 19:31:44 +02:00
349b2c2de1 it's a set, so treat it as such
Change-Id: Ia156b27d944bf419a2e0bd45fa65efd4b7f89404
2013-09-12 19:31:44 +02:00
08e4d51f04 if valid accept whatever the dictionary's name might comprise
Change-Id: Ia6ea53f1a9e1c575606901e173bc952449135522
2013-09-12 18:44:22 +02:00
39c9c7420a was convertIsoStringToLanguage(), use convertToLanguageTypeWithFallback()
Change-Id: Ieea44614271c79beb7a9a3fce35acf921ccb478f
2013-09-03 20:35:42 +02:00
12b1d1cda3 Mark as const
Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
2013-08-12 09:23:52 +09:00
358d1a9948 use static LanguageTag::convertTo...() for standalone conversions
If no LanguageTag instance is at hand use the static methods to convert
between BCP 47 string, Locale and MS-LangID instead of creating
temporary instances.

Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-13 11:55:16 +02:00
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