Use basegfx library function to clamp numbers

Change-Id: I3142f55ecf94ce2143e92492243bc5959322704f
fdo#85907 Better use of space in Special Characters dialog

Change-Id: Iaa42e8ef7727291ba112fc92db5051951046f86f
Reviewed-on: https://gerrit.libreoffice.org/12265
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
rtl::OUString::fromUtf8(): use rtl_convertStringToUString()

So that we can assert if the input wasn't valid UTF-8.

Change-Id: I626a5874b37553b2fe76acfea2ce7d9d9fd38725
WaE: unused variable 'bSuccess'

Change-Id: Ia76ac36d3220883aa72b67dbaaa5c0e0251e3cf3
editeng: SvxRTFParser sal_Bool to bool

Change-Id: I2159f5c45ec6e6df965836705792cf2d71abbc42
fdo#85812: RTF import: better fix for run type in new groups

Apparently Word treats \ltrch \rtlch differently from
\loch \hich \dbch when groups are opened.

Change-Id: I257712521e8e77fa66e76857489797ecc675506e
Fix for SUSE L3 bug 624546 (freedesktop 83733)

Problem:
When I'm in outline mode, if I select a slide in the left slide preview
pane, ctrl-c, then select another slide I would like it after and hit
ctrl-v; it refuses to cut/paste.

Analysis:
This issue is due to the fact that the outline view always grabs focus
when activated and a view is activated whenever is pushed to the
sfx shell stack even if it is not the new top-most active view shell
(see `ViewShellManager`, `SfxViewShell`, `SfxDispacther`).

Solution:
Make the `OutlineViewShell` grabs focus only if it is the top-most
active view shell.

Rationale:
When `OutlineViewShell::Activate` is invoked, instead of removing
the focus grabbing action completely, we check if the
`OutlineViewShell` instance is the the top-most view shell and
perform the focus grabbing action only in such a case. This change
required to have also the `DrawViewShell` grabbing focus on
activation (only when it is the top-most view shell). In order to
implement this solution I needed to add a new method (and data
member) to the `ViewShellManager` class. I named it
`GetTopViewShell`. This method returns a pointer to the top-most
active view shell of the internal stack. The returned pointer is
updated in the `UpdateShellStack` method, before the sfx shell
stack is updated.

For more details see :
https://gist.github.com/mcecchetti/15b3ebc505d6582ea0db

Change-Id: I619a406864f50f0e62dee3fcb9ac5d46e3d48272
sd: fix STL assertion "dereference past-the-end iterator"

(regression from 967a386bccb15b99915a1e878e42450fbe9a2d0e)

Change-Id: I9408170eb155f433922e5b3887059078a141d78a
Basic Idle handler implementation

An idle handler will ultimately be a zero time timeout with
prioritisation layered on top of that.

Change-Id: I3f0802d5001172fc7b8409274bc5a3632e5dad34
changed some timer to idle

Change-Id: Ifd5e2d87732d3e537c7754e52be24ef768ecb8d9
idle: implement ProcessAllIdleHandlers.

It is often useful to flush all pending idle / GUI work for testing
and/or profiling - so make that easy to do with this new method.
Also tag idle Timers with a boolean, for ease of use.

Change-Id: I57e883be8fe8637b3715008e8074d0fa258ca0c3
idle: allow processing pending handlers remotely.

Change-Id: Idb835f1fb04a3f9ca2430781cabeb785285ccf7b
overlayermanagerbuffered: timer to idle

Change-Id: I40d19b20259f2d2dada32467efe4defe3ed4b07c
idle: unit test.

Change-Id: Ie48fb4260bf580010715777bc63974e4d635aed8
coverity#735652 Division or modulo by zero

and

coverity#735651 Division or modulo by zero

Change-Id: I412308ef3e736b1e9c72d1dd3a8d80d2dce92d67
coverity#1242794 Untrusted loop bound

Change-Id: I902a5bf989a8f385994a2f927cce4975b18f06d2
coverity#1242865 Untrusted loop bound

Change-Id: I9dc9cd98d0a02a2867d4c40c7afb7bf873513143
coverity#1242689 Untrusted loop bound

Change-Id: Ie226805ef8d430eb3f7b3abaa54ac3af31f72f7b
coverity#706388 Uncaught exception

Change-Id: I4382645e47ae81e3f15bf69aaa2432dcebd40712
coverity#706401 Uncaught exception

Change-Id: Iacbaf56a23d6f1878c5a5ec6f00db8211cb8ed62