Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Kohei/LO devs,

Now, a slightly bigger issue.  The sheet prefix option input box doesn't
check for valid sheet name.  It even allows an empty one, which is not
very good.  So, we should at least apply the same restriction as in
ScDocument::ValidTabName() method (located in document.cxx#250).  You
can simply call that method from the option page to validate the name
since that method is static.

The preferred way to set the restriction is to inspect the new name each
time the text value in the input box changes.  You can intercept a input
value change event for the input box to do the inspection and accept or
reject the new text value.  I believe there are other UI parts that do
the same thing so hopefully you can find some example code to follow.
If not, let me know and I'll dig in to find one.


This is an old one, other priorities in life, but now I'm back to
finish this....

Can you give me any pointers on how to intercept a input value change
event. I've done some digging (looking for an event listener) but
haven't found it quite yet.

Thanks in advance.

/Albert

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.