/* -*- 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 "emfphelperdata.hxx"
#include <tools/color.hxx>
namespace emfplushelper
{
enum EmfPlusHatchStyle
{
HatchStyleHorizontal = 0 x00000000,
HatchStyleVertical = 0 x00000001,
HatchStyleForwardDiagonal = 0 x00000002,
HatchStyleBackwardDiagonal = 0 x00000003,
HatchStyleLargeGrid = 0 x00000004,
HatchStyleDiagonalCross = 0 x00000005,
HatchStyle05Percent = 0 x00000006,
HatchStyle10Percent = 0 x00000007,
HatchStyle20Percent = 0 x00000008,
HatchStyle25Percent = 0 x00000009,
HatchStyle30Percent = 0 x0000000A,
HatchStyle40Percent = 0 x0000000B,
HatchStyle50Percent = 0 x0000000C,
HatchStyle60Percent = 0 x0000000D,
HatchStyle70Percent = 0 x0000000E,
HatchStyle75Percent = 0 x0000000F,
HatchStyle80Percent = 0 x00000010,
HatchStyle90Percent = 0 x00000011,
HatchStyleLightDownwardDiagonal = 0 x00000012,
HatchStyleLightUpwardDiagonal = 0 x00000013,
HatchStyleDarkDownwardDiagonal = 0 x00000014,
HatchStyleDarkUpwardDiagonal = 0 x00000015,
HatchStyleWideDownwardDiagonal = 0 x00000016,
HatchStyleWideUpwardDiagonal = 0 x00000017,
HatchStyleLightVertical = 0 x00000018,
HatchStyleLightHorizontal = 0 x00000019,
HatchStyleNarrowVertical = 0 x0000001A,
HatchStyleNarrowHorizontal = 0 x0000001B,
HatchStyleDarkVertical = 0 x0000001C,
HatchStyleDarkHorizontal = 0 x0000001D,
HatchStyleDashedDownwardDiagonal = 0 x0000001E,
HatchStyleDashedUpwardDiagonal = 0 x0000001F,
HatchStyleDashedHorizontal = 0 x00000020,
HatchStyleDashedVertical = 0 x00000021,
HatchStyleSmallConfetti = 0 x00000022,
HatchStyleLargeConfetti = 0 x00000023,
HatchStyleZigZag = 0 x00000024,
HatchStyleWave = 0 x00000025,
HatchStyleDiagonalBrick = 0 x00000026,
HatchStyleHorizontalBrick = 0 x00000027,
HatchStyleWeave = 0 x00000028,
HatchStylePlaid = 0 x00000029,
HatchStyleDivot = 0 x0000002A,
HatchStyleDottedGrid = 0 x0000002B,
HatchStyleDottedDiamond = 0 x0000002C,
HatchStyleShingle = 0 x0000002D,
HatchStyleTrellis = 0 x0000002E,
HatchStyleSphere = 0 x0000002F,
HatchStyleSmallGrid = 0 x00000030,
HatchStyleSmallCheckerBoard = 0 x00000031,
HatchStyleLargeCheckerBoard = 0 x00000032,
HatchStyleOutlinedDiamond = 0 x00000033,
HatchStyleSolidDiamond = 0 x00000034
};
enum EmfPlusBrushType
{
BrushTypeSolidColor = 0 x00000000,
BrushTypeHatchFill = 0 x00000001,
BrushTypeTextureFill = 0 x00000002,
BrushTypePathGradient = 0 x00000003,
BrushTypeLinearGradient = 0 x00000004
};
class EMFPPath;
struct EMFPBrush : public EMFPObject
{
::Color solidColor;
sal_uInt32 type;
sal_uInt32 additionalFlags;
/* linear gradient */
sal_Int32 wrapMode;
float firstPointX, firstPointY, aWidth, aHeight;
::Color secondColor; // first color is stored in solidColor;
basegfx::B2DHomMatrix brush_transformation;
bool hasTransformation;
sal_uInt32 blendPoints;
std::unique_ptr<float []> blendPositions;
float * blendFactors;
sal_uInt32 colorblendPoints;
std::unique_ptr<float []> colorblendPositions;
std::unique_ptr<::Color[]> colorblendColors;
sal_uInt32 surroundColorsNumber;
std::unique_ptr<::Color[]> surroundColors;
std::unique_ptr<EMFPPath> path;
EmfPlusHatchStyle hatchStyle;
EMFPBrush();
virtual ~EMFPBrush() override;
sal_uInt32 GetType() const { return type; }
const ::Color& GetColor() const { return solidColor; }
void Read(SvStream& s, EmfPlusHelperData const & rR);
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Messung V0.5 in Prozent C=92 H=90 G=90
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-11)
¤
*© Formatika GbR, Deutschland