remove unused return value from method
Change-Id: If8ad6d01e92bb6df429acca03df0b40a4e2b7f1d
This commit is contained in:
@@ -38,7 +38,7 @@ AccessibleStringWrap::AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont,
|
||||
{
|
||||
}
|
||||
|
||||
sal_Bool AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect )
|
||||
void AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect )
|
||||
{
|
||||
DBG_ASSERT(nIndex >= 0 && nIndex <= USHRT_MAX,
|
||||
"SvxAccessibleStringWrap::GetCharacterBounds: index value overflow");
|
||||
@@ -70,8 +70,6 @@ sal_Bool AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, Rectangle&
|
||||
rRect = Rectangle( Point(-rRect.Top(), rRect.Left()),
|
||||
Point(-rRect.Bottom(), rRect.Right()));
|
||||
}
|
||||
|
||||
return sal_True;
|
||||
}
|
||||
|
||||
sal_Int32 AccessibleStringWrap::GetIndexAtPoint( const Point& rPoint )
|
||||
|
@@ -749,8 +749,8 @@ Rectangle SvxAccessibleTextAdapter::GetCharBounds( sal_Int32 nPara, sal_Int32 nI
|
||||
{
|
||||
AccessibleStringWrap aStringWrap( *pOutDev, aBulletInfo.aFont, aBulletInfo.aText );
|
||||
|
||||
if( aStringWrap.GetCharacterBounds( aIndex.GetBulletOffset(), aRect ) )
|
||||
aRect.Move( aBulletInfo.aBounds.Left(), aBulletInfo.aBounds.Top() );
|
||||
aStringWrap.GetCharacterBounds( aIndex.GetBulletOffset(), aRect );
|
||||
aRect.Move( aBulletInfo.aBounds.Left(), aBulletInfo.aBounds.Top() );
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -773,10 +773,8 @@ Rectangle SvxAccessibleTextAdapter::GetCharBounds( sal_Int32 nPara, sal_Int32 nI
|
||||
|
||||
Rectangle aStartRect = mpTextForwarder->GetCharBounds( nPara, aIndex.GetEEIndex() );
|
||||
|
||||
if( !aStringWrap.GetCharacterBounds( aIndex.GetFieldOffset(), aRect ) )
|
||||
aRect = aStartRect;
|
||||
else
|
||||
aRect.Move( aStartRect.Left(), aStartRect.Top() );
|
||||
aStringWrap.GetCharacterBounds( aIndex.GetFieldOffset(), aRect );
|
||||
aRect.Move( aStartRect.Left(), aStartRect.Top() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
EDITENG_DLLPUBLIC AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont, const OUString& rText );
|
||||
|
||||
EDITENG_DLLPUBLIC sal_Bool GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect );
|
||||
EDITENG_DLLPUBLIC void GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRect );
|
||||
EDITENG_DLLPUBLIC sal_Int32 GetIndexAtPoint( const Point& rPoint );
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user