1. 24 Kas, 2015 7 kayıt (commit)
    • 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 9 kayıt (commit)