1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <com/sun/star/container/XContainerListener.hpp>
14 #include <rtl/ustring.hxx>
18 #include <unordered_map>
22 class ScUserMacroDepTracker
;
27 explicit ScMacroManager(ScDocument
& rDoc
);
30 SC_DLLPUBLIC
void InitUserFuncData();
31 SC_DLLPUBLIC
void SetUserFuncVolatile(const OUString
& sName
, bool isVolatile
);
32 SC_DLLPUBLIC
bool GetUserFuncVolatile(const OUString
& sName
);
34 void AddDependentCell(const OUString
& aModuleName
, ScFormulaCell
* pCell
);
35 void RemoveDependentCell(const ScFormulaCell
* pCell
);
36 void BroadcastModuleUpdate(const OUString
& aModuleName
);
39 typedef std::unordered_map
<OUString
, bool> NameBoolMap
;
40 NameBoolMap mhFuncToVolatile
;
41 css::uno::Reference
<css::container::XContainerListener
> mxContainerListener
;
43 ::std::unique_ptr
<ScUserMacroDepTracker
> mpDepTracker
;
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */