[Libreoffice] [PATCH] Making default tab prefix name configurable in Calc

Albert Thuswaldner albert.thuswaldner at gmail.com
Wed Jan 25 12:48:35 PST 2012

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.


More information about the LibreOffice mailing list