24 #include <sfx2/sfxsids.hrc>
27 #include <osl/diagnose.h>
29 #include <com/sun/star/frame/XModel.hpp>
31 #define SC_PROGRESS_CXX
33 #include <document.hxx>
34 #include <globstr.hrc>
57 if ( pSet && SfxItemState::SET == pSet->
GetItemState( SID_HIDDEN,
true, &pItem ) &&
69 return xModel->hasControllersLocked();
87 OSL_FAIL(
"ScProgress: there can be only one!" );
99 else if ( pObjSh && ( pObjSh->
GetCreateMode() == SfxObjectCreateMode::EMBEDDED ||
148 ScResId( STR_PROGRESS_CALCULATING ),
static SfxProgress * pGlobalProgress
void EnableIdle(bool bDo)
static sal_uLong nInterpretProgress
SfxApplication * SfxGetpApp()
sal_uLong GetFormulaCodeInTree() const
#define MIN_NO_CODES_PER_PROGRESS_UPDATE
std::unique_ptr< SfxProgress > pProgress
SfxObjectCreateMode GetCreateMode() const
css::uno::Reference< css::frame::XModel > GetBaseModel() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
static bool lcl_HasControllersLocked(const SfxObjectShell &rObjSh)
static sal_uLong nGlobalRange
OUString ScResId(const char *pId)
static bool lcl_IsHiddenDocument(const SfxObjectShell *pObjSh)
static sal_uLong nGlobalPercent
static void DeleteInterpretProgress()
SfxItemSet * GetItemSet() const
static ScDocument * pInterpretDoc
static void CreateInterpretProgress(ScDocument *pDoc, bool bWait=true)
static ScProgress * pInterpretProgress
SfxProgress * GetProgress() const
static bool bIdleWasEnabled
ScProgress(const ScProgress &)=delete
static SfxProgress * GetActiveProgress(SfxObjectShell const *pDocSh=nullptr)
static ScProgress theDummyInterpretProgress
SfxObjectShell * GetDocumentShell() const
Reference< XModel > xModel
bool IsIdleEnabled() const
SC_DLLPUBLIC bool GetAutoCalc() const
SfxMedium * GetMedium() const