2
0

Save.sgm 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!-- $XConsortium: Save.sgm /main/5 1996/08/30 14:57:38 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.MAN305.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN305.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Save</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Save</Symbol></RefName>
  17. <RefPurpose>save any modifications to an entity
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Save.sgm /main/5 1996/08/30 14:57:38 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  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. <RefSynopsisDiv>
  27. <Synopsis>[<Symbol Role="Variable">file</Symbol>] Save(in <Emphasis>type ID</Emphasis>);
  28. </Synopsis>
  29. </RefSynopsisDiv>
  30. <RefSect1>
  31. <Title>DESCRIPTION</Title>
  32. <Para>The
  33. <Symbol Role="Message">Save</Symbol> notice
  34. asks that any pending, unsaved modifications to a
  35. persistent entity (such as a file) be saved.
  36. </Para>
  37. <Para>The
  38. <Emphasis>ID</Emphasis> argument is the identity of the entity to save.
  39. When its
  40. <Symbol Role="Variable">type</Symbol> is
  41. <Literal>File</Literal>, then the
  42. <Emphasis>ID</Emphasis> argument is unset (in other words, has a
  43. value of
  44. <Literal>(char *)0</Literal>), and it refers to the file or directory
  45. named in the message's file attribute.
  46. </Para>
  47. </RefSect1>
  48. <RefSect1>
  49. <Title>ERRORS</Title>
  50. <Para>The ToolTalk service may return one of the following errors
  51. in processing the
  52. <Symbol Role="Message">Save</Symbol> notice:
  53. </Para>
  54. <VariableList>
  55. <VarListEntry>
  56. <Term>TT_DESKTOP_UNMODIFIED</Term>
  57. <ListItem>
  58. <Para>The entity had no pending, unsaved modifications.
  59. </Para>
  60. </ListItem>
  61. </VarListEntry>
  62. <VarListEntry>
  63. <Term>TT_DESKTOP_ENOENT</Term>
  64. <ListItem>
  65. <Para>The file to save/revert does not exist.
  66. </Para>
  67. </ListItem>
  68. </VarListEntry>
  69. </VariableList>
  70. </RefSect1>
  71. <RefSect1>
  72. <Title>APPLICATION USAGE</Title>
  73. <Para>The
  74. &cdeman.ttdt.file.join;, function can be used to register for,
  75. and help process, the
  76. <Symbol Role="Message">Save</Symbol> request.
  77. </Para>
  78. <Para>The
  79. <Symbol Role="Message">Save</Symbol> request can be sent with
  80. &cdeman.ttdt.file.request;. Also,
  81. &cdeman.ttdt.Save;, can send the relevant message and block on the reply.
  82. </Para>
  83. </RefSect1>
  84. <RefSect1>
  85. <Title>SEE ALSO</Title>
  86. <Para>&cdeman.ttdt.Save;, &cdeman.ttdt.file.join;, &cdeman.ttdt.file.request;; <Symbol Role="Message">Revert</Symbol> notice.
  87. </Para>
  88. </RefSect1>
  89. </RefEntry>
  90. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->