1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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_INC_FILTERENTRIES_HXX
11 #define SC_INC_FILTERENTRIES_HXX
13 #include <sal/config.h>
14 #include "typedstrdata.hxx"
17 struct ScFilterEntries
19 std::vector
<ScTypedStrData
> maStrData
;
23 ScFilterEntries() : mbHasDates(false), mbHasEmpties(false) {}
25 std::vector
<ScTypedStrData
>::iterator
begin() { return maStrData
.begin(); }
26 std::vector
<ScTypedStrData
>::iterator
end() { return maStrData
.end(); }
27 std::vector
<ScTypedStrData
>::const_iterator
begin() const { return maStrData
.begin(); }
28 std::vector
<ScTypedStrData
>::const_iterator
end() const { return maStrData
.end(); }
29 std::vector
<ScTypedStrData
>::size_type
size() const { return maStrData
.size(); }
30 ScTypedStrData
& front() { return maStrData
.front(); }
31 const ScTypedStrData
& front() const { return maStrData
.front(); }
32 bool empty() const { return maStrData
.empty(); }
33 void push_back( const ScTypedStrData
& r
) { maStrData
.push_back(r
); }
34 void push_back( ScTypedStrData
&& r
) { maStrData
.push_back(r
); }
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */