diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-06-04 16:13:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-04 16:14:27 +0100 |
commit | 19a2685ec04bd6ce882d4dd08d24c7248cf99a84 (patch) | |
tree | 9eb3f88551c71a225976a71e05061753a68f1e84 /vcl/source/edit | |
parent | a166e609822c1ef10d2cf92d75c288e875f480e6 (diff) |
clip message box dialogs to some reasonable widths
Change-Id: I7fc179865306ba5b593b090b1fdb8971ba6bd508
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index 9a2b03c54722..d1717d5ec0df 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -115,6 +115,8 @@ public: void SetMaxTextLen( xub_StrLen nLen ); xub_StrLen GetMaxTextLen() const; + void SetMaxTextWidth( sal_uLong nMaxWidth ); + sal_Bool IsInsertMode() const; void InsertText( const String& rStr ); @@ -400,6 +402,11 @@ String ImpVclMEdit::GetSelected( LineEnd aSeparator ) const return mpTextWindow->GetTextView()->GetSelected( aSeparator ); } +void ImpVclMEdit::SetMaxTextWidth( sal_uLong nMaxWidth ) +{ + mpTextWindow->GetTextEngine()->SetMaxTextWidth( nMaxWidth ); +} + void ImpVclMEdit::Resize() { size_t nIteration = 1; @@ -1113,6 +1120,11 @@ void VclMultiLineEdit::SetMaxTextLen( xub_StrLen nMaxLen ) pImpVclMEdit->SetMaxTextLen( nMaxLen ); } +void VclMultiLineEdit::SetMaxTextWidth( sal_uLong nMaxWidth ) +{ + pImpVclMEdit->SetMaxTextWidth(nMaxWidth ); +} + xub_StrLen VclMultiLineEdit::GetMaxTextLen() const { return pImpVclMEdit->GetMaxTextLen(); |