diff options
Diffstat (limited to 'svx/source/dialog/dialcontrol.cxx')
-rw-r--r-- | svx/source/dialog/dialcontrol.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index e715a1cf0599..ce44493b2e3a 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -249,6 +249,7 @@ struct DialControl_Impl Size maWinSize; Font maWinFont; sal_Int32 mnAngle; + sal_Int32 mnInitialAngle; sal_Int32 mnOldAngle; long mnCenterX; long mnCenterY; @@ -266,6 +267,7 @@ DialControl_Impl::DialControl_Impl( Window& rParent ) : maBmpBuffered( rParent ), mpLinkField( 0 ), mnAngle( 0 ), + mnInitialAngle( 0 ), mnCenterX( 0 ), mnCenterY( 0 ), mbNoRot( false ) @@ -417,6 +419,16 @@ void DialControl::SetLinkedField( NumericField* pField ) ImplSetFieldLink( LINK( this, DialControl, LinkedFieldModifyHdl ) ); } +void DialControl::SaveValue() +{ + mpImpl->mnInitialAngle = mpImpl->mnAngle; +} + +bool DialControl::IsValueModified() +{ + return mpImpl->mnInitialAngle != mpImpl->mnAngle; +} + // private -------------------------------------------------------------------- void DialControl::Init( const Size& rWinSize, const Font& rWinFont ) |