office-gobmx/sc/inc/poolcach.hxx
Rafał Dobrakowski 0fb98963c4 tdf#146619 Remove unused #includes from C/C++ files
'sc' module was cleaned.

Change-Id: Ia491d741a4c1c5314f35ebb4baa82dd516948ae7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165699
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2024-04-02 19:32:44 +02:00

50 lines
1.8 KiB
C++

/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#pragma once
#include "patattr.hxx"
#include <vector>
class CellAttributeHelper;
class SfxItemSet;
class SfxPoolItem;
class ScItemPoolCache
{
struct SfxItemModifyImpl
{
const CellAttributeHolder aOriginal;
const CellAttributeHolder aModified;
SfxItemModifyImpl(const CellAttributeHolder& a, const CellAttributeHolder &b) : aOriginal(a), aModified(b) {}
};
CellAttributeHelper& rHelper;
std::vector<SfxItemModifyImpl> m_aCache;
const SfxItemSet* pSetToPut;
const SfxPoolItemHolder aItemToPut;
public:
ScItemPoolCache( CellAttributeHelper& rHelper, const SfxPoolItem& rPutItem );
ScItemPoolCache( CellAttributeHelper& rHelper, const SfxItemSet& rPutSet );
~ScItemPoolCache();
const CellAttributeHolder& ApplyTo( const CellAttributeHolder& rSetItem );
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */