summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)Author
2015-06-01tdf#88276: Add slot and handlers for toolbar|sidebar buttonsKatarina Behrens
those changes make getting/setting of text background colour possible from toolbar and sidebar buttons, but likely more handlers needs to be added to various other places in the code Change-Id: I698ca2304399befdd63317eb8872aa3129f27637 Reviewed-on: https://gerrit.libreoffice.org/15909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-06-01sal_uInt16 to sal_Int32, and use -1 as a special caseMatteo Casalin
Change-Id: Iaf90f96665781d3aa43f1f71802538f54409bd4a
2015-05-29tdf#91702 - fix stack-based MessBox allocation.Michael Meeks
Change-Id: I62dd164e281911d9db3de453789a5badc7cd5fd7 Reviewed-on: https://gerrit.libreoffice.org/15954 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-29loplugin:loopvartoosmallNoel Grandin
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
2015-05-26tdf#91416 - fix some incorrectly allocated VirtualDevices.Michael Meeks
Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe
2015-05-26unbreak calc againMarkus Mohrhard
Change-Id: I13e80fc04cb35aff9efbe63cd0096bff5d177ffa
2015-05-26Global CptlSttWrd and CptlSttWord -> CapitalStartWordJan Holesovsky
Change-Id: I550456ae319a6a865f2ee951a1ddf70384ce33ef
2015-05-26Global CptlSttSntnc -> CapitalStartSentenceJan Holesovsky
Change-Id: Id428332201f14b172af1590baed6aa2a67e0557a
2015-05-26bCptlSttSntnc -> bCapitalStartSentenceMiklos Vajna
Change-Id: Ie22198837257163fd7211e93d97d97be2bca4b64
2015-05-26convert SCROLL constants to scoped enumNoel Grandin
Change-Id: I5696fa39b2d032735cea7abe039349d4f83cf68d
2015-05-25AutoCorrect: direct replacement of keywords surrounded by colonsLászló Németh
Replacing immediately (without pressing space or enter) and inside words, too. For example, fixing tdf#55292 – complete input method for n-dash, m-dash – is possible now by :--: -> n-dash, :---: -> m-dash AutoCorrect replacements. Change-Id: I54462d7482838523a47b844da6a84f08a1518b07
2015-05-22convert constants in include/vcl/settings.hxx to scoped enumsNoel Grandin
Change-Id: I2a110c017f13eca6ddbd70ef3ed195d24adef0a3 Reviewed-on: https://gerrit.libreoffice.org/15828 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-22convert POINTER constants to scoped enumNoel Grandin
Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-21editeng: simplify code by std::none_ofTakeshi Abe
Change-Id: I6fb427b4e3d1179cf9291daa7204f3892a8e271f Reviewed-on: https://gerrit.libreoffice.org/15838 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-20ImpEditView::SetCursorAtPoint tiled rendering: avoid partial selectionsMiklos Vajna
Same problem as in the previous commit, just for mouse move. Previously when selecting "abc" with the mouse only one or zero letter got selected as the mouse moved, now it's properly the whole afffected string. Change-Id: I025dbd71fc02a0c93a532ca188836ffb957d6b35
2015-05-20ImpEditEngine::MoveCursor tiled rendering: avoid partial selectionsMiklos Vajna
Tiled rendering assumes that the whole list of selection rectangles is sent, i.e. the information is not incremental. With this, if the text is "abc" and you are before "a" with the cursor, then pressing shift-rightarrow two times will result in "ab" being selected, not just "b". Change-Id: I70c043575d3c68d78342af0a6b78659d83b4f5f4
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-20convert DRAWMODE constants to scoped enumNoel Grandin
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-18Related tdf#88056: use better-fitting <text:page-name>Katarina Behrens
Implemented Regina's suggestions: * this is a text field, therefore it belongs to text namespace * page-name (evtl. slide-name) describes much better what this field really contains This (among other changes) reverts commit 6609de8856519e0e9 Change-Id: Idab3b7c291839a9137f80d325a7d3f5ef0ff2636
2015-05-15tdf#62475: partial handmade fixesAndrea Gelmini
Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4 Reviewed-on: https://gerrit.libreoffice.org/15712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-15conver MENU_FLAG_ constants to scoped enumNoel Grandin
Change-Id: I969d99fa8881cc89601696a2d8621905a82b147b
2015-05-15convert POPUPMENU_ constants to scoped enumNoel Grandin
Change-Id: I4cdaf36581d1e1daa39929e621070d18a9996852
2015-05-14convert INPUTCONTEXT_ constants to scoped enumNoel Grandin
Change-Id: I5b99e42a3e85527b27d515c468d2ed66386fc9df
2015-05-14convert QUICKHELP constants to scoped enumNoel Grandin
Change-Id: Ie7302c909feb2e83b8b5e62a5e6a1f901783fb49
2015-05-14convert GRFILTER_I_FLAGS to scoped enumNoel Grandin
Change-Id: Ic1cb9b32fe252706cd607abb2ae1fd5a00999901
2015-05-14convert KERNING_ constants to scoped enumNoel Grandin
Change-Id: I58031485aaa9ebdeb986a3ee0376f36a9f667947
2015-05-12convert CURSOR_DIRECTION constants to scoped enumNoel Grandin
Change-Id: I444c61d0073b12740b55e316b2bb6e34f59dfe21 Reviewed-on: https://gerrit.libreoffice.org/15675 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-11convert COMMAND_ constants to scoped enumNoel Grandin
Change-Id: I88e67f89dbbab0646e8f106dfeb32c6ee1bb0b95 Reviewed-on: https://gerrit.libreoffice.org/15671 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
Change-Id: I94230f5d0838f26173eb17401f7bf22ab126e7ef
2015-05-11cppcheck: unreadVariableCaolán McNamara
Change-Id: I7af3807a4390e3b2f1bd9373feb937b6ff3dea7a
2015-05-10Replace IMPL_STATIC_LINK[_TYPED] with more useful variantsStephan Bergmann
Change-Id: I9aca53ea7c957524a4ade0f20ef47954ddcbf5de
2015-05-07Remove unnecessary includes of sot/storage.hxx from include/Stephan Bergmann
Change-Id: I242cd126814bbebdb99ea38d9e66513189c313d9
2015-05-07Unwind SotStorageStreamRef typedefStephan Bergmann
Change-Id: If7652a7c0251b741660365848a717c06954ca419
2015-05-07Unwind SotStorageRef typedefStephan Bergmann
Change-Id: I8d5363bb2ad813ef29b4078848914f4b0989b9f1
2015-05-07Remove SvStorage aliasStephan Bergmann
Change-Id: Id07ace147ff4fd4a17d05ba3cce6408def05c9c7
2015-05-07Remove SvStorageStreamRef aliasStephan Bergmann
Change-Id: Ic25c39adf8796bb433fa7746f53a68e3e2bfd228
2015-05-07SotStorage ctor takes as 3rd param a StorageMode (aka short)Stephan Bergmann
The code in editeng, passing sal_True (= 1) into StorageMode, has been like that ever since cd7096b4260149eb6fdd117ea0ba26b8116a41b2 "INTEGRATION: CWS mav09: #i27773#: remove so3; new storage API" where SfxMedium ctor calls were replaced with SotStorage ctor calls, keeping the argument lists intact. And at least way-back 5a9184d9e270e0ec0fe4b378c5cfde54ede095fa "INTEGRATION: CWS hedaburemove01: #72503# get rid of hedabu procedure: Moving headers to sfx2/inc/sfx2 and correspondent necessary changes" had a SfxMedium ctor that took as 3rd param a sal_Bool bDirect. That is, it looks like cd7096b4260149eb6fdd117ea0ba26b8116a41b2 inadvertently carried the SfxMedium bDirect arguments over as SotStorage StorageMode arguments. Given further that even way-back e1e019fed3970b916b046e2d7be48ea786026fce "INTEGRATION: CWS hedaburemove01: #72503# get rid of hedabu procedure: Moving headers to sot/inc/sot and correspondent necessary changes" only defines STORAGE_* values with values >= 0x02 (so sal_True would never have had any effect), the best bet appears to just use the implicit default = 0 instead. Change-Id: I3c19831433173657d3a3225c28398de7481fe036
2015-05-06VclPtr: one ref too manyCaolán McNamara
Change-Id: I0efce31e0f7cc5aa4895b6e5e35432d3f0c6fb70
2015-05-06convert DEFAULTFONT_ constants to scoped enumNoel Grandin
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-05-06convert FONTTOSUBSFONT constants to scoped enumNoel Grandin
Change-Id: I994bfc76d709d01406404991dbfbd49b15bd03f4
2015-05-05vcl::Window::Scroll takes a sal_uInt16 nFlags, not a sal_BoolStephan Bergmann
This passing of sal_True instead of some SCROLL_* flags has been there ever since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import," and the signature of vcl::Window::Scroll has been like that at least since f59676fe09175725ee0a75a1678dd1581decc20b "INTEGRATION: CWS hedaburemove01: #72503# get rid of hedabu procedure: Moving headers to vcl/inc/vcl and correspondent necessary changes," so lets arbitrarily assume that this wants to pass SCROLL_CLIP (which has the same numeric value as Change-Id: I8da6536404aa220611a7df96605c7a4a9efc7f7c
2015-05-05Use typed Idle::SetIdleHdl LinkStephan Bergmann
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-03drop useless temp debugging stringsCaolán McNamara
Change-Id: I9adc765654cf15633a53576e620c13eddcdc3b82
2015-05-03drop useless temp debugging stringsCaolán McNamara
Change-Id: I8a11a3d20fc5bde984586cb7046b174568315620
2015-04-30Gradually typed LinkStephan Bergmann
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-30Get rid of initial :: for the svx namespaceTor Lillqvist
Change-Id: I03e428a749bca409ebac9c142acaddafcbfeca23
2015-04-29Remove unnecessary IMPL_LINK[_NOARG]_INLINE_START/ENDStephan Bergmann
...just use IMPL_LINK[_NOARG] and let the compiler decide what to inline Change-Id: I63ec5116df7e79093ebf31193f8c674f1351c0e6
2015-04-29Remove unnecessary STATIC_LINK macroStephan Bergmann
Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90