diff options
author | Christian Lippka <cl@openoffice.org> | 2002-04-12 10:54:45 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-04-12 10:54:45 +0000 |
commit | 2751b6f474f4d13d720c6bedcc18fc8c18ed16e1 (patch) | |
tree | b583cb525f8f01a70f6d8410285429d23c85ae3b /svx/source/dialog/imapwnd.cxx | |
parent | bd2169438ea545e30a1eb8b444859b5cb9df7ed1 (diff) |
#97518# added keyboard accessibility
Diffstat (limited to 'svx/source/dialog/imapwnd.cxx')
-rw-r--r-- | svx/source/dialog/imapwnd.cxx | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx index 628da025d9b1..ea31daa07241 100644 --- a/svx/source/dialog/imapwnd.cxx +++ b/svx/source/dialog/imapwnd.cxx @@ -2,9 +2,9 @@ * * $RCSfile: imapwnd.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: cl $ $Date: 2002-04-09 07:27:37 $ + * last change: $Author: cl $ $Date: 2002-04-12 11:54:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1104,6 +1104,7 @@ void IMapWindow::CreateDefaultObject() pView->InsertObject(pObj, *pPageView, 0); SdrObjCreated( *pObj ); SetCurrentObjState( true ); + pView->MarkObj( pObj, pPageView ); } } @@ -1114,6 +1115,32 @@ void IMapWindow::KeyInput( const KeyEvent& rKEvt ) /* switch(aCode.GetCode()) { + case KEY_ESCAPE: + { + if ( pView->IsAction() ) + { + pView->BrkAction(); + return; + } + else if ( pView->HasMarkedObj() ) + { + const SdrHdlList& rHdlList = pView->GetHdlList(); + SdrHdl* pHdl = rHdlList.GetFocusHdl(); + + if(pHdl) + { + ((SdrHdlList&)rHdlList).ResetFocusHdl(); + } + else + { + pView->UnmarkAllObj(); + ((Dialog*)GetParent())->GrabFocusToFirstControl(); + } + + return; + } + } + break; } */ @@ -1130,3 +1157,19 @@ void IMapWindow::SelectFirstObject() pView->MarkNextObj(TRUE); } } + +void IMapWindow::StartPolyEdit() +{ + GrabFocus(); + + if( !pView->HasMarkedObj() ) + pView->MarkNextObj(TRUE); + + const SdrHdlList& rHdlList = pView->GetHdlList(); + SdrHdl* pHdl = rHdlList.GetFocusHdl(); + + if(!pHdl) + { + ((SdrHdlList&)rHdlList).TravelFocusHdl(true); + } +}
\ No newline at end of file |