diff options
Diffstat (limited to 'sc/source/ui/miscdlgs/linkarea.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/linkarea.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx index 48e33622e99f..9d629bec38e3 100644 --- a/sc/source/ui/miscdlgs/linkarea.cxx +++ b/sc/source/ui/miscdlgs/linkarea.cxx @@ -130,9 +130,9 @@ IMPL_LINK( ScLinkedAreaDlg, FileHdl, ComboBox*, EMPTYARG ) String aFilter; String aOptions; - // get filter name by looking at the file content (bWithContent = TRUE) + // get filter name by looking at the file content (bWithContent = sal_True) // Break operation if any error occured inside. - if (!ScDocumentLoader::GetFilterName( aEntered, aFilter, aOptions, TRUE, TRUE )) + if (!ScDocumentLoader::GetFilterName( aEntered, aFilter, aOptions, sal_True, sal_True )) return 0; // #i53241# replace HTML filter with DataQuery filter @@ -165,11 +165,11 @@ void ScLinkedAreaDlg::LoadDocument( const String& rFile, const String& rFilter, SfxErrorContext aEc( ERRCTX_SFX_OPENDOC, rFile ); - ScDocumentLoader aLoader( rFile, aNewFilter, aNewOptions, 0, TRUE ); // with interaction + ScDocumentLoader aLoader( rFile, aNewFilter, aNewOptions, 0, sal_True ); // with interaction pSourceShell = aLoader.GetDocShell(); if ( pSourceShell ) { - ULONG nErr = pSourceShell->GetErrorCode(); + sal_uLong nErr = pSourceShell->GetErrorCode(); if (nErr) ErrorHandler::HandleError( nErr ); // including warnings @@ -181,7 +181,7 @@ void ScLinkedAreaDlg::LoadDocument( const String& rFile, const String& rFilter, void ScLinkedAreaDlg::InitFromOldLink( const String& rFile, const String& rFilter, const String& rOptions, const String& rSource, - ULONG nRefresh ) + sal_uLong nRefresh ) { LoadDocument( rFile, rFilter, rOptions ); if (pSourceShell) @@ -201,7 +201,7 @@ void ScLinkedAreaDlg::InitFromOldLink( const String& rFile, const String& rFilte aLbRanges.SelectEntry( aRange ); } - BOOL bDoRefresh = ( nRefresh != 0 ); + sal_Bool bDoRefresh = ( nRefresh != 0 ); aBtnReload.Check( bDoRefresh ); if (bDoRefresh) aNfDelay.SetValue( nRefresh ); @@ -250,13 +250,13 @@ IMPL_LINK( ScLinkedAreaDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg if (pSourceShell) pSourceShell->DoClose(); // deleted when assigning aSourceRef - pMed->UseInteractionHandler( TRUE ); // to enable the filter options dialog + pMed->UseInteractionHandler( sal_True ); // to enable the filter options dialog pSourceShell = new ScDocShell; aSourceRef = pSourceShell; pSourceShell->DoLoad( pMed ); - ULONG nErr = pSourceShell->GetErrorCode(); + sal_uLong nErr = pSourceShell->GetErrorCode(); if (nErr) ErrorHandler::HandleError( nErr ); // including warnings @@ -285,7 +285,7 @@ IMPL_LINK( ScLinkedAreaDlg, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg void ScLinkedAreaDlg::UpdateSourceRanges() { - aLbRanges.SetUpdateMode( FALSE ); + aLbRanges.SetUpdateMode( sal_False ); aLbRanges.Clear(); if ( pSourceShell ) @@ -297,7 +297,7 @@ void ScLinkedAreaDlg::UpdateSourceRanges() aLbRanges.InsertEntry( aName ); } - aLbRanges.SetUpdateMode( TRUE ); + aLbRanges.SetUpdateMode( sal_True ); if ( aLbRanges.GetEntryCount() == 1 ) aLbRanges.SelectEntryPos(0); @@ -305,10 +305,10 @@ void ScLinkedAreaDlg::UpdateSourceRanges() void ScLinkedAreaDlg::UpdateEnable() { - BOOL bEnable = ( pSourceShell && aLbRanges.GetSelectEntryCount() ); + sal_Bool bEnable = ( pSourceShell && aLbRanges.GetSelectEntryCount() ); aBtnOk.Enable( bEnable ); - BOOL bReload = aBtnReload.IsChecked(); + sal_Bool bReload = aBtnReload.IsChecked(); aNfDelay.Enable( bReload ); aFtSeconds.Enable( bReload ); } @@ -346,8 +346,8 @@ String ScLinkedAreaDlg::GetOptions() String ScLinkedAreaDlg::GetSource() { String aSource; - USHORT nCount = aLbRanges.GetSelectEntryCount(); - for (USHORT i=0; i<nCount; i++) + sal_uInt16 nCount = aLbRanges.GetSelectEntryCount(); + for (sal_uInt16 i=0; i<nCount; i++) { if (i > 0) aSource.Append( (sal_Unicode) ';' ); @@ -356,10 +356,10 @@ String ScLinkedAreaDlg::GetSource() return aSource; } -ULONG ScLinkedAreaDlg::GetRefresh() +sal_uLong ScLinkedAreaDlg::GetRefresh() { if ( aBtnReload.IsChecked() ) - return sal::static_int_cast<ULONG>( aNfDelay.GetValue() ); + return sal::static_int_cast<sal_uLong>( aNfDelay.GetValue() ); else return 0; // disabled } |