1. 09 Mar, 2015 16 kayıt (commit)
    • Miklos Vajna's avatar
      SwViewShell: store tiled rendering state in SdrModel · 4c7e4904
      Miklos Vajna yazdı
      On one hand, this cleans up duplication, but what's more important is
      that without this, svx can't invoke sw's LOK callback, which will be
      needed for graphic selection.
      
      Change-Id: Id414489fc3fbc52914b28fdb9bea4134edfbeafe
      4c7e4904
    • Miklos Vajna's avatar
      Use SwCrsrShell::SelTblBox() · 7e189aa4
      Miklos Vajna yazdı
      The only user of SwCrsrShell::SelectCell() can actually use SelTblBox()
      instead.
      
      Change-Id: I286a3d8c25834dd08897f0cfc37a3ec31a89ce7a
      7e189aa4
    • Miklos Vajna's avatar
      LOK: add LOK_CALLBACK_CURSOR_VISIBLE · 5fb18e15
      Miklos Vajna yazdı
      With this, if a Writer document contains an image, then clicking on the
      image then back to the text properly shows/hides the blinking cursor.
      
      Change-Id: I3313319ded614a2eb86e1c66c926189511a7cca6
      5fb18e15
    • Miklos Vajna's avatar
      lokdocview: CursorVisible -> CursorOverlayVisible · 0097544d
      Miklos Vajna yazdı
      There are multiple levels of being hidden: if the cursor is not visible
      due to just blinking or in case it won't show up after some timeout,
      either.
      
      Let's use CursorOverlayVisible for the condition if the cursor should be
      painted right now or not, and CursorVisible for the long-term "is it
      visible" state.
      
      Change-Id: Ib583236c1429f25e14ba79fdabad4ea899bb4269
      0097544d
    • Miklos Vajna's avatar
      SwEditWin: disable map mode in LogicMouseButtonUp/Down · cc7d10c0
      Miklos Vajna yazdı
      This partially reverts commit 3d4c1b9d
      (Initial SwEditWin::LogicMouseButtonDown/Up, 2015-01-21), which tried to
      catch all pixel -> logic conversions in SwEditWin::MouseButtonDown().
      The problem is that it doesn't really scale, we can't do the same for
      drawinglayer as well.
      
      Instead, simply disable the map mode in the Logic...() methods as we
      already do in Impress, which doesn't have a single central
      LogicMouseButtonDown/Up method, so there we had to use mapmode disabling
      from day 0 for tiled editing.
      
      Change-Id: I72be546400f5db10ac6d09a9bb10f7f0658942a5
      cc7d10c0
    • Miklos Vajna's avatar
      CppunitTest_libreofficekit_tiledrendering: fix up and enable this again · 3687ae6f
      Miklos Vajna yazdı
      The main problem was that UserInstallation did not point to the usual
      workdir/unittest/, so initialization failed early, not finding the
      soffice.cfg directory under
      workdir/CppunitTest/libreofficekit_tiledrendering.test.user/.
      
      Disable one testcase that still fails, though.
      
      Change-Id: I3fdae5ead47dd2a805a0ed8d3cb407938f868e3b
      3687ae6f
    • Miklos Vajna's avatar
      desktop: avoid restart when running in a LOK unit test · b99e0ddf
      Miklos Vajna yazdı
      Cppunit tests just don't run the desktop logic to determine whether to
      restart normally, but for LOK, that happens.  Without this, if versionrc
      changes, a LOK-using unit test would fail.  Simple reproducer:
      
      sed -i "s|\(buildid=\).*|\1$(echo $RANDOM|sha1sum -|sed 's/ .*//')|" instdir/program/versionrc
      make -sr CppunitTest_libreofficekit_tiledrendering
      
      Should be an acceptable alternative approach to commit
      5acadbfb (Implement lokconf_init.,
      2014-07-21).
      
      Change-Id: I4354e646d3bcc0c1199db5a175708206b4a30294
      b99e0ddf
    • Miklos Vajna's avatar
      android: fix long press not selecting an empty cell · b41b9681
      Miklos Vajna yazdı
      A double click is a set of 4 events, only one of them was sent, that's
      how it worked in gtktiledviewer, but not on Android.
      
      Change-Id: Id0eaef3765d385aab588b834f66b9f4b4f3ccb70
      b41b9681
    • Tomaž Vajngerl's avatar
      android: fix mHandleType initialization · c86b1062
      Tomaž Vajngerl yazdı
      Change-Id: I40df42b941ab1fbf9d847772e8b5c0ddea5cfcb7
      c86b1062
    • Miklos Vajna's avatar
      SwCursor: when tiled rendering also select word before the point · 2c9ca62c
      Miklos Vajna yazdı
      On the desktop, the logic is that if we double-click before a word, then we
      select the word, but if we double-click after it, then we don't.
      
      When tiled rendering, it's more important to always select something, as
      that's how the selection can be adjusted further. So if we long push
      after a non-empty text node, then select its last word. This way
      something is always selected if e.g. the user long pushes inside a table
      cell. (If the table cell is empty, then that's handled in
      SwCrsrShell::SelectCell().)
      
      Change-Id: I6e84874b8cf252fc6b72a75ffe9db67b03636862
      2c9ca62c
    • Miklos Vajna's avatar
      SwEditWin: when tiled rendering, let double click select an empty cell · b2b3a184
      Miklos Vajna yazdı
      When not tiled rendering and the user double-clicks on a word, then
      that's selected. If the double-click happens in an empty cell, nothing
      happens.
      
      When tiled rendering, still try to select a word, but if that doesn't
      work, then see if we are in a table, and then select just that cell.
      Then the user can use the usual selection handles to adjust the
      selection further.
      
      Change-Id: I6beabf5c73a02f1eb2ede6f8cf9062c1e6610e9e
      b2b3a184
    • Miklos Vajna's avatar
      SwShellTableCrsr::FillStartEnd: make sure that the rectangle's width is not 0 · 4cb40de7
      Miklos Vajna yazdı
      The shell (i.e. non-table) cursor does this already and this also fixes
      the SwRect::SVRect() assertions firing during the drag of a table
      selection handle.
      
      Change-Id: Ia63844f5e2f6e107d47b7ed39af2a72bd433003e
      4cb40de7
    • Tomaž Vajngerl's avatar
      android: account for handle repositioning, limit update to 50ms · 94e5223f
      Tomaž Vajngerl yazdı
      Text handles are usually shown under the current selection or
      cursor position. Previously this was done in InvalidationHandler,
      now the TextSelectionHandle takes this into account just before
      drawing. The reason is that the repositioning needs to be taken
      into account when the handle moves to reposition the coordinates
      back to original position.
      In addition to that, the number of times the move handle update
      event is send is now limited to 50ms to reduce stress for the
      device (less in queue, less messages via LOKit). This also makes
      the handle more fluid and jump around less.
      
      Change-Id: Idc401375c82b3eeac66328d98c80bf3cb7b675ea
      94e5223f
    • Tobias Madl's avatar
      Scheduler: Changed uLong to uInt32/uInt64 · 9c7016b5
      Tobias Madl yazdı
      Change-Id: Ic60463027c7f1b2d513539adba834b8d8e0ce6d3
      9c7016b5
    • Noel Grandin's avatar
      spelling · e379476e
      Noel Grandin yazdı
      Change-Id: I04def21b684d0c95bc3a26250fc8af42bc1b1fa6
      e379476e
    • Miklos Vajna's avatar
      DocxAttributeOutput::m_pSectionSpacingAttrList: use std::unique_ptr · a4068cb6
      Miklos Vajna yazdı
      Change-Id: Ia360b2461d0bf31abc62ae443822259b7197d90d
      a4068cb6
  2. 08 Mar, 2015 12 kayıt (commit)
  3. 07 Mar, 2015 7 kayıt (commit)
  4. 06 Mar, 2015 5 kayıt (commit)