#98406#: added shortcut to activate empty graphic presentation objects
This commit is contained in:
parent
9d2011d540
commit
25e55ed1a6
1 changed files with 10 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: fupoor.cxx,v $
|
||||
*
|
||||
* $Revision: 1.19 $
|
||||
* $Revision: 1.20 $
|
||||
*
|
||||
* last change: $Author: aw $ $Date: 2002-04-08 10:37:59 $
|
||||
* last change: $Author: ka $ $Date: 2002-04-09 13:25:11 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -72,6 +72,9 @@
|
|||
#ifndef _SVDOOLE2_HXX
|
||||
#include <svx/svdoole2.hxx>
|
||||
#endif
|
||||
#ifndef _SVDOGRAF_HXX
|
||||
#include <svx/svdograf.hxx>
|
||||
#endif
|
||||
#ifndef _SV_SELENG_HXX //autogen
|
||||
#include <vcl/seleng.hxx>
|
||||
#endif
|
||||
|
@ -385,10 +388,13 @@ BOOL FuPoor::KeyInput(const KeyEvent& rKEvt)
|
|||
pView->HideMarkHdl(NULL);
|
||||
pViewShell->ActivateObject( static_cast< SdrOle2Obj* >( pObj ), 0 );
|
||||
}
|
||||
else if( pObj && pObj->IsEmptyPresObj() && pObj->ISA( SdrGrafObj ) )
|
||||
{
|
||||
pViewShell->GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_GRAPHIC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD );
|
||||
}
|
||||
else
|
||||
{
|
||||
pViewShell->GetViewFrame()->GetDispatcher()->Execute(
|
||||
SID_ATTR_CHAR, SFX_CALLMODE_ASYNCHRON);
|
||||
pViewShell->GetViewFrame()->GetDispatcher()->Execute( SID_ATTR_CHAR, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD );
|
||||
}
|
||||
|
||||
// consumed
|
||||
|
|
Loading…
Reference in a new issue