LibreOffice Module svx (master)
1
svx
inc
sdr
primitive2d
sdrcustomshapeprimitive2d.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_SDRCUSTOMSHAPEPRIMITIVE2D_HXX
21
#define INCLUDED_SVX_INC_SDR_PRIMITIVE2D_SDRCUSTOMSHAPEPRIMITIVE2D_HXX
22
23
#include <
drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx
>
24
#include <
basegfx/matrix/b2dhommatrix.hxx
>
25
#include <
sdr/attribute/sdreffectstextattribute.hxx
>
26
27
28
// predefines
29
30
31
namespace
drawinglayer::primitive2d
32
{
33
class
SdrCustomShapePrimitive2D
final :
public
BufferedDecompositionPrimitive2D
34
{
35
private
:
36
attribute::SdrEffectsTextAttribute
maSdrSTAttribute
;
37
Primitive2DContainer
maSubPrimitives
;
38
basegfx::B2DHomMatrix
maTextBox
;
39
40
// defines if SdrTextWordWrapItem was set at SdrObjCustomShape which means
41
// that the text needs to be block formatted
42
bool
mbWordWrap
: 1;
43
44
// defines that the object contains/is a 3D AutoShape. Needed for
45
// making exceptions with shadow generation
46
bool
mb3DShape
: 1;
47
48
basegfx::B2DHomMatrix
maTransform
;
49
50
// local decomposition.
51
virtual
void
create2DDecomposition
(
Primitive2DContainer
& rContainer,
const
geometry::ViewInformation2D
& aViewInformation)
const override
;
52
53
public
:
54
SdrCustomShapePrimitive2D
(
55
const
attribute::SdrEffectsTextAttribute
& rSdrSTAttribute,
56
Primitive2DContainer
&& rSubPrimitives,
57
basegfx::B2DHomMatrix
aTextBox,
58
bool
bWordWrap,
59
bool
b3DShape,
60
basegfx::B2DHomMatrix
aObjectMatrix);
61
62
// data access
63
const
attribute::SdrEffectsTextAttribute
&
getSdrSTAttribute
()
const
{
return
maSdrSTAttribute
; }
64
const
Primitive2DContainer
&
getSubPrimitives
()
const
{
return
maSubPrimitives
; }
65
const
basegfx::B2DHomMatrix
&
getTextBox
()
const
{
return
maTextBox
; }
66
bool
getWordWrap
()
const
{
return
mbWordWrap
; }
67
bool
get3DShape
()
const
{
return
mb3DShape
; }
68
69
// compare operator
70
virtual
bool
operator==
(
const
BasePrimitive2D
& rPrimitive)
const override
;
71
72
// provide unique ID
73
virtual
sal_uInt32
getPrimitive2DID
()
const override
;
74
};
75
}
// end of namespace drawinglayer::primitive2d
76
77
78
#endif
// INCLUDED_SVX_INC_SDR_PRIMITIVE2D_SDRCUSTOMSHAPEPRIMITIVE2D_HXX
79
80
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BufferedDecompositionPrimitive2D.hxx
b2dhommatrix.hxx
basegfx::B2DHomMatrix
drawinglayer::attribute::SdrEffectsTextAttribute
Definition:
sdreffectstextattribute.hxx:30
drawinglayer::geometry::ViewInformation2D
drawinglayer::primitive2d::BasePrimitive2D
drawinglayer::primitive2d::BufferedDecompositionPrimitive2D
drawinglayer::primitive2d::Primitive2DContainer
drawinglayer::primitive2d::SdrCustomShapePrimitive2D
Definition:
sdrcustomshapeprimitive2d.hxx:34
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::get3DShape
bool get3DShape() const
Definition:
sdrcustomshapeprimitive2d.hxx:67
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::mb3DShape
bool mb3DShape
Definition:
sdrcustomshapeprimitive2d.hxx:46
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::getSubPrimitives
const Primitive2DContainer & getSubPrimitives() const
Definition:
sdrcustomshapeprimitive2d.hxx:64
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::mbWordWrap
bool mbWordWrap
Definition:
sdrcustomshapeprimitive2d.hxx:42
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::maTextBox
basegfx::B2DHomMatrix maTextBox
Definition:
sdrcustomshapeprimitive2d.hxx:38
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::getWordWrap
bool getWordWrap() const
Definition:
sdrcustomshapeprimitive2d.hxx:66
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::getTextBox
const basegfx::B2DHomMatrix & getTextBox() const
Definition:
sdrcustomshapeprimitive2d.hxx:65
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::getSdrSTAttribute
const attribute::SdrEffectsTextAttribute & getSdrSTAttribute() const
Definition:
sdrcustomshapeprimitive2d.hxx:63
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::maSdrSTAttribute
attribute::SdrEffectsTextAttribute maSdrSTAttribute
Definition:
sdrcustomshapeprimitive2d.hxx:36
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::create2DDecomposition
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &aViewInformation) const override
Definition:
sdrcustomshapeprimitive2d.cxx:35
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::SdrCustomShapePrimitive2D
SdrCustomShapePrimitive2D(const attribute::SdrEffectsTextAttribute &rSdrSTAttribute, Primitive2DContainer &&rSubPrimitives, basegfx::B2DHomMatrix aTextBox, bool bWordWrap, bool b3DShape, basegfx::B2DHomMatrix aObjectMatrix)
Definition:
sdrcustomshapeprimitive2d.cxx:91
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::operator==
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
Definition:
sdrcustomshapeprimitive2d.cxx:107
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::getPrimitive2DID
virtual sal_uInt32 getPrimitive2DID() const override
Definition:
sdrcustomshapeprimitive2d.cxx:124
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::maSubPrimitives
Primitive2DContainer maSubPrimitives
Definition:
sdrcustomshapeprimitive2d.hxx:37
drawinglayer::primitive2d::SdrCustomShapePrimitive2D::maTransform
basegfx::B2DHomMatrix maTransform
Definition:
sdrcustomshapeprimitive2d.hxx:48
drawinglayer::primitive2d
sdreffectstextattribute.hxx
Generated on Sun Jul 30 2023 04:27:43 for LibreOffice Module svx (master) by
1.9.3