EdUndoEd.sgm 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!-- $XConsortium: EdUndoEd.sgm /main/5 1996/08/30 13:02:57 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.XCSA.MAN44.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN44.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorUndoEdit</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorUndoEdit</Function></RefName>
  17. <RefPurpose>undo the last edit made to the text in a DtEditor widget
  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/Editor.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>Boolean <Function>DtEditorUndoEdit</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorUndoEdit</Function> function undoes the last change (deletion or insertion) made
  39. to the text in a DtEditor widget.
  40. A change consists of either a set of
  41. consecutive insertions, or a set of consecutive deletions followed by up
  42. to one set of consecutive insertions.
  43. An insertion is consecutive if there have been no intervening deletions,
  44. and it is continuing forward from the same point.
  45. A deletion is consecutive if there have been no intervening insertions,
  46. and its start or end position is coincidental with the last deletion
  47. (that is, the deletion is continuing from the same point, either forward or
  48. backward).
  49. Undoing an edit once restores the original text.
  50. Undoing an edit twice restores the last change.
  51. </Para>
  52. <Para>The
  53. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  54. <![ %CDE.C.CDE; [</Para>
  55. <Para>For a complete definition of the DtEditor widget
  56. and its associated resources, see
  57. &cdeman.DtEditor;. ]]></Para>
  58. </RefSect1>
  59. <RefSect1>
  60. <Title>RETURN VALUE</Title>
  61. <Para>Upon successful completion, the
  62. <Function>DtEditorUndoEdit</Function> function returns
  63. True;
  64. otherwise, if there is no pending undo it returns
  65. False.
  66. </Para>
  67. </RefSect1>
  68. <RefSect1>
  69. <Title>SEE ALSO</Title>
  70. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;.</Para>
  71. </RefSect1>
  72. </RefEntry>
  73. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->