diff options
Diffstat (limited to 'svx/source/dialog/relfld.cxx')
-rwxr-xr-x[-rw-r--r--] | svx/source/dialog/relfld.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx index c7462c9fcf1a..79b022df9b45 100644..100755 --- a/svx/source/dialog/relfld.cxx +++ b/svx/source/dialog/relfld.cxx @@ -32,16 +32,16 @@ // include --------------------------------------------------------------- #include <tools/ref.hxx> -#include "relfld.hxx" +#include "svx/relfld.hxx" // ----------------------------------------------------------------------- SvxRelativeField::SvxRelativeField( Window* pParent, WinBits nWinSize ) : MetricField( pParent, nWinSize ) { - bNegativeEnabled = FALSE; - bRelativeMode = FALSE; - bRelative = FALSE; + bNegativeEnabled = sal_False; + bRelativeMode = sal_False; + bRelative = sal_False; SetDecimalDigits( 2 ); SetMin( 0 ); @@ -53,9 +53,9 @@ SvxRelativeField::SvxRelativeField( Window* pParent, WinBits nWinSize ) : SvxRelativeField::SvxRelativeField( Window* pParent, const ResId& rResId ) : MetricField( pParent, rResId ) { - bNegativeEnabled = FALSE; - bRelativeMode = FALSE; - bRelative = FALSE; + bNegativeEnabled = sal_False; + bRelativeMode = sal_False; + bRelative = sal_False; SetDecimalDigits( 2 ); SetMin( 0 ); @@ -71,7 +71,7 @@ void SvxRelativeField::Modify() if ( bRelativeMode ) { String aStr = GetText(); - BOOL bNewMode = bRelative; + sal_Bool bNewMode = bRelative; if ( bRelative ) { @@ -82,7 +82,7 @@ void SvxRelativeField::Modify() if( ( ( *pStr < sal_Unicode( '0' ) ) || ( *pStr > sal_Unicode( '9' ) ) ) && ( *pStr != sal_Unicode( '%' ) ) ) { - bNewMode = FALSE; + bNewMode = sal_False; break; } pStr++; @@ -93,7 +93,7 @@ void SvxRelativeField::Modify() xub_StrLen nPos = aStr.Search( sal_Unicode( '%' ) ); if ( nPos != STRING_NOTFOUND ) - bNewMode = TRUE; + bNewMode = sal_True; } if ( bNewMode != bRelative ) @@ -105,10 +105,10 @@ void SvxRelativeField::Modify() // ----------------------------------------------------------------------- -void SvxRelativeField::EnableRelativeMode( USHORT nMin, - USHORT nMax, USHORT nStep ) +void SvxRelativeField::EnableRelativeMode( sal_uInt16 nMin, + sal_uInt16 nMax, sal_uInt16 nStep ) { - bRelativeMode = TRUE; + bRelativeMode = sal_True; nRelMin = nMin; nRelMax = nMax; nRelStep = nStep; @@ -117,14 +117,14 @@ void SvxRelativeField::EnableRelativeMode( USHORT nMin, // ----------------------------------------------------------------------- -void SvxRelativeField::SetRelative( BOOL bNewRelative ) +void SvxRelativeField::SetRelative( sal_Bool bNewRelative ) { Selection aSelection = GetSelection(); String aStr = GetText(); if ( bNewRelative ) { - bRelative = TRUE; + bRelative = sal_True; SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); @@ -133,7 +133,7 @@ void SvxRelativeField::SetRelative( BOOL bNewRelative ) } else { - bRelative = FALSE; + bRelative = sal_False; SetDecimalDigits( 2 ); SetMin( bNegativeEnabled ? -9999 : 0 ); SetMax( 9999 ); |