LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MetaBmpExScaleAction Class Referencefinal

#include <metaact.hxx>

Inheritance diagram for MetaBmpExScaleAction:
[legend]
Collaboration diagram for MetaBmpExScaleAction:
[legend]

Public Member Functions

 MetaBmpExScaleAction ()
 
 MetaBmpExScaleAction (MetaBmpExScaleAction const &)=default
 
 MetaBmpExScaleAction (MetaBmpExScaleAction &&)=default
 
MetaBmpExScaleActionoperator= (MetaBmpExScaleAction const &)=delete
 
MetaBmpExScaleActionoperator= (MetaBmpExScaleAction &&)=delete
 
virtual void Execute (OutputDevice *pOut) override
 
virtual rtl::Reference< MetaActionClone () const override
 
 MetaBmpExScaleAction (const Point &rPt, const Size &rSz, const BitmapEx &rBmpEx)
 
virtual void Move (tools::Long nHorzMove, tools::Long nVertMove) override
 
virtual void Scale (double fScaleX, double fScaleY) override
 
const BitmapExGetBitmapEx () const
 
const PointGetPoint () const
 
const SizeGetSize () const
 
void SetBitmapEx (const BitmapEx &rBmpEx)
 
void SetPoint (const Point &rPt)
 
void SetSize (const Size &rSz)
 
bool IsTransparent () const override
 #i10613# Extracted from Printer::GetPreparedMetaFile. More...
 
- Public Member Functions inherited from MetaAction
 MetaAction ()
 
 MetaAction (MetaActionType nType)
 
 MetaAction (MetaAction const &)
 
virtual void Execute (OutputDevice *pOut)
 
oslInterlockedCount GetRefCount () const
 
virtual rtl::Reference< MetaActionClone () const
 
virtual void Move (tools::Long nHorzMove, tools::Long nVertMove)
 
virtual void Scale (double fScaleX, double fScaleY)
 
MetaActionType GetType () const
 
virtual bool IsTransparent () const
 #i10613# Extracted from Printer::GetPreparedMetaFile. More...
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

virtual ~MetaBmpExScaleAction () override
 

Private Attributes

BitmapEx maBmpEx
 
Point maPt
 
Size maSz
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from MetaAction
virtual ~MetaAction () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 805 of file metaact.hxx.

Constructor & Destructor Documentation

◆ MetaBmpExScaleAction() [1/4]

MetaBmpExScaleAction::MetaBmpExScaleAction ( )

Definition at line 1033 of file metaact.cxx.

References BMPEXSCALE.

Referenced by Clone().

◆ MetaBmpExScaleAction() [2/4]

MetaBmpExScaleAction::MetaBmpExScaleAction ( MetaBmpExScaleAction const &  )
default

◆ MetaBmpExScaleAction() [3/4]

MetaBmpExScaleAction::MetaBmpExScaleAction ( MetaBmpExScaleAction &&  )
default

◆ ~MetaBmpExScaleAction()

MetaBmpExScaleAction::~MetaBmpExScaleAction ( )
overrideprivatevirtual

Definition at line 1037 of file metaact.cxx.

◆ MetaBmpExScaleAction() [4/4]

MetaBmpExScaleAction::MetaBmpExScaleAction ( const Point rPt,
const Size rSz,
const BitmapEx rBmpEx 
)

Definition at line 1040 of file metaact.cxx.

References BMPEXSCALE.

Member Function Documentation

◆ Clone()

rtl::Reference< MetaAction > MetaBmpExScaleAction::Clone ( ) const
overridevirtual

Reimplemented from MetaAction.

Definition at line 1058 of file metaact.cxx.

References MetaBmpExScaleAction().

◆ Execute()

void MetaBmpExScaleAction::Execute ( OutputDevice pOut)
overridevirtual

Reimplemented from MetaAction.

Definition at line 1048 of file metaact.cxx.

References AllowRect(), AllowScale(), BitmapEx::GetSizePixel(), maBmpEx, maPt, maSz, and pOut.

◆ GetBitmapEx()

const BitmapEx & MetaBmpExScaleAction::GetBitmapEx ( ) const
inline

◆ GetPoint()

const Point & MetaBmpExScaleAction::GetPoint ( ) const
inline

◆ GetSize()

const Size & MetaBmpExScaleAction::GetSize ( ) const
inline

◆ IsTransparent()

bool MetaBmpExScaleAction::IsTransparent ( ) const
inlineoverridevirtual

#i10613# Extracted from Printer::GetPreparedMetaFile.

Returns true if given action requires special transparency handling

Reimplemented from MetaAction.

Definition at line 837 of file metaact.hxx.

References vcl::drawmode::GetBitmapEx(), and BitmapEx::IsAlpha().

◆ Move()

void MetaBmpExScaleAction::Move ( tools::Long  nHorzMove,
tools::Long  nVertMove 
)
overridevirtual

Reimplemented from MetaAction.

Definition at line 1063 of file metaact.cxx.

References maPt, and Point::Move().

◆ operator=() [1/2]

MetaBmpExScaleAction & MetaBmpExScaleAction::operator= ( MetaBmpExScaleAction &&  )
delete

References Clone(), Execute(), and Move.

◆ operator=() [2/2]

MetaBmpExScaleAction & MetaBmpExScaleAction::operator= ( MetaBmpExScaleAction const &  )
delete

◆ Scale()

void MetaBmpExScaleAction::Scale ( double  fScaleX,
double  fScaleY 
)
overridevirtual

Reimplemented from MetaAction.

Definition at line 1068 of file metaact.cxx.

References tools::Rectangle::GetSize(), maPt, maSz, and tools::Rectangle::TopLeft().

◆ SetBitmapEx()

void MetaBmpExScaleAction::SetBitmapEx ( const BitmapEx rBmpEx)
inline

Definition at line 834 of file metaact.hxx.

◆ SetPoint()

void MetaBmpExScaleAction::SetPoint ( const Point rPt)
inline

Definition at line 835 of file metaact.hxx.

◆ SetSize()

void MetaBmpExScaleAction::SetSize ( const Size rSz)
inline

Definition at line 836 of file metaact.hxx.

Member Data Documentation

◆ maBmpEx

BitmapEx MetaBmpExScaleAction::maBmpEx
private

Definition at line 809 of file metaact.hxx.

Referenced by Execute().

◆ maPt

Point MetaBmpExScaleAction::maPt
private

Definition at line 810 of file metaact.hxx.

Referenced by Execute(), Move(), and Scale().

◆ maSz

Size MetaBmpExScaleAction::maSz
private

Definition at line 811 of file metaact.hxx.

Referenced by Execute(), and Scale().


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