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/statusbarcontrollerfactory.hxx"
21 : : #include "uifactory/factoryconfiguration.hxx"
22 : : #include <threadhelp/resetableguard.hxx>
23 : : #include "services.h"
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 : :
34 : : //_________________________________________________________________________________________________________________
35 : : // Defines
36 : : //_________________________________________________________________________________________________________________
37 : :
38 : : using namespace com::sun::star::uno;
39 : : using namespace com::sun::star::lang;
40 : : using namespace com::sun::star::beans;
41 : : using namespace com::sun::star::container;
42 : : using namespace ::com::sun::star::frame;
43 : :
44 : : //_________________________________________________________________________________________________________________
45 : : // Namespace
46 : : //_________________________________________________________________________________________________________________
47 : :
48 : : namespace framework
49 : : {
50 : : //*****************************************************************************************************************
51 : : // XInterface, XTypeProvider, XServiceInfo
52 : : //*****************************************************************************************************************
53 [ + - ][ + - ]: 1172 : DEFINE_XSERVICEINFO_ONEINSTANCESERVICE ( StatusbarControllerFactory ,
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ # # ]
[ # # ]
54 : : ::cppu::OWeakObject ,
55 : : SERVICENAME_STATUSBARCONTROLLERFACTORY ,
56 : : IMPLEMENTATIONNAME_STATUSBARCONTROLLERFACTORY
57 : : )
58 : :
59 : 111 : DEFINE_INIT_SERVICE ( StatusbarControllerFactory, {} )
60 : :
61 : 111 : StatusbarControllerFactory::StatusbarControllerFactory( const Reference< XMultiServiceFactory >& xServiceManager ) :
62 : 111 : ToolbarControllerFactory(xServiceManager,true)
63 : : {
64 [ + - ][ + - ]: 111 : m_pConfigAccess = new ConfigurationAccess_ControllerFactory( m_xServiceManager,rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.Office.UI.Controller/Registered/StatusBar" )),true );
65 : 111 : m_pConfigAccess->acquire();
66 : 111 : }
67 : :
68 : :
69 : : } // namespace framework
70 : :
71 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|