flatten and simplify
Change-Id: I74746e6fc9f235d48dfe24f4713404f7e9d578d7
This commit is contained in:
@@ -1547,19 +1547,16 @@ OUString SwXTextTableCursor::getRangeName()
|
|||||||
return pEndBox->GetName();
|
return pEndBox->GetName();
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool Expand)
|
sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool bExpand)
|
||||||
throw( uno::RuntimeException, std::exception )
|
throw(uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
SolarMutexGuard aGuard;
|
SolarMutexGuard aGuard;
|
||||||
bool bRet = false;
|
|
||||||
SwUnoCrsr* pUnoCrsr = GetCrsr();
|
SwUnoCrsr* pUnoCrsr = GetCrsr();
|
||||||
if(pUnoCrsr)
|
if(!pUnoCrsr)
|
||||||
{
|
return false;
|
||||||
SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
|
auto& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
|
||||||
lcl_CrsrSelect(rTblCrsr, Expand);
|
lcl_CrsrSelect(rTblCrsr, bExpand);
|
||||||
bRet = rTblCrsr.GotoTblBox(sCellName);
|
return rTblCrsr.GotoTblBox(sCellName);
|
||||||
}
|
|
||||||
return bRet;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
|
sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
|
||||||
|
Reference in New Issue
Block a user