vba 用于自定义 Office 2010 功能区的 XML 架构

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3812054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 12:07:23  来源:igfitidea点击:

XML Schema for customizing Office 2010 Ribbon

vbams-officeribbonoffice-2010

提问by Trindaz

I've seen plenty of examples around the internet on how to add a button or group etc. to the Ribbon, but no reference to an XML Schema document that will explain exactly what all my options are for writing the XML for my own custom ribbon tabs and groups. Does anyone have a link for this?

我在互联网上看到了很多关于如何向功能区添加按钮或组等的示例,但没有提到 XML 架构文档,该文档将准确解释我为我自己的自定义功能区编写 XML 的所有选项选项卡和组。有没有人有这个链接?

Cheers, Dave --Trindaz on Fedang #office-2010-customization

干杯,戴夫 -- Trindaz on Fedang #office-2010-customization

回答by Paul Harrington

It was unclear where Office2010FluentUISchema.exe was installing the schema (after accepting the EULA, the installer flashed up some dialogs so quickly that I was unable to read them) so I observed it via Procmon and found that the schema got installed to a top-level directory called 'Office 2010 Developer Resources'

不清楚 Office2010FluentUISchema.exe 在哪里安装架构(在接受 EULA 后,安装程序闪现了一些对话框如此之快以至于我无法阅读它们)所以我通过 Procmon 观察它并发现该架构已安装到顶部 -名为“Office 2010 开发人员资源”的级别目录

C:\Office 2010 Developer Resources\Schemas>md5sum customui14.xsd e201ed5204216fbe8e84e45c884d2adc *customui14.xsd

C:\Office 2010 Developer Resources\Schemas>md5sum customui14.xsd e201ed5204216fbe8e84e45c884d2adc *customui14.xsd

~~ Edit by Martin Rüegg (sorry, I'm not entitled to leave comments yet.)
In case you only need the customui14.xsd, then you can just unzip (e.g. with 7zip) the Office2010FluentUISchema.exe(twice) and there you are.

~~ 由 Martin Rüegg 编辑(抱歉,我还无权发表评论。)
如果您只需要customui14.xsd,那么您只需解压缩(例如使用7zipOffice2010FluentUISchema.exe(两次)就可以了。

回答by Todd Main

The schema is hereand the control identifiers are here.

架构在这里,控件标识符在这里

回答by Trindaz