Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #include "uifactory/popupmenucontrollerfactory.hxx"
21 : : #include <threadhelp/resetableguard.hxx>
22 : : #include "services.h"
23 : : #include "uifactory/factoryconfiguration.hxx"
24 : :
25 : : #include <com/sun/star/beans/PropertyValue.hpp>
26 : : #include <com/sun/star/beans/XPropertySet.hpp>
27 : : #include <com/sun/star/container/XNameAccess.hpp>
28 : : #include <com/sun/star/container/XNameContainer.hpp>
29 : : #include <com/sun/star/container/XContainer.hpp>
30 : :
31 : : #include <rtl/ustrbuf.hxx>
32 : : #include <cppuhelper/weak.hxx>
33 : : #include <rtl/logfile.hxx>
34 : :
35 : : //_________________________________________________________________________________________________________________
36 : : // Defines
37 : : //_________________________________________________________________________________________________________________
38 : :
39 : : using namespace com::sun::star::uno;
40 : : using namespace com::sun::star::lang;
41 : : using namespace com::sun::star::beans;
42 : : using namespace com::sun::star::container;
43 : : using namespace ::com::sun::star::frame;
44 : :
45 : : //_________________________________________________________________________________________________________________
46 : : // Namespace
47 : : //_________________________________________________________________________________________________________________
48 : :
49 : : namespace framework
50 : : {
51 : :
52 : : //*****************************************************************************************************************
53 : : // XInterface, XTypeProvider, XServiceInfo
54 : : //*****************************************************************************************************************
55 [ + - ][ + - ]: 2866 : DEFINE_XSERVICEINFO_ONEINSTANCESERVICE ( PopupMenuControllerFactory ,
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ # # ]
[ # # ]
56 : : ::cppu::OWeakObject ,
57 : : SERVICENAME_POPUPMENUCONTROLLERFACTORY ,
58 : : IMPLEMENTATIONNAME_POPUPMENUCONTROLLERFACTORY
59 : : )
60 : :
61 : 111 : DEFINE_INIT_SERVICE ( PopupMenuControllerFactory, {} )
62 : :
63 : 111 : PopupMenuControllerFactory::PopupMenuControllerFactory( const Reference< XMultiServiceFactory >& xServiceManager ) :
64 : 111 : ToolbarControllerFactory(xServiceManager,true)
65 : : {
66 : : RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "framework", "Ocke.Janssen@sun.com", "PopupMenuControllerFactory::PopupMenuControllerFactory" );
67 [ + - ][ + - ]: 111 : m_pConfigAccess = new ConfigurationAccess_ControllerFactory( m_xServiceManager,rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.Office.UI.Controller/Registered/PopupMenu" )) );
68 : 111 : m_pConfigAccess->acquire();
69 : 111 : }
70 : :
71 : : } // namespace framework
72 : :
73 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|