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

#include <metaact.hxx>

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

Public Member Functions

 MetaBmpScaleAction ()
 
 MetaBmpScaleAction (MetaBmpScaleAction const &)=default
 
 MetaBmpScaleAction (MetaBmpScaleAction &&)=default
 
MetaBmpScaleActionoperator= (MetaBmpScaleAction const &)=delete
 
MetaBmpScaleActionoperator= (MetaBmpScaleAction &&)=delete
 
virtual void Execute (OutputDevice *pOut) override
 
virtual rtl::Reference< MetaActionClone () const override
 
 MetaBmpScaleAction (const Point &rPt, const Size &rSz, const Bitmap &rBmp)
 
virtual void Move (tools::Long nHorzMove, tools::Long nVertMove) override
 
virtual void Scale (double fScaleX, double fScaleY) override
 
const BitmapGetBitmap () const
 
const PointGetPoint () const
 
const SizeGetSize () const
 
void SetBitmap (const Bitmap &rBmp)
 
void SetPoint (const Point &rPt)
 
void SetSize (const Size &rSz)
 
- 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 ~MetaBmpScaleAction () override
 

Private Attributes

Bitmap maBmp
 
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 697 of file metaact.hxx.

Constructor & Destructor Documentation

◆ MetaBmpScaleAction() [1/4]

MetaBmpScaleAction::MetaBmpScaleAction ( )

Definition at line 836 of file metaact.cxx.

References BMPSCALE.

Referenced by Clone().

◆ MetaBmpScaleAction() [2/4]

MetaBmpScaleAction::MetaBmpScaleAction ( MetaBmpScaleAction const &  )
default

◆ MetaBmpScaleAction() [3/4]

MetaBmpScaleAction::MetaBmpScaleAction ( MetaBmpScaleAction &&  )
default

◆ ~MetaBmpScaleAction()

MetaBmpScaleAction::~MetaBmpScaleAction ( )
overrideprivatevirtual

Definition at line 840 of file metaact.cxx.

◆ MetaBmpScaleAction() [4/4]

MetaBmpScaleAction::MetaBmpScaleAction ( const Point rPt,
const Size rSz,
const Bitmap rBmp 
)

Definition at line 843 of file metaact.cxx.

References BMPSCALE.

Member Function Documentation

◆ Clone()

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

Reimplemented from MetaAction.

Definition at line 897 of file metaact.cxx.

References MetaBmpScaleAction().

◆ Execute()

void MetaBmpScaleAction::Execute ( OutputDevice pOut)
overridevirtual

Reimplemented from MetaAction.

Definition at line 889 of file metaact.cxx.

References AllowScale(), Bitmap::GetSizePixel(), maBmp, maPt, maSz, and pOut.

◆ GetBitmap()

const Bitmap & MetaBmpScaleAction::GetBitmap ( ) const
inline

◆ GetPoint()

const Point & MetaBmpScaleAction::GetPoint ( ) const
inline

◆ GetSize()

const Size & MetaBmpScaleAction::GetSize ( ) const
inline

◆ Move()

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

Reimplemented from MetaAction.

Definition at line 902 of file metaact.cxx.

References maPt.

◆ operator=() [1/2]

MetaBmpScaleAction & MetaBmpScaleAction::operator= ( MetaBmpScaleAction &&  )
delete

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

◆ operator=() [2/2]

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

◆ Scale()

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

Reimplemented from MetaAction.

Definition at line 907 of file metaact.cxx.

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

◆ SetBitmap()

void MetaBmpScaleAction::SetBitmap ( const Bitmap rBmp)
inline

Definition at line 726 of file metaact.hxx.

◆ SetPoint()

void MetaBmpScaleAction::SetPoint ( const Point rPt)
inline

Definition at line 727 of file metaact.hxx.

◆ SetSize()

void MetaBmpScaleAction::SetSize ( const Size rSz)
inline

Definition at line 728 of file metaact.hxx.

Member Data Documentation

◆ maBmp

Bitmap MetaBmpScaleAction::maBmp
private

Definition at line 701 of file metaact.hxx.

Referenced by Execute().

◆ maPt

Point MetaBmpScaleAction::maPt
private

Definition at line 702 of file metaact.hxx.

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

◆ maSz

Size MetaBmpScaleAction::maSz
private

Definition at line 703 of file metaact.hxx.

Referenced by Execute(), and Scale().


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