Set alternative text of master or custom layout shapes (P)

Modified on Mon, 5 Oct at 1:54 PM

This feature is a tool for setting alternative text of shapes on master or on custom layouts. A use case would be to change or set some shape binding, as we use alternative text to set bindings in PowerPoint. Shapes on normal slides are not respected.

CMD

Code
Cmd case="BaseExtensions:change-shapes-alt-text" masters="x" customLayouts="y"></Cmd>

Inside this command, we place our <NamedShape> element that defines the name of the shape concerned using the name parameter, in which the alternative text must be defined. See example below.

Parameters

masters

Define whether to command should look for shapes on master using true or false.

customLayouts

Define whether to command should look for shapes on custom layouts using true or false.

Example of usage

This example illustrates that we can have a collection of "NamedShapes" as well as defining advanced alternative text for "AdvancedShape" or simple one like "Shape1".

XML
<Cmd case="BaseExtensions:change-shapes-alt-text" masters="true" customLayouts="false">
   <NamedShape name="Shape1">This is the new AlternativeText1</NamedShape>
   <NamedShape name="Shape2">This is the new AlternativeText2</NamedShape>
   <NamedShape name="Shape3">This is the new AlternativeText3</NamedShape>
   <NamedShape name="AdvancedShape">
      <![CDATA[
         {
            "SkabelonDesign": {
               "textualValue":
                  "<Doc.Prop.chkPrep><Doc.Prop.Prepared><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.Prepared/></Doc.Prop.Prepared></Doc.Prop.chkPrep><Doc.Prop.chkAppr><Doc.Prop.ApprovedBy><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.ApprovedBy/></Doc.Prop.ApprovedBy></Doc.Prop.chkAppr><Doc.Prop.chkDocNo><Doc.Prop.DocNoValue><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.DocNo/></Doc.Prop.DocNoValue></Doc.Prop.chkDocNo><Doc.Prop.chkRev><Doc.Prop.Revision><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.Revision/></Doc.Prop.Revision></Doc.Prop.chkRev><Doc.Prop.chkDate><Doc.Prop.Date><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.Date/></Doc.Prop.Date></Doc.Prop.chkDate><Doc.Prop.chkTitle><Doc.Prop.Title><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.Title/></Doc.Prop.Title></Doc.Prop.chkTitle><Doc.Prop.chkConf><Doc.Prop.SecurityClass><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.SecurityClass/></Doc.Prop.SecurityClass></Doc.Prop.chkConf><Doc.Prop.chkExtConf><Doc.Prop.ExtConf><s><![CDATA[ | ]]]]><![CDATA[></s><Doc.Prop.ExtConf/></Doc.Prop.ExtConf></Doc.Prop.chkExtConf><Doc.Prop.Pages><s><![CDATA[ | Page <#>]]]]><![CDATA[></s></Doc.Prop.Pages>",
                  "bindingCollection": {
                     "Doc.Prop.Pages": {"SkabelonDesign":{"type":"Text","binding":"Doc.Prop.Pages"}}
                  }
               }
      ]]>
   </NamedShape>
</Cmd>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article