android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / core / attr / BorderCacheOwner.cxx
blobdd71b694931f23bbe1ef19c819d8a04c8f8e138e
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.
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 */
10 #include <BorderCacheOwner.hxx>
12 #include <hintids.hxx>
13 #include <frame.hxx>
14 #include <swcache.hxx>
16 using namespace sw;
18 BorderCacheOwner::~BorderCacheOwner()
20 if (m_bInCache)
21 SwFrame::GetCache().Delete(this);
24 void BorderCacheOwner::InvalidateInSwCache(const sal_uInt16 nWhich)
26 switch (nWhich)
28 case RES_OBJECTDYING:
29 case RES_FMT_CHG:
30 case RES_ATTRSET_CHG:
31 case RES_UL_SPACE:
32 case RES_MARGIN_FIRSTLINE:
33 case RES_MARGIN_TEXTLEFT:
34 case RES_MARGIN_RIGHT:
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)
43 SwFrame::GetCache().Delete(this);
44 m_bInCache = false;
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */