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

#include <metaact.hxx>

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

Public Member Functions

 MetaFontAction ()
 
 MetaFontAction (MetaFontAction const &)=default
 
 MetaFontAction (MetaFontAction &&)=default
 
MetaFontActionoperator= (MetaFontAction const &)=delete
 
MetaFontActionoperator= (MetaFontAction &&)=delete
 
virtual void Execute (OutputDevice *pOut) override
 
virtual rtl::Reference< MetaActionClone () const override
 
 MetaFontAction (vcl::Font)
 
virtual void Scale (double fScaleX, double fScaleY) override
 
const vcl::FontGetFont () const
 
void SetFont (const vcl::Font &rFont)
 
- 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

void correctFontScale (tools::Long nNewFontScale)
 
virtual ~MetaFontAction () override
 

Private Attributes

vcl::Font maFont
 

Friends

class emfio::ScaledFontDetectCorrectHelper
 

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 1443 of file metaact.hxx.

Constructor & Destructor Documentation

◆ MetaFontAction() [1/4]

MetaFontAction::MetaFontAction ( )

Definition at line 1671 of file metaact.cxx.

References FONT.

Referenced by Clone().

◆ MetaFontAction() [2/4]

MetaFontAction::MetaFontAction ( MetaFontAction const &  )
default

◆ MetaFontAction() [3/4]

MetaFontAction::MetaFontAction ( MetaFontAction &&  )
default

◆ ~MetaFontAction()

MetaFontAction::~MetaFontAction ( )
overrideprivatevirtual

Definition at line 1675 of file metaact.cxx.

◆ MetaFontAction() [4/4]

MetaFontAction::MetaFontAction ( vcl::Font  aFont)
explicit

Member Function Documentation

◆ Clone()

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

Reimplemented from MetaAction.

Definition at line 1699 of file metaact.cxx.

References MetaFontAction().

◆ correctFontScale()

void MetaFontAction::correctFontScale ( tools::Long  nNewFontScale)
inlineprivate

Definition at line 1452 of file metaact.hxx.

References vcl::Font::SetAverageFontWidth().

◆ Execute()

void MetaFontAction::Execute ( OutputDevice pOut)
overridevirtual

Reimplemented from MetaAction.

Definition at line 1694 of file metaact.cxx.

References maFont, and pOut.

◆ GetFont()

const vcl::Font & MetaFontAction::GetFont ( ) const
inline

◆ operator=() [1/2]

MetaFontAction & MetaFontAction::operator= ( MetaFontAction &&  )
delete

References Clone(), and Execute().

◆ operator=() [2/2]

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

◆ Scale()

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

Reimplemented from MetaAction.

Definition at line 1704 of file metaact.cxx.

References FRound(), vcl::Font::GetFontSize(), Size::Height(), maFont, vcl::Font::SetFontSize(), and Size::Width().

◆ SetFont()

void MetaFontAction::SetFont ( const vcl::Font rFont)
inline

Definition at line 1471 of file metaact.hxx.

Friends And Related Function Documentation

◆ emfio::ScaledFontDetectCorrectHelper

Definition at line 1451 of file metaact.hxx.

Member Data Documentation

◆ maFont

vcl::Font MetaFontAction::maFont
private

Definition at line 1447 of file metaact.hxx.

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


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