21#include <helper/property.hxx>
22#include <com/sun/star/awt/ScrollBarOrientation.hpp>
24#include <vcl/toolkit/spin.hxx>
40 void lcl_modifyStyle(
vcl::Window* _pWindow,
WinBits _nStyleBits,
bool _bShouldBePresent )
43 if ( _bShouldBePresent )
44 nStyle |= _nStyleBits;
46 nStyle &= ~_nStyleBits;
52 :maAdjustmentListeners( *this )
73 EventObject aDisposeEvent;
74 aDisposeEvent.Source = *
this;
75 maAdjustmentListeners.disposeAndClear( aDisposeEvent );
97 typedef void (SpinButton::*SetSpinButtonValue) (
tools::Long);
98 typedef tools::Long (SpinButton::*GetSpinButtonValue) ()
const;
101 void lcl_setSpinButtonValue(
vcl::Window* _pWindow, SetSpinButtonValue _pSetter, sal_Int32 _nValue )
106 (pSpinButton->*_pSetter)( _nValue );
110 sal_Int32 lcl_getSpinButtonValue(
const vcl::Window* _pWindow, GetSpinButtonValue _pGetter )
118 nValue = (pSpinButton->*_pGetter)( );
126 lcl_setSpinButtonValue(
GetWindow(), &SpinButton::SetValue,
n );
142 return lcl_getSpinButtonValue(
GetWindow(), &SpinButton::GetValue );
148 lcl_setSpinButtonValue(
GetWindow(), &SpinButton::SetRangeMin, minValue );
154 lcl_setSpinButtonValue(
GetWindow(), &SpinButton::SetRangeMax, maxValue );
160 return lcl_getSpinButtonValue(
GetWindow(), &SpinButton::GetRangeMin );
166 return lcl_getSpinButtonValue(
GetWindow(), &SpinButton::GetRangeMax );
172 lcl_setSpinButtonValue(
GetWindow(), &SpinButton::SetValueStep, spinIncrement );
178 return lcl_getSpinButtonValue(
GetWindow(), &SpinButton::GetValueStep );
193 ? ScrollBarOrientation::HORIZONTAL
194 : ScrollBarOrientation::VERTICAL;
201 Reference< XSpinValue > xKeepAlive(
this );
206 switch ( _rVclWindowEvent.
GetId() )
208 case VclEventId::SpinbuttonUp:
209 case VclEventId::SpinbuttonDown:
214 aEvent.Value = pSpinButton->GetValue();
315 ? ScrollBarOrientation::HORIZONTAL
316 : ScrollBarOrientation::VERTICAL
vcl::Window * GetWindow() const
virtual void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent)
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL dispose() override
void SetStyle(WinBits nStyle)
sal_uInt16 GetPropertyId(const OUString &rPropertyName)
#define BASEPROPERTY_SPININCREMENT
#define BASEPROPERTY_SPINVALUE
#define BASEPROPERTY_ORIENTATION
#define BASEPROPERTY_BACKGROUNDCOLOR
#define BASEPROPERTY_SPINVALUE_MAX
#define BASEPROPERTY_SPINVALUE_MIN
IMPLEMENT_FORWARD_XINTERFACE2(ORoadmapEntry, ORoadmapEntry_Base, ::comphelper::OPropertyContainer)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ORoadmapEntry, ORoadmapEntry_Base, ::comphelper::OPropertyContainer)