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

#include <macromgr.hxx>

Collaboration diagram for ScMacroManager:
[legend]

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< ScUserMacroDepTrackermpDepTracker
 
ScDocumentmrDoc
 

Detailed Description

Definition at line 24 of file macromgr.hxx.

Member Typedef Documentation

◆ NameBoolMap

typedef std::unordered_map<OUString, bool> ScMacroManager::NameBoolMap
private

Definition at line 39 of file macromgr.hxx.

Constructor & Destructor Documentation

◆ ScMacroManager()

ScMacroManager::ScMacroManager ( ScDocument rDoc)
explicit

Definition at line 93 of file macromgr.cxx.

◆ ~ScMacroManager()

ScMacroManager::~ScMacroManager ( )

Definition at line 99 of file macromgr.cxx.

Member Function Documentation

◆ AddDependentCell()

void ScMacroManager::AddDependentCell ( const OUString &  aModuleName,
ScFormulaCell pCell 
)

Definition at line 177 of file macromgr.cxx.

References mpDepTracker.

Referenced by ScInterpreter::ScMacro().

◆ BroadcastModuleUpdate()

void ScMacroManager::BroadcastModuleUpdate ( const OUString &  aModuleName)

◆ GetUserFuncVolatile()

bool ScMacroManager::GetUserFuncVolatile ( const OUString &  sName)

Definition at line 169 of file macromgr.cxx.

References mhFuncToVolatile, and sName.

Referenced by ScInterpreter::ScMacro().

◆ InitUserFuncData()

void ScMacroManager::InitUserFuncData ( )

◆ RemoveDependentCell()

void ScMacroManager::RemoveDependentCell ( const ScFormulaCell pCell)

Definition at line 182 of file macromgr.cxx.

References mpDepTracker.

Referenced by ScFormulaCell::~ScFormulaCell().

◆ SetUserFuncVolatile()

void ScMacroManager::SetUserFuncVolatile ( const OUString &  sName,
bool  isVolatile 
)

Definition at line 164 of file macromgr.cxx.

References mhFuncToVolatile, and sName.

Referenced by ScVbaApplication::Volatile().

Member Data Documentation

◆ mhFuncToVolatile

NameBoolMap ScMacroManager::mhFuncToVolatile
private

Definition at line 40 of file macromgr.hxx.

Referenced by GetUserFuncVolatile(), InitUserFuncData(), and SetUserFuncVolatile().

◆ mpDepTracker

::std::unique_ptr<ScUserMacroDepTracker> ScMacroManager::mpDepTracker
private

Definition at line 43 of file macromgr.hxx.

Referenced by AddDependentCell(), BroadcastModuleUpdate(), and RemoveDependentCell().

◆ mrDoc

ScDocument& ScMacroManager::mrDoc
private

Definition at line 44 of file macromgr.hxx.

Referenced by BroadcastModuleUpdate(), and InitUserFuncData().

◆ mxContainerListener

css::uno::Reference<css::container::XContainerListener> ScMacroManager::mxContainerListener
private

Definition at line 41 of file macromgr.hxx.

Referenced by InitUserFuncData().


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