diff options
Diffstat (limited to 'extensions/source/preload/oemwiz.cxx')
-rw-r--r-- | extensions/source/preload/oemwiz.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/extensions/source/preload/oemwiz.cxx b/extensions/source/preload/oemwiz.cxx index e50a7426918f..fe5704934df4 100644 --- a/extensions/source/preload/oemwiz.cxx +++ b/extensions/source/preload/oemwiz.cxx @@ -116,7 +116,7 @@ namespace preload { FreeResource(); aDlgTitle = GetText(); - aPrevPB.Enable(FALSE); + aPrevPB.Enable(sal_False); aNextST = aNextPB.GetText(); aPrevPB.SetClickHdl(LINK(this, OEMPreloadDialog, NextPrevPageHdl)); aNextPB.SetClickHdl(LINK(this, OEMPreloadDialog, NextPrevPageHdl)); @@ -164,7 +164,7 @@ namespace preload { case OEM_WELCOME: aNextPB.SetText(aNextST); - aNextPB.Enable(TRUE); + aNextPB.Enable(sal_True); break; case OEM_LICENSE: sTitle += aLicense; @@ -192,7 +192,7 @@ namespace preload sFileName = aURLObject.GetMainURL(INetURLObject::DECODE_TO_IURI); sFileName += rFileName; - SfxMedium aMedium( sFileName,STREAM_READ, TRUE ); + SfxMedium aMedium( sFileName,STREAM_READ, sal_True ); SvStream* pInStream = aMedium.GetInStream(); if( !pInStream ) return sal_False; @@ -235,7 +235,7 @@ namespace preload aArrow(this, ModuleRes(IMG_ARROW)), aStrAccept( ModuleRes(LICENCE_ACCEPT) ), aStrNotAccept( ModuleRes(LICENCE_NOTACCEPT) ), - bEndReached(FALSE), + bEndReached(sal_False), pPreloadDialog(pParent) { FreeResource(); @@ -297,7 +297,7 @@ namespace preload //------------------------------------------------------------------------ IMPL_LINK( OEMLicenseTabPage, EndReachedHdl, LicenceView *, EMPTYARG ) { - bEndReached = TRUE; + bEndReached = sal_True; EnableControls(); aCBAccept.GrabFocus(); @@ -318,7 +318,7 @@ namespace preload { if( !bEndReached && ( aLicenseML.IsEndReached() || !aLicenseML.GetText().Len() ) ) - bEndReached = TRUE; + bEndReached = sal_True; if ( bEndReached ) { @@ -344,7 +344,7 @@ namespace preload if ( ! pNext->IsEnabled() ) { pPreloadDialog->SetCancelString( aOldCancelText ); - pNext->Enable(TRUE); + pNext->Enable(sal_True); } } else @@ -353,7 +353,7 @@ namespace preload if ( pNext->IsEnabled() ) { pPreloadDialog->SetCancelString( aStrNotAccept ); - pNext->Enable(FALSE); + pNext->Enable(sal_False); } } } @@ -390,20 +390,20 @@ namespace preload } //------------------------------------------------------------------------ - BOOL LicenceView::IsEndReached() const + sal_Bool LicenceView::IsEndReached() const { - BOOL bEndReached; + sal_Bool bEndReached; ExtTextView* pView = GetTextView(); ExtTextEngine* pEdit = GetTextEngine(); - ULONG nHeight = pEdit->GetTextHeight(); + sal_uLong nHeight = pEdit->GetTextHeight(); Size aOutSize = pView->GetWindow()->GetOutputSizePixel(); Point aBottom( 0, aOutSize.Height() ); - if ( (ULONG) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 ) - bEndReached = TRUE; + if ( (sal_uLong) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 ) + bEndReached = sal_True; else - bEndReached = FALSE; + bEndReached = sal_False; return bEndReached; } @@ -413,8 +413,8 @@ namespace preload { if ( rHint.IsA( TYPE(TextHint) ) ) { - BOOL bLastVal = EndReached(); - ULONG nId = ((const TextHint&)rHint).GetId(); + sal_Bool bLastVal = EndReached(); + sal_uLong nId = ((const TextHint&)rHint).GetId(); if ( nId == TEXT_HINT_PARAINSERTED ) { |