1. 24 Kas, 2015 15 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
    • Miklos Vajna's avatar
      editeng lok: invalidate on scroll · 952e9eed
      Miklos Vajna yazdı
      E.g. when a Witer comment has long enough contents to get scrolled, the
      desktop case repaints its contents by vcl::Window::Scroll(), followed by
      a vcl::Window::Update(), i.e. vcl::Window::Invalidate() is not called.
      
      The result of this in case of tiled rendering is that no tile is
      repainted, so call vcl::Window::Invalidate() after scrolling manually.
      
      A generic VCL-level invalidate-after-scroll is not wanted, as the
      scrolling of the document contents and the main document window is not
      in sync when tiled rendering.
      
      (cherry picked from commit 162ae47a)
      
      Conflicts:
      	editeng/source/editeng/impedit.cxx
      
      Change-Id: I74296a0f0e52c92cf3db6aefa73f28bb2b202871
      952e9eed
    • Miklos Vajna's avatar
      sw lok comments: don't paint hidden comment sub-widgets · 9615d10f
      Miklos Vajna yazdı
      Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
      (cherry picked from commit 8a1b9ac5)
      9615d10f
  2. 23 Kas, 2015 1 kayıt (commit)
    • Miklos Vajna's avatar
      LOK: add Document::getTileMode() · 0cf8aa99
      Miklos Vajna yazdı
      So that clients can know if they get old-style RGBA or new-style ARGB
      output in paintTile().
      
      Change-Id: Icfde4b3259444b3524e64478ccd976664a3fe0ed
      (cherry picked from commit fc06f801)
      0cf8aa99
  3. 21 Kas, 2015 3 kayıt (commit)
  4. 18 Kas, 2015 15 kayıt (commit)
  5. 17 Kas, 2015 5 kayıt (commit)
    • Miklos Vajna's avatar
      sw lok comments: implement clipboard copy · f04f2f57
      Miklos Vajna yazdı
      Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c
      (cherry picked from commit 4890ae51288c2c571e85a1536cb6c8f44681bd25)
      f04f2f57
    • Miklos Vajna's avatar
      sw lok comments: fix meta author/data size with custom zoom · 68808270
      Miklos Vajna yazdı
      Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
      (cherry picked from commit 50bdd588d39a23d44d2d2111256f5e505c7165af)
      68808270
    • Miklos Vajna's avatar
      sw lok comments: fix comment widget width with custom zoom · 5abc86ab
      Miklos Vajna yazdı
      When tiled rendering, then only the render context (or failing that,
      SwViewShell::GetOut()) has the correct zoom level, so use that when
      doing pixel-to-logic conversion or scaling pixel values.
      
      Change-Id: I265a642b8253c6eced42da2a0e06a2de25c36ca8
      (cherry picked from commit 8a249d38e94098b300fb4f49cb4a44960027fa20)
      5abc86ab
    • Miklos Vajna's avatar
      sw lok comments: fix text selection with custom zoom · ade5aa14
      Miklos Vajna yazdı
      SwPostItMgr::GetSidebarWidth() can be called in two scenarios:
      
      - inside PaintTile() the output device contains the zoom level and has
        the map mode enabled (and its scale factor is the zoom level)
      - outisde PaintTile() the output device is SwEditWin and has the map
        mode disabled (and the zoom level is to be taken from the view
        options)
      
      Change-Id: I6cf19f3241a2e972ae711e0efa7b0205aae1a3f2
      (cherry picked from commit acec324b0c753877cf913e8064c02603307b5ebb)
      ade5aa14
    • Miklos Vajna's avatar
      sw lok comments: fix sidebar width with custom zoom · f326e5b1
      Miklos Vajna yazdı
      Change-Id: I6772cce10d157421d983d6b93efb52bf8b95f5b8
      (cherry picked from commit dc65f048)
      f326e5b1
  6. 16 Kas, 2015 1 kayıt (commit)