diff options
Diffstat (limited to 'sd/source/ui/view/drviews4.cxx')
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index ecbbf4377073..2bcc1fe3fbd2 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -68,6 +68,9 @@ #include <svx/svdlegacy.hxx> #include <svx/svditer.hxx> +//IAccessibility2 Implementation 2009----- +#include <navigatr.hxx> +//-----IAccessibility2 Implementation 2009 namespace sd { #define PIPETTE_RANGE 0 @@ -211,6 +214,14 @@ bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, ::sd::Window* pWin) else { bRet = ViewShell::KeyInput(rKEvt, pWin); +//IAccessibility2 Implementation 2009----- + //Solution: If object is marked , the corresponding entry is set true , + //else the corresponding entry is set false . + if(KEY_TAB == rKEvt.GetKeyCode().GetCode()) + { + FreshNavigatrTree(); + } +//-----IAccessibility2 Implementation 2009 } } @@ -256,7 +267,33 @@ void DrawViewShell::StartRulerDrag ( mbIsRulerDrag = true; } } +//IAccessibility2 Implementation 2009----- +//Solution: If object is marked , the corresponding entry is set true , +//else the corresponding entry is set false . +void DrawViewShell::FreshNavigatrEntry() +{ + sal_uInt16 nId = SID_NAVIGATOR; + SfxChildWindow* pWindow = GetViewFrame()->GetChildWindow( nId ); + if( pWindow ) + { + SdNavigatorWin* pNavWin = (SdNavigatorWin*)( pWindow->GetContextWindow( SD_MOD() ) ); + if( pNavWin ) + pNavWin->FreshEntry(); + } +} +void DrawViewShell::FreshNavigatrTree() +{ + sal_uInt16 nId = SID_NAVIGATOR; + SfxChildWindow* pWindow = GetViewFrame()->GetChildWindow( nId ); + if( pWindow ) + { + SdNavigatorWin* pNavWin = (SdNavigatorWin*)( pWindow->GetContextWindow( SD_MOD() ) ); + if( pNavWin ) + pNavWin->FreshTree( GetDoc() ); + } +} +//-----IAccessibility2 Implementation 2009 /************************************************************************* |* |* MouseButtonDown event @@ -283,6 +320,11 @@ void DrawViewShell::MouseButtonDown(const MouseEvent& rMEvt, { ViewShell::MouseButtonDown(rMEvt, pWin); +//IAccessibility2 Implementation 2009----- + //Solution: If object is marked , the corresponding entry is set true , + //else the corresponding entry is set false . + FreshNavigatrTree(); +//-----IAccessibility2 Implementation 2009 if ( mbPipette ) ( (SvxBmpMask*) GetViewFrame()->GetChildWindow( SvxBmpMaskChildWindow::GetChildWindowId() )->GetWindow() )->PipetteClicked(); } @@ -458,6 +500,11 @@ void DrawViewShell::MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) } else ViewShell::MouseButtonUp(rMEvt, pWin); +//IAccessibility2 Implementation 2009----- + //Solution: If object is marked , the corresponding entry is set true , + //else the corresponding entry is set false . + FreshNavigatrTree(); +//-----IAccessibility2 Implementation 2009 } } |