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/.
10 #ifndef SC_LISTENERCONTEXT_HXX
11 #define SC_LISTENERCONTEXT_HXX
13 #include "address.hxx"
14 #include "columnspanset.hxx"
15 #include "mtvelements.hxx"
17 #include <boost/noncopyable.hpp>
23 class StartListeningContext
: boost::noncopyable
26 ColumnBlockPositionSet maSet
;
28 StartListeningContext(ScDocument
& rDoc
);
31 ColumnBlockPosition
* getBlockPosition(SCTAB nTab
, SCCOL nCol
);
34 class EndListeningContext
: boost::noncopyable
38 ColumnBlockPositionSet maPosSet
;
40 EndListeningContext(ScDocument
& rDoc
);
43 ColumnBlockPosition
* getBlockPosition(SCTAB nTab
, SCCOL nCol
);
45 void addEmptyBroadcasterPosition(SCTAB nTab
, SCCOL nCol
, SCROW nRow
);
46 void purgeEmptyBroadcasters();
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */