summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)AuthorFilesLines
2014-09-26remove unnecessary casts in calls to SvStream.WriteUInt16Noel Grandin7-42/+42
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
2014-09-26remove unnecessary casts in calls to SvStream.WriteInt16Noel Grandin3-10/+10
left over from our conversion of the SvStream output operators to more specific methods Change-Id: Ie44bec6b988f3e46fe78d14b740818c9141f5df0
2014-09-26remove unnecessary casts in calls to SvStream.WriteSCharNoel Grandin2-22/+22
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I4f17a2fd6a68f8078b97c96e89e27a5627c57c03
2014-09-26remove unnecessary casts in calls to SvStream.WriteUCharNoel Grandin3-18/+18
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
2014-09-26remove pointless commentsNoel Grandin2-4/+0
Change-Id: I8edfe830b8f6ca7f1809332870e06d1d286b90e8
2014-09-26remove unnecessary casts'sNoel Grandin2-4/+4
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
2014-09-26remove unnecessary static_cast'sNoel Grandin3-7/+7
left over from our conversion of the SvStream output operators to more specific methods e Please enter the commit message for your changes. Lines starting Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
2014-09-26SvStream - rename WriteNumber methodsNoel Grandin1-24/+24
to Write?Int32AsString. Since the original name was so generic as to be meaningless. Change-Id: Iaaaf592904af51f2b9988fa8efb344c1b2bf9b0f
2014-09-25editeng: std::auto_ptr -> std::unique_ptrStephan Bergmann2-17/+15
Change-Id: I25e3599a37d720cbcf70ea13ab30234e54637d53
2014-09-24fdo#47302: Added insert->fields->page title buttonJennifer Liebel1-0/+36
Change-Id: Iebc8298a7e6a7d423d2667eec8a46a936cc4d2cd Reviewed-on: https://gerrit.libreoffice.org/11599 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-24Replace some std::auto_ptr function parameters with std::unique_ptrStephan Bergmann2-26/+15
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
2014-09-23fdo#82577: Handle WindowNoel Grandin15-37/+37
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-18fdo#82577: Handle FontNoel Grandin22-69/+69
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-12editeng: sal_Bool -> boolStephan Bergmann1-17/+17
Change-Id: I27296a1a7fdf2ceb89db9e6674a45908fe7d0841
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann14-131/+131
...to gain further confidence in the claim "that none of the existing code tries to uses combinations of these enum values" (d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState") Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13 Reviewed-on: https://gerrit.libreoffice.org/11384 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-12coverity#703951 unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: Id9a3c639bd778552b176c19b7574a9d9786ffebc
2014-09-10Typo: (N|n)ormaly->(N|n)ormallyJulien Nabet1-1/+1
Change-Id: I96d081f394b0b62d99ec1034bf5e99da9aedd9d9
2014-09-10Replace uses of old SFX_ITEM_ON alias with SFX_ITEM_SETStephan Bergmann7-46/+46
Change-Id: I64be7ca711dcd3ea7c4d5840a30f2f701d055e1b
2014-09-10Replace uses of old SFX_ITEM_OFF alias with SFX_ITEM_DEFAULTStephan Bergmann3-5/+5
Change-Id: Ic8751562e4dbfa5b6be903d87d369a750d305495
2014-09-09editeng: avoid autocorrect crashMichael Stahl1-0/+4
Happened for me with nFndPos = 30 and nEndPos = 20, and a rTxt that probably contained "->" twice. Change-Id: I534c60a5904249e25fdefe45639b4512e6f138c5 Reviewed-on: https://gerrit.libreoffice.org/11344 Reviewed-by: Németh László <nemeth@numbertext.org> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-09-06SfxHint: convert home-grown RTTI to normal C++ RTTINoel Grandin2-12/+7
Also note that I fixed a bug in SvxFontMenuControl::Notify where the if statement had the check the wrong way around. Change-Id: I611e8929c65818191e36bd80f2b985820ada4411 Reviewed-on: https://gerrit.libreoffice.org/11147 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-09-03Remove (misleading) EditEngine::QuickRemoveCharAttribsMatúš Kukan2-7/+2
Change-Id: I7a0be4e204a239dfdd9c184b3d54a69debe8a208
2014-09-01fdo#83178 fix Chinese Conversion crashMatthew J. Francis1-1/+1
Reviewed on: https://gerrit.libreoffice.org/11187 Change-Id: Ifa9c7c1a29d7076903e038d3132c635b1143e2d8
2014-08-31fdo#33899 autocorrect: don't replace date parts with fractionsLászló Németh1-1/+6
Change-Id: I1470d1f3e7b8613c49a4998f3ff106ca5abeff65
2014-08-29editeng: deploy an assert for the default itemsMichael Stahl1-1/+1
Change-Id: Ifc85d682377bb1a3a34e6d49767cbfbe6521c388
2014-08-29fdo#62923 Autocorrect opt. 'Replace dashes' uses en-dash between numbersLászló Németh1-2/+4
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-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 McNamara6-6/+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