update credits
[LibreOffice.git] / sc / inc / listenercontext.hxx
blobf4fbb0f2a9da41d20980f53b0caf41f3850e156b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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>
19 class ScDocument;
21 namespace sc {
23 class StartListeningContext : boost::noncopyable
25 ScDocument& mrDoc;
26 ColumnBlockPositionSet maSet;
27 public:
28 StartListeningContext(ScDocument& rDoc);
29 ScDocument& getDoc();
31 ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol);
34 class EndListeningContext : boost::noncopyable
36 ScDocument& mrDoc;
37 ColumnSpanSet maSet;
38 ColumnBlockPositionSet maPosSet;
39 public:
40 EndListeningContext(ScDocument& rDoc);
41 ScDocument& getDoc();
43 ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol);
45 void addEmptyBroadcasterPosition(SCTAB nTab, SCCOL nCol, SCROW nRow);
46 void purgeEmptyBroadcasters();
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */