summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
AgeCommit message (Collapse)AuthorFilesLines
2015-12-14Related: rhbz#1289394 always provide the screen area the tip applies toCaolán McNamara1-8/+9
this will make it easier to implement native help tips Change-Id: I984dfadaf02e9b7bf542ba82cf070911c89cb699
2015-12-11tdf#69977: uno::Sequence is expensiveNoel Grandin9-40/+40
when used as a mutable data-structure. Plain std::vector halves the time taken to display the chart dialog Create a class to represent the std::vector we are going to be passing around, and move some of the utility methods into it to make the code prettier. Also create an optimised append(&&) method for the common case of appending small temporaries. Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485
2015-12-11sw: clean up no longer needed SwViewShell::isTiledRendering()Miklos Vajna3-11/+11
Change-Id: Icd719c461613f8c59cad81b256678307f69974e1
2015-12-11tdf#34375: resizing of drawings with shift key fixedOliver Specht1-1/+1
Change-Id: Ibd3b0e76484cf22a8d36f457f4b3c398ed1b85d1 Reviewed-on: https://gerrit.libreoffice.org/20602 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-12-09Use unique_ptr out-arg to in SfxBindings::QueryState to avoid mem leaksStephan Bergmann1-10/+5
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f Reviewed-on: https://gerrit.libreoffice.org/20477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-07Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_APIMiklos Vajna1-1/+0
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
2015-12-05silence vcl release mouse warningCaolán McNamara1-1/+2
Change-Id: I12eb894d88c7b96f92e3d080ac3cf24ff2e025ec
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon13-485/+485
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
2015-11-24sw lok comments: avoid crash an exit after clicking the scrollbarMiklos Vajna2-0/+6
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
2015-11-24sw lok comments: implement drag of the scrollbarMiklos Vajna3-5/+11
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. Change-Id: I2e39e18bf60c42a878bb8bfd808f1d47be27eecb
2015-11-24sw lok comments: fix missing invalidations from the scrollbarMiklos Vajna3-1/+117
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. Change-Id: Ie4ba5d0ec07229b0cfc08532e8e91ae25f7a4c9e
2015-11-23loplugin:nullptrStephan Bergmann1-1/+1
Change-Id: Iefd6d4a08a4a5f90f4f2f95889f6425aabe61334
2015-11-23sw lok comments: handle mouse up/down events on the vertical scrollbarMiklos Vajna1-10/+45
Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
2015-11-23sw lok comments: fix vertical scrollbar with custom zoomMiklos Vajna1-2/+3
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
2015-11-20sw lok comments: implement painting of the vertical scrollbarMiklos Vajna1-0/+14
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
2015-11-19sw lok comments: optimize sidebar text control invalidationMiklos Vajna1-15/+19
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). Change-Id: I2fe317549eefac9a63aaf50f5a9a242e15c4dc86
2015-11-19sw lok comments: don't paint hidden comment sub-widgetsMiklos Vajna1-5/+3
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
2015-11-17sw lok comments: fix meta author/data size with custom zoomMiklos Vajna1-2/+3
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
2015-11-17sw lok comments: fix comment widget width with custom zoomMiklos Vajna2-4/+5
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
2015-11-17sw lok comments: fix text selection with custom zoomMiklos Vajna1-3/+12
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
2015-11-16sw lok comments: fix sidebar width with custom zoomMiklos Vajna1-11/+11
Change-Id: I6772cce10d157421d983d6b93efb52bf8b95f5b8
2015-11-16Rename SetCursor -> CallSetCursor to avoid future name clash.Jan Holesovsky2-12/+12
Change-Id: I0e0e2351f1bcccee8157c00ab22c35dcf2007ec5
2015-11-15loplugin:nullptrStephan Bergmann1-2/+2
Change-Id: Ie59472fb9c58561fad46dff08cfcdcb8a96e7032
2015-11-14sw lok comments: implement mouse move and mouse upMiklos Vajna3-2/+48
As long as we don't tweak the map mode of the comment widgets permanently we also have to disable the selection engine's timer, as that would emit events without the correct map mode: so disable that for the LOK case for now. Change-Id: If377ff2f064c30feb473f153f9d5b29b8ace7113
2015-11-14sw lok comments: fix cursor position of a newly created sidebar windowMiklos Vajna1-0/+17
With this, pressing ctrl-alt-c to create a new comment has the correct cursor position. Change-Id: Icb8d708dab015d8ffa9bcfe28de66238a75b50bc
2015-11-14sw lok comments: fix callback of newly created outliner viewsMiklos Vajna1-0/+13
SwPostItMgr::registerLibreOfficeKitCallback() already took care of informing existing outliners, this commit gives a callback to newly registered ones as well. Change-Id: I660dcb54231a9d404bf80b4284003d119dae6a5c
2015-11-14sw lok comments: implement setTextSelection() APIMiklos Vajna2-21/+49
So that it's possible to drag the text selection start/end handles in comment text when there is an existing selection. Change-Id: I3acc4770928d4f385f0ca09a2484a9e112409907
2015-11-14sw lok comments: emit invalidation events in SidebarTextControlMiklos Vajna2-0/+28
With this, newly typed characters show up instantly in comments, not only after changing the zoom level. Change-Id: I1470db1ec03cc415917375f1f95434cf0944e559
2015-11-13sw lok comments: fix position of blinking cursor after mouse clickMiklos Vajna1-6/+18
LOK always works in absolute twips (origo being the top left corner of SwEditWin), so not only the callbacks have to translate relative twips to absolute ones, but the opposite have to be done for mouse event coordinates. With this, clicking at a random position inside a comment places the blinking cursor at a reasonable position, not always at 0,0. Change-Id: Ic8d20f177acd9e1908acf17698c53a1470bd4aec
2015-11-13sw lok: disable comment menu button for nowMiklos Vajna1-0/+4
Change-Id: Ic052544b2835181652732b8de9eaf79572a9db6e
2015-11-13sw lok: fix blinking cursor position of commentsMiklos Vajna4-14/+35
With this, it is possible to click inside a comment (and get a blinking cursor inside a comment), and also possible to use the arrow keys to native around and still get correct blinking cursor position. Change-Id: I29eb1e60e4e571151f0b18bec8cf765ea09af09f
2015-11-13sw: loplugin:badstatics: convert static SwViewShell::mpReplaceBmpMichael Stahl1-1/+1
... and mpErrorBmp to actual members (not just in name only). Change-Id: Id02553451f1990dbc111e9c842247764bf7554bc
2015-11-12sw lok: forward key events to annotation window if necessaryMiklos Vajna4-1/+30
And to allow proper reaction by the annotation windows, inform them when a LOK callback is registered. With this, it's possible to modify the contents of annotations via LOK. Change-Id: I4489941512197880940e20cbaeb0b47a7a6f26fc
2015-11-12loplugin:nullptrStephan Bergmann2-2/+2
Change-Id: I8df633d53d3669b073dd20b631adc50570a066dd
2015-11-12sw lok: route SwEditWin::MouseButtonDown to SidebarTextControl if necessaryMiklos Vajna3-0/+55
LOK sends all mouse events to SwEditWin, so add initial hit testing in its mouse handler to forward the mouse events to the right VCL widget. Change-Id: I67e8e19f47156261fd7c7eafd4e63f743e0c4ce9
2015-11-11sw lok: fix sidebarwindows::SwSidebarWin pixel positionMiklos Vajna1-0/+11
So SwSidebarWin member functions don't get twip values when they call GetPosPixel(). Change-Id: Ied4ff7f49d0320766b045d78f731900af92d37ef
2015-11-10This PixelToLogic() call can be conditional in SwSidebarWin::SetPosAndSize()Miklos Vajna1-7/+7
It is only needed when tiled rendering. Change-Id: Ie1668f5f3d4d17abc212e2262a6c155dcb855d2e
2015-11-10sw lok: fix length of the line overlay above the notesMiklos Vajna1-0/+12
With this, e.g. a line above a note (with width of 180 px) is also 180 px, not 12 px. Change-Id: I7c4eeda1bc904242dc298013411b9671ba0f2149
2015-11-10sw lok: fix width of the notes sidebarMiklos Vajna1-1/+10
The map mode is in general disabled during tiled rendering, so mouse positions can be sent in using twips, but here we have to temporarily enable it, otherwise the width will be returned always in pixels. With this, the gray background of the sidebar has the proper width, not e.g. fifteenth of the expected value (using default zoom). Change-Id: I4380ee0ba6bcda97cf71735161dbdc826e7a2532
2015-11-10sw: allow doc model xml dump creation while editing comment textMiklos Vajna1-0/+11
Change-Id: Ie682cfe97b8c48bc66575b89875ca617dbb8ab4e
2015-11-10tdf#39080 Hide Whitespace improvementsAshod Nakashian1-6/+9
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. Change-Id: I5662dd26efff66d6e95b8fd4dcf8564588adbbb7 Reviewed-on: https://gerrit.libreoffice.org/19699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann16-188/+188
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-09formatting improvements in sw/Noel Grandin2-6/+4
after my recent "com::sun::star->css in sw" commit Change-Id: I2545648fc6f14ea0ebcabbe012e91546cf392b16
2015-11-07Misc tweaks and cleanups.Ashod Nakashian3-40/+40
Streamlined a couple of hotspots and some minor cleanups. Change-Id: I85a9423e03f7e20ce78736a44d668da859a443cd Reviewed-on: https://gerrit.libreoffice.org/19720 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-11-06sc lok annotations: paint range and anchor overlayMiklos Vajna1-0/+15
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
2015-11-06sw lok annotations: disable the scrollbar for nowMiklos Vajna1-0/+6
Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
2015-11-06sw lok annotations: paint all child windowMiklos Vajna4-23/+21
And use map modes to get the painting to the correct position instead of manually adjusting each and every Paint() method. Change-Id: I66798321b8bbf2c7968d6ac1edebb1f8df60bce8
2015-11-06com::sun::star->css in sw/source/coreNoel Grandin7-21/+21
Change-Id: I30016977f1be8fb53dd239367d043de92a9467d9
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann1-2/+2
Change-Id: I55970d363ab53eb78d580192006e52d9240d46fb
2015-11-05sw tiled rendering: initial annotation supportMiklos Vajna4-4/+52
Change-Id: I4fcb05f8a58965341cf44a1b7e2367b5cbff981d