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