/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "cachedattraccess.hxx" #include "document.hxx" ScXMLCachedRowAttrAccess::Cache::Cache() : mnTab(-1), mnRow1(-1), mnRow2(-1), mbValue(false) {} bool ScXMLCachedRowAttrAccess::Cache::hasCache(sal_Int32 nTab, sal_Int32 nRow) const { return mnTab == nTab && mnRow1 <= nRow && nRow <= mnRow2; } ScXMLCachedRowAttrAccess::ScXMLCachedRowAttrAccess(ScDocument* pDoc) : mpDoc(pDoc) {} bool ScXMLCachedRowAttrAccess::rowHidden(sal_Int32 nTab, sal_Int32 nRow, sal_Int32& nEndRow) { if (!maHidden.hasCache(nTab, nRow)) { SCROW nRow1, nRow2; maHidden.mbValue = mpDoc->RowHidden( static_cast(nRow), static_cast(nTab), &nRow1, &nRow2); maHidden.mnRow1 = static_cast(nRow1); maHidden.mnRow2 = static_cast(nRow2); } nEndRow = maHidden.mnRow2; return maHidden.mbValue; } bool ScXMLCachedRowAttrAccess::rowFiltered(sal_Int32 nTab, sal_Int32 nRow, sal_Int32& nEndRow) { if (!maFiltered.hasCache(nTab, nRow)) { SCROW nRow1, nRow2; maFiltered.mbValue = mpDoc->RowFiltered( static_cast(nRow), static_cast(nTab), &nRow1, &nRow2); maFiltered.mnRow1 = static_cast(nRow1); maFiltered.mnRow2 = static_cast(nRow2); } nEndRow = maFiltered.mnRow2; return maFiltered.mbValue; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ e-6-2'>distro/cib/libreoffice-6-2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-10-31Get rid of vcl::unohelper::GetMultiServiceFactoryStephan Bergmann
2012-09-25String -> OUStringIvan Timofeev
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann
2012-09-04Some clean up of previous commitStephan Bergmann
2012-09-04fdo#46808, Adapt DocumentDigitalSignatures UNO service to new styleNoel Grandin
2012-07-17re-base on ALv2 code. Includes:Michael Meeks
2012-07-02Remove unused definesThomas Arnhold
2012-05-29targeted string re-workNorbert Thiebaud
2012-03-01New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problemStephan Bergmann
2011-11-27remove include of pch header from xmlsecurityNorbert Thiebaud
2011-03-09Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Norbert Thiebaud
2011-03-02Move DBG_ERROR to OSL_FAILThomas Arnhold
2011-03-02Remove TEST_IMPLEMENTATION_DIRECTLYThomas Arnhold
2011-01-14removetooltypes01: #i112600# remove tooltypes from xmlsecurityMikhail Voytenko
2010-11-29RTL_CONSTASCII_USTRINGPARAM in components 6Gert Faller
2010-10-25Finally, gut the vos module out of the buildNorbert Thiebaud
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2008-04-10INTEGRATION: CWS changefileheader (1.9.102); FILE MERGEDRüdiger Timm
2008-04-10INTEGRATION: CWS changefileheader (1.9.72); FILE MERGEDRüdiger Timm
2007-03-09INTEGRATION: CWS ause076 (1.8.2); FILE MERGEDOliver Bolte
2007-02-06INTEGRATION: CWS ause074 (1.7.116); FILE MERGEDVladimir Glazounov
2006-09-16INTEGRATION: CWS pchfix02 (1.8.66); FILE MERGEDOliver Bolte
2005-11-11INTEGRATION: CWS xmlsec13 (1.7.16); FILE MERGEDRüdiger Timm
2005-09-09INTEGRATION: CWS ooo19126 (1.6.44); FILE MERGEDRüdiger Timm
2005-09-09INTEGRATION: CWS ooo19126 (1.6.38); FILE MERGEDRüdiger Timm
2005-05-18INTEGRATION: CWS xmlsec12 (1.5.10); FILE MERGEDRüdiger Timm
2005-04-08INTEGRATION: CWS xmlsec11 (1.5.26); FILE MERGEDJens-Heiner Rechtien
2005-03-10INTEGRATION: CWS xmlsec08 (1.4.10); FILE MERGEDVladimir Glazounov
2004-11-26INTEGRATION: CWS xmlsec06 (1.4.2); FILE MERGEDRüdiger Timm
2004-11-26INTEGRATION: CWS xmlsec06 (1.3.2); FILE MERGEDRüdiger Timm
2004-07-26#i21596# Digital Signatures...Malte Timmermann
2004-07-16updateMichael Mi
2004-07-15...Malte Timmermann
2004-07-14component...Malte Timmermann
2004-07-12libxmlsecMalte Timmermann