Add a custom ribbon group to an existing custom ribbon group in Word 2007

How to add a new group to an existing (third-party) tab of a tab of a tab with a ribbon? I know what I can add to the borderless ribbon by specifying the idMSo Tabs value, but how to do it for the custom ribbon tab. I already tried the value of the id of the user feed, but does it protrude the duplicate feed? also tried to use the idMso and idQ attributes in the desired custom Id tab, but were unsuccessful.

I can add it to a group of tabs outside the field by specifying an idMso value but not a custom tab

considers

+3
source share
2 answers

idQ - . , .. . , mso, .

, xmlns:foo="bar" customUI, , customUI , .

, , XML :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mso:customUI xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"
              xmlns:foo="bar">
  <mso:ribbon>
    <mso:tabs>
      <mso:tab idQ="foo:someTab" label="an extensible custom tab">
        <mso:group id="someGroup" label="a custom group">
          <mso:button id="someButton" label="button" />
        </mso:group>
      </mso:tab>
    </mso:tabs>
  </mso:ribbon>
</mso:customUI>

foo:someTab . a customUI , customUI. , idQ="foo:someTab":

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <mso:customUI xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"
                  xmlns:foo="bar">
      <mso:ribbon>
        <mso:tabs>
          <mso:tab idQ="foo:someTab" label="an extensible custom tab">
            <mso:group id="someOtherGroup" label="a different custom group">
              <mso:button id="someOtherButton" label="a different button" />
            </mso:group>
          </mso:tab>
        </mso:tabs>
      </mso:ribbon>
    </mso:customUI>

. .

Office 2010 Ribbon UI XSD. , XSD.

+4

. , , Word , GetCustomUI, , Ribbom, .., .

, . , XML . , , , , .

, Word , , , , , .

, Word , "" , , .

0

Source: https://habr.com/ru/post/1750261/


All Articles