EdAppFF.sgm 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!-- $XConsortium: EdAppFF.sgm /main/5 1996/08/30 12:57:15 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.MAN15.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN15.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorAppendFromFile</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorAppendFromFile</Function></RefName>
  17. <RefPurpose>append data from a file into 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>DtEditorErrorCode <Function>DtEditorAppendFromFile</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. <ParamDef>char *<Parameter>fileName</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para><Function>DtEditorAppendFromFile</Function> function appends data from a file to
  39. after the last character in a DtEditor widget.
  40. After the data is appended, the insertion cursor is positioned at the
  41. new last character.
  42. </Para>
  43. <Para>The
  44. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  45. </Para>
  46. <Para>The
  47. <Emphasis>fileName</Emphasis> argument is the pathname of the file
  48. relative to the local system.
  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>DtEditorAppendFromFile</Function> function returns one of the following values:
  58. </Para>
  59. <VariableList>
  60. <VarListEntry>
  61. <Term>DtEDITOR_NO_ERRORS</Term>
  62. <ListItem>
  63. <Para>The file is readable and writable.
  64. </Para>
  65. </ListItem>
  66. </VarListEntry>
  67. <VarListEntry>
  68. <Term>DtEDITOR_READ_ONLY_FILE</Term>
  69. <ListItem>
  70. <Para>The file is read only.
  71. <![ %CDE.C.CDE; [</Para>
  72. </ListItem>
  73. </VarListEntry>
  74. <VarListEntry>
  75. <Term>DtEDITOR_NULLS_REMOVED</Term>
  76. <ListItem>
  77. <Para>The file contained embedded
  78. <SystemItem Class="Constant">NULL</SystemItem> characters, which were removed.
  79. ]]></Para>
  80. </ListItem>
  81. </VarListEntry>
  82. </VariableList>
  83. <Para>Otherwise, if
  84. the
  85. <Function>DtEditorAppendFromFile</Function> function
  86. cannot append the data into the DtEditor widget,
  87. it returns one of the following values:
  88. </Para>
  89. <VariableList>
  90. <VarListEntry>
  91. <Term>DtEDITOR_NONEXISTENT_FILE</Term>
  92. <ListItem>
  93. <Para>The file does not exist.
  94. </Para>
  95. </ListItem>
  96. </VarListEntry>
  97. <VarListEntry>
  98. <Term>DtEDITOR_DIRECTORY</Term>
  99. <ListItem>
  100. <Para>The file is a directory.
  101. </Para>
  102. </ListItem>
  103. </VarListEntry>
  104. <VarListEntry>
  105. <Term>DtEDITOR_CHAR_SPECIAL_FILE</Term>
  106. <ListItem>
  107. <Para>The file is a character-special device.
  108. </Para>
  109. </ListItem>
  110. </VarListEntry>
  111. <VarListEntry>
  112. <Term>DtEDITOR_BLOCK_MODE_FILE</Term>
  113. <ListItem>
  114. <Para>The file is a block-mode device.
  115. </Para>
  116. </ListItem>
  117. </VarListEntry>
  118. <VarListEntry>
  119. <Term>DtEDITOR_NO_FILE_ACCESS</Term>
  120. <ListItem>
  121. <Para>The file cannot be accessed.
  122. <![ %CDE.C.CDE; [</Para>
  123. </ListItem>
  124. </VarListEntry>
  125. <VarListEntry>
  126. <Term>DtEDITOR_INSUFFICIENT_MEMORY</Term>
  127. <ListItem>
  128. <Para>Not enough system memory is available to append the file.
  129. ]]></Para>
  130. </ListItem>
  131. </VarListEntry>
  132. <VarListEntry>
  133. <Term>DtEDITOR_UNREADABLE_FILE</Term>
  134. <ListItem>
  135. <Para>The file is unreadable for an unspecified reason.
  136. </Para>
  137. </ListItem>
  138. </VarListEntry>
  139. </VariableList>
  140. </RefSect1>
  141. <RefSect1>
  142. <Title>APPLICATION USAGE</Title>
  143. <Para>If the data is in memory, rather than a disk file, the application should
  144. use
  145. &cdeman.DtEditorAppend;.</Para>
  146. </RefSect1>
  147. <RefSect1>
  148. <Title>SEE ALSO</Title>
  149. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorAppend;. &cdeman.DtEditorGetContents;, &cdeman.DtEditorInsert;, &cdeman.DtEditorInsertFromFile;, &cdeman.DtEditorReplace;, &cdeman.DtEditorReplaceFromFile;, &cdeman.DtEditorSaveContentsToFile;, &cdeman.DtEditorSetContents;, &cdeman.DtEditorSetContentsFromFile;.</Para>
  150. </RefSect1>
  151. </RefEntry>
  152. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->