/* -*- 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 .
*/
namespace vcl { class Font; } namespace model { class ComplexColor; } struct ScInterpreterContext; class OutputDevice; class Fraction; class ScStyleSheet; class SvNumberFormatter; class ScDocument; enumclass ScRotateDir : sal_uInt8;
/// how to treat COL_AUTO in GetFont:
enumclass ScAutoFontColorMode
{
Raw, ///< COL_AUTO is returned
Print, ///< black or white, depending on background
Display, ///< from style settings, or black/white if needed
IgnoreFont, ///< like DISPLAY, but ignore stored font color (assume COL_AUTO)
IgnoreBack, ///< like DISPLAY, but ignore stored background color (use configured color)
IgnoreAll ///< like DISPLAY, but ignore stored font and background colors
};
class ScPatternAttr;
class SC_DLLPUBLIC CellAttributeHelper final
{ friendclass CellAttributeHolder;
// Data structure chosen so that // (a) we can find by name // (b) we can erase quickly, by using name and pointer. // so we sort the set first by name, and then by pointer. struct RegisteredAttrSetLess
{ booloperator()(const ScPatternAttr* lhs, const ScPatternAttr* rhs) const; // so we can search in std::set without a ScPatternAttr using is_transparent = void; booloperator()(const ScPatternAttr* lhs, const OUString* rhs) const; booloperator()(const OUString* lhs, const ScPatternAttr* rhs) const;
}; typedef std::set<const ScPatternAttr*, RegisteredAttrSetLess> RegisteredAttrSet;
// only to be used from CellAttributeHolder, so private const ScPatternAttr* registerAndCheck(const ScPatternAttr& rCandidate, bool bPassingOwnership) const; void doUnregister(const ScPatternAttr& rCandidate);
/** Converts all Calc items contained in rSrcSet to edit engine items and puts them into rEditSet. */
SC_DLLPUBLIC staticvoid FillToEditItemSet( SfxItemSet& rEditSet, const SfxItemSet& rSrcSet, const SfxItemSet* pCondSet = nullptr ); /** Converts all Calc items contained in the own item set to edit engine items and puts them into pEditSet. */
SC_DLLPUBLIC void FillEditItemSet( SfxItemSet* pEditSet, const SfxItemSet* pCondSet = nullptr ) const;
/** Converts all edit engine items contained in rEditSet to Calc items and puts them into rDestSet. */
SC_DLLPUBLIC staticvoid GetFromEditItemSet( SfxItemSet& rDestSet, const SfxItemSet& rEditSet ); /** Converts all edit engine items contained in pEditSet to Calc items and puts them into the own item set. */
SC_DLLPUBLIC void GetFromEditItemSet( const SfxItemSet* pEditSet );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.