【发布时间】:2020-11-23 22:21:16
【问题描述】:
我目前正在通过手动组合多个.thmx 文件来构建自己的 PowerPoint 超级主题文件。
要让这个xml工作,需要手动编辑,我已经掌握了它的窍门,除了id/vid属性的UID。
因为我不是真正的程序员,所以请多多尝试……
在每个 theme1.xml 文件的末尾都有一个 UID-id 属性。我假设这代表超级主题的id,因为对于超级主题中的所有主题文件,id 需要相同。
我尝试从我从 PowerPoint 保存的主题文件中重用 id,但这不起作用,我假设这在某些方面被识别为单个主题文件。我还尝试从现有的超级主题文件中借用 UID,除非该主题文件已在我的系统上使用,否则该文件有效。
以类似的方式有一个vid 属性,它表示超级主题的变体,位于theme1.xml 中的id 旁边,并且在列出所有变体的themeVariantManager.xml 中超级主题。我再次尝试使用从 PowerPoint 保存的文件中的vid,但这不起作用。但如果我从另一个超级主题文件中借用vid 的格式,我就能让它工作。
所以我真的很想知道如何为我的id 和vid 生成一个UID,以便我可以根据需要创建它们。
id 和 vid 在 theme1.xml 中的使用示例
<a:extLst>
<a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}">
<thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="MM Petrol" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{EC7F02AD-9687-440F-A9DF-FAA6F22270D7}"/>
</a:ext>
</a:extLst>
在 themeVariantManager.xml 中如何使用 vid 的示例
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<t:themeVariantManager xmlns:t="http://schemas.microsoft.com/office/thememl/2012/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<t:themeVariantLst>
<t:themeVariant name="Grey" vid="{B8502691-933B-45FE-8764-BA278511EF27}" cx="12192000" cy="6858000" r:id="rId1" />
<t:themeVariant name="Petrol" vid="{EC7F02AD-9687-440F-A9DF-FAA6F22270D7}" cx="12192000" cy="6858000" r:id="rId2" />
<t:themeVariant name="Grey" vid="{B8502691-933B-45FE-8764-BA278511EF27}" cx="9144000" cy="6858000" r:id="rId3" />
<t:themeVariant name="Petrol" vid="{EC7F02AD-9687-440F-A9DF-FAA6F22270D7}" cx="9144000" cy="6858000" r:id="rId4" />
</t:themeVariantLst>
</t:themeVariantManager>
我尝试搜索有关该主题的帮助,但我不走运。 我发现这个只带我到目前为止...... Editing Super Themes with XML
提前谢谢...
雅各布
【问题讨论】:
-
任何有效的 GUID 都可以使用。谷歌 GUID Generator 可以找到一些免费的在线工具。
标签: xml themes powerpoint uid