Le 03/11/2011 03:21, Matt Pratt a écrit :
On 11/02/2011 10:10 AM, Caolán McNamara wrote:
On Wed, 2011-11-02 at 14:55 +0000, Caolán McNamara wrote:
There are some titchy little wrinkles worth looking at, e.g. its got
handlers for cursor and mouse move and things like that to update the
count, but not apparently for selecting text by clicking the mouse, i.e.
double click to select a word and single click somewhere else to
unselect the text.
I *think* the right thing to do is to additionally hook into "EndSelect"
which gets called when a selection is completed, and "Invalidate" which
seems to get called when a selection is discarded.
i.e.
http://cgit.freedesktop.org/libreoffice/core/commit/?id=0cbcb89fde8cc81db499bc1e388fd53ef6fa3c3f
Seems to work anyway.
Wow, thanks for sorting out the wrinkles and pushing the patch so quickly.
I think with your hook into EndSelect we may be able to get rid of the
mouse hook?
Hi Matt,
I tested the new Word count dialog in the master. It works well but I
have two points:
- I do not know if it possible to make the window resizable, in order do
not mask the text area
- the counts are updated when you press a character key. If you use an
autotext (F3), the counts are updated once you have entered another
character. To test : enter DT+F3 (if your UI is in English, DT for Dummy
Text).
Thank you for this patch. :-)
Best regards.
JBF
--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.