From api-return-931-apmail-openoffice-api-archive=openoffice.apache.org@openoffice.apache.org Thu Sep 10 08:43:45 2015 Return-Path: X-Original-To: apmail-openoffice-api-archive@www.apache.org Delivered-To: apmail-openoffice-api-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F04618A78 for ; Thu, 10 Sep 2015 08:43:45 +0000 (UTC) Received: (qmail 6466 invoked by uid 500); 10 Sep 2015 08:43:40 -0000 Delivered-To: apmail-openoffice-api-archive@openoffice.apache.org Received: (qmail 6271 invoked by uid 500); 10 Sep 2015 08:43:40 -0000 Mailing-List: contact api-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@openoffice.apache.org Delivered-To: mailing list api@openoffice.apache.org Received: (qmail 6260 invoked by uid 99); 10 Sep 2015 08:43:40 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2015 08:43:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C8DC4E4ECE for ; Thu, 10 Sep 2015 08:43:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GnnAdO-7gLH0 for ; Thu, 10 Sep 2015 08:43:38 +0000 (UTC) Received: from ngcobalt10.manitu.net (ngcobalt10.manitu.net [217.11.48.110]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id BFFA744568 for ; Thu, 10 Sep 2015 08:43:37 +0000 (UTC) Received: from Esprimo7935 (tmo-102-138.customers.d1-online.com [80.187.102.138]) (Authenticated sender: xjs01) by ngcobalt10.manitu.net (Postfix) with ESMTPSA id 966DD1C898CD for ; Thu, 10 Sep 2015 10:43:31 +0200 (CEST) From: =?utf-8?Q?J=C3=B6rg_Schmidt?= To: Subject: How to change an entry of a self-created menus via macro Date: Thu, 10 Sep 2015 10:43:34 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 Thread-Index: AdDrpMVZ2Nm7KuKsS1+BleiQFG0avg== Hello, I have a menu, _created by a addons.xcu-file_ in a extension. Is it possible to change an entry of a self-created menus via macro? With this, i 'catch' only the 'normal' menus, _not my self-created = menu_: sMenuBar =3D "private:resource/menubar/menubar" oModuleCfgMgrSupplier =3D = createUnoService("com.sun.star.ui.ModuleUIConfigurationManagerSupplier") oModuleCfgMgr =3D oModuleCfgMgrSupplier.getUIConfigurationManager( = "com.sun.star.text.TextDocument" ) oMenuBarSettings =3D oModuleCfgMgr.getSettings( sMenuBar, true ) (from: = https://wiki.openoffice.org/wiki/API/Samples/StarBasic/Favorites-Menu) What I want to achieve? In my self-created menu entry labeled "my_item" and linked to macro = "my_macro ()", I want to change this to "my_item2" and "my_macro2 ()". It would be important that this change takes place immediately, so I do = not have to open a new window to update the menu. Greetings, J=C3=B6rg --------------------------------------------------------------------- To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org For additional commands, e-mail: api-help@openoffice.apache.org