LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxMetricField Class Referencefinal

#include <itemwin.hxx>

Inheritance diagram for SvxMetricField:
Collaboration diagram for SvxMetricField:

Public Member Functions

 SvxMetricField (vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rFrame)
virtual void dispose () override
virtual ~SvxMetricField () override
void Update (const XLineWidthItem *pItem)
void SetCoreUnit (MapUnit eUnit)
void RefreshDlgUnit ()
void set_sensitive (bool bSensitive)
- Public Member Functions inherited from InterimItemWindow
virtual ~InterimItemWindow () override
virtual void Resize () override
virtual Size GetOptimalSize () const override

Private Member Functions

 DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void)
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 DECL_LINK (FocusInHdl, weld::Widget &, void)
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
virtual void GetFocus () override

Static Private Member Functions

static void ReleaseFocus_Impl ()

Private Attributes

std::unique_ptr< weld::MetricSpinButtonm_xWidget
int nCurValue
MapUnit ePoolUnit
FieldUnit eDlgUnit
css::uno::Reference< css::frame::XFrame > mxFrame

Additional Inherited Members

- Protected Member Functions inherited from InterimItemWindow
 InterimItemWindow (vcl::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
bool ChildKeyInput (const KeyEvent &rKEvt)
- Protected Attributes inherited from InterimItemWindow
std::unique_ptr< weld::Builderm_xBuilder
VclPtr< vcl::Windowm_xVclContentArea
std::unique_ptr< weld::Containerm_xContainer

Detailed Description

Definition at line 50 of file itemwin.hxx.

Constructor & Destructor Documentation

SvxMetricField::SvxMetricField ( vcl::Window pParent,
const css::uno::Reference< css::frame::XFrame > &  rFrame 

Definition at line 46 of file itemwin.cxx.

References eDlgUnit, LINK, m_xWidget, MapCM, MM, and SetFieldUnit().

SvxMetricField::~SvxMetricField ( )

Definition at line 71 of file itemwin.cxx.

Member Function Documentation

void SvxMetricField::DataChanged ( const DataChangedEvent rDCEvt)

Definition at line 157 of file itemwin.cxx.

References DataChangedEvent::GetFlags(), DataChangedEvent::GetType(), and m_xWidget.

SvxMetricField::DECL_LINK ( ModifyHdl  ,
weld::MetricSpinButton ,
SvxMetricField::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
SvxMetricField::DECL_LINK ( FocusInHdl  ,
weld::Widget ,
void SvxMetricField::dispose ( void  )

Reimplemented from InterimItemWindow.

Definition at line 65 of file itemwin.cxx.

References InterimItemWindow::dispose(), and m_xWidget.

void SvxMetricField::GetFocus ( )

Reimplemented from InterimItemWindow.

Definition at line 168 of file itemwin.cxx.

References InterimItemWindow::GetFocus(), and m_xWidget.

void SvxMetricField::RefreshDlgUnit ( )
void SvxMetricField::ReleaseFocus_Impl ( )
void SvxMetricField::set_sensitive ( bool  bSensitive)

Definition at line 76 of file itemwin.cxx.

References Enable, and m_xWidget.

Referenced by SvxLineWidthToolBoxControl::StateChanged().

void SvxMetricField::SetCoreUnit ( MapUnit  eUnit)

Definition at line 120 of file itemwin.cxx.

References ePoolUnit.

Referenced by SvxLineWidthToolBoxControl::StateChanged().

void SvxMetricField::Update ( const XLineWidthItem pItem)

Member Data Documentation

FieldUnit SvxMetricField::eDlgUnit

Definition at line 56 of file itemwin.hxx.

Referenced by RefreshDlgUnit(), and SvxMetricField().

MapUnit SvxMetricField::ePoolUnit

Definition at line 55 of file itemwin.hxx.

Referenced by SetCoreUnit(), and Update().

std::unique_ptr<weld::MetricSpinButton> SvxMetricField::m_xWidget
css::uno::Reference< css::frame::XFrame > SvxMetricField::mxFrame

Definition at line 57 of file itemwin.hxx.

Referenced by RefreshDlgUnit().

int SvxMetricField::nCurValue

Definition at line 54 of file itemwin.hxx.

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