ActionLa.sgm 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!-- $XConsortium: ActionLa.sgm /main/6 1996/08/30 12:53:56 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN13.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN13.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtActionLabel</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtActionLabel</Function></RefName>
  17. <RefPurpose>get the localizable label string for an action
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <!-- *************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis Remap="ANSI">
  29. <FuncSynopsisInfo>#include &lt;Dt/Action.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>char <Function>*DtActionLabel</Function></FuncDef>
  32. <ParamDef>char *<Parameter>actionName</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtActionLabel</Function> function provides access to the localizable label string associated with an
  39. action named
  40. <Emphasis>actionName</Emphasis>. The
  41. <Emphasis>actionName</Emphasis> argument is the name of the action.
  42. The localizable label string is the string that all components
  43. should display to identify the action.
  44. If the action definition does not specify a label string,
  45. the action name itself is returned.
  46. </Para>
  47. <Para>The label string associated with an action is localizable, but the
  48. action name is not.
  49. </Para>
  50. <Para>If there are multiple
  51. <Emphasis>actionName</Emphasis> actions, the label string returned
  52. is the label associated with the most general action.
  53. The most general action is the one with the lowest precedence,
  54. as described in
  55. <![ %CDE.C.CDE; [&cdeman.dtactionfile; (``Action Selection'').
  56. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.M4DTA.anch.1" Role="4">. ]]></Para>
  57. </RefSect1>
  58. <RefSect1>
  59. <Title>RETURN VALUE</Title>
  60. <Para>Upon successful completion, the
  61. <Function>DtActionLabel</Function> function returns a newly allocated
  62. copy of the localizable
  63. label string associated with the action if an action named
  64. <Emphasis>actionName</Emphasis> is found;
  65. otherwise, it returns
  66. <SystemItem Class="Constant">NULL</SystemItem>. It is up to the caller to free the memory associated with
  67. this new copy of the label.
  68. The default value for an action label is the action name itself.
  69. </Para>
  70. </RefSect1>
  71. <RefSect1>
  72. <Title>APPLICATION USAGE</Title>
  73. <Para>All applications displaying action names should use
  74. the action label to identify an action.
  75. </Para>
  76. </RefSect1>
  77. <RefSect1>
  78. <Title>SEE ALSO</Title>
  79. <Para>&cdeman.Dt.Action.h;, <![ %CDE.C.CDE; [&cdeman.dtactionfile;, &cdeman.dtdtfile;. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.ACTI.anch.3" Role="2">, <XRef Linkend="XCDI.M4DTS.anch.1" Role="3">. ]]></Para>
  80. </RefSect1>
  81. </RefEntry>
  82. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->