diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-16 15:06:48 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-16 15:08:18 +0200 |
commit | 0825d0cb76a84503d77d7e635947e1f4da7e299d (patch) | |
tree | f034eb235914b6d600c07d9b9f98744515f66674 /xmloff/source/style/lspachdl.cxx | |
parent | d6e9bb17675200e12777ed23d0c685fbd2bb4c59 (diff) |
sal_Bool to bool
Change-Id: Id32780e5cb565e85f0366a91282ce085ed7d2f3c
Diffstat (limited to 'xmloff/source/style/lspachdl.cxx')
-rw-r--r-- | xmloff/source/style/lspachdl.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/xmloff/source/style/lspachdl.cxx b/xmloff/source/style/lspachdl.cxx index 7d6fdfb80534..d6efc21ddfd2 100644 --- a/xmloff/source/style/lspachdl.cxx +++ b/xmloff/source/style/lspachdl.cxx @@ -39,7 +39,7 @@ XMLLineHeightHdl::~XMLLineHeightHdl() // nothing to do } -sal_Bool XMLLineHeightHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineHeightHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { style::LineSpacing aLSp; sal_Int32 nTemp = 0; @@ -48,7 +48,7 @@ sal_Bool XMLLineHeightHdl::importXML( const OUString& rStrImpValue, uno::Any& rV { aLSp.Mode = style::LineSpacingMode::PROP; if (!::sax::Converter::convertPercent( nTemp, rStrImpValue )) - return sal_False; + return false; aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp); } else if( IsXMLToken( rStrImpValue, XML_CASEMAP_NORMAL) ) @@ -61,24 +61,24 @@ sal_Bool XMLLineHeightHdl::importXML( const OUString& rStrImpValue, uno::Any& rV aLSp.Mode = style::LineSpacingMode::FIX; if (!rUnitConverter.convertMeasureToCore( nTemp, rStrImpValue, 0x0000, 0xffff)) - return sal_False; + return false; aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp); } rValue <<= aLSp; - return sal_True; + return true; } -sal_Bool XMLLineHeightHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineHeightHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { OUStringBuffer aOut; style::LineSpacing aLSp; if(!(rValue >>= aLSp)) - return sal_False; + return false; if( style::LineSpacingMode::PROP != aLSp.Mode && style::LineSpacingMode::FIX != aLSp.Mode ) - return sal_False; + return false; if( style::LineSpacingMode::PROP == aLSp.Mode ) { @@ -102,30 +102,30 @@ XMLLineHeightAtLeastHdl::~XMLLineHeightAtLeastHdl() // nothing to do } -sal_Bool XMLLineHeightAtLeastHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineHeightAtLeastHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { style::LineSpacing aLSp; sal_Int32 nTemp; aLSp.Mode = style::LineSpacingMode::MINIMUM; if (!rUnitConverter.convertMeasureToCore( nTemp, rStrImpValue, 0, 0xffff)) - return sal_False; + return false; aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp); rValue <<= aLSp; - return sal_True; + return true; } -sal_Bool XMLLineHeightAtLeastHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineHeightAtLeastHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { OUStringBuffer aOut; style::LineSpacing aLSp; if(!(rValue >>= aLSp)) - return sal_False; + return false; if( style::LineSpacingMode::MINIMUM != aLSp.Mode ) - return sal_False; + return false; rUnitConverter.convertMeasureToXML( aOut, aLSp.Height ); @@ -142,30 +142,30 @@ XMLLineSpacingHdl::~XMLLineSpacingHdl() // nothing to do } -sal_Bool XMLLineSpacingHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineSpacingHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { style::LineSpacing aLSp; sal_Int32 nTemp; aLSp.Mode = style::LineSpacingMode::LEADING; if (!rUnitConverter.convertMeasureToCore( nTemp, rStrImpValue, 0, 0xffff)) - return sal_False; + return false; aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp); rValue <<= aLSp; - return sal_True; + return true; } -sal_Bool XMLLineSpacingHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const +bool XMLLineSpacingHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const { OUStringBuffer aOut; style::LineSpacing aLSp; if(!(rValue >>= aLSp)) - return sal_False; + return false; if( style::LineSpacingMode::LEADING != aLSp.Mode ) - return sal_False; + return false; rUnitConverter.convertMeasureToXML( aOut, aLSp.Height ); |