From ce02519c5c7e43fabe7b0c587e3304d48b795d0f Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 12 Feb 2014 20:01:03 +0100 Subject: Introduce com.sun.star.frame.theDesktop singleton. Change-Id: I3d269609119149e289652f6bc106e6bd9061672d --- offapi/com/sun/star/frame/Desktop.idl | 14 ++++------ offapi/com/sun/star/frame/theDesktop.idl | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 9 deletions(-) create mode 100644 offapi/com/sun/star/frame/theDesktop.idl (limited to 'offapi/com/sun/star/frame') diff --git a/offapi/com/sun/star/frame/Desktop.idl b/offapi/com/sun/star/frame/Desktop.idl index c1a1c04c094a..2d6f18de7604 100644 --- a/offapi/com/sun/star/frame/Desktop.idl +++ b/offapi/com/sun/star/frame/Desktop.idl @@ -24,17 +24,13 @@ module com { module sun { module star { module frame { -/** is the environment for components which can instantiate within frames - -

- 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. -

+/** + A legacy (single-instance) service-variant of theDesktop singleton. + + @deprecated Use theDesktop singleton instead. */ -published service Desktop : XDesktop2; +published service Desktop : XDesktop2; }; }; }; }; diff --git a/offapi/com/sun/star/frame/theDesktop.idl b/offapi/com/sun/star/frame/theDesktop.idl new file mode 100644 index 000000000000..12c7d792031b --- /dev/null +++ b/offapi/com/sun/star/frame/theDesktop.idl @@ -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 + + + module com { module sun { module star { module frame { + +/** is the environment for components which can instantiate within frames + +

+ 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. +

+ + 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: */ -- cgit