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 231 of file frame.hxx.

Constructor & Destructor Documentation

TransformableSwFrame::TransformableSwFrame ( SwFrameAreaDefinition rSwFrameAreaDefinition)
inline

Definition at line 243 of file frame.hxx.

Member Function Documentation

void TransformableSwFrame::adaptFrameAreasToTransformations ( )
void TransformableSwFrame::createFrameAreaTransformations ( double  fRotation,
const basegfx::B2DPoint rCenter 
)
const basegfx::B2DHomMatrix& TransformableSwFrame::getLocalFrameAreaTransformation ( ) const
inline
const basegfx::B2DHomMatrix& TransformableSwFrame::getLocalFramePrintAreaTransformation ( ) const
inline
SwRect TransformableSwFrame::getUntransformedFrameArea ( ) const
SwRect TransformableSwFrame::getUntransformedFramePrintArea ( ) const
void TransformableSwFrame::restoreFrameAreas ( )
void TransformableSwFrame::transform ( const basegfx::B2DHomMatrix aTransform)

Member Data Documentation

basegfx::B2DHomMatrix TransformableSwFrame::maFrameAreaTransformation
private

Definition at line 239 of file frame.hxx.

basegfx::B2DHomMatrix TransformableSwFrame::maFramePrintAreaTransformation
private

Definition at line 240 of file frame.hxx.

SwFrameAreaDefinition& TransformableSwFrame::mrSwFrameAreaDefinition
private

Definition at line 235 of file frame.hxx.


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