Age | Commit message (Collapse) | Author | Files | Lines |
|
this will make it easier to implement native help tips
Change-Id: I984dfadaf02e9b7bf542ba82cf070911c89cb699
|
|
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
|
|
Change-Id: Icd719c461613f8c59cad81b256678307f69974e1
|
|
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>
|
|
Change-Id: I35df02de675068478a36ef05266ffc2d3054b07f
Reviewed-on: https://gerrit.libreoffice.org/20477
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
|
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
|
|
Change-Id: I12eb894d88c7b96f92e3d080ac3cf24ff2e025ec
|
|
This commit renames the most annoying abbreviations in Writer (and
partially in the shared code too).
Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
|
|
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
|
|
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
|
|
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
|
|
Change-Id: Iefd6d4a08a4a5f90f4f2f95889f6425aabe61334
|
|
Change-Id: Ib1c334825a6629224fe0c8fba564656d53e67410
|
|
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
|
|
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
|
|
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
|
|
Change-Id: Ia513821b43729951c7b097fea498f0e22b9d10ea
|
|
Change-Id: I3310813c971aa7abffccc0b7f462e05caa83482e
|
|
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
|
|
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
|
|
Change-Id: I6772cce10d157421d983d6b93efb52bf8b95f5b8
|
|
Change-Id: I0e0e2351f1bcccee8157c00ab22c35dcf2007ec5
|
|
Change-Id: Ie59472fb9c58561fad46dff08cfcdcb8a96e7032
|
|
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
|
|
With this, pressing ctrl-alt-c to create a new comment has the correct
cursor position.
Change-Id: Icb8d708dab015d8ffa9bcfe28de66238a75b50bc
|
|
SwPostItMgr::registerLibreOfficeKitCallback() already took care of
informing existing outliners, this commit gives a callback to newly
registered ones as well.
Change-Id: I660dcb54231a9d404bf80b4284003d119dae6a5c
|
|
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
|
|
With this, newly typed characters show up instantly in comments, not
only after changing the zoom level.
Change-Id: I1470db1ec03cc415917375f1f95434cf0944e559
|
|
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
|
|
Change-Id: Ic052544b2835181652732b8de9eaf79572a9db6e
|
|
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
|
|
... and mpErrorBmp to actual members (not just in name only).
Change-Id: Id02553451f1990dbc111e9c842247764bf7554bc
|
|
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
|
|
Change-Id: I8df633d53d3669b073dd20b631adc50570a066dd
|
|
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
|
|
So SwSidebarWin member functions don't get twip values when they call
GetPosPixel().
Change-Id: Ied4ff7f49d0320766b045d78f731900af92d37ef
|
|
It is only needed when tiled rendering.
Change-Id: Ie1668f5f3d4d17abc212e2262a6c155dcb855d2e
|
|
With this, e.g. a line above a note (with width of 180 px) is also 180
px, not 12 px.
Change-Id: I7c4eeda1bc904242dc298013411b9671ba0f2149
|
|
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
|
|
Change-Id: Ie682cfe97b8c48bc66575b89875ca617dbb8ab4e
|
|
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>
|
|
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
|
|
after my recent "com::sun::star->css in sw" commit
Change-Id: I2545648fc6f14ea0ebcabbe012e91546cf392b16
|
|
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>
|
|
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
|
|
Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
|
|
And use map modes to get the painting to the correct position instead of
manually adjusting each and every Paint() method.
Change-Id: I66798321b8bbf2c7968d6ac1edebb1f8df60bce8
|
|
Change-Id: I30016977f1be8fb53dd239367d043de92a9467d9
|
|
Change-Id: I55970d363ab53eb78d580192006e52d9240d46fb
|
|
Change-Id: I4fcb05f8a58965341cf44a1b7e2367b5cbff981d
|