On Tue, Jul 30, 2013 at 12:06 PM, Stephan Bergmann <sbergman@redhat.com> wrote:
On 07/30/2013 07:02 PM, Norbert Thiebaud wrote:
after a bit more of reflection....
1/ the current API specify 0 as = no-limit
ah, if that is so (though offapi/com/sun/star/awt/XTextComponent.idl doesn't
mention it), then the below is indeed a clever way out for now
right it doesn't but UnoEditControlModel does mention it on its
setMaxLen() and the implementation forward the value to the
XTextComponent as-is
otoh, some code use if(getmaxtextlen() != EDIT_NOLIMIT) with
EDIT_NOLIMT defiend to STRING_LEN
due to the oveflow that translate to SetMaxTextLen(-1) in UNO
furthermore SetMaxTextLen has different default value for the class
Edit (default to EDIT_NOLIMIT) and VclMultiLineEdit(default 0)
argh!!....
Norbert
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.