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_LISTENERQUERY_HXX
11 #define SC_LISTENERQUERY_HXX
13 #include <address.hxx>
14 #include <svl/listener.hxx>
19 * Used to collect positions of formula cells that belong to a formula
22 class RefQueryFormulaGroup
: public SvtListener::QueryBase
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
);
36 * Row positions in each column may contain duplicates. Caller must
37 * remove duplicates if necessary.
39 const TabsType
& getAllPositions() const;
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */