LibreOffice Module drawinglayer (master) 1
fillgraphicprimitive2d.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
23
27#include <vcl/bitmapex.hxx>
28
30{
31class FillGraphicPrimitive2D;
32}
33
35{
36// define a simple accessor which can be used as friend. That method exists
37// only locally at SDPRProcessor2dTools.cxx and is thus only usable/callable
38// from there
41 const BitmapEx&);
42}
43
44// FillbitmapPrimitive2D class
46{
61 {
62 private:
65
68
71
73 virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
74
75 // allow this single accessor to change it to set buggered data
78 const BitmapEx&);
79
80 // private tooling method to be called by setOffsetXYCreatedBitmap
82 {
83 maOffsetXYCreatedBitmap = rBitmap;
84 }
85
86 public:
89 basegfx::B2DHomMatrix aTransformation,
90 const attribute::FillGraphicAttribute& rFillGraphic);
91
94 const attribute::FillGraphicAttribute& getFillGraphic() const { return maFillGraphic; }
95 const BitmapEx& getOffsetXYCreatedBitmap() const { return maOffsetXYCreatedBitmap; }
96
98 virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
99
101 virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
102
104 virtual sal_uInt32 getPrimitive2DID() const override;
105 };
106} // end of namespace drawinglayer::primitive2d
107
108
109/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
attribute::FillGraphicAttribute maFillGraphic
the fill attributes
basegfx::B2DHomMatrix maTransformation
the geometric definition
const attribute::FillGraphicAttribute & getFillGraphic() const
BitmapEx maOffsetXYCreatedBitmap
the evtl. buffered OffsetXYCreatedBitmap
const basegfx::B2DHomMatrix & getTransformation() const
data read access
#define DRAWINGLAYER_DLLPUBLIC
void setOffsetXYCreatedBitmap(drawinglayer::primitive2d::FillGraphicPrimitive2D &rFillGraphicPrimitive2D, const BitmapEx &rBitmap)
basegfx::B2DHomMatrix maTransformation
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)