diff options
Diffstat (limited to 'sc/source/core/data/document10.cxx')
-rw-r--r-- | sc/source/core/data/document10.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index eb9a74291c88..49db92e81787 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -17,6 +17,7 @@ #include <listenercontext.hxx> #include <tokenstringcontext.hxx> #include <poolhelp.hxx> +#include <bcaslot.hxx> // Add totally brand-new methods to this source file. @@ -319,4 +320,16 @@ void ScDocument::RegroupFormulaCells( SCTAB nTab, SCCOL nCol ) pTab->RegroupFormulaCells(nCol); } +void ScDocument::CollectAllAreaListeners( + std::vector<SvtListener*>& rListener, const ScRange& rRange, sc::AreaOverlapType eType ) +{ + if (!pBASM) + return; + + std::vector<sc::AreaListener> aAL = pBASM->GetAllListeners(rRange, eType); + std::vector<sc::AreaListener>::iterator it = aAL.begin(), itEnd = aAL.end(); + for (; it != itEnd; ++it) + rListener.push_back(it->mpListener); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |