fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / filter / xml / cachedattraccess.hxx
blob548be156a0d7d7ad0178afbb1f4fda8225d36bcc
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 INCLUDED_SC_SOURCE_FILTER_XML_CACHEDATTRACCESS_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_CACHEDATTRACCESS_HXX
13 #include <sal/types.h>
15 class ScDocument;
17 /**
18 * Wrapper for accessing hidden and filtered row attributes. It caches last
19 * accessed values for a current range, to avoid fetching values for every
20 * single row.
22 class ScXMLCachedRowAttrAccess
24 struct Cache
26 sal_Int32 mnTab;
27 sal_Int32 mnRow1;
28 sal_Int32 mnRow2;
29 bool mbValue;
30 Cache();
31 bool hasCache(sal_Int32 nTab, sal_Int32 nRow) const;
34 public:
35 ScXMLCachedRowAttrAccess(ScDocument* pDoc);
37 bool rowHidden(sal_Int32 nTab, sal_Int32 nRow);
38 bool rowFiltered(sal_Int32 nTab, sal_Int32 nRow);
39 private:
40 Cache maHidden;
41 Cache maFiltered;
42 ScDocument* mpDoc;
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */