EdCheckF.sgm 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!-- $XConsortium: EdCheckF.sgm /main/5 1996/08/30 12:57:45 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.MAN17.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN17.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorCheckForUnsavedChanges</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorCheckForUnsavedChanges</Function></RefName>
  17. <RefPurpose>report whether text has been edited
  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>DtEditorCheckForUnsavedChanges</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorCheckForUnsavedChanges</Function> function reports whether the text contained in the edit window of a
  39. DtEditor widget has been modified since the last call to
  40. &cdeman.DtEditorGetContents; or
  41. &cdeman.DtEditorSaveContentsToFile;, including inserting, deleting or moving text with the keyboard
  42. or mouse.
  43. For information about retrieving the text without affecting whether
  44. <Function>DtEditorCheckForUnsavedChanges</Function> reports that all changes have been saved, see
  45. &cdeman.DtEditorGetContents; and
  46. &cdeman.DtEditorSaveContentsToFile;.</Para>
  47. <Para>The
  48. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  49. <![ %CDE.C.CDE; [</Para>
  50. <Para>For a complete definition of the DtEditor widget
  51. and its associated resources, see
  52. &cdeman.DtEditor;. ]]></Para>
  53. </RefSect1>
  54. <RefSect1>
  55. <Title>RETURN VALUE</Title>
  56. <Para>Upon successful completion, the
  57. <Function>DtEditorCheckForUnsavedChanges</Function> function returns
  58. True
  59. if changes have been
  60. made to the contents of the DtEditor widget since the last call to
  61. &cdeman.DtEditorGetContents; or
  62. &cdeman.DtEditorSaveContentsToFile;; otherwise, it returns
  63. False.
  64. </Para>
  65. </RefSect1>
  66. <RefSect1>
  67. <Title>SEE ALSO</Title>
  68. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorGetContents;, &cdeman.DtEditorSaveContentsToFile;.</Para>
  69. </RefSect1>
  70. </RefEntry>
  71. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->