LibreOffice Module sw (master)  1
BorderCacheOwner.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 #include <BorderCacheOwner.hxx>
11 
12 #include <hintids.hxx>
13 #include <frame.hxx>
14 #include <swcache.hxx>
15 
16 using namespace sw;
17 
19 {
20  if (m_bInCache)
21  SwFrame::GetCache().Delete(this);
22 }
23 
24 void BorderCacheOwner::InvalidateInSwCache(const sal_uInt16 nWhich)
25 {
26  switch (nWhich)
27  {
28  case RES_OBJECTDYING:
29  case RES_FMT_CHG:
30  case RES_ATTRSET_CHG:
31  case RES_UL_SPACE:
32  case RES_LR_SPACE:
33  case RES_BOX:
34  case RES_SHADOW:
35  case RES_FRM_SIZE:
36  case RES_KEEP:
37  case RES_BREAK:
38  if (m_bInCache)
39  {
40  SwFrame::GetCache().Delete(this);
41  m_bInCache = false;
42  }
43  }
44 }
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(162)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
static SwCache & GetCache()
Definition: frame.hxx:522
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
Dialog to specify the properties of date form field.
void InvalidateInSwCache(const sal_uInt16)
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(163)
void Delete(const void *pOwner, sal_uInt16 nIndex)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(107)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_MSG_BEGIN)