Commit Graph

1689 Commits

Author SHA1 Message Date
c369013edb fdo#83178 fix Chinese Conversion crash
Reviewed on:
	https://gerrit.libreoffice.org/11187

Change-Id: Ifa9c7c1a29d7076903e038d3132c635b1143e2d8
2014-09-01 10:10:42 +02:00
10176b1b6f fdo#33899 autocorrect: don't replace date parts with fractions
Change-Id: I1470d1f3e7b8613c49a4998f3ff106ca5abeff65
2014-08-31 14:53:55 +02:00
f582d9789c editeng: deploy an assert for the default items
Change-Id: Ifc85d682377bb1a3a34e6d49767cbfbe6521c388
2014-08-29 19:18:42 +02:00
f78eeee1b7 fdo#62923 Autocorrect opt. 'Replace dashes' uses en-dash between numbers
to avoid the bad replacement of the frequent number ranges between
years, page numbers etc., more information:

http://en.wikipedia.org/wiki/Dash

Change-Id: I9cae6bcbc227e80d59e091be591448c9289371eb
2014-08-29 13:23:59 +02:00
c7a8cbb31f Remove unimplemented function declarations
Change-Id: I4f32afbc29f274a742bc7e57e274a48423032a03
2014-08-26 15:29:11 +02:00
c86f7df94d QueryBox RID_SVXQB_* -> MessageDialog + string
Change-Id: I37aeefe36953c80a1218e2634153906dd5cb3c1e
2014-08-25 16:45:23 +01:00
32ce5ae15a Avoid possible memory leaks in case of exceptions
Change-Id: Icc073be041ae0b0c690e869a0edaff3515d1d601
2014-08-25 10:27:10 +09:00
30ae83c268 fdo#82577: Handle KeyCode
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.

Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
708fc1c187 fdo#82577, fdo#82579: Handle Cursor
Put the vcl Cursor in the vcl namespace. Avoids collision with the Xlib Cursor
typedef and some ancient Carbon (?) Cursor typedef on OS X.

Change-Id: I7af770c522b5774c87f58cc079ced9fc1bcc88b0
2014-08-23 19:20:03 +03:00
7e2b9fa213 Remove some useless tools/debug.hxx includes
Also remove the tools/solar.h included from tools/debug.hxx. The include of solar.h
header was necessary in some cases because of a macro or a typedef that was needed.

Change-Id: Ia6e15d5c2571c58c9e9138b0d0a7f08ae88053c9
Reviewed-on: https://gerrit.libreoffice.org/11075
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-08-22 16:33:18 -05:00
dd1c49d172 Simplify autocorrect loading - removing redundant parameter.
Change-Id: Idc1ebba8d859ec79b6744228cfe3ef1f0992e41d
2014-08-22 16:22:12 +01:00
794d5ac4ac vcl: use enum for complex text layout constants
Since these constants are bitfield flags, we define some methods to make
working with them reasonably type safe.

Move the definitions to outdevstate.hxx, since we need the values there,
and that appears to be the "root most" header file.

Also dump TEXT_LAYOUT_BIDI_LTR constant, since it means the same thing
as TEXT_LAYOUT_DEFAULT (ie. 0), and leaving it in causes people to write
weird code thinking that it's a real flag.

Change-Id: Iddab86cd6c78181ceb8caa48e77e1f5a8e526343
Reviewed-on: https://gerrit.libreoffice.org/10676
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-20 09:01:26 -05:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
d2a3b21ade coverity#1132709 Uncaught exception
Change-Id: If828f82e36d12ceca7e6392de5757a131c99462c
2014-08-17 16:39:20 +01:00
68c3cd53a2 editeng: initialize mnRefCount in all ctors, fix sw.check crashes...
(regression from aa3babb42fa88840706f5b487ca0e88552cd8f83)

Change-Id: I5de9f4d79fa81c95c6f5dc9890485d91ea8fb97f
2014-08-15 14:37:35 +02:00
536e9ed46f Build fix when DEBUG_EDIT_ENGINE is on.
Change-Id: Ie3271400862bfca7ecbefbab2d3fcdc60a893818
2014-08-14 12:23:19 -04:00
aa3babb42f Use boost::intrusive_ptr in lieu of manual ref-counting.
Change-Id: I0a29a1e490f5aa52a9057be71164573e403affe9
2014-08-14 11:17:26 -04:00
af246f9455 Apply a simple pimpl idiom and rename the old Impl to make it non-Impl.
The old Impl instance is ref-counted, which I'd like to convert to using
boost::intrusive_ptr.  But to make it happen, we need to really hide this
from public header...

Change-Id: I1f1e9e500f2112eea04e3e6d661a7dfa74655c62
2014-08-14 11:17:26 -04:00
885506bafb WaE: C4245: 'argument' : conversion from 'int' to 'size_t'
Change-Id: I43d15b84f78d9904b09e8df9e36013878e7a4147
2014-08-13 19:21:34 +03:00
47fa001b94 -Werror,-Wundefined-bool-conversion
Change-Id: I3efdef9a6581fcb1d5e8da7a86445d2f2401e9f9
2014-08-11 16:11:09 +02:00
41e05f48dd cppcheck: Exception should be caught by reference
Change-Id: Ie6438d67aa09fd1dfb746b4ac7ff34d6494ee453
2014-08-07 23:24:19 +02:00
48c5934af1 loplugin:staticcall
Change-Id: I966c0d6e61e1815252a83e22d142837e26302b30
2014-08-07 21:05:27 +01:00
92c5536cd5 coverity#982278 Resource leak in object
Change-Id: I0d0cf666ac8ecd55b4d3ba783b1e17670d6eb566
2014-08-07 18:00:45 +01:00
a074258922 fdo#55292 add middle wildcard autocorrection
Syntax: .*text.*, eg. for f-ligature replacements:

.*fi.* -> fi (U-FB01)
.*fl.* -> fl (U-FB02)

For en-dash replacements between numbers ("2014–15"), instead of em-dash:

.*1--.* -> –
.*2--.* -> –
...

Change-Id: I8992a751e2c1fbdd96a36cf555eb4349d5f80276
2014-08-01 18:48:10 +02:00
65803ad94c fix some dodgy FieldUnit conversions
the FieldUnit enum was being converted in some dodgy ways and
in some places the MapUnit enum values were being used.

Change-Id: Ic9aacb84058d1c14c3a4a79ef6676082df9a7270
2014-07-31 11:38:47 +02:00
52d21ee651 fdo#81812 Kill PIMPE and PIMPEE
Change-Id: I12a4a91d580f95912f2c2cb2a352b21b272a480d
Reviewed-on: https://gerrit.libreoffice.org/10611
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-07-29 21:34:42 +00:00
9d140ccdb3 drop use of SFX_ITEM_PRESENTATION_NONE
since none of the call sites specify it

Change-Id: I9c15f0e042e21f6f78560c1962a533112d588c90
2014-07-29 12:26:17 +02:00
7e018afaf7 simplify return argument of SfxPoolItem::GetPresentation
since all two of the actual call-sites only care about whether
it is a valid presentation or not, not what kind of presentation it is.

Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
2014-07-29 11:04:01 +02:00
86c0a56a9e fdo#55292 paragr. start. autocorr. with a single character (eg. ---A)
Change-Id: Ic0e67b3e78fe6f38e8a255981c9aa9cfd939fd4b
2014-07-29 10:53:00 +02:00
36e1a903c4 WaE: overriding virtual function declaration not marked 'override'
Change-Id: I18274d920865f8e28377acce8084eb1629ff8127
2014-07-28 09:43:14 +03:00
274b628a2b bnc#467459 - fix editeng text search with expanded fields.
Change-Id: If59d0e2f886e94148b81cb6cfcad067733fcb918
2014-07-27 17:06:06 -04:00
20f6cf0377 Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2
2014-07-26 14:25:33 +02:00
88a874fcb3 convert SfxItemState constants to a proper enum
and while we're at it
- use the enum type all over the place instead of passing around
sal_uInt16
- don't use bitwise logic on enum values
- use enum values instead of numeric constants

Change-Id: I7f24cb4d242e1c00703e7bbcf1a00c18ef1e9fd4
2014-07-23 13:26:19 +02:00
0f47de0cff Fix the font handling esp wrt font colors.
Change-Id: I7dda03368f67ea6a12dfb39115f4546277abb76b
2014-07-22 15:26:14 -04:00
cd3d26b7ed vcl consitent use of long for corrdinate
most of length in vcl are calculated in 'long'
but array of X position tend to be in sal_Int32.
As a prep work to be able to support 'double'
as the base type of Device Coordinate, harmonize
the use of 'long' for non-float coordinate.

Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323
2014-07-20 22:10:59 +02:00
fdb1d62a09 Related: rhbz#1117853 nStartPara of EE_PARA_NOT_FOUND
we know that nStartPara is EE_PARA_NOT_FOUND so rOutliner.GetAbsPos must have
returned that, but we don't know the circumstances that lead to that yet.

Change-Id: I53a488317d154b4a3c050248b8737da0a611ca43
2014-07-17 13:52:13 +01:00
6a873638fa Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xx
- Remove includes from files where they are not needed.
- Update pch files

Change-Id: I0188e3934ef429008c1ef495ab1d5b27f38664d5
Reviewed-on: https://gerrit.libreoffice.org/10342
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-07-17 08:47:58 +00:00
3f9d00a5a9 fdo#81058: Revert "Fix: EE_CHAR_COLOR to EE_CHAR_BKGCOLOR"
Obviously, it's not safe to touch editeng :-/

This reverts commit f2d6eb4d96918de9b29a96749506b83b0e59293f.
2014-07-11 16:00:15 +02:00
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
0d78ad871e DBG_ASSERT->assert when followed by dereference
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-07 10:48:25 +01:00
6db415b150 coverity#706504 Uncaught exception
Change-Id: I727779317672fe58c440aee76762d0a9ae28d8ca
2014-07-06 15:15:11 +01:00
f2d6eb4d96 Fix: EE_CHAR_COLOR to EE_CHAR_BKGCOLOR 2014-07-04 07:37:20 +02:00
82f291d2f7 Resolves fdo#79276 Add fallback system for autocorrection of French variants
1) Replace the creation of acor_fr-FR.dat by acor_fr.dat since there's no specific for variants of fr
2) Add a fallback system to use it

Change-Id: Ia3e11fff0f266839dc148077b50c1b2f798d1c50
Reviewed-on: https://gerrit.libreoffice.org/9825
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-03 12:43:28 +00:00
f4e35c5c5e WaE: -Werror=unused-variable
Change-Id: I910c2262f031f7916fbf242f31c193d8b030468b
2014-07-03 12:56:45 +01:00
4ce12cf851 coverity#738958 Unused pointer value
Change-Id: Ic0c7f1c3ccb17f11135facda9197f8dc82436549
2014-07-03 12:49:40 +01:00
4228f08d60 use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
2014-07-03 12:49:38 +01:00
4ff115b3e7 drop UniReference in favour of rtl::Reference
since they're doing the same thing.

Change-Id: I76134b6b848db8628f315fe5bd9eb972a6bf0cb6
2014-07-02 15:23:52 +02:00
5ace3f3b4f clang scan-build: various warnings
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
2014-07-01 10:56:14 +01:00
88bd199e76 error: 'SvxColorBackgroundItem' was not declared in this scope
Change-Id: I296a1ba4128d5e1c9178a20df25875fd8baaefe5
2014-07-01 08:07:37 +02:00
59a2e1b9fa Cleanup: removed comments and debugging output
Change-Id: I41f13d33da641153784725344f5bd526ca69542b
2014-06-30 22:54:44 +02:00