summaryrefslogtreecommitdiff
path: root/basic/source/app/textedit.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 13:24:03 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 13:24:03 +0000
commitc9fc34d25b9bee4805f41900f38343a0c9d1e630 (patch)
tree7ede626199ac7958b90ad0fa40f48135e4fccbac /basic/source/app/textedit.cxx
parent54d7b88b21bffe90711a042b1527db0e3387d8b7 (diff)
INTEGRATION: CWS sb59 (1.18.24); FILE MERGED
2006/08/11 15:04:25 sb 1.18.24.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'basic/source/app/textedit.cxx')
-rw-r--r--basic/source/app/textedit.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/basic/source/app/textedit.cxx b/basic/source/app/textedit.cxx
index 19a0430633be..e347a82e0d15 100644
--- a/basic/source/app/textedit.cxx
+++ b/basic/source/app/textedit.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textedit.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 09:58:30 $
+ * last change: $Author: obo $ $Date: 2006-10-12 14:24:03 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -164,7 +164,8 @@ void TextEditImp::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
}
else if( rTextHint.GetId() == TEXT_HINT_FORMATPARA )
{
- DoDelayedSyntaxHighlight( rTextHint.GetValue() );
+ DoDelayedSyntaxHighlight(
+ sal::static_int_cast< xub_StrLen >( rTextHint.GetValue() ) );
if ( pTextView->GetTextEngine()->IsModified() )
ModifyHdl.Call( NULL );
}
@@ -312,7 +313,7 @@ void TextEditImp::ImpDoHighlight( const String& rSource, ULONG nLineOff )
SbTextType eCol = r.eType;
Color aColor;
- xub_StrLen nLine = nLineOff+r.nLine-1; // -1, weil Basic bei 1 beginnt
+ ULONG nLine = nLineOff+r.nLine-1; // -1, weil Basic bei 1 beginnt
switch ( eCol )
{
case SB_KEYWORD:
@@ -778,7 +779,8 @@ void TextEdit::SetSelection( const TextSelection& rSelection ){ aEdit.pTextView-
USHORT TextEdit::GetLineNr() const
{
- return aEdit.pTextView->GetSelection().GetEnd().GetPara()+1;
+ return sal::static_int_cast< USHORT >(
+ aEdit.pTextView->GetSelection().GetEnd().GetPara()+1);
}
void TextEdit::ReplaceSelected( const String& rStr ){ aEdit.pTextView->InsertText(rStr); }
@@ -800,7 +802,7 @@ BOOL TextEdit::Find( const String& s )
DBG_CHKTHIS(TextEdit,0);
TextSelection aSelection = aEdit.pTextView->GetSelection();
- USHORT nPara = aSelection.GetStart().GetPara();
+ ULONG nPara = aSelection.GetStart().GetPara();
xub_StrLen nIndex = aSelection.GetStart().GetIndex();
if ( aSelection.HasRange() )