1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_framework.hxx" 26 #include <uielement/footermenucontroller.hxx> 27 28 //_________________________________________________________________________________________________________________ 29 // my own includes 30 //_________________________________________________________________________________________________________________ 31 #include <threadhelp/resetableguard.hxx> 32 #include "services.h" 33 #ifndef __FRAMEWORK_CLASSES_RESOURCE_HRC_ 34 #include <classes/resource.hrc> 35 #endif 36 #include <classes/fwlresid.hxx> 37 38 //_________________________________________________________________________________________________________________ 39 // interface includes 40 //_________________________________________________________________________________________________________________ 41 #include <com/sun/star/awt/XDevice.hpp> 42 #include <com/sun/star/beans/PropertyValue.hpp> 43 #include <com/sun/star/awt/MenuItemStyle.hpp> 44 #include <com/sun/star/util/XURLTransformer.hpp> 45 #include <com/sun/star/frame/XDispatchProvider.hpp> 46 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> 47 #include <com/sun/star/container/XNameContainer.hpp> 48 #include <com/sun/star/beans/XPropertySet.hpp> 49 50 //_________________________________________________________________________________________________________________ 51 // includes of other projects 52 //_________________________________________________________________________________________________________________ 53 54 #ifndef _VCL_MENU_HXX_ 55 #include <vcl/menu.hxx> 56 #endif 57 #include <vcl/svapp.hxx> 58 #include <vcl/i18nhelp.hxx> 59 #include <tools/urlobj.hxx> 60 #include <rtl/ustrbuf.hxx> 61 #include <dispatch/uieventloghelper.hxx> 62 63 //_________________________________________________________________________________________________________________ 64 // Defines 65 //_________________________________________________________________________________________________________________ 66 // 67 68 using namespace com::sun::star::uno; 69 using namespace com::sun::star::lang; 70 using namespace com::sun::star::frame; 71 using namespace com::sun::star::beans; 72 using namespace com::sun::star::util; 73 using namespace com::sun::star::style; 74 using namespace com::sun::star::container; 75 76 namespace framework 77 { 78 79 DEFINE_XSERVICEINFO_MULTISERVICE ( FooterMenuController , 80 OWeakObject , 81 SERVICENAME_POPUPMENUCONTROLLER , 82 IMPLEMENTATIONNAME_FOOTERMENUCONTROLLER 83 ) 84 85 FooterMenuController::FooterMenuController( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) : 86 HeaderMenuController( xServiceManager,true ) 87 { 88 } 89 90 FooterMenuController::~FooterMenuController() 91 { 92 } 93 } 94