From d210c6ccc30466e98240c1409df0550514668d68 Mon Sep 17 00:00:00 2001 From: Xiaofei Zhang Date: Thu, 29 Jul 2010 10:56:19 +0800 Subject: #i112600#: clean up l10ntools, rsc, sot, svl, tools and unotools --- svl/source/items/visitem.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'svl/source/items/visitem.cxx') diff --git a/svl/source/items/visitem.cxx b/svl/source/items/visitem.cxx index 94fdf167496e..81726f017f3a 100644 --- a/svl/source/items/visitem.cxx +++ b/svl/source/items/visitem.cxx @@ -43,7 +43,7 @@ DBG_NAME(SfxVisibilityItem) TYPEINIT1_AUTOFACTORY(SfxVisibilityItem, SfxPoolItem); //============================================================================ -SfxVisibilityItem::SfxVisibilityItem(USHORT which, SvStream & rStream): +SfxVisibilityItem::SfxVisibilityItem(sal_uInt16 which, SvStream & rStream): SfxPoolItem(which) { DBG_CTOR(SfxVisibilityItem, 0); @@ -85,26 +85,26 @@ SfxItemPresentation SfxVisibilityItem::GetPresentation(SfxItemPresentation, //============================================================================ // virtual -BOOL SfxVisibilityItem::QueryValue(com::sun::star::uno::Any& rVal,BYTE) const +sal_Bool SfxVisibilityItem::QueryValue(com::sun::star::uno::Any& rVal,sal_uInt8) const { rVal <<= m_nValue; - return TRUE; + return sal_True; } //============================================================================ // virtual -BOOL SfxVisibilityItem::PutValue(const com::sun::star::uno::Any& rVal,BYTE) +sal_Bool SfxVisibilityItem::PutValue(const com::sun::star::uno::Any& rVal,sal_uInt8) { if (rVal >>= m_nValue) - return TRUE; + return sal_True; DBG_ERROR( "SfxInt16Item::PutValue - Wrong type!" ); - return FALSE; + return sal_False; } //============================================================================ // virtual -SfxPoolItem * SfxVisibilityItem::Create(SvStream & rStream, USHORT) const +SfxPoolItem * SfxVisibilityItem::Create(SvStream & rStream, sal_uInt16) const { DBG_CHKTHIS(SfxVisibilityItem, 0); return new SfxVisibilityItem(Which(), rStream); @@ -112,7 +112,7 @@ SfxPoolItem * SfxVisibilityItem::Create(SvStream & rStream, USHORT) const //============================================================================ // virtual -SvStream & SfxVisibilityItem::Store(SvStream & rStream, USHORT) const +SvStream & SfxVisibilityItem::Store(SvStream & rStream, sal_uInt16) const { DBG_CHKTHIS(SfxVisibilityItem, 0); rStream << m_nValue.bVisible; @@ -129,17 +129,17 @@ SfxPoolItem * SfxVisibilityItem::Clone(SfxItemPool *) const //============================================================================ // virtual -USHORT SfxVisibilityItem::GetValueCount() const +sal_uInt16 SfxVisibilityItem::GetValueCount() const { return 2; } //============================================================================ // virtual -UniString SfxVisibilityItem::GetValueTextByVal(BOOL bTheValue) const +UniString SfxVisibilityItem::GetValueTextByVal(sal_Bool bTheValue) const { return bTheValue ? - UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("TRUE")) : - UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("FALSE")); + UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("sal_True")) : + UniString::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("sal_False")); } -- cgit