Introduce com.sun.star.frame.theDesktop singleton.
Change-Id: I3d269609119149e289652f6bc106e6bd9061672d
This commit is contained in:
parent
924a415e68
commit
ce02519c5c
@ -38,6 +38,7 @@
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.framework.Desktop">
|
||||
<service name="com.sun.star.frame.Desktop"/>
|
||||
<singleton name="com.sun.star.frame.theDesktop"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.framework.DocumentAcceleratorConfiguration"
|
||||
constructor="com_sun_star_comp_framework_DocumentAcceleratorConfiguration_get_implementation">
|
||||
|
@ -201,6 +201,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/frame,\
|
||||
TaskCreator \
|
||||
UICommandDescription \
|
||||
theAutoRecovery \
|
||||
theDesktop \
|
||||
theGlobalEventBroadcaster \
|
||||
theUICommandDescription \
|
||||
))
|
||||
|
@ -24,17 +24,13 @@
|
||||
|
||||
module com { module sun { module star { module frame {
|
||||
|
||||
/** is the environment for components which can instantiate within frames
|
||||
/**
|
||||
A legacy (single-instance) service-variant of theDesktop singleton.
|
||||
|
||||
<p>
|
||||
A desktop environment contains tasks with one or more frames
|
||||
in which components can be loaded. The term "task" or naming a frame as a
|
||||
"task frame" is not in any way related to any additional implemented
|
||||
interfaces, it's just because these frames use task windows.
|
||||
</p>
|
||||
@deprecated Use theDesktop singleton instead.
|
||||
*/
|
||||
published service Desktop : XDesktop2;
|
||||
|
||||
published service Desktop : XDesktop2;
|
||||
|
||||
}; }; }; };
|
||||
|
||||
|
47
offapi/com/sun/star/frame/theDesktop.idl
Normal file
47
offapi/com/sun/star/frame/theDesktop.idl
Normal file
@ -0,0 +1,47 @@
|
||||
/* -*- 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_frame_theDesktop_idl__
|
||||
#define __com_sun_star_frame_theDesktop_idl__
|
||||
|
||||
#include <com/sun/star/frame/XDesktop2.idl>
|
||||
|
||||
|
||||
module com { module sun { module star { module frame {
|
||||
|
||||
/** is the environment for components which can instantiate within frames
|
||||
|
||||
<p>
|
||||
A desktop environment contains tasks with one or more frames
|
||||
in which components can be loaded. The term "task" or naming a frame as a
|
||||
"task frame" is not in any way related to any additional implemented
|
||||
interfaces, it's just because these frames use task windows.
|
||||
</p>
|
||||
|
||||
Prior to LibreOffice 4.3, this singleton was only available as a
|
||||
(single-instance) Desktop service.
|
||||
|
||||
@since LibreOffice 4.3
|
||||
*/
|
||||
published singleton theDesktop : XDesktop2;
|
||||
|
||||
}; }; }; };
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
Loading…
x
Reference in New Issue
Block a user