summaryrefslogtreecommitdiff
path: root/editeng/source
AgeCommit message (Collapse)AuthorFilesLines
2014-08-26Remove unimplemented function declarationsMatúš Kukan1-3/+0
Change-Id: I4f32afbc29f274a742bc7e57e274a48423032a03
2014-08-25QueryBox RID_SVXQB_* -> MessageDialog + stringCaolán McNamara2-15/+9
Change-Id: I37aeefe36953c80a1218e2634153906dd5cb3c1e
2014-08-25Avoid possible memory leaks in case of exceptionsTakeshi Abe2-9/+6
Change-Id: Icc073be041ae0b0c690e869a0edaff3515d1d601
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist1-1/+1
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23fdo#82577, fdo#82579: Handle CursorTor Lillqvist3-9/+9
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-22Remove some useless tools/debug.hxx includesMarcos Paulo de Souza1-0/+1
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-22Simplify autocorrect loading - removing redundant parameter.Michael Meeks2-7/+6
Change-Id: Idc1ebba8d859ec79b6744228cfe3ef1f0992e41d
2014-08-20vcl: use enum for complex text layout constantsNoel Grandin2-2/+2
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-18drop unnecessary shl.hxx includesCaolán McNamara5-5/+0
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-17coverity#1132709 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: If828f82e36d12ceca7e6392de5757a131c99462c
2014-08-15editeng: initialize mnRefCount in all ctors, fix sw.check crashes...Michael Stahl1-1/+3
(regression from aa3babb42fa88840706f5b487ca0e88552cd8f83) Change-Id: I5de9f4d79fa81c95c6f5dc9890485d91ea8fb97f
2014-08-14Build fix when DEBUG_EDIT_ENGINE is on.Kohei Yoshida1-1/+1
Change-Id: Ie3271400862bfca7ecbefbab2d3fcdc60a893818
2014-08-14Use boost::intrusive_ptr in lieu of manual ref-counting.Kohei Yoshida1-69/+57
Change-Id: I0a29a1e490f5aa52a9057be71164573e403affe9
2014-08-14Apply a simple pimpl idiom and rename the old Impl to make it non-Impl.Kohei Yoshida1-60/+74
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-13WaE: C4245: 'argument' : conversion from 'int' to 'size_t'Tor Lillqvist1-1/+1
Change-Id: I43d15b84f78d9904b09e8df9e36013878e7a4147
2014-08-11-Werror,-Wundefined-bool-conversionStephan Bergmann3-5/+5
Change-Id: I3efdef9a6581fcb1d5e8da7a86445d2f2401e9f9
2014-08-07cppcheck: Exception should be caught by referenceJulien Nabet1-1/+1
Change-Id: Ie6438d67aa09fd1dfb746b4ac7ff34d6494ee453
2014-08-07loplugin:staticcallCaolán McNamara1-2/+2
Change-Id: I966c0d6e61e1815252a83e22d142837e26302b30
2014-08-07coverity#982278 Resource leak in objectCaolán McNamara1-1/+9
Change-Id: I0d0cf666ac8ecd55b4d3ba783b1e17670d6eb566
2014-08-01fdo#55292 add middle wildcard autocorrectionLászló Németh1-13/+45
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-07-31fix some dodgy FieldUnit conversionsNoel Grandin1-1/+1
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-29fdo#81812 Kill PIMPE and PIMPEEJoren De Cuyper2-89/+86
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-29drop use of SFX_ITEM_PRESENTATION_NONENoel Grandin8-829/+267
since none of the call sites specify it Change-Id: I9c15f0e042e21f6f78560c1962a533112d588c90
2014-07-29simplify return argument of SfxPoolItem::GetPresentationNoel Grandin9-232/+232
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-29fdo#55292 paragr. start. autocorr. with a single character (eg. ---A)László Németh1-1/+1
Change-Id: Ic0e67b3e78fe6f38e8a255981c9aa9cfd939fd4b
2014-07-27bnc#467459 - fix editeng text search with expanded fields.Michael Meeks3-55/+129
Change-Id: If59d0e2f886e94148b81cb6cfcad067733fcb918
2014-07-26Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'Matteo Casalin1-1/+1
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2
2014-07-23convert SfxItemState constants to a proper enumNoel Grandin5-16/+19
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-22Fix the font handling esp wrt font colors.Kohei Yoshida2-2/+2
Change-Id: I7dda03368f67ea6a12dfb39115f4546277abb76b
2014-07-20vcl consitent use of long for corrdinateNorbert Thiebaud11-66/+70
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-17Related: rhbz#1117853 nStartPara of EE_PARA_NOT_FOUNDCaolán McNamara1-2/+1
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-17Renamed brdcst.[hc]xx to SfxBroadcaster.[hc]xxTobias Lippert2-2/+1
- 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-11fdo#81058: Revert "Fix: EE_CHAR_COLOR to EE_CHAR_BKGCOLOR"Matúš Kukan1-1/+1
Obviously, it's not safe to touch editeng :-/ This reverts commit f2d6eb4d96918de9b29a96749506b83b0e59293f.
2014-07-11new loplugin: externalandnotdefinedNoel Grandin3-2/+31
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-07DBG_ASSERT->assert when followed by dereferenceCaolán McNamara1-1/+1
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-06coverity#706504 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: I727779317672fe58c440aee76762d0a9ae28d8ca
2014-07-04Fix: EE_CHAR_COLOR to EE_CHAR_BKGCOLORmatteocam1-1/+1
2014-07-03Resolves fdo#79276 Add fallback system for autocorrection of French variantsJulien Nabet1-6/+18
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-03WaE: -Werror=unused-variableCaolán McNamara1-1/+0
Change-Id: I910c2262f031f7916fbf242f31c193d8b030468b
2014-07-03coverity#738958 Unused pointer valueCaolán McNamara1-3/+2
Change-Id: Ic0c7f1c3ccb17f11135facda9197f8dc82436549
2014-07-03use assert when followed by derefCaolán McNamara1-55/+37
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
2014-07-02drop UniReference in favour of rtl::ReferenceNoel Grandin1-2/+2
since they're doing the same thing. Change-Id: I76134b6b848db8628f315fe5bd9eb972a6bf0cb6
2014-07-01clang scan-build: various warningsCaolán McNamara1-1/+1
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
2014-07-01error: 'SvxColorBackgroundItem' was not declared in this scopeMiklos Vajna1-1/+1
Change-Id: I296a1ba4128d5e1c9178a20df25875fd8baaefe5
2014-06-30Cleanup: removed comments and debugging outputmatteocam4-20/+1
Change-Id: I41f13d33da641153784725344f5bd526ca69542b
2014-06-30Removed assertion in EditCharAttribBackgroundColormatteocam1-6/+5
Change-Id: Ic9b41eed686ca8bf07c8e3e1555fc6953093a2d4 (cherry picked from commit e68c18f1afe93eba5e79829510df16a78d66c95e)
2014-06-30VclProcessor's text rendering looks at fill colormatteocam1-0/+2
Change-Id: I96dcafd01fb6d8a5e873719ee617008b5f2cbc13 (cherry picked from commit 74fa26c85ef79020a889d14db04130e52635b81e)
2014-06-30Set transparency besides color for text with fill (i.e. underlined text)matteocam1-0/+1
Change-Id: I88a90facac656f846a88315951b4769f502662a0 (cherry picked from commit d4c1c038dbc554dcce9c081e736a72359e80d33f)
2014-06-30DbgOutItem supports Font Background Colormatteocam1-0/+11
Change-Id: I1067e73593fdd116c3fc264b07f8bfd77057af0f (cherry picked from commit 2bcaa1ca791ff64a1629d2451bd52323e7e814e3)
2014-06-30CreateFont supports Background Colormatteocam1-0/+2
Change-Id: I3413c77db8e822aeb957909a661d175320555f6d (cherry picked from commit a7f27d468dd92a2ffbe114a5bdedf423f657f1ad)