LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ScProgress Class Reference

#include <progress.hxx>

Collaboration diagram for ScProgress:
[legend]

Public Member Functions

 ScProgress (SfxObjectShell *pObjSh, const OUString &rText, sal_uLong nRange, bool bWait)
 
 ~ScProgress ()
 
void SetState (sal_uLong nVal, sal_uLong nNewRange=0)
 
void SetStateCountDown (sal_uLong nVal)
 
void SetStateOnPercent (sal_uLong nVal)
 
void SetStateCountDownOnPercent (sal_uLong nVal)
 
sal_uLong GetState () const
 
bool Enabled () const
 
void Disable ()
 
void Enable ()
 

Static Public Member Functions

static void CreateInterpretProgress (ScDocument *pDoc, bool bWait=true)
 
static ScProgressGetInterpretProgress ()
 
static void DeleteInterpretProgress ()
 

Private Member Functions

 ScProgress (const ScProgress &)=delete
 
ScProgressoperator= (const ScProgress &)=delete
 

Static Private Member Functions

static void CalcGlobalPercent (sal_uLong nVal)
 

Private Attributes

bool bEnabled
 
std::unique_ptr< SfxProgresspProgress
 

Static Private Attributes

static SfxProgresspGlobalProgress = nullptr
 
static sal_uLong nGlobalRange = 0
 
static sal_uLong nGlobalPercent = 0
 
static ScProgresspInterpretProgress = &theDummyInterpretProgress
 
static sal_uLong nInterpretProgress = 0
 
static ScDocumentpInterpretDoc
 
static bool bIdleWasEnabled = false
 

Detailed Description

Definition at line 40 of file progress.hxx.

Constructor & Destructor Documentation

ScProgress::ScProgress ( const ScProgress )
privatedelete

Referenced by CreateInterpretProgress().

ScProgress::ScProgress ( SfxObjectShell pObjSh,
const OUString &  rText,
sal_uLong  nRange,
bool  bWait 
)
ScProgress::~ScProgress ( )

Definition at line 124 of file progress.cxx.

References nGlobalPercent, nGlobalRange, pGlobalProgress, and pProgress.

Member Function Documentation

static void ScProgress::CalcGlobalPercent ( sal_uLong  nVal)
inlinestaticprivate

Definition at line 57 of file progress.hxx.

void ScProgress::CreateInterpretProgress ( ScDocument pDoc,
bool  bWait = true 
)
static
void ScProgress::DeleteInterpretProgress ( )
static
void ScProgress::Disable ( )
inline

Definition at line 117 of file progress.hxx.

void ScProgress::Enable ( )
inline

Definition at line 118 of file progress.hxx.

bool ScProgress::Enabled ( ) const
inline

Definition at line 116 of file progress.hxx.

Referenced by ScFormulaCell::InterpretTail().

static ScProgress* ScProgress::GetInterpretProgress ( )
inlinestatic

Definition at line 66 of file progress.hxx.

Referenced by ScFormulaCell::InterpretTail().

sal_uLong ScProgress::GetState ( ) const
inline

Definition at line 110 of file progress.hxx.

Referenced by ScTable::FillAuto(), ScTable::FillSeries(), and ScTable::UpdateMoveTab().

ScProgress& ScProgress::operator= ( const ScProgress )
privatedelete
void ScProgress::SetState ( sal_uLong  nVal,
sal_uLong  nNewRange = 0 
)
inline
void ScProgress::SetStateCountDown ( sal_uLong  nVal)
inline

Definition at line 89 of file progress.hxx.

Referenced by ScDocShell::MergeDocument().

void ScProgress::SetStateCountDownOnPercent ( sal_uLong  nVal)
inline

only if percentage increased

Definition at line 103 of file progress.hxx.

Referenced by ScFormulaCell::CompileXML(), and ScFormulaCell::InterpretTail().

void ScProgress::SetStateOnPercent ( sal_uLong  nVal)
inline

Member Data Documentation

bool ScProgress::bEnabled
private

Definition at line 50 of file progress.hxx.

bool ScProgress::bIdleWasEnabled = false
staticprivate

Definition at line 49 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

sal_uLong ScProgress::nGlobalPercent = 0
staticprivate

Definition at line 45 of file progress.hxx.

Referenced by ScProgress(), and ~ScProgress().

sal_uLong ScProgress::nGlobalRange = 0
staticprivate

Definition at line 44 of file progress.hxx.

Referenced by ScProgress(), and ~ScProgress().

sal_uLong ScProgress::nInterpretProgress = 0
staticprivate

Definition at line 47 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

SfxProgress * ScProgress::pGlobalProgress = nullptr
staticprivate

Definition at line 43 of file progress.hxx.

Referenced by CreateInterpretProgress(), ScProgress(), and ~ScProgress().

ScDocument * ScProgress::pInterpretDoc
staticprivate

Definition at line 48 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

ScProgress * ScProgress::pInterpretProgress = &theDummyInterpretProgress
staticprivate

Definition at line 46 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

std::unique_ptr<SfxProgress> ScProgress::pProgress
private

Definition at line 52 of file progress.hxx.

Referenced by ScProgress(), and ~ScProgress().


The documentation for this class was generated from the following files: