2001-04-09 02:10:56 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 00:46:59 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -05:00
|
|
|
* $RCSfile: bmkmenu.hxx,v $
|
|
|
|
* $Revision: 1.6 $
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -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.
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -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).
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
2008-04-11 00:46:59 -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.
|
2001-04-09 02:10:56 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
2001-05-03 02:04:20 -05:00
|
|
|
#ifndef __FRAMEWORK_CLASSES_BMKMENU_HXX
|
|
|
|
#define __FRAMEWORK_CLASSES_BMKMENU_HXX
|
|
|
|
|
2009-09-07 23:57:32 -05:00
|
|
|
#include "classes/addonmenu.hxx"
|
2001-05-03 02:04:20 -05:00
|
|
|
//_________________________________________________________________________________________________________________
|
|
|
|
// interface includes
|
|
|
|
//_________________________________________________________________________________________________________________
|
|
|
|
|
|
|
|
#include <com/sun/star/frame/XFrame.hpp>
|
|
|
|
|
|
|
|
//_________________________________________________________________________________________________________________
|
|
|
|
// includes of other projects
|
|
|
|
//_________________________________________________________________________________________________________________
|
2001-04-09 02:10:56 -05:00
|
|
|
|
|
|
|
#include <vcl/menu.hxx>
|
|
|
|
#include <vcl/image.hxx>
|
|
|
|
|
|
|
|
class String;
|
|
|
|
class ImageList;
|
|
|
|
|
|
|
|
#define BMKMENU_ITEMID_START 20000
|
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
|
|
|
class BmkMenu_Impl;
|
2009-09-07 23:57:32 -05:00
|
|
|
class BmkMenu : public AddonMenu
|
2001-04-09 02:10:56 -05:00
|
|
|
{
|
2001-05-03 02:04:20 -05:00
|
|
|
public:
|
|
|
|
enum BmkMenuType
|
|
|
|
{
|
|
|
|
BMK_NEWMENU,
|
|
|
|
BMK_WIZARDMENU
|
|
|
|
};
|
2001-04-09 02:10:56 -05:00
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
BmkMenu( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
BmkMenuType nType );
|
|
|
|
~BmkMenu();
|
2001-04-09 02:10:56 -05:00
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
void Initialize(); // Synchrones Laden der Eintraege
|
2001-04-09 02:10:56 -05:00
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
protected:
|
|
|
|
BmkMenu::BmkMenuType m_nType;
|
|
|
|
USHORT CreateMenuId();
|
2001-04-09 02:10:56 -05:00
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
private:
|
|
|
|
BmkMenu( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
BmkMenuType, BmkMenu* pRoot );
|
|
|
|
|
|
|
|
BmkMenu_Impl* _pImp;
|
2001-04-09 02:10:56 -05:00
|
|
|
};
|
|
|
|
|
2001-05-03 02:04:20 -05:00
|
|
|
} // namespace framework
|
|
|
|
|
|
|
|
#endif // #ifndef __FRAMEWORK_CLASSES_BMKMENU_HXX
|