LibreOffice Module svx (master)  1
sdrolecontentprimitive2d.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 #ifndef INCLUDED_SVX_INC_SDR_PRIMITIVE2D_SDROLECONTENTPRIMITIVE2D_HXX
21 #define INCLUDED_SVX_INC_SDR_PRIMITIVE2D_SDROLECONTENTPRIMITIVE2D_HXX
22 
25 #include <tools/weakbase.h>
26 
27 
28 // predefinitions
29 
30 class SdrOle2Obj;
31 
32 
34  {
36  {
37  private:
40 
41  // #i104867# The GraphicVersion number to identify in operator== if
42  // the graphic has changed, but without fetching it (which may
43  // be expensive, e.g. triggering chart creation)
44  sal_uInt32 mnGraphicVersion;
45 
46  // local decomposition.
47  virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const override;
48 
49  public:
51  const SdrOle2Obj& rSdrOle2Obj,
52  const basegfx::B2DHomMatrix& rObjectTransform,
53  sal_uInt32 nGraphicVersion
54  );
55 
56  // compare operator
57  virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
58 
59  // The default implementation will use getDecomposition results to create the range
60  virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
61 
62  // data access
64 
65  // provide unique ID
66  virtual sal_uInt32 getPrimitive2DID() const override;
67  };
68 } // end of namespace drawinglayer::primitive2d
69 
70 
71 #endif // INCLUDED_SVX_INC_SDR_PRIMITIVE2D_SDROLECONTENTPRIMITIVE2D_HXX
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_uInt32 getPrimitive2DID() const override
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &aViewInformation) const override
const basegfx::B2DHomMatrix & getObjectTransform() const
SdrOleContentPrimitive2D(const SdrOle2Obj &rSdrOle2Obj, const basegfx::B2DHomMatrix &rObjectTransform, sal_uInt32 nGraphicVersion)
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &rViewInformation) const override