Kaydet (Commit) b3856b0e authored tarafından Matúš Kukan's avatar Matúš Kukan

Introduce com.sun.star.ui.theWindowContentFactoryManager singleton.

Change-Id: If979db945b2f5e50e146fdadafd1559530c50122
üst 823c2b18
......@@ -156,6 +156,7 @@
</implementation>
<implementation name="com.sun.star.comp.framework.WindowContentFactoryManager">
<service name="com.sun.star.ui.WindowContentFactoryManager"/>
<singleton name="com.sun.star.ui.theWindowContentFactoryManager"/>
</implementation>
<implementation name="com.sun.star.comp.framework.WindowStateConfiguration">
<service name="com.sun.star.ui.WindowStateConfiguration"/>
......
......@@ -427,6 +427,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/ui,\
WindowStateConfiguration \
theUICategoryDescription \
theUIElementFactoryManager \
theWindowContentFactoryManager \
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/ui/dialogs,\
AddressBookSourcePilot \
......
......@@ -26,9 +26,11 @@ module com { module sun { module star { module ui {
/**
This interface could be imcomplete since I derived it from it's sole place of use.
A legacy (single-instance) service-variant of theWindowContentFactoryManager singleton.
@since LibreOffice 4.1
@deprecated Use theWindowContentFactoryManager singleton instead.
@since LibreOffice 4.1
*/
service WindowContentFactoryManager : com::sun::star::lang::XSingleComponentFactory;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef __com_sun_star_ui_theWindowContentFactoryManager_idl__
#define __com_sun_star_ui_theWindowContentFactoryManager_idl__
#include <com/sun/star/lang/XSingleComponentFactory.idl>
module com { module sun { module star { module ui {
/**
This interface could be imcomplete since I derived it from it's sole place of use.
Prior to LibreOffice 4.3, this singleton was only available as a
(single-instance) WindowContentFactoryManager service.
@since LibreOffice 4.3
*/
singleton theWindowContentFactoryManager : com::sun::star::lang::XSingleComponentFactory;
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -445,7 +445,7 @@
#include <com/sun/star/ui/UIConfigurationManager.hpp>
#include <com/sun/star/ui/theUIElementFactoryManager.hpp>
#include <com/sun/star/ui/UIElementType.hpp>
#include <com/sun/star/ui/WindowContentFactoryManager.hpp>
#include <com/sun/star/ui/theWindowContentFactoryManager.hpp>
#include <com/sun/star/ui/WindowStateConfiguration.hpp>
#include <com/sun/star/ui/XDockingAreaAcceptor.hpp>
#include <com/sun/star/ui/XImageManager.hpp>
......
......@@ -46,7 +46,7 @@
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/ui/WindowStateConfiguration.hpp>
#include <com/sun/star/ui/WindowContentFactoryManager.hpp>
#include <com/sun/star/ui/theWindowContentFactoryManager.hpp>
#define MAX_TOGGLEAREA_WIDTH 20
#define MAX_TOGGLEAREA_HEIGHT 20
......@@ -139,7 +139,7 @@ SfxDockingWrapper::SfxDockingWrapper( Window* pParentWnd ,
// Use factory manager to retrieve XWindow factory. That can be used to instantiate
// the real window factory.
uno::Reference< lang::XSingleComponentFactory > xFactoryMgr = ui::WindowContentFactoryManager::create(xContext);
uno::Reference< lang::XSingleComponentFactory > xFactoryMgr = ui::theWindowContentFactoryManager::get(xContext);
SfxDispatcher* pDispatcher = pBindings->GetDispatcher();
uno::Reference< frame::XFrame > xFrame( pDispatcher->GetFrame()->GetFrame().GetFrameInterface(), uno::UNO_QUERY );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment