LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::SdrMeasurePrimitive2D Class Referencefinal

#include <sdrmeasureprimitive2d.hxx>

Inheritance diagram for drawinglayer::primitive2d::SdrMeasurePrimitive2D:
[legend]
Collaboration diagram for drawinglayer::primitive2d::SdrMeasurePrimitive2D:
[legend]

Public Member Functions

 SdrMeasurePrimitive2D (const attribute::SdrLineEffectsTextAttribute &rSdrLSTAttribute, const basegfx::B2DPoint &rStart, const basegfx::B2DPoint &rEnd, MeasureTextPosition eHorizontal, MeasureTextPosition eVertical, double fDistance, double fUpper, double fLower, double fLeftDelta, double fRightDelta, bool bBelow, bool bTextRotation, bool bTextAutoAngle)
 
const attribute::SdrLineEffectsTextAttributegetSdrLSTAttribute () const
 
const basegfx::B2DPointgetStart () const
 
const basegfx::B2DPointgetEnd () const
 
MeasureTextPosition getHorizontal () const
 
MeasureTextPosition getVertical () const
 
double getDistance () const
 
double getUpper () const
 
double getLower () const
 
double getLeftDelta () const
 
double getRightDelta () const
 
bool getBelow () const
 
bool getTextRotation () const
 
bool getTextAutoAngle () const
 
virtual bool operator== (const BasePrimitive2D &rPrimitive) const override
 
virtual sal_uInt32 getPrimitive2DID () const override
 
- Public Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D
 BufferedDecompositionPrimitive2D ()
 
virtual void get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
 
void setTransparenceForShadow (sal_uInt16 nTransparenceForShadow)
 
sal_uInt16 getTransparenceForShadow () const
 
- Public Member Functions inherited from drawinglayer::primitive2d::BasePrimitive2D
 BasePrimitive2D ()
 
virtual ~BasePrimitive2D () override
 
virtual bool operator== (const BasePrimitive2D &rPrimitive) const
 
bool operator!= (const BasePrimitive2D &rPrimitive) const
 
virtual basegfx::B2DRange getB2DRange (const geometry::ViewInformation2D &rViewInformation) const
 
virtual sal_uInt32 getPrimitive2DID () const=0
 
virtual void get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const
 
Primitive2DContainer getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters)
 
css::geometry::RealRectangle2D getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters)
 
virtual sal_Int64 estimateUsage ()
 

Private Member Functions

Primitive2DReference impCreatePart (const attribute::SdrLineAttribute &rLineAttribute, const basegfx::B2DHomMatrix &rObjectMatrix, const basegfx::B2DPoint &rStart, const basegfx::B2DPoint &rEnd, bool bLeftActive, bool bRightActive) const
 
virtual void create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &aViewInformation) const override
 

Private Attributes

attribute::SdrLineEffectsTextAttribute maSdrLSTAttribute
 
basegfx::B2DPoint maStart
 
basegfx::B2DPoint maEnd
 
MeasureTextPosition meHorizontal
 
MeasureTextPosition meVertical
 
double mfDistance
 
double mfUpper
 
double mfLower
 
double mfLeftDelta
 
double mfRightDelta
 
bool mbBelow: 1
 
bool mbTextRotation: 1
 
bool mbTextAutoAngle: 1
 

Additional Inherited Members

- Protected Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D
const Primitive2DContainergetBuffered2DDecomposition () const
 
void setBuffered2DDecomposition (Primitive2DContainer &&rNew)
 
virtual void create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const=0
 

Detailed Description

Definition at line 46 of file sdrmeasureprimitive2d.hxx.

Constructor & Destructor Documentation

◆ SdrMeasurePrimitive2D()

drawinglayer::primitive2d::SdrMeasurePrimitive2D::SdrMeasurePrimitive2D ( const attribute::SdrLineEffectsTextAttribute rSdrLSTAttribute,
const basegfx::B2DPoint rStart,
const basegfx::B2DPoint rEnd,
MeasureTextPosition  eHorizontal,
MeasureTextPosition  eVertical,
double  fDistance,
double  fUpper,
double  fLower,
double  fLeftDelta,
double  fRightDelta,
bool  bBelow,
bool  bTextRotation,
bool  bTextAutoAngle 
)

Definition at line 436 of file sdrmeasureprimitive2d.cxx.

References maEnd, and maStart.

Member Function Documentation

◆ create2DDecomposition()

void drawinglayer::primitive2d::SdrMeasurePrimitive2D::create2DDecomposition ( Primitive2DContainer rContainer,
const geometry::ViewInformation2D aViewInformation 
) const
overrideprivatevirtual

Implements drawinglayer::primitive2d::BufferedDecompositionPrimitive2D.

Definition at line 82 of file sdrmeasureprimitive2d.cxx.

References drawinglayer::primitive2d::Primitive2DContainer::append(), drawinglayer::primitive2d::createEmbeddedShadowPrimitive(), basegfx::utils::createShearXRotateTranslateB2DHomMatrix(), getBelow(), getDistance(), getEnd(), drawinglayer::attribute::SdrLineStartEndAttribute::getEndPolyPolygon(), drawinglayer::attribute::SdrLineStartEndAttribute::getEndWidth(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), getHorizontal(), getLeftDelta(), basegfx::B2DVector::getLength(), drawinglayer::attribute::SdrLineEffectsTextAttribute::getLine(), drawinglayer::attribute::SdrLineEffectsTextAttribute::getLineStartEnd(), getLower(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), drawinglayer::attribute::SdrTextAttribute::getOutlinerParaObject(), basegfx::utils::getRange(), getRightDelta(), getSdrLSTAttribute(), drawinglayer::attribute::SdrTextAttribute::getSdrText(), getStart(), drawinglayer::attribute::SdrLineStartEndAttribute::getStartPolyPolygon(), drawinglayer::attribute::SdrLineStartEndAttribute::getStartWidth(), drawinglayer::attribute::SdrEffectsTextAttribute::getText(), getTextAutoAngle(), drawinglayer::attribute::SdrTextAttribute::getTextLeftDistance(), drawinglayer::attribute::SdrTextAttribute::getTextLowerDistance(), drawinglayer::attribute::SdrTextAttribute::getTextRightDistance(), getTextRotation(), drawinglayer::attribute::SdrTextAttribute::getTextUpperDistance(), getUpper(), getVertical(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), drawinglayer::attribute::SdrLineAttribute::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), impCreatePart(), drawinglayer::attribute::SdrLineAttribute::isDefault(), drawinglayer::attribute::SdrLineStartEndAttribute::isDefault(), drawinglayer::attribute::SdrTextAttribute::isDefault(), drawinglayer::attribute::SdrLineStartEndAttribute::isEndActive(), drawinglayer::attribute::SdrLineStartEndAttribute::isEndCentered(), drawinglayer::attribute::SdrTextAttribute::isScroll(), drawinglayer::attribute::SdrLineStartEndAttribute::isStartActive(), drawinglayer::attribute::SdrLineStartEndAttribute::isStartCentered(), drawinglayer::primitive2d::MEASURETEXTPOSITION_AUTOMATIC, drawinglayer::primitive2d::MEASURETEXTPOSITION_CENTERED, drawinglayer::primitive2d::MEASURETEXTPOSITION_NEGATIVE, drawinglayer::primitive2d::MEASURETEXTPOSITION_POSITIVE, basegfx::B2DHomMatrix::rotate(), SDRTEXTHORZADJUST_CENTER, SDRTEXTVERTADJUST_CENTER, and basegfx::B2DHomMatrix::translate().

◆ getBelow()

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::getBelow ( ) const
inline

Definition at line 103 of file sdrmeasureprimitive2d.hxx.

References mbBelow.

Referenced by create2DDecomposition(), and operator==().

◆ getDistance()

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::getDistance ( ) const
inline

Definition at line 98 of file sdrmeasureprimitive2d.hxx.

References mfDistance.

Referenced by create2DDecomposition(), and operator==().

◆ getEnd()

const basegfx::B2DPoint & drawinglayer::primitive2d::SdrMeasurePrimitive2D::getEnd ( ) const
inline

Definition at line 95 of file sdrmeasureprimitive2d.hxx.

References maEnd.

Referenced by create2DDecomposition(), and operator==().

◆ getHorizontal()

MeasureTextPosition drawinglayer::primitive2d::SdrMeasurePrimitive2D::getHorizontal ( ) const
inline

Definition at line 96 of file sdrmeasureprimitive2d.hxx.

References meHorizontal.

Referenced by create2DDecomposition(), and operator==().

◆ getLeftDelta()

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::getLeftDelta ( ) const
inline

Definition at line 101 of file sdrmeasureprimitive2d.hxx.

References mfLeftDelta.

Referenced by create2DDecomposition(), and operator==().

◆ getLower()

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::getLower ( ) const
inline

Definition at line 100 of file sdrmeasureprimitive2d.hxx.

References mfLower.

Referenced by create2DDecomposition(), and operator==().

◆ getPrimitive2DID()

sal_uInt32 drawinglayer::primitive2d::SdrMeasurePrimitive2D::getPrimitive2DID ( ) const
overridevirtual

◆ getRightDelta()

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::getRightDelta ( ) const
inline

Definition at line 102 of file sdrmeasureprimitive2d.hxx.

References mfRightDelta.

Referenced by create2DDecomposition(), and operator==().

◆ getSdrLSTAttribute()

const attribute::SdrLineEffectsTextAttribute & drawinglayer::primitive2d::SdrMeasurePrimitive2D::getSdrLSTAttribute ( ) const
inline

Definition at line 93 of file sdrmeasureprimitive2d.hxx.

References maSdrLSTAttribute.

Referenced by create2DDecomposition(), impCreatePart(), and operator==().

◆ getStart()

const basegfx::B2DPoint & drawinglayer::primitive2d::SdrMeasurePrimitive2D::getStart ( ) const
inline

Definition at line 94 of file sdrmeasureprimitive2d.hxx.

References maStart.

Referenced by create2DDecomposition(), and operator==().

◆ getTextAutoAngle()

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::getTextAutoAngle ( ) const
inline

Definition at line 105 of file sdrmeasureprimitive2d.hxx.

References mbTextAutoAngle.

Referenced by create2DDecomposition(), and operator==().

◆ getTextRotation()

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::getTextRotation ( ) const
inline

Definition at line 104 of file sdrmeasureprimitive2d.hxx.

References mbTextRotation.

Referenced by create2DDecomposition(), and operator==().

◆ getUpper()

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::getUpper ( ) const
inline

Definition at line 99 of file sdrmeasureprimitive2d.hxx.

References mfUpper.

Referenced by create2DDecomposition(), and operator==().

◆ getVertical()

MeasureTextPosition drawinglayer::primitive2d::SdrMeasurePrimitive2D::getVertical ( ) const
inline

Definition at line 97 of file sdrmeasureprimitive2d.hxx.

References meVertical.

Referenced by create2DDecomposition(), and operator==().

◆ impCreatePart()

Primitive2DReference drawinglayer::primitive2d::SdrMeasurePrimitive2D::impCreatePart ( const attribute::SdrLineAttribute rLineAttribute,
const basegfx::B2DHomMatrix rObjectMatrix,
const basegfx::B2DPoint rStart,
const basegfx::B2DPoint rEnd,
bool  bLeftActive,
bool  bRightActive 
) const
private

◆ operator==()

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::operator== ( const BasePrimitive2D rPrimitive) const
overridevirtual

Member Data Documentation

◆ maEnd

basegfx::B2DPoint drawinglayer::primitive2d::SdrMeasurePrimitive2D::maEnd
private

Definition at line 51 of file sdrmeasureprimitive2d.hxx.

Referenced by getEnd().

◆ maSdrLSTAttribute

attribute::SdrLineEffectsTextAttribute drawinglayer::primitive2d::SdrMeasurePrimitive2D::maSdrLSTAttribute
private

Definition at line 49 of file sdrmeasureprimitive2d.hxx.

Referenced by getSdrLSTAttribute().

◆ maStart

basegfx::B2DPoint drawinglayer::primitive2d::SdrMeasurePrimitive2D::maStart
private

Definition at line 50 of file sdrmeasureprimitive2d.hxx.

Referenced by getStart().

◆ mbBelow

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::mbBelow
private

Definition at line 60 of file sdrmeasureprimitive2d.hxx.

Referenced by getBelow().

◆ mbTextAutoAngle

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::mbTextAutoAngle
private

Definition at line 62 of file sdrmeasureprimitive2d.hxx.

Referenced by getTextAutoAngle().

◆ mbTextRotation

bool drawinglayer::primitive2d::SdrMeasurePrimitive2D::mbTextRotation
private

Definition at line 61 of file sdrmeasureprimitive2d.hxx.

Referenced by getTextRotation().

◆ meHorizontal

MeasureTextPosition drawinglayer::primitive2d::SdrMeasurePrimitive2D::meHorizontal
private

Definition at line 52 of file sdrmeasureprimitive2d.hxx.

Referenced by getHorizontal().

◆ meVertical

MeasureTextPosition drawinglayer::primitive2d::SdrMeasurePrimitive2D::meVertical
private

Definition at line 53 of file sdrmeasureprimitive2d.hxx.

Referenced by getVertical().

◆ mfDistance

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::mfDistance
private

Definition at line 54 of file sdrmeasureprimitive2d.hxx.

Referenced by getDistance().

◆ mfLeftDelta

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::mfLeftDelta
private

Definition at line 57 of file sdrmeasureprimitive2d.hxx.

Referenced by getLeftDelta().

◆ mfLower

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::mfLower
private

Definition at line 56 of file sdrmeasureprimitive2d.hxx.

Referenced by getLower().

◆ mfRightDelta

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::mfRightDelta
private

Definition at line 58 of file sdrmeasureprimitive2d.hxx.

Referenced by getRightDelta().

◆ mfUpper

double drawinglayer::primitive2d::SdrMeasurePrimitive2D::mfUpper
private

Definition at line 55 of file sdrmeasureprimitive2d.hxx.

Referenced by getUpper().


The documentation for this class was generated from the following files: