LibreOffice Module sc (master) 1
|
#include <macromgr.hxx>
Public Member Functions | |
ScMacroManager (ScDocument &rDoc) | |
~ScMacroManager () | |
SC_DLLPUBLIC void | InitUserFuncData () |
SC_DLLPUBLIC void | SetUserFuncVolatile (const OUString &sName, bool isVolatile) |
SC_DLLPUBLIC bool | GetUserFuncVolatile (const OUString &sName) |
void | AddDependentCell (const OUString &aModuleName, ScFormulaCell *pCell) |
void | RemoveDependentCell (const ScFormulaCell *pCell) |
void | BroadcastModuleUpdate (const OUString &aModuleName) |
Private Types | |
typedef std::unordered_map< OUString, bool > | NameBoolMap |
Private Attributes | |
NameBoolMap | mhFuncToVolatile |
css::uno::Reference< css::container::XContainerListener > | mxContainerListener |
::std::unique_ptr< ScUserMacroDepTracker > | mpDepTracker |
ScDocument & | mrDoc |
Definition at line 24 of file macromgr.hxx.
|
private |
Definition at line 39 of file macromgr.hxx.
|
explicit |
Definition at line 93 of file macromgr.cxx.
ScMacroManager::~ScMacroManager | ( | ) |
Definition at line 99 of file macromgr.cxx.
void ScMacroManager::AddDependentCell | ( | const OUString & | aModuleName, |
ScFormulaCell * | pCell | ||
) |
Definition at line 177 of file macromgr.cxx.
References mpDepTracker.
Referenced by ScInterpreter::ScMacro().
void ScMacroManager::BroadcastModuleUpdate | ( | const OUString & | aModuleName | ) |
Definition at line 187 of file macromgr.cxx.
References BCA_LISTEN_ALWAYS, mpDepTracker, mrDoc, ScDocument::PutInFormulaTree(), and ScDocument::StartListeningArea().
bool ScMacroManager::GetUserFuncVolatile | ( | const OUString & | sName | ) |
Definition at line 169 of file macromgr.cxx.
References mhFuncToVolatile, and sName.
Referenced by ScInterpreter::ScMacro().
void ScMacroManager::InitUserFuncData | ( | ) |
Definition at line 130 of file macromgr.cxx.
References SfxObjectShell::GetBasicContainer(), SfxObjectShell::GetBasicManager(), ScDocument::GetDocumentShell(), BasicManager::GetName(), mhFuncToVolatile, mrDoc, and mxContainerListener.
void ScMacroManager::RemoveDependentCell | ( | const ScFormulaCell * | pCell | ) |
Definition at line 182 of file macromgr.cxx.
References mpDepTracker.
Referenced by ScFormulaCell::~ScFormulaCell().
void ScMacroManager::SetUserFuncVolatile | ( | const OUString & | sName, |
bool | isVolatile | ||
) |
Definition at line 164 of file macromgr.cxx.
References mhFuncToVolatile, and sName.
Referenced by ScVbaApplication::Volatile().
|
private |
Definition at line 40 of file macromgr.hxx.
Referenced by GetUserFuncVolatile(), InitUserFuncData(), and SetUserFuncVolatile().
|
private |
Definition at line 43 of file macromgr.hxx.
Referenced by AddDependentCell(), BroadcastModuleUpdate(), and RemoveDependentCell().
|
private |
Definition at line 44 of file macromgr.hxx.
Referenced by BroadcastModuleUpdate(), and InitUserFuncData().
|
private |
Definition at line 41 of file macromgr.hxx.
Referenced by InitUserFuncData().