summaryrefslogtreecommitdiff
path: root/editeng/source/editeng/textconv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/editeng/textconv.cxx')
-rw-r--r--editeng/source/editeng/textconv.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx
index e46a40f09e02..b92284eb60bf 100644
--- a/editeng/source/editeng/textconv.cxx
+++ b/editeng/source/editeng/textconv.cxx
@@ -62,7 +62,7 @@ TextConvWrapper::TextConvWrapper( Window* pWindow,
const Font* pTargetFont,
sal_Int32 nOptions,
sal_Bool bIsInteractive,
- BOOL bIsStart,
+ sal_Bool bIsStart,
EditView* pView ) :
HangulHanjaConversion( pWindow, rxMSF, rSourceLocale, rTargetLocale, pTargetFont, nOptions, bIsInteractive )
{
@@ -286,8 +286,8 @@ sal_Bool TextConvWrapper::ConvContinue_impl()
void TextConvWrapper::SetLanguageAndFont( const ESelection &rESel,
- LanguageType nLang, USHORT nLangWhichId,
- const Font *pFont, USHORT nFontWhichId )
+ LanguageType nLang, sal_uInt16 nLangWhichId,
+ const Font *pFont, sal_uInt16 nFontWhichId )
{
ESelection aOldSel = pEditView->GetSelection();
pEditView->SetSelection( rESel );
@@ -321,7 +321,7 @@ void TextConvWrapper::SelectNewUnit_impl(
const sal_Int32 nUnitStart,
const sal_Int32 nUnitEnd )
{
- BOOL bOK = 0 <= nUnitStart && 0 <= nUnitEnd && nUnitStart <= nUnitEnd;
+ sal_Bool bOK = 0 <= nUnitStart && 0 <= nUnitEnd && nUnitStart <= nUnitEnd;
DBG_ASSERT( bOK, "invalid arguments" );
if (!bOK)
return;
@@ -329,8 +329,8 @@ void TextConvWrapper::SelectNewUnit_impl(
ESelection aSelection = pEditView->GetSelection();
DBG_ASSERT( aSelection.nStartPara == aSelection.nEndPara,
"paragraph mismatch in selection" );
- aSelection.nStartPos = (USHORT) (nLastPos + nUnitOffset + nUnitStart);
- aSelection.nEndPos = (USHORT) (nLastPos + nUnitOffset + nUnitEnd);
+ aSelection.nStartPos = (sal_uInt16) (nLastPos + nUnitOffset + nUnitStart);
+ aSelection.nEndPos = (sal_uInt16) (nLastPos + nUnitOffset + nUnitEnd);
pEditView->SetSelection( aSelection );
}
@@ -372,7 +372,7 @@ void TextConvWrapper::ReplaceUnit(
ReplacementAction eAction,
LanguageType *pNewUnitLanguage )
{
- BOOL bOK = 0 <= nUnitStart && 0 <= nUnitEnd && nUnitStart <= nUnitEnd;
+ sal_Bool bOK = 0 <= nUnitStart && 0 <= nUnitEnd && nUnitStart <= nUnitEnd;
DBG_ASSERT( bOK, "invalid arguments" );
if (!bOK)
return;
@@ -405,7 +405,7 @@ void TextConvWrapper::ReplaceUnit(
default:
DBG_ERROR( "unexpected case" );
}
- nUnitOffset = sal::static_int_cast< USHORT >(
+ nUnitOffset = sal::static_int_cast< sal_uInt16 >(
nUnitOffset + nUnitStart + aNewTxt.getLength());
// remember current original language for kater use
@@ -459,13 +459,13 @@ void TextConvWrapper::ReplaceUnit(
{
// Note: replacement is always done in the current paragraph
// which is the one ConvContinue points to
- pConvInfo->aConvContinue.nIndex = sal::static_int_cast< USHORT >(
+ pConvInfo->aConvContinue.nIndex = sal::static_int_cast< sal_uInt16 >(
pConvInfo->aConvContinue.nIndex + nDelta);
// if that is the same as the one where the conversions ends
// the end needs to be updated also
if (pConvInfo->aConvTo.nPara == pConvInfo->aConvContinue.nPara)
- pConvInfo->aConvTo.nIndex = sal::static_int_cast< USHORT >(
+ pConvInfo->aConvTo.nIndex = sal::static_int_cast< sal_uInt16 >(
pConvInfo->aConvTo.nIndex + nDelta);
}
}