diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 15:25:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-29 16:41:31 +0000 |
commit | 94753842eb83bb16783310416bdb95d6827d7ead (patch) | |
tree | e201ae02c150983396bbcdd692ebc9baff3adc1e /sd | |
parent | 1fdcc3bb0b55a15bbe90d334ccb770edb3812b6c (diff) |
fix indent
Change-Id: Ie0f32006babf12dcb4fb6c244a4110222c2ad7ec
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 85 |
1 files changed, 34 insertions, 51 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 46b344f7f121..56a856c07fe8 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1139,57 +1139,40 @@ void SdPageObjsTLB::KeyInput( const KeyEvent& rKEvt ) } else if (rKEvt.GetKeyCode().GetCode() == KEY_SPACE) { - if(bisInSdNavigatorWin) - { - sal_Bool bMarked=sal_False; - SvTreeListEntry* pNewEntry = GetCurEntry(); - if( GetParent(pNewEntry) == NULL ) - return; - OUString aStr=GetSelectEntry(); - Window* pWindow=NULL; - SdNavigatorWin* pSdNavigatorWin=NULL; - sd::DrawDocShell* pSdDrawDocShell = NULL; - if(pNewEntry) - pWindow=(Window*)GetParent(pNewEntry); - if(pWindow) - pSdNavigatorWin = (SdNavigatorWin*)pWindow; - if( pSdNavigatorWin ) - pSdDrawDocShell = pSdNavigatorWin->GetDrawDocShell(mpDoc); - if(pSdDrawDocShell) - { - pSdDrawDocShell->GotoTreeBookmark(aStr); - bMarked=pSdDrawDocShell->GetObjectIsmarked(aStr); - } - //Removed by yanjun for sym2_6385 - //The symphony2.0 can support morn than one level tree list, also support to select tow or more items in different level. - /* - SvTreeListEntry* pBeginEntry = First(); - if( pBeginEntry ) - { - if( GetParent(pBeginEntry) != GetParent(pNewEntry) ) - pBeginEntry->SetMarked( sal_False ); - SvTreeListEntry* pNextEntry = Next( pBeginEntry ); - while( pNextEntry ) - { - if( GetParent(pNextEntry) != GetParent(pNewEntry) ) - pNextEntry->SetMarked( sal_False ); - pNextEntry = Next( pNextEntry ); - } - } - End*/ - if(pNewEntry) - { - if(bMarked) - { - pNewEntry->SetMarked(sal_True); - } - else - { - pNewEntry->SetMarked( sal_False ); - } - } - Invalidate(); - } + if(bisInSdNavigatorWin) + { + sal_Bool bMarked=sal_False; + SvTreeListEntry* pNewEntry = GetCurEntry(); + if( GetParent(pNewEntry) == NULL ) + return; + OUString aStr=GetSelectEntry(); + Window* pWindow=NULL; + SdNavigatorWin* pSdNavigatorWin=NULL; + sd::DrawDocShell* pSdDrawDocShell = NULL; + if(pNewEntry) + pWindow=(Window*)GetParent(pNewEntry); + if(pWindow) + pSdNavigatorWin = (SdNavigatorWin*)pWindow; + if( pSdNavigatorWin ) + pSdDrawDocShell = pSdNavigatorWin->GetDrawDocShell(mpDoc); + if(pSdDrawDocShell) + { + pSdDrawDocShell->GotoTreeBookmark(aStr); + bMarked=pSdDrawDocShell->GetObjectIsmarked(aStr); + } + if(pNewEntry) + { + if(bMarked) + { + pNewEntry->SetMarked(sal_True); + } + else + { + pNewEntry->SetMarked( sal_False ); + } + } + Invalidate(); + } } else SvTreeListBox::KeyInput( rKEvt ); |