- 24 Kas, 2015 15 kayıt (commit)
-
-
Miklos Vajna yazdı
Change-Id: I32f0de20864cae267ebd32516f20baf8e38f910b
-
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)
-
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)
-
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
-
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)
-
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
-
Miklos Vajna yazdı
(cherry picked from commit 527190f0) Conflicts: sw/source/uibase/docvw/SidebarWin.cxx Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
-
Miklos Vajna yazdı
(cherry picked from commit 43976548) Conflicts: vcl/source/control/scrbar.cxx Change-Id: Ieaedaa525d613f8ba55f336c613da163a09f7a33
-
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)
-
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)
-
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)
-
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)
-
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
-
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
-
Miklos Vajna yazdı
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea (cherry picked from commit 8a1b9ac5)
-
- 23 Kas, 2015 1 kayıt (commit)
-
-
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)
-
- 21 Kas, 2015 3 kayıt (commit)
-
-
Christian Lohmaier yazdı
Change-Id: I8fdde4b46e3e315a5b6a35cabc4495ebf69db057 (cherry picked from commit 6f5589d5)
-
Christian Lohmaier yazdı
Change-Id: Id7157ea5fadd684dceec52f69ec9279c4107b5f1 (cherry picked from commit 9feffdbe)
-
Caolán McNamara yazdı
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e (cherry picked from commit 506432f5)
-
- 18 Kas, 2015 15 kayıt (commit)
-
-
Miklos Vajna yazdı
Change-Id: I19efc6050c78162e0889437d4c8285d1a6714e82 (cherry picked from commit be28ab9a)
-
Miklos Vajna yazdı
(cherry picked from commit 479325de) Conflicts: sc/inc/docuno.hxx sd/source/ui/inc/unomodel.hxx sw/inc/unotxdoc.hxx Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
-
Miklos Vajna yazdı
(cherry picked from commit 4bddfc00) Conflicts: libreofficekit/source/gtk/lokdocview.cxx Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
-
Jan Holesovsky yazdı
Change-Id: I9e48407f6f5eb5cc4c36439b72648bb8d43deb79
-
Stephan Bergmann yazdı
...re 2c346d66 "tdf#39080 Hide Whitespace UI option added to the View menu." Change-Id: Ib2f364dba7a50854a11f004b42c7ee22ee10e48b (cherry picked from commit 6efbd4bb)
-
Miklos Vajna yazdı
Regression from commit 54a2c8c0 (tdf#39080 Interactive hide-whitespace mode, 2015-08-30), the problem was that SwPageFrm::IsOverHeaderFooterArea() checked if the header is active before accepting that the user clicked in that area. Don't require an active header at least in non-hide-whitespace mode, as the member function is used in the "could there be a header here" sense in SwEditWin::MouseButtonDown() to show the controls that allows actually adding a header. Change-Id: I6f905920113aed1512e333e718a8f26d88a3245d (cherry picked from commit a23f85f1)
-
Ashod Nakashian yazdı
Browser and Hide Whitespace page height now use SwPageFrm::GetContentHeight, which is const. A few improvements are done for both paths as well. Reviewed-on: https://gerrit.libreoffice.org/19730Tested-by:
Jenkins <ci@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit f05da45c) Conflicts: sw/source/core/layout/calcmove.cxx Change-Id: I73a8e920ccfa96d76cbbb002bed6a85f2e636ede
-
Caolán McNamara yazdı
Change-Id: I4be589325b89eac129328f98f9db7ce8c741892d (cherry picked from commit 705c0edc)
-
Ashod Nakashian yazdı
Moved the page resizing from SwLayoutFrm::Format to SwPageFrm::MakeAll and calculated the new page height more accurately based on the content (stolen from the browser-mode height calculation, to be refactored). This fixes issues with repagination with certain contents. Removed unnecessary ToggleLayoutMode calls and prevented clicking between pages in single-view mode to jump the cursor. Reviewed-on: https://gerrit.libreoffice.org/19699Tested-by:
Jenkins <ci@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 40f3a942) [ Miklos Vajna: adapted to build with non-prefixed SwPageFrm. ] Change-Id: I5662dd26efff66d6e95b8fd4dcf8564588adbbb7
-
Caolán McNamara yazdı
Change-Id: I5353b78b6961d28fb3f42e5f2073e9a83ac1037c (cherry picked from commit 13fdf04f)
-
Ashod Nakashian yazdı
Support for enabling and disabling hide-whitespace by clicking between page frames. Disabled header and footer decorators when hide-whitepsace is enabled, and page size is trimmed to the contents of each page. Experimental/suggestive mouse pointers added but only tested on Windows. Change-Id: Ia2faeeda9e3e783ffaf5340aa69303a4218892a7 Reviewed-on: https://gerrit.libreoffice.org/18156Tested-by:
Jenkins <ci@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 54a2c8c0)
-
Caolán McNamara yazdı
Change-Id: Id34ae93ccbb020f09c608f34e5f41a8622cf1607 (cherry picked from commit f7bc163c)
-
Ashod Nakashian yazdı
Merged Hide Whitespace with Browser Mode and hooked the former with the UI. In Hide Whitespace mode the headers and footers are removed and page margins as well as between-page gaps are reduced to minimum. In single-page view the side margins are left as-is. In multi-page and book-view the sides are removed, however, they have twice the width of the top and bottom. Printing and PDF export disable this mode. The usable screen real-estate is greatly improved in this mode, which is controlled from the View menu. Change-Id: I2d0075ae9a76162c26c78e9eb23a71920cdfc522 Reviewed-on: https://gerrit.libreoffice.org/17281Reviewed-by:
Jean-Baptiste Faure <jbfaure@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 2b8e62f7)
-
Ashod Nakashian yazdı
Change-Id: I1f9ba9ef489159ca54db802393d958d7fd6ac8ff Reviewed-on: https://gerrit.libreoffice.org/17280Tested-by:
Jenkins <ci@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 2c346d66)
-
Ashod Nakashian yazdı
Change-Id: I1d0a974a0b4b7053f59c23aa883bef61fd1df177 Reviewed-on: https://gerrit.libreoffice.org/17279Tested-by:
Jenkins <ci@libreoffice.org> Reviewed-by:
Caolán McNamara <caolanm@redhat.com> Tested-by:
Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 17ac8354)
-
- 17 Kas, 2015 5 kayıt (commit)
-
-
Miklos Vajna yazdı
Change-Id: I0f45b1a6ab198a8403073eea05497e76f758250c (cherry picked from commit 4890ae51288c2c571e85a1536cb6c8f44681bd25)
-
Miklos Vajna yazdı
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e (cherry picked from commit 50bdd588d39a23d44d2d2111256f5e505c7165af)
-
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)
-
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)
-
Miklos Vajna yazdı
Change-Id: I6772cce10d157421d983d6b93efb52bf8b95f5b8 (cherry picked from commit dc65f048)
-
- 16 Kas, 2015 1 kayıt (commit)
-
-
Andras Timar yazdı
Change-Id: I9f0e693aa48ed6a1ace8b9cdfd1b1db2f3379215
-