LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
TransformableSwFrame Class Reference

RotateFlyFrame3: Helper class when you want to make your SwFrame derivate transformable. More...

#include <frame.hxx>

Collaboration diagram for TransformableSwFrame:
[legend]

Public Member Functions

 TransformableSwFrame (SwFrameAreaDefinition &rSwFrameAreaDefinition)
 
const basegfx::B2DHomMatrixgetLocalFrameAreaTransformation () const
 
const basegfx::B2DHomMatrixgetLocalFramePrintAreaTransformation () const
 
SwRect getUntransformedFrameArea () const
 
SwRect getUntransformedFramePrintArea () const
 
void createFrameAreaTransformations (double fRotation, const basegfx::B2DPoint &rCenter)
 
void restoreFrameAreas ()
 
void adaptFrameAreasToTransformations ()
 
void transform (const basegfx::B2DHomMatrix &aTransform)
 

Private Attributes

SwFrameAreaDefinitionmrSwFrameAreaDefinition
 
basegfx::B2DHomMatrix maFrameAreaTransformation
 
basegfx::B2DHomMatrix maFramePrintAreaTransformation
 

Detailed Description

RotateFlyFrame3: Helper class when you want to make your SwFrame derivate transformable.

It provides some tooling to do so. To use, add as member (see e.g. SwFlyFreeFrame which uses 'std::unique_ptr< TransformableSwFrame >')

Definition at line 235 of file frame.hxx.

Constructor & Destructor Documentation

◆ TransformableSwFrame()

TransformableSwFrame::TransformableSwFrame ( SwFrameAreaDefinition rSwFrameAreaDefinition)
inline

Definition at line 247 of file frame.hxx.

Member Function Documentation

◆ adaptFrameAreasToTransformations()

void TransformableSwFrame::adaptFrameAreasToTransformations ( )

◆ createFrameAreaTransformations()

void TransformableSwFrame::createFrameAreaTransformations ( double  fRotation,
const basegfx::B2DPoint rCenter 
)

◆ getLocalFrameAreaTransformation()

const basegfx::B2DHomMatrix & TransformableSwFrame::getLocalFrameAreaTransformation ( ) const
inline

◆ getLocalFramePrintAreaTransformation()

const basegfx::B2DHomMatrix & TransformableSwFrame::getLocalFramePrintAreaTransformation ( ) const
inline

◆ getUntransformedFrameArea()

SwRect TransformableSwFrame::getUntransformedFrameArea ( ) const

◆ getUntransformedFramePrintArea()

SwRect TransformableSwFrame::getUntransformedFramePrintArea ( ) const

◆ restoreFrameAreas()

void TransformableSwFrame::restoreFrameAreas ( )

◆ transform()

void TransformableSwFrame::transform ( const basegfx::B2DHomMatrix aTransform)

Member Data Documentation

◆ maFrameAreaTransformation

basegfx::B2DHomMatrix TransformableSwFrame::maFrameAreaTransformation
private

Definition at line 243 of file frame.hxx.

Referenced by getLocalFrameAreaTransformation().

◆ maFramePrintAreaTransformation

basegfx::B2DHomMatrix TransformableSwFrame::maFramePrintAreaTransformation
private

Definition at line 244 of file frame.hxx.

Referenced by getLocalFramePrintAreaTransformation().

◆ mrSwFrameAreaDefinition

SwFrameAreaDefinition& TransformableSwFrame::mrSwFrameAreaDefinition
private

Definition at line 239 of file frame.hxx.


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