summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-02-03 11:35:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-03 13:54:02 +0100
commita5eddf3b047dca78ea321005cc6dc5e92914e032 (patch)
treeb91bf9bbd5fb2878d5d2fcc6b309d532d9e4f52d /sc/source/ui/view
parent9aaf8db1e4ac20fce4b19bc43c13b25938e80275 (diff)
sal_uLong->sal_Int32 for refresh delay
and improve the naming of the related methods and variables Change-Id: I1dc522090b0353fd4c63e74864a0deeb8d70fd28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129404 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/cellsh1.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 254eccac5769..441f62148931 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2697,7 +2697,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
OUString aFilter;
OUString aOptions;
OUString aSource;
- sal_uLong nRefresh=0;
+ sal_Int32 nRefreshDelaySeconds=0;
aFile = pFile->GetValue();
aSource = pSource->GetValue();
@@ -2709,9 +2709,9 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
aOptions = pOptions->GetValue();
const SfxUInt32Item* pRefresh = rReq.GetArg<SfxUInt32Item>(FN_PARAM_2);
if ( pRefresh )
- nRefresh = pRefresh->GetValue();
+ nRefreshDelaySeconds = pRefresh->GetValue();
- ExecuteExternalSource( aFile, aFilter, aOptions, aSource, nRefresh, rReq );
+ ExecuteExternalSource( aFile, aFilter, aOptions, aSource, nRefreshDelaySeconds, rReq );
}
else
{
@@ -2723,14 +2723,14 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
delete pImpl->m_pRequest;
pImpl->m_pRequest = new SfxRequest( rReq );
OUString sFile, sFilter, sOptions, sSource;
- sal_uLong nRefresh = 0;
+ sal_Int32 nRefreshDelaySeconds = 0;
if (pImpl->m_pLinkedDlg->Execute() == RET_OK)
{
sFile = pImpl->m_pLinkedDlg->GetURL();
sFilter = pImpl->m_pLinkedDlg->GetFilter();
sOptions = pImpl->m_pLinkedDlg->GetOptions();
sSource = pImpl->m_pLinkedDlg->GetSource();
- nRefresh = pImpl->m_pLinkedDlg->GetRefresh();
+ nRefreshDelaySeconds = pImpl->m_pLinkedDlg->GetRefreshDelaySeconds();
if ( !sFile.isEmpty() )
pImpl->m_pRequest->AppendItem( SfxStringItem( SID_FILE_NAME, sFile ) );
if ( !sFilter.isEmpty() )
@@ -2739,11 +2739,11 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
pImpl->m_pRequest->AppendItem( SfxStringItem( SID_FILE_FILTEROPTIONS, sOptions ) );
if ( !sSource.isEmpty() )
pImpl->m_pRequest->AppendItem( SfxStringItem( FN_PARAM_1, sSource ) );
- if ( nRefresh )
- pImpl->m_pRequest->AppendItem( SfxUInt32Item( FN_PARAM_2, nRefresh ) );
+ if ( nRefreshDelaySeconds )
+ pImpl->m_pRequest->AppendItem( SfxUInt32Item( FN_PARAM_2, nRefreshDelaySeconds ) );
}
- ExecuteExternalSource( sFile, sFilter, sOptions, sSource, nRefresh, *(pImpl->m_pRequest) );
+ ExecuteExternalSource( sFile, sFilter, sOptions, sSource, nRefreshDelaySeconds, *(pImpl->m_pRequest) );
}
}
break;
@@ -2945,7 +2945,7 @@ void ScCellShell::ExecuteRotateTrans( const SfxRequest& rReq )
void ScCellShell::ExecuteExternalSource(
const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
- const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest )
+ const OUString& _rSource, sal_Int32 _nRefreshDelaySeconds, SfxRequest& _rRequest )
{
if ( !_rFile.isEmpty() && !_rSource.isEmpty() ) // filter may be empty
{
@@ -2964,7 +2964,7 @@ void ScCellShell::ExecuteExternalSource(
aLinkRange = ScRange( rData.GetCurX(), rData.GetCurY(), rData.GetTabNo() );
rData.GetDocFunc().InsertAreaLink( _rFile, _rFilter, _rOptions, _rSource,
- aLinkRange, _nRefresh, bMove, false );
+ aLinkRange, _nRefreshDelaySeconds, bMove, false );
_rRequest.Done();
}
else