diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-11 17:18:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-21 09:12:07 +0200 |
commit | e93a0018871ebea4da1959c72c06f3c7f4dc7b27 (patch) | |
tree | 3f9b5b2dcde5d428e182966ace4a641aafe231c4 /offapi/com | |
parent | ecae523d9603eaf7ff0acc98682576813e50c94a (diff) |
fdo#46808, Adapt frame::PopupMenuControllerFactory UNO service to new style
Required creating a new merged interface.
The service interface is going to be shared by some other services,
which is why it's name is != the service name.
Change-Id: I9af3c27b367807147a0052fb6fa4e42eb1ad32de
Diffstat (limited to 'offapi/com')
-rw-r--r-- | offapi/com/sun/star/frame/PopupMenuControllerFactory.idl | 28 | ||||
-rw-r--r-- | offapi/com/sun/star/frame/XToolbarControllerFactory.idl | 65 |
2 files changed, 67 insertions, 26 deletions
diff --git a/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl b/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl index 03e0fd8098a6..674112b66cc7 100644 --- a/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl +++ b/offapi/com/sun/star/frame/PopupMenuControllerFactory.idl @@ -20,8 +20,7 @@ #ifndef __com_sun_star_frame_PopupMenuControllerFactory_idl__ #define __com_sun_star_frame_PopupMenuControllerFactory_idl__ -#include <com/sun/star/lang/XMultiComponentFactory.idl> -#include <com/sun/star/frame/XUIControllerRegistration.idl> +#include <com/sun/star/frame/XToolbarControllerFactory.idl> module com { module sun { module star { module frame { @@ -38,30 +37,7 @@ module com { module sun { module star { module frame { @since OOo 2.0 */ -service PopupMenuControllerFactory -{ - /** this interface provides functions to create new instances of a registered pop-up menu controller. - - <p> - Use <member scope="com.sun.star.lang">XMultiComponentFactory::createInstanceWithArguments()</member> to create - a new pop-up menu controller instance. Use the CommandURL as the service specifier. - - This call supports the following arguments provided as <type scope="com::sun::star::beans">PropertyValue</type>: - <ul> - <li><b>Frame</b><br>specifies the <type scope="com::sun::star::frame">XFrame</type> - instance to which the pop-up menu controller belongs to. This property must be provided to - the pop-up menu controller, otherwise it cannot dispatch its internal commands.</li> - <li><b>ModuleIdentifier</b><br>optional string that specifies in which module context the pop-up menu - controller should be created.</li> - </ul> - </p> - */ - interface com::sun::star::lang::XMultiComponentFactory; - - /** provides functions to query for, register and deregister a pop-up menu controller. - */ - interface com::sun::star::frame::XUIControllerRegistration; -}; +service PopupMenuControllerFactory : XToolbarControllerFactory; }; }; }; }; diff --git a/offapi/com/sun/star/frame/XToolbarControllerFactory.idl b/offapi/com/sun/star/frame/XToolbarControllerFactory.idl new file mode 100644 index 000000000000..8f3ac8ce0d4d --- /dev/null +++ b/offapi/com/sun/star/frame/XToolbarControllerFactory.idl @@ -0,0 +1,65 @@ +/* -*- 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_XToolbarControllerFactory_idl__ +#define __com_sun_star_frame_XToolbarControllerFactory_idl__ + +#include <com/sun/star/lang/XMultiComponentFactory.idl> +#include <com/sun/star/frame/XUIControllerRegistration.idl> + + +module com { module sun { module star { module frame { + + +/** Provides a unified interface for the new-style PopupMenuControllerFactory service to implement. + + @since LibreOffice 4.1 +*/ + +interface XToolbarControllerFactory +{ + /** this interface provides functions to create new instances of a registered pop-up menu controller. + + <p> + Use <member scope="com.sun.star.lang">XMultiComponentFactory::createInstanceWithArguments()</member> to create + a new pop-up menu controller instance. Use the CommandURL as the service specifier. + + This call supports the following arguments provided as <type scope="com::sun::star::beans">PropertyValue</type>: + <ul> + <li><b>Frame</b><br>specifies the <type scope="com::sun::star::frame">XFrame</type> + instance to which the pop-up menu controller belongs to. This property must be provided to + the pop-up menu controller, otherwise it cannot dispatch its internal commands.</li> + <li><b>ModuleIdentifier</b><br>optional string that specifies in which module context the pop-up menu + controller should be created.</li> + </ul> + </p> + */ + interface com::sun::star::lang::XMultiComponentFactory; + + /** provides functions to query for, register and deregister a pop-up menu controller. + */ + interface com::sun::star::frame::XUIControllerRegistration; +}; + +}; }; }; }; + + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |