2003-03-25 11:22:13 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* $RCSfile: acceleratorinfo.hxx,v $
|
|
|
|
* $Revision: 1.6 $
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
2008-04-11 00:59:34 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2003-03-25 11:22:13 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __FRAMEWORK_HELPER_ACCELERATORINFO_HXX_
|
|
|
|
#define __FRAMEWORK_HELPER_ACCELERATORINFO_HXX_
|
|
|
|
|
2004-02-25 10:33:52 -06:00
|
|
|
#include <com/sun/star/frame/XFrame.hpp>
|
2003-03-25 11:22:13 -06:00
|
|
|
#include <vcl/keycod.hxx>
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
|
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
|
|
|
typedef ::rtl::OUString ( *pfunc_getCommandURLFromKeyCode)( const KeyCode& );
|
2004-02-25 10:33:52 -06:00
|
|
|
typedef KeyCode ( *pfunc_getKeyCodeFromCommandURL )( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, const ::rtl::OUString& aURL );
|
2003-03-25 11:22:13 -06:00
|
|
|
|
|
|
|
pfunc_getCommandURLFromKeyCode SAL_CALL SetCommandURLFromKeyCode( pfunc_getCommandURLFromKeyCode );
|
2004-02-25 10:33:52 -06:00
|
|
|
pfunc_getKeyCodeFromCommandURL SAL_CALL SetKeyCodeFromCommandURL( pfunc_getKeyCodeFromCommandURL );
|
2003-03-25 11:22:13 -06:00
|
|
|
|
|
|
|
::rtl::OUString SAL_CALL GetCommandURLFromKeyCode( const KeyCode& aKeyCode );
|
2004-02-25 10:33:52 -06:00
|
|
|
KeyCode GetKeyCodeFromCommandURL( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, const rtl::OUString& aCommandURL );
|
2003-03-25 11:22:13 -06:00
|
|
|
|
2006-06-19 04:52:46 -05:00
|
|
|
}
|
2003-03-25 11:22:13 -06:00
|
|
|
|
|
|
|
#endif // __FRAMEWORK_HELPER_ACCELERATORINFO_HXX_
|