1. 28 Kas, 2015 27 kayıt (commit)
  2. 24 Kas, 2015 13 kayıt (commit)
    • Miklos Vajna's avatar
      LOK: update headers from master · 822a962c
      Miklos Vajna yazdı
      Change-Id: I32f0de20864cae267ebd32516f20baf8e38f910b
      822a962c
    • Miklos Vajna's avatar
      sw lok comments: fix map mode state after changing zoom levels · 7d6fd383
      Miklos Vajna yazdı
      Zoom level of SwEditWin is kept in sync with the client, so that the
      pixel-based comment widgets can be positioned correctly. But that does
      not mean in general the SwEditWin map mode should not be disabled: so
      that we don't have to tweak the map mode for each and every
      postMouseEvent() call and still be able to send them using logic
      coordinates.
      
      Change-Id: I6f686b93d2509d52fdd34e84a502cf04e1ce6e59
      (cherry picked from commit de2a6897)
      7d6fd383
    • Miklos Vajna's avatar
      sw lok comments: avoid crash an exit after clicking the scrollbar · 0088ea98
      Miklos Vajna yazdı
      Without this, vcl::Window::ImplTrackTimerHdl() will be called on a
      deleted vcl::Window.
      
      Can be reproduced with a comment having a scrollbar in a LOK client,
      then clicking on the down button of the scrollbar a number of times ->
      crash on exit.
      
      Change-Id: I5d67f96e8baa199f65ec5cf39cb5d39c8162ff33
      (cherry picked from commit 7c654ee9)
      0088ea98
    • Miklos Vajna's avatar
      sw lok comments: implement drag of the scrollbar · 96578c97
      Miklos Vajna yazdı
      With this, if a comment has a vertical scrollbar, then not only the
      buttons of the scrollbar can be clicked on, but also the slider of the
      scrollbar can be dragged.
      
      (cherry picked from commit d562df03)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: I2e39e18bf60c42a878bb8bfd808f1d47be27eecb
      96578c97
    • Miklos Vajna's avatar
      vcl lok: handle tracking coordinates which are in twips · 0e41aa81
      Miklos Vajna yazdı
      This is similar to the mouse button down handling. When the map mode is
      disabled and the map mode is in twips, then in general it's possible to
      send mouse coordinates in twips. The scrollbar is usually in pixels, so
      add extra code to still make this possible.
      
      Change-Id: I0c7e404ecd7ac839e000266e396683bb7d15c505
      (cherry picked from commit d7acb44b)
      0e41aa81
    • Miklos Vajna's avatar
      sw lok comments: fix missing invalidations from the scrollbar · 457ecf7e
      Miklos Vajna yazdı
      If a comment had a scrollbar, and the user clicked on the down arrow of
      it, then the button remained in the "pushed" state, as the scrollbar
      invalidations were not routed to the LOK client.
      
      With this, the button gets back to its non-pushed state after the mouse
      button is released.
      
      (cherry picked from commit 55040ea1)
      
      Change-Id: Ie4ba5d0ec07229b0cfc08532e8e91ae25f7a4c9e
      457ecf7e
    • Miklos Vajna's avatar
      sw lok comments: handle mouse up/down events on the vertical scrollbar · cb0c081d
      Miklos Vajna yazdı
      (cherry picked from commit 527190f0)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
      cb0c081d
    • Miklos Vajna's avatar
      vcl lok: fix scrollbar to accept mouse events in twips · 2bfd1c7d
      Miklos Vajna yazdı
      (cherry picked from commit 43976548)
      
      Conflicts:
      	vcl/source/control/scrbar.cxx
      
      Change-Id: Ieaedaa525d613f8ba55f336c613da163a09f7a33
      2bfd1c7d
    • Miklos Vajna's avatar
      sw lok comments: fix vertical scrollbar with custom zoom · 90a46a80
      Miklos Vajna yazdı
      With this, if a comment has enough content that it gets a vertical
      scrollbar, then tiled rendering output looks OK, even with non-100%
      zoom.
      
      Change-Id: I699aadc11b6c34fb0791e70705719fd61169d972
      (cherry picked from commit 30b511ae)
      90a46a80
    • Miklos Vajna's avatar
      sw lok comments: implement painting of the vertical scrollbar · 0050073b
      Miklos Vajna yazdı
      This one is special, as normally its map mode is in pixels, but we need
      all sub-widgets to work in twips when tiled rendering.
      
      With this, the scrollbar widget (both the buttons and the
      button/background area of the scrollbar itself) is painted at the
      correct location when Writer comments have enough content so the
      scrollbar is visible.
      
      Change-Id: I4ee9ef8618974b965339078d2262364ec19732ef
      (cherry picked from commit f411ef1b)
      0050073b
    • Miklos Vajna's avatar
      vcl ScrollBar: audit Draw*() calls in ImplDraw() · 80169264
      Miklos Vajna yazdı
      These member functions take logic units, and the only case when omitting
      PixelToLogic() all the time works is when both the widget itself and
      render context has a pixel map unit.
      
      Add missing PixelToLogic() calls where the input is in pixels, so in
      case the render context has some logic units, the output is still
      painted at the correct location.
      
      This is needed for e.g. tiled rendering of the scrollbar of Writer
      comment widgets.
      
      Change-Id: Ideb75625b1f6349c5f18342e6f438fd5d7c31dcd
      (cherry picked from commit f2081039)
      80169264
    • Miklos Vajna's avatar
      SwPageFrm::IsOverHeaderFooterArea: check for IsActive() only later · 70449a45
      Miklos Vajna yazdı
      Checking for a bool is certainly cheaper than a chain of member function
      calls.
      
      Change-Id: I9520194e58e75264f3fcbb413a618e3995f59a4e
      (cherry picked from commit 5eb7759d)
      70449a45
    • Miklos Vajna's avatar
      sw lok comments: optimize sidebar text control invalidation · 100ac369
      Miklos Vajna yazdı
      Instead of invalidating the whole area, invalidate the sub-widget when
      the whole area of the sub-widget would be invalidated.
      
      With this, a test comment with enough comment to have a scrollbar
      results in 3 paintTile() calls instead of 11 ones (70% save).
      
      (cherry picked from commit 9ece5c87)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarTxtControl.cxx
      
      Change-Id: I2fe317549eefac9a63aaf50f5a9a242e15c4dc86
      100ac369