#90580# enable F6 key for components

This commit is contained in:
Ocke Janssen 2002-02-11 11:43:58 +00:00
parent 53c327a6b6
commit dd30e0edc1
3 changed files with 29 additions and 9 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: genericcontroller.cxx,v $
*
* $Revision: 1.32 $
* $Revision: 1.33 $
*
* last change: $Author: fs $ $Date: 2002-01-24 19:23:16 $
* last change: $Author: oj $ $Date: 2002-02-11 12:40:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -653,9 +653,7 @@ void OGenericUnoController::setMasterDispatchProvider(const Reference< XDispatch
// -----------------------------------------------------------------------
void OGenericUnoController::dispatch(const URL& aURL, const Sequence< PropertyValue >& aArgs) throw(RuntimeException)
{
SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.find(aURL.Complete);
if (aIter != m_aSupportedFeatures.end())
Execute((sal_uInt16)aIter->second);
executeUnChecked(_aURL);
}
// -----------------------------------------------------------------------
@ -1008,5 +1006,23 @@ sal_Bool SAL_CALL OGenericUnoController::attachModel(const Reference< XModel > &
return sal_False;
}
// -----------------------------------------------------------------------------
void OGenericUnoController::executeUnChecked(const ::com::sun::star::util::URL& _rCommand)
{
SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.find(_rCommand.Complete);
if (aIter != m_aSupportedFeatures.end())
Execute( static_cast<sal_uInt16>(aIter->second) );
}
// -----------------------------------------------------------------------------
void OGenericUnoController::executeChecked(const ::com::sun::star::util::URL& _rCommand)
{
SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.find(_rCommand.Complete);
if (aIter != m_aSupportedFeatures.end())
{
sal_uInt16 nSlotId = static_cast<sal_uInt16>(aIter->second);
if ( GetState( nSlotId ).bEnabled )
Execute( nSlotId );
}
}
// -----------------------------------------------------------------------------

View file

@ -2,9 +2,9 @@
*
* $RCSfile: QueryDesignView.hxx,v $
*
* $Revision: 1.12 $
* $Revision: 1.13 $
*
* last change: $Author: oj $ $Date: 2002-02-06 07:23:39 $
* last change: $Author: oj $ $Date: 2002-02-11 12:43:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -115,6 +115,7 @@ namespace dbaui
OSelectionBrowseBox* m_pSelectionBox; // presents the lower window
ChildFocusState m_eChildFocus;
sal_Bool m_bInKeyEvent;
public:
OQueryDesignView(OQueryContainerWindow* pParent, OQueryController* _pController,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );

View file

@ -2,9 +2,9 @@
*
* $RCSfile: QueryViewSwitch.hxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: oj $ $Date: 2001-10-23 12:30:27 $
* last change: $Author: oj $ $Date: 2002-02-11 12:43:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -111,10 +111,13 @@ namespace dbaui
void clearDesignView();
void GetFocus();
void reset();
void GrabFocus();
OQueryDesignView* getDesignView() const { return m_pDesignView; }
OQueryContainerWindow* getContainer() const;
Window* getActive() const;
void SetPosSizePixel( Point _rPt,Size _rSize);
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getORB() const;
protected: