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_uInt64 nRange, bool bWait)
 
 ~ScProgress ()
 
void SetState (sal_uInt64 nVal, sal_uInt64 nNewRange=0)
 
void SetStateCountDown (sal_uInt64 nVal)
 
void SetStateOnPercent (sal_uInt64 nVal)
 
void SetStateCountDownOnPercent (sal_uInt64 nVal)
 
sal_uInt64 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_uInt64 nVal)
 

Private Attributes

bool bEnabled
 
std::unique_ptr< SfxProgresspProgress
 

Static Private Attributes

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

Detailed Description

Definition at line 39 of file progress.hxx.

Constructor & Destructor Documentation

◆ ScProgress() [1/2]

ScProgress::ScProgress ( const ScProgress )
privatedelete

Referenced by CreateInterpretProgress().

◆ ScProgress() [2/2]

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

◆ ~ScProgress()

ScProgress::~ScProgress ( )

Definition at line 121 of file progress.cxx.

References nGlobalPercent, nGlobalRange, pGlobalProgress, and pProgress.

Member Function Documentation

◆ CalcGlobalPercent()

static void ScProgress::CalcGlobalPercent ( sal_uInt64  nVal)
inlinestaticprivate

Definition at line 56 of file progress.hxx.

◆ CreateInterpretProgress()

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

◆ DeleteInterpretProgress()

void ScProgress::DeleteInterpretProgress ( )
static

◆ Disable()

void ScProgress::Disable ( )
inline

Definition at line 116 of file progress.hxx.

◆ Enable()

void ScProgress::Enable ( )
inline

Definition at line 117 of file progress.hxx.

◆ Enabled()

bool ScProgress::Enabled ( ) const
inline

Definition at line 115 of file progress.hxx.

Referenced by ScFormulaCell::InterpretTail().

◆ GetInterpretProgress()

static ScProgress * ScProgress::GetInterpretProgress ( )
inlinestatic

Definition at line 65 of file progress.hxx.

Referenced by ScFormulaCell::InterpretTail().

◆ GetState()

sal_uInt64 ScProgress::GetState ( ) const
inline

Definition at line 109 of file progress.hxx.

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

◆ operator=()

ScProgress & ScProgress::operator= ( const ScProgress )
privatedelete

◆ SetState()

void ScProgress::SetState ( sal_uInt64  nVal,
sal_uInt64  nNewRange = 0 
)
inline

◆ SetStateCountDown()

void ScProgress::SetStateCountDown ( sal_uInt64  nVal)
inline

Definition at line 88 of file progress.hxx.

Referenced by ScDocShell::MergeDocument().

◆ SetStateCountDownOnPercent()

void ScProgress::SetStateCountDownOnPercent ( sal_uInt64  nVal)
inline

only if percentage increased

Definition at line 102 of file progress.hxx.

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

◆ SetStateOnPercent()

void ScProgress::SetStateOnPercent ( sal_uInt64  nVal)
inline

Member Data Documentation

◆ bEnabled

bool ScProgress::bEnabled
private

Definition at line 49 of file progress.hxx.

◆ bIdleWasEnabled

bool ScProgress::bIdleWasEnabled = false
staticprivate

Definition at line 48 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

◆ nGlobalPercent

sal_uInt64 ScProgress::nGlobalPercent = 0
staticprivate

Definition at line 44 of file progress.hxx.

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

◆ nGlobalRange

sal_uInt64 ScProgress::nGlobalRange = 0
staticprivate

Definition at line 43 of file progress.hxx.

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

◆ nInterpretProgress

sal_uInt64 ScProgress::nInterpretProgress = 0
staticprivate

Definition at line 46 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

◆ pGlobalProgress

SfxProgress * ScProgress::pGlobalProgress = nullptr
staticprivate

Definition at line 42 of file progress.hxx.

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

◆ pInterpretDoc

ScDocument * ScProgress::pInterpretDoc
staticprivate

Definition at line 47 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

◆ pInterpretProgress

ScProgress * ScProgress::pInterpretProgress = &theDummyInterpretProgress
staticprivate

Definition at line 45 of file progress.hxx.

Referenced by CreateInterpretProgress(), and DeleteInterpretProgress().

◆ pProgress

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

Definition at line 51 of file progress.hxx.

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


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