update emoji autocorrect entries from po-files
[LibreOffice.git] / include / drawinglayer / primitive2d / modifiedcolorprimitive2d.hxx
blobcfb7e1a5c07c73d7bf7d94444e1cffeeb12d1d9a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_MODIFIEDCOLORPRIMITIVE2D_HXX
23 #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_MODIFIEDCOLORPRIMITIVE2D_HXX
25 #include <drawinglayer/drawinglayerdllapi.h>
27 #include <drawinglayer/primitive2d/groupprimitive2d.hxx>
28 #include <basegfx/color/bcolormodifier.hxx>
32 namespace drawinglayer
34 namespace primitive2d
36 /** ModifiedColorPrimitive2D class
38 This primitive is a grouping primitive and allows to define
39 how the colors of its child content shall be modified for
40 visualisation. This can be (and is) used e.g. for generic shadow
41 visualisation by forcing all color usages of the contained
42 sub-content to the shadow color.
44 For the possibilities of color modifications, please refer
45 to the basegfx::BColorModifier definitions in basegfx. For
46 processing there is tooling in basegfx to build a stack of
47 BColorModifierSharedPtrs to always be able to process the correct
48 colors.
50 If a renderer does not handle this primitive, the content will
51 be visualized unchanged.
53 class DRAWINGLAYER_DLLPUBLIC ModifiedColorPrimitive2D : public GroupPrimitive2D
55 private:
56 /// The ColorModifier to use
57 basegfx::BColorModifierSharedPtr maColorModifier;
59 public:
60 /// constructor
61 ModifiedColorPrimitive2D(
62 const Primitive2DSequence& rChildren,
63 const basegfx::BColorModifierSharedPtr& rColorModifier);
65 /// data read access
66 const basegfx::BColorModifierSharedPtr& getColorModifier() const { return maColorModifier; }
68 /// compare operator
69 virtual bool operator==(const BasePrimitive2D& rPrimitive) const SAL_OVERRIDE;
71 /// provide unique ID
72 DeclPrimitive2DIDBlock()
74 } // end of namespace primitive2d
75 } // end of namespace drawinglayer
79 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_MODIFIEDCOLORPRIMITIVE2D_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */