Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 371BC19C6C for ; Thu, 7 Apr 2016 23:37:58 +0000 (UTC) Received: (qmail 52302 invoked by uid 500); 7 Apr 2016 23:37:58 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 52226 invoked by uid 500); 7 Apr 2016 23:37:58 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 52215 invoked by uid 99); 7 Apr 2016 23:37:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 23:37:57 +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 7FF6EC17A1 for ; Thu, 7 Apr 2016 23:37:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zSox2FBHcFvd for ; Thu, 7 Apr 2016 23:37:55 +0000 (UTC) Received: from pmta2.delivery5.ore.mailhop.org (pmta2.delivery5.ore.mailhop.org [54.186.218.12]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 7197E5FB02 for ; Thu, 7 Apr 2016 23:37:54 +0000 (UTC) X-MHO-User: c3dc2c67-fd19-11e5-999f-1bb1acbc0c26 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 69.135.186.89 X-Mail-Handler: DuoCircle Outbound SMTP Received: from [192.168.1.30] (unknown [69.135.186.89]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA for ; Thu, 7 Apr 2016 23:38:00 +0000 (UTC) Message-ID: <5706EF4E.5000602@apache.org> Date: Thu, 07 Apr 2016 19:37:50 -0400 From: Carl Marcum User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: dev@openoffice.apache.org Subject: Re: Where to find information about *.xcu schema (extension, dev, toolbar) References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 04/07/2016 07:55 AM, Christian Giehl wrote: > Hi, > > I'm currently working on a custom toolbar for my oo-extension. To > create the visual appearance of the toolbar, I have to write an > Addons.xcu file, which contains a custom xml. However, the tag names > and attributes I found in the tutorial all across the www are not > sufficient for my case and I stumbled accross tags I never encountered > anywhere before, e.g. > > > > > > > You can include 4 icons for the toolbar, these are for High Contrast. The big one should be 26 x 26 and the small one 16 x 16. Same for the two low contrast ones. > > or some attributes like oor:op="replace". > > Since I can't reliably figure out what these tags/attributes represent > and how they are used I am in need for some kind of documentation. The > only ref I've found so far is > (https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Toolbars), > but not all props/tags/attrs are listed there. > > I wonder if anyone of you guys can tell me how I can approach to these > kinds of problems better. Is there a reference documentation I haven't > found yet? How do I gain a clearer understanding of those tags without > a documentation? I beg nobody says reverse engineering :D > > Thanks in advance! > > Chris > Hi Chris, I'm not aware of a schema published anywhere but perhaps someone else may. In the mean time I generated a sample Addons.xcu with the NetBeans plugin with some examples filled in. To make it simpler I'll just post the text below.. ---------- AddOn Menu _self com.example.nbaddon:Command0 _self Command0 Dummy com.example.nbaddon:Command0 _self com.sun.star.frame.Bibliography,com.sun.star.chart.ChartDocument,com.sun.star.sdb.OfficeDatabaseDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.formula.FormulaProperties,com.sun.star.presentation.PresentationDocument,com.sun.star.sheet.SpreadsheetDocument,com.sun.star.text.TextDocument,com.sun.star.text.GlobalDocument Command0 com.example.nbaddon:Command0 %origin%/../../../../../images/edit-cut.png ------ Please let me know if you have any questions. Thanks, Carl --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org For additional commands, e-mail: dev-help@openoffice.apache.org