LibreOffice Module sc (master)  1
cachedattraccess.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_CACHEDATTRACCESS_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_CACHEDATTRACCESS_HXX
12 
13 #include <sal/types.h>
14 
15 class ScDocument;
16 
23 {
24  struct Cache
25  {
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;
32  };
33 
34 public:
35  explicit ScXMLCachedRowAttrAccess(ScDocument* pDoc);
36 
37  bool rowHidden(sal_Int32 nTab, sal_Int32 nRow, sal_Int32& nEndRow);
38  bool rowFiltered(sal_Int32 nTab, sal_Int32 nRow, sal_Int32& nEndRow);
39 private:
43 };
44 
45 #endif
46 
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Wrapper for accessing hidden and filtered row attributes.
ScXMLCachedRowAttrAccess(ScDocument *pDoc)
bool rowFiltered(sal_Int32 nTab, sal_Int32 nRow, sal_Int32 &nEndRow)
bool rowHidden(sal_Int32 nTab, sal_Int32 nRow, sal_Int32 &nEndRow)
bool hasCache(sal_Int32 nTab, sal_Int32 nRow) const