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
16using namespace sw;
17
18BorderCacheOwner::~BorderCacheOwner()
19{
20 if (m_bInCache)
22}
23
24void 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 {
41 m_bInCache = false;
42 }
43 }
44}
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Delete(const void *pOwner, sal_uInt16 nIndex)
Definition: swcache.cxx:322
static SwCache & GetCache()
Definition: frame.hxx:521
void InvalidateInSwCache(const sal_uInt16)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(107)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(92)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_MSG_BEGIN)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(162)
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(163)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(110)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
Dialog to specify the properties of date form field.