/* -*- 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 .
*/
// DEF_METRIC: For my pool, the DefMetric should always appear when // GetMetric (nWhich)! // => To determine the DefMetric simply use GetMetric(0) #define DEF_METRIC 0
// bFeature: Attribute must not expand/shrink, length is always 1 // bEdge: Attribute will not expand, if you want to expand just on the edge class EditCharAttrib
{
SfxPoolItemHolder maItemHolder;
inlinevoid EditCharAttrib::Expand( sal_Int32 nDiff )
{
DBG_ASSERT( SAL_MAX_INT32 - nDiff > nEnd, "EditCharAttrib: Expand?!" );
DBG_ASSERT( !bFeature, "Please do not expand any features!" );
nEnd = nEnd + nDiff;
}
inlinevoid EditCharAttrib::Collaps( sal_Int32 nDiff )
{
DBG_ASSERT( nEnd - nDiff >= nStart, "EditCharAttrib: Collaps?!" );
DBG_ASSERT( !bFeature, "Please do not shrink any Features!" );
nEnd = nEnd - nDiff;
}
class EditCharAttribFont final : public EditCharAttrib
{ public:
EditCharAttribFont(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribWeight final : public EditCharAttrib
{ public:
EditCharAttribWeight(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribItalic final : public EditCharAttrib
{ public:
EditCharAttribItalic(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribShadow final : public EditCharAttrib
{ public:
EditCharAttribShadow(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribEscapement final : public EditCharAttrib
{ public:
EditCharAttribEscapement(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribOutline final : public EditCharAttrib
{ public:
EditCharAttribOutline(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribStrikeout final : public EditCharAttrib
{ public:
EditCharAttribStrikeout(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribCaseMap final : public EditCharAttrib
{ public:
EditCharAttribCaseMap(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribUnderline final : public EditCharAttrib
{ public:
EditCharAttribUnderline(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribOverline final : public EditCharAttrib
{ public:
EditCharAttribOverline(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribEmphasisMark final : public EditCharAttrib
{ public:
EditCharAttribEmphasisMark(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribRelief final : public EditCharAttrib
{ public:
EditCharAttribRelief(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribFontHeight final : public EditCharAttrib
{ public:
EditCharAttribFontHeight(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribFontWidth final : public EditCharAttrib
{ public:
EditCharAttribFontWidth(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribColor final : public EditCharAttrib
{ public:
EditCharAttribColor(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribBackgroundColor final : public EditCharAttrib
{ public:
EditCharAttribBackgroundColor(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd); virtualvoid SetFont(SvxFont& rFont, OutputDevice* pOutDev) override;
};
class EditCharAttribLanguage final : public EditCharAttrib
{ public:
EditCharAttribLanguage(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribRuby final : public EditCharAttrib
{ public:
EditCharAttribRuby(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribScriptHint final : public EditCharAttrib
{ public:
EditCharAttribScriptHint(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribField final : public EditCharAttrib
{
OUString aFieldValue;
std::optional<Color> mxTxtColor;
std::optional<Color> mxFldColor;
std::optional<FontLineStyle> mxFldLineStyle;
class EditCharAttribPairKerning final : public EditCharAttrib
{ public:
EditCharAttribPairKerning(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribKerning final : public EditCharAttrib
{ public:
EditCharAttribKerning(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
class EditCharAttribWordLineMode final : public EditCharAttrib
{ public:
EditCharAttribWordLineMode(SfxItemPool&, const SfxPoolItem&, sal_Int32 nStart, sal_Int32 nEnd);
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.