Bump version to 4.3-4
[LibreOffice.git] / sc / inc / listenerquery.hxx
blob2cbc95731be1372e392b8704ed176a695a1e3261
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_LISTENERQUERY_HXX
11 #define SC_LISTENERQUERY_HXX
13 #include <address.hxx>
14 #include <svl/listener.hxx>
16 namespace sc {
18 /**
19 * Used to collect positions of formula cells that belong to a formula
20 * group.
22 class RefQueryFormulaGroup : public SvtListener::QueryBase
24 public:
25 typedef std::vector<SCROW> ColType;
26 typedef boost::unordered_map<SCCOL,ColType> ColsType;
27 typedef boost::unordered_map<SCTAB,ColsType> TabsType;
29 RefQueryFormulaGroup();
30 virtual ~RefQueryFormulaGroup();
32 void setSkipRange( const ScRange& rRange );
33 void add( const ScAddress& rPos );
35 /**
36 * Row positions in each column may contain duplicates. Caller must
37 * remove duplicates if necessary.
39 const TabsType& getAllPositions() const;
41 private:
42 ScRange maSkipRange;
43 TabsType maTabs;
48 #endif
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */