Kaydet (Commit) f47b6066 authored tarafından Noel Grandin's avatar Noel Grandin

SfxProgress:SetStateText is dead

since

    commit 83ee1bcc
    Date:   Fri Jul 22 09:19:52 2011 +0100
    callcatcher: remove unused methods

and even following the history back before that only shows one previous
actual place where the state text was being displayed.

Change-Id: Ib520cb6e999c1e11caf7348821bb274cdd785a44
Reviewed-on: https://gerrit.libreoffice.org/68198
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst dabadf7c
......@@ -47,7 +47,6 @@ public:
bool bWait = true);
virtual ~SfxProgress();
void SetStateText( sal_uInt32 nVal, const OUString &rVal );
void SetState( sal_uInt32 nVal, sal_uInt32 nNewRange = 0 );
sal_uInt32 GetState() const { return nVal; }
......
......@@ -125,7 +125,6 @@
#define STR_MSSG_REPEATDB_0 NC_("STR_MSSG_REPEATDB_0", "No operations to execute")
#define STR_MSSG_MAKEAUTOFILTER_0 NC_("STR_MSSG_MAKEAUTOFILTER_0", "The range does not contain column headers.\nDo you want the first line to be used as column header?")
#define STR_MSSG_IMPORTDATA_0 NC_("STR_MSSG_IMPORTDATA_0", "Error while importing data!")
#define STR_PROGRESS_IMPORT NC_("STR_PROGRESS_IMPORT", "# records imported...")
#define STR_MSSG_MAKEOUTLINE_0 NC_("STR_MSSG_MAKEOUTLINE_0", "Grouping not possible")
#define STR_MSSG_REMOVEOUTLINE_0 NC_("STR_MSSG_REMOVEOUTLINE_0", "Ungrouping not possible")
#define STR_MSSG_PASTEFROMCLIP_0 NC_("STR_MSSG_PASTEFROMCLIP_0", "Insert into multiple selection not possible")
......
......@@ -76,15 +76,6 @@ public:
/// for DummyInterpret only, never use otherwise!!!
ScProgress();
#endif
void SetStateText( sal_uLong nVal, const OUString &rVal )
{
if ( pProgress )
{
CalcGlobalPercent( nVal );
pProgress->SetStateText( nVal, rVal );
}
}
void SetState( sal_uLong nVal, sal_uLong nNewRange = 0 )
{
if ( pProgress )
......
......@@ -342,12 +342,7 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
++nInserted;
if (!(nInserted & 15))
{
OUString aPict = ScResId( STR_PROGRESS_IMPORT );
OUString aText = aPict.getToken(0, '#')
+ OUString::number( nInserted )
+ aPict.getToken(1, '#');
aProgress.SetStateText( 0, aText );
aProgress.SetState( 0 );
}
}
else // past the end of the spreadsheet
......
......@@ -170,17 +170,6 @@ void SfxProgress::Stop()
SfxGetpApp()->SetProgress_Impl(nullptr);
}
void SfxProgress::SetStateText
(
sal_uInt32 nNewVal, /* New value for the progress-bar */
const OUString& rNewVal /* Status as Text */
)
{
pImpl->aStateText = rNewVal;
SetState( nNewVal );
}
void SfxProgress::SetState
(
sal_uInt32 nNewVal, /* new value for the progress bar */
......
......@@ -44,7 +44,6 @@ extern void FrameNotify( SwViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
SW_DLLPUBLIC void StartProgress(const char* pMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = nullptr);
SW_DLLPUBLIC void EndProgress ( SwDocShell const *pDocSh );
SW_DLLPUBLIC void SetProgressState ( long nPosition, SwDocShell const *pDocShell );
void SetProgressText(const char* pMessId, SwDocShell const *pDocShell);
void RescheduleProgress( SwDocShell const *pDocShell );
void RepaintPagePreview( SwViewShell const * pVwSh, const SwRect& rRect );
......
......@@ -133,7 +133,6 @@ void SwEditShell::InsertTableOf( const SwTOXBase& rTOX, const SfxItemSet* pSet )
SwDocShell* pDocSh = GetDoc()->GetDocShell();
::StartProgress( STR_STATSTR_TOX_INSERT, 0, 0, pDocSh );
::SetProgressText( STR_STATSTR_TOX_INSERT, pDocSh );
// Insert listing
const SwTOXBaseSection* pTOX = mxDoc->InsertTableOf(
......@@ -169,7 +168,6 @@ void SwEditShell::UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet)
StartAllAction();
::StartProgress( STR_STATSTR_TOX_UPDATE, 0, 0, pDocSh );
::SetProgressText( STR_STATSTR_TOX_UPDATE, pDocSh );
pMyDoc->GetIDocumentUndoRedo().StartUndo(SwUndoId::TOXCHANGE, nullptr);
......
......@@ -116,16 +116,6 @@ void EndProgress( SwDocShell const *pDocShell )
}
}
void SetProgressText(const char* pId, SwDocShell const *pDocShell)
{
if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
{
SwProgress *pProgress = lcl_SwFindProgress( pDocShell );
if ( pProgress )
pProgress->pProgress->SetStateText(0, SwResId(pId));
}
}
void RescheduleProgress( SwDocShell const *pDocShell )
{
if( pProgressContainer && !SW_MOD()->IsEmbeddedLoadSave() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment