Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / solenv / bin / macosx_menubar_modification.xsl
blob14a8be07c37ec1fe770d1a99d5668227262969ce
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
19 <xsl:stylesheet version='1.0'
20 xmlns:menu="http://openoffice.org/2001/menu"
21 xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
23 <!-- identity template, does reproduce every IN node on the output -->
24 <xsl:template match="node()|@*">
25 <xsl:copy>
26 <xsl:apply-templates select="node()|@*"/>
27 </xsl:copy>
28 </xsl:template>
30 <!-- filtering template : removes the concerned nodes -->
31 <!-- removes the separator just before the expected item -->
32 <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:Quit']"/>
33 <!-- suppression of the Quit item -->
34 <xsl:template match="menu:menuitem[@menu:id='.uno:Quit']"/>
36 <xsl:template match="menu:menuseparator[following-sibling::menu:menuitem[1]/@menu:id='.uno:About']"/>
37 <!-- suppression of the About item -->
38 <xsl:template match="menu:menuitem[@menu:id='.uno:About']"/>
40 <!-- suppression of the OptionsTreeDialog item -->
41 <xsl:template match="menu:menuitem[@menu:id='.uno:OptionsTreeDialog']"/>
43 </xsl:stylesheet>