LibreOffice Module svx (master)
1
svx
inc
sdr
contact
viewcontactofsdrole2obj.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_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
21
#define INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
22
23
#include <
sdr/contact/viewcontactofsdrrectobj.hxx
>
24
#include <
svx/svdoole2.hxx
>
25
#include <
basegfx/matrix/b2dhommatrix.hxx
>
26
27
class
Graphic
;
28
29
namespace
sdr::contact
30
{
31
class
ViewContactOfSdrOle2Obj
final :
public
ViewContactOfSdrRectObj
32
{
33
private
:
34
// Create an Object-Specific ViewObjectContact, set ViewContact and
35
// ObjectContact. Always needs to return something.
36
virtual
ViewObjectContact
&
37
CreateObjectSpecificViewObjectContact
(
ObjectContact
& rObjectContact)
override
;
38
39
public
:
40
// access to SdrOle2Obj
41
const
SdrOle2Obj
&
GetOle2Obj
()
const
{
return
static_cast<
const
SdrOle2Obj
&
>
(
GetSdrObject
()); }
42
44
basegfx::B2DHomMatrix
createObjectTransform
()
const
;
45
46
// basic constructor, used from SdrObject.
47
explicit
ViewContactOfSdrOle2Obj
(
SdrOle2Obj
& rOle2Obj);
48
virtual
~ViewContactOfSdrOle2Obj
()
override
;
49
50
// helper for creating an OLE sequence for this object. It takes care od attributes, needed
51
// scaling (e.g. for EmptyPresObj's), the correct graphic and other stuff. It is used from
52
// createViewIndependentPrimitive2DSequence with false, and with evtl. HighContrast true
53
// from the VOC which knows that
54
void
createPrimitive2DSequenceWithParameters
(
55
drawinglayer::primitive2d::Primitive2DDecompositionVisitor
& rVisitor)
const
;
56
57
virtual
basegfx::B2DRange
58
getRange
(
const
drawinglayer::geometry::ViewInformation2D
& rViewInfo2D)
const override
;
59
60
private
:
61
// This method is responsible for creating the graphical visualisation data
62
// ONLY based on model data, just wraps to call createPrimitive2DSequenceWithParameters(false)
63
virtual
void
createViewIndependentPrimitive2DSequence
(
64
drawinglayer::primitive2d::Primitive2DDecompositionVisitor
& rVisitor)
const override
;
65
};
66
}
67
68
#endif
// INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
69
70
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
b2dhommatrix.hxx
Graphic
SdrOle2Obj
Definition:
svdoole2.hxx:48
basegfx::B2DHomMatrix
basegfx::B2DRange
drawinglayer::geometry::ViewInformation2D
drawinglayer::primitive2d::Primitive2DDecompositionVisitor
sdr::contact::ObjectContact
Definition:
objectcontact.hxx:49
sdr::contact::ViewContactOfSdrObj::GetSdrObject
SdrObject & GetSdrObject() const
Definition:
viewcontactofsdrobj.hxx:44
sdr::contact::ViewContactOfSdrOle2Obj
Definition:
viewcontactofsdrole2obj.hxx:32
sdr::contact::ViewContactOfSdrOle2Obj::createViewIndependentPrimitive2DSequence
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
Definition:
viewcontactofsdrole2obj.cxx:172
sdr::contact::ViewContactOfSdrOle2Obj::createPrimitive2DSequenceWithParameters
void createPrimitive2DSequenceWithParameters(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const
Definition:
viewcontactofsdrole2obj.cxx:74
sdr::contact::ViewContactOfSdrOle2Obj::~ViewContactOfSdrOle2Obj
virtual ~ViewContactOfSdrOle2Obj() override
Definition:
viewcontactofsdrole2obj.cxx:52
sdr::contact::ViewContactOfSdrOle2Obj::getRange
virtual basegfx::B2DRange getRange(const drawinglayer::geometry::ViewInformation2D &rViewInfo2D) const override
Definition:
viewcontactofsdrole2obj.cxx:146
sdr::contact::ViewContactOfSdrOle2Obj::createObjectTransform
basegfx::B2DHomMatrix createObjectTransform() const
helper to create transformation from SdrObject
Definition:
viewcontactofsdrole2obj.cxx:56
sdr::contact::ViewContactOfSdrOle2Obj::CreateObjectSpecificViewObjectContact
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
Definition:
viewcontactofsdrole2obj.cxx:39
sdr::contact::ViewContactOfSdrOle2Obj::ViewContactOfSdrOle2Obj
ViewContactOfSdrOle2Obj(SdrOle2Obj &rOle2Obj)
Definition:
viewcontactofsdrole2obj.cxx:47
sdr::contact::ViewContactOfSdrOle2Obj::GetOle2Obj
const SdrOle2Obj & GetOle2Obj() const
Definition:
viewcontactofsdrole2obj.hxx:41
sdr::contact::ViewContactOfSdrRectObj
Definition:
viewcontactofsdrrectobj.hxx:28
sdr::contact::ViewObjectContact
Definition:
viewobjectcontact.hxx:42
sdr::contact
svdoole2.hxx
viewcontactofsdrrectobj.hxx
Generated on Sun Jul 30 2023 04:27:43 for LibreOffice Module svx (master) by
1.9.3