Kaydet (Commit) bc055700 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

flatten and simplify

Change-Id: I198793d0ab9a91a7f6a3aebc5fafbb6d7de7b98f
üst 48c99df3
...@@ -1559,18 +1559,15 @@ sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool ...@@ -1559,18 +1559,15 @@ sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool
return rTblCrsr.GotoTblBox(sCellName); return rTblCrsr.GotoTblBox(sCellName);
} }
sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool bExpand) 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); SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
lcl_CrsrSelect(rTblCrsr, Expand); lcl_CrsrSelect(rTblCrsr, bExpand);
bRet = rTblCrsr.Left(Count, CRSR_SKIP_CHARS, false, false); return rTblCrsr.Left(Count, CRSR_SKIP_CHARS, false, false);
}
return bRet;
} }
sal_Bool SwXTextTableCursor::goRight(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) sal_Bool SwXTextTableCursor::goRight(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment