diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 16:37:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-11 20:18:19 +0000 |
commit | 3a81e90a45e361bef3dbacf533f6a5ddf7e901fa (patch) | |
tree | 467702c91dc60d5e159d1650109b46e34b62f5d1 /include/vcl/edit.hxx | |
parent | f8f18871b0293e8a8b5a9fa24a99e44902946ff4 (diff) |
longparas: lift 16bit max edit length
Change-Id: Ide74f0a48f06cbe9539f16ef6c6d04bba043dcf9
Diffstat (limited to 'include/vcl/edit.hxx')
-rw-r--r-- | include/vcl/edit.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index 23fce469f155..6df07147f46e 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -44,7 +44,7 @@ struct Impl_IMEInfos; // - Edit-Types - // -------------- -#define EDIT_NOLIMIT STRING_LEN +#define EDIT_NOLIMIT SAL_MAX_INT32 #define EDIT_UPDATEDATA_TIMEOUT 350 typedef OUString (*FncGetSpecialChars)( Window* pWin, const Font& rFont ); @@ -70,7 +70,7 @@ private: long mnXOffset; Selection maSelection; sal_uInt16 mnAlign; - xub_StrLen mnMaxTextLen; + sal_Int32 mnMaxTextLen; sal_Int32 mnWidthInChars; sal_Int32 mnMaxWidthChars; AutocompleteAction meAutocompleteAction; @@ -89,7 +89,7 @@ private: DECL_DLLPRIVATE_LINK( ImplUpdateDataHdl, void* ); - SAL_DLLPRIVATE bool ImplTruncateToMaxLen( OUString&, sal_uInt32 nSelectionLen ) const; + SAL_DLLPRIVATE bool ImplTruncateToMaxLen( OUString&, sal_Int32 nSelectionLen ) const; SAL_DLLPRIVATE void ImplInitEditData(); SAL_DLLPRIVATE void ImplModified(); SAL_DLLPRIVATE OUString ImplGetText() const; @@ -189,8 +189,8 @@ public: void SetInsertMode( sal_Bool bInsert ); sal_Bool IsInsertMode() const; - virtual void SetMaxTextLen( xub_StrLen nMaxLen = EDIT_NOLIMIT ); - virtual xub_StrLen GetMaxTextLen() const { return mnMaxTextLen; } + virtual void SetMaxTextLen( sal_Int32 nMaxLen = EDIT_NOLIMIT ); + virtual sal_Int32 GetMaxTextLen() const { return mnMaxTextLen; } void SetWidthInChars(sal_Int32 nWidthInChars); sal_Int32 GetWidthInChars() const { return mnWidthInChars; } |