summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-10-05 12:02:19 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-10-05 12:02:19 -0400
commita4622cff8e54cc581ac1fdd1bc19151fee502861 (patch)
treecf725a32acc285e272aab05cef425f80fd348b0f
parent59766998c4be373b8a8feb84d55157e94755c1c2 (diff)
Fixed a build breakage; QueryValue and PutValue now return bool.
-rw-r--r--editeng/inc/editeng/justifyitem.hxx12
-rw-r--r--editeng/source/items/justifyitem.cxx28
2 files changed, 19 insertions, 21 deletions
diff --git a/editeng/inc/editeng/justifyitem.hxx b/editeng/inc/editeng/justifyitem.hxx
index 1db820dc4f..e53464c33d 100644
--- a/editeng/inc/editeng/justifyitem.hxx
+++ b/editeng/inc/editeng/justifyitem.hxx
@@ -49,8 +49,8 @@ public:
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
virtual USHORT GetValueCount() const;
virtual String GetValueText( USHORT nVal ) const;
@@ -82,8 +82,8 @@ public:
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
virtual USHORT GetValueCount() const;
virtual String GetValueText( USHORT nVal ) const;
@@ -113,8 +113,8 @@ public:
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
- virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
virtual USHORT GetValueCount() const;
virtual String GetValueText( USHORT nVal ) const;
diff --git a/editeng/source/items/justifyitem.cxx b/editeng/source/items/justifyitem.cxx
index d999461bc7..5d2d6a77d0 100644
--- a/editeng/source/items/justifyitem.cxx
+++ b/editeng/source/items/justifyitem.cxx
@@ -89,9 +89,8 @@ SfxItemPresentation SvxHorJustifyItem::GetPresentation
//------------------------------------------------------------------------
-sal_Bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
+bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
{
-// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
{
@@ -130,12 +129,11 @@ sal_Bool SvxHorJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
}
break;
}
- return sal_True;
+ return true;
}
-sal_Bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
+bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
{
-// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
{
@@ -146,7 +144,7 @@ sal_Bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
{
sal_Int32 nValue = 0;
if(!(rVal >>= nValue))
- return sal_False;
+ return false;
eUno = (table::CellHoriJustify)nValue;
}
SvxCellHorJustify eSvx = SVX_HOR_JUSTIFY_STANDARD;
@@ -168,7 +166,7 @@ sal_Bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
// property contains ParagraphAdjust values as sal_Int16
sal_Int16 nVal = sal_Int16();
if(!(rVal >>= nVal))
- return sal_False;
+ return false;
SvxCellHorJustify eSvx = SVX_HOR_JUSTIFY_STANDARD;
switch (nVal)
@@ -183,7 +181,7 @@ sal_Bool SvxHorJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
SetValue( (USHORT)eSvx );
}
}
- return sal_True;
+ return true;
}
//------------------------------------------------------------------------
@@ -255,7 +253,7 @@ SfxItemPresentation SvxVerJustifyItem::GetPresentation
//------------------------------------------------------------------------
-sal_Bool SvxVerJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
+bool SvxVerJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
{
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
@@ -289,10 +287,10 @@ sal_Bool SvxVerJustifyItem::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
break;
}
}
- return sal_True;
+ return true;
}
-sal_Bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
+bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
{
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
@@ -302,7 +300,7 @@ sal_Bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
// property contains ParagraphAdjust values as sal_Int16
style::VerticalAlignment nVal = style::VerticalAlignment_TOP;
if(!(rVal >>= nVal))
- return sal_False;
+ return false;
SvxCellVerJustify eSvx = SVX_VER_JUSTIFY_STANDARD;
switch (nVal)
@@ -338,7 +336,7 @@ sal_Bool SvxVerJustifyItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
}
}
- return sal_True;
+ return true;
}
//------------------------------------------------------------------------
@@ -412,7 +410,7 @@ SfxItemPresentation SvxJustifyMethodItem::GetPresentation
//------------------------------------------------------------------------
-sal_Bool SvxJustifyMethodItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/ ) const
+bool SvxJustifyMethodItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/ ) const
{
sal_Int32 nUno = table::CellJustifyMethod::AUTO;
switch (static_cast<SvxCellJustifyMethod>(GetValue()))
@@ -425,7 +423,7 @@ sal_Bool SvxJustifyMethodItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/ )
return true;
}
-sal_Bool SvxJustifyMethodItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
+bool SvxJustifyMethodItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/ )
{
sal_Int32 nVal = table::CellJustifyMethod::AUTO;
if (!(rVal >>= nVal))