EdInvSpe.sgm 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!-- $XConsortium: EdInvSpe.sgm /main/5 1996/08/31 14:57:26 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. <RefEntry Id="CDEMX.MAN51.rsml.1">
  10. <RefMeta>
  11. <RefEntryTitle>DtEditorInvokeSpellDialog</RefEntryTitle>
  12. <ManVolNum>library call</ManVolNum>
  13. </RefMeta>
  14. <RefNameDiv>
  15. <RefName><Function>DtEditorInvokeSpellDialog</Function></RefName>
  16. <RefPurpose>display the DtEditor widget dialog for checking text for spelling errors
  17. <IndexTerm>
  18. <Primary>DtEditorInvokeSpellDialog</Primary>
  19. </IndexTerm><IndexTerm>
  20. <Primary>DtEditor functions</Primary>
  21. <Secondary>DtEditorInvokeSpellDialog</Secondary>
  22. </IndexTerm></RefPurpose>
  23. </RefNameDiv>
  24. <!-- CDE Common Source Format, Version 1.0.0-->
  25. <!-- *************************************************************************-->
  26. <!-- ** (c) Copyright 1993, 1994 Hewlett-Packard Company-->
  27. <!-- ** (c) Copyright 1993, 1994 International Business Machines Corp.-->
  28. <!-- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.-->
  29. <!-- ** (c) Copyright 1993, 1994 Novell, Inc.-->
  30. <!-- *************************************************************************-->
  31. <RefSynopsisDiv>
  32. <FuncSynopsis Remap="ANSI">
  33. <FuncSynopsisInfo>#include &lt;Dt/Editor.h>
  34. </FuncSynopsisInfo>
  35. <FuncDef>DtEditorErrorCode <Function>DtEditorInvokeSpellDialog</Function></FuncDef>
  36. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  37. </FuncSynopsis>
  38. </RefSynopsisDiv>
  39. <RefSect1>
  40. <Title>DESCRIPTION</Title>
  41. <Para>The
  42. <Function>DtEditorInvokeSpellDialog</Function> function displays the Spell dialog for the DtEditor widget.
  43. This dialog displays
  44. the list of unrecognized or misspelled words from the widget's text.
  45. Users can search for and replace misspelled words
  46. with the Spell dialog.
  47. The list of misspelled words is automatically generated by filtering the
  48. text for the DtEditor widget through the filter specified by the
  49. <SystemItem Class="Resource">DtNspellFilter</SystemItem> resource when
  50. <Function>DtEditorInvokeSpellDialog</Function> is called.
  51. For a complete description of the Spell dialog and
  52. the
  53. <SystemItem Class="Resource">DtNspellFilter</SystemItem> resource, see
  54. &cdeman.DtEditor;.</Para>
  55. <Para>The
  56. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  57. </Para>
  58. <Para>For a complete definition of the DtEditor widget and its associated resources, see
  59. &cdeman.DtEditor;.</Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>RETURN VALUE</Title>
  63. <Para>Upon successful completion, the
  64. <Function>DtEditorInvokeSpellDialog</Function> function returns
  65. <SystemItem Class="Constant">DtEDITOR_NO_ERRORS</SystemItem> if the widget successfully executed the spell filter; otherwise,
  66. it returns one of the following:
  67. </Para>
  68. <VariableList>
  69. <VarListEntry>
  70. <Term>DtEDITOR_SPELL_FILTER_FAILED</Term>
  71. <ListItem>
  72. <Para>If it cannot successfully execute the filter specified by the
  73. <Symbol>DtNspellfilter</Symbol> resource.
  74. </Para>
  75. </ListItem>
  76. </VarListEntry>
  77. <VarListEntry>
  78. <Term>DtEDITOR_NO_TMP_FILE</Term>
  79. <ListItem>
  80. <Para>If it cannot create a temporary file in the directory returned by
  81. <Filename MoreInfo="RefEntry">tmpnam</Filename>(3S).</Para>
  82. </ListItem>
  83. </VarListEntry>
  84. </VariableList>
  85. </RefSect1>
  86. <RefSect1>
  87. <Title>SEE ALSO</Title>
  88. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, <Filename MoreInfo="RefEntry">tmpnam</Filename>(3S).</Para>
  89. </RefSect1>
  90. </RefEntry>
  91. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 01:31:55-->