LibreOffice Module sd (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SdOptionsZoom Class Reference

#include <optsitem.hxx>

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

Public Member Functions

 SdOptionsZoom (bool bImpress)
 
void GetScale (sal_Int32 &rX, sal_Int32 &rY) const
 
void SetScale (sal_Int32 nInX, sal_Int32 nInY)
 
- Public Member Functions inherited from SdOptionsGeneric
 SdOptionsGeneric (bool bImpress, const OUString &rSubTree)
 
 SdOptionsGeneric (SdOptionsGeneric const &)
 
virtual ~SdOptionsGeneric ()
 
SdOptionsGenericoperator= (SdOptionsGeneric const &)
 
bool IsImpress () const
 
void EnableModify (bool bModify)
 
void Store ()
 

Protected Member Functions

virtual void GetPropNameArray (const char **&ppNames, sal_uLong &rCount) const override
 
virtual bool ReadData (const css::uno::Any *pValues) override
 
virtual bool WriteData (css::uno::Any *pValues) const override
 
- Protected Member Functions inherited from SdOptionsGeneric
void Init () const
 
void OptionsChanged ()
 
virtual void GetPropNameArray (const char **&ppNames, sal_uLong &rCount) const =0
 
virtual bool ReadData (const css::uno::Any *pValues)=0
 
virtual bool WriteData (css::uno::Any *pValues) const =0
 

Private Attributes

sal_Int32 nX
 
sal_Int32 nY
 

Additional Inherited Members

- Static Public Member Functions inherited from SdOptionsGeneric
static bool isMetricSystem ()
 

Detailed Description

Definition at line 407 of file optsitem.hxx.

Constructor & Destructor Documentation

◆ SdOptionsZoom()

SdOptionsZoom::SdOptionsZoom ( bool  bImpress)
explicit

Definition at line 924 of file optsitem.cxx.

References SdOptionsGeneric::EnableModify().

Member Function Documentation

◆ GetPropNameArray()

void SdOptionsZoom::GetPropNameArray ( const char **&  ppNames,
sal_uLong rCount 
) const
overrideprotectedvirtual

Implements SdOptionsGeneric.

Definition at line 935 of file optsitem.cxx.

References aPropNames, SdOptionsGeneric::IsImpress(), and SAL_N_ELEMENTS.

◆ GetScale()

void SdOptionsZoom::GetScale ( sal_Int32 &  rX,
sal_Int32 &  rY 
) const
inline

Definition at line 424 of file optsitem.hxx.

References SdOptionsGeneric::Init(), nX, and nY.

Referenced by SdModule::CreateItemSet(), SdDrawDocument::SdDrawDocument(), and WriteData().

◆ ReadData()

bool SdOptionsZoom::ReadData ( const css::uno::Any *  pValues)
overrideprotectedvirtual

Implements SdOptionsGeneric.

Definition at line 947 of file optsitem.cxx.

References pValues, SetScale(), x, and y.

◆ SetScale()

void SdOptionsZoom::SetScale ( sal_Int32  nInX,
sal_Int32  nInY 
)
inline

Definition at line 425 of file optsitem.hxx.

References nX, nY, and SdOptionsGeneric::OptionsChanged().

Referenced by SdModule::ApplyItemSet(), and ReadData().

◆ WriteData()

bool SdOptionsZoom::WriteData ( css::uno::Any *  pValues) const
overrideprotectedvirtual

Implements SdOptionsGeneric.

Definition at line 959 of file optsitem.cxx.

References GetScale(), pValues, x, and y.

Member Data Documentation

◆ nX

sal_Int32 SdOptionsZoom::nX
private

Definition at line 411 of file optsitem.hxx.

Referenced by GetScale(), and SetScale().

◆ nY

sal_Int32 SdOptionsZoom::nY
private

Definition at line 412 of file optsitem.hxx.

Referenced by GetScale(), and SetScale().


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