update dev300-m58
[ooovba.git] / framework / source / uielement / footermenucontroller.cxx
blob182a6c3694a91ce0215217b0e15d4b0162c85f23
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: footermenucontroller.cxx,v $
10 * $Revision: 1.10.40.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_framework.hxx"
33 #include <uielement/footermenucontroller.hxx>
35 //_________________________________________________________________________________________________________________
36 // my own includes
37 //_________________________________________________________________________________________________________________
38 #include <threadhelp/resetableguard.hxx>
39 #include "services.h"
40 #ifndef __FRAMEWORK_CLASSES_RESOURCE_HRC_
41 #include <classes/resource.hrc>
42 #endif
43 #include <classes/fwlresid.hxx>
45 //_________________________________________________________________________________________________________________
46 // interface includes
47 //_________________________________________________________________________________________________________________
48 #include <com/sun/star/awt/XDevice.hpp>
49 #include <com/sun/star/beans/PropertyValue.hpp>
50 #include <com/sun/star/awt/MenuItemStyle.hpp>
51 #include <com/sun/star/util/XURLTransformer.hpp>
52 #include <com/sun/star/frame/XDispatchProvider.hpp>
53 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
54 #include <com/sun/star/container/XNameContainer.hpp>
55 #include <com/sun/star/beans/XPropertySet.hpp>
57 //_________________________________________________________________________________________________________________
58 // includes of other projects
59 //_________________________________________________________________________________________________________________
61 #ifndef _VCL_MENU_HXX_
62 #include <vcl/menu.hxx>
63 #endif
64 #include <vcl/svapp.hxx>
65 #include <vcl/i18nhelp.hxx>
66 #include <tools/urlobj.hxx>
67 #include <rtl/ustrbuf.hxx>
68 #include <dispatch/uieventloghelper.hxx>
70 //_________________________________________________________________________________________________________________
71 // Defines
72 //_________________________________________________________________________________________________________________
73 //
75 using namespace com::sun::star::uno;
76 using namespace com::sun::star::lang;
77 using namespace com::sun::star::frame;
78 using namespace com::sun::star::beans;
79 using namespace com::sun::star::util;
80 using namespace com::sun::star::style;
81 using namespace com::sun::star::container;
83 namespace framework
86 DEFINE_XSERVICEINFO_MULTISERVICE ( FooterMenuController ,
87 OWeakObject ,
88 SERVICENAME_POPUPMENUCONTROLLER ,
89 IMPLEMENTATIONNAME_FOOTERMENUCONTROLLER
92 FooterMenuController::FooterMenuController( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) :
93 HeaderMenuController( xServiceManager,true )
97 FooterMenuController::~FooterMenuController()