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:
35 case RES_LR_SPACE:
36 case RES_BOX:
37 case RES_SHADOW:
38 case RES_FRM_SIZE:
39 case RES_KEEP:
40 case RES_BREAK:
41 if (m_bInCache)
42 {
44 m_bInCache = false;
45 }
46 }
47}
48/* 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:523
void InvalidateInSwCache(const sal_uInt16)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(116)
constexpr TypedWhichId< SvxFirstLineIndentItem > RES_MARGIN_FIRSTLINE(91)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(169)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_FORMAT_MSG_BEGIN)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(168)
Dialog to specify the properties of date form field.