EdCutToC.sgm 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!-- $XConsortium: EdCutToC.sgm /main/5 1996/08/30 12:58:14 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.MAN20.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN20.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorCutToClipboard</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorCutToClipboard</Function></RefName>
  17. <RefPurpose>copy the primary selection in a DtEditor widget to the clipboard and delete the selected text
  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>DtEditorCutToClipboard</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorCutToClipboard</Function> function copies the primary selected text in the DtEditor widget,
  39. specified by the
  40. <Symbol Role="Variable">widget</Symbol>, argument to the clipboard and then
  41. deletes the primary selected text.
  42. Text can be selected and deselected programmatically with
  43. &cdeman.DtEditorSelectAll; and
  44. &cdeman.DtEditorDeselect;.</Para>
  45. <Para>The
  46. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  47. <![ %CDE.C.CDE; [</Para>
  48. <Para>For a complete definition of the DtEditor widget
  49. and its associated resources, see
  50. &cdeman.DtEditor;. ]]></Para>
  51. </RefSect1>
  52. <RefSect1>
  53. <Title>RETURN VALUE</Title>
  54. <Para>Upon successful completion, the
  55. <Function>DtEditorCutToClipboard</Function> function returns
  56. True;
  57. otherwise, if the primary selection is
  58. <SystemItem Class="Constant">NULL</SystemItem>, or if the widget doesn't own the primary selection, or if the
  59. function is unable to gain ownership of the clipboard selection, it
  60. returns
  61. False.
  62. </Para>
  63. </RefSect1>
  64. <RefSect1>
  65. <Title>SEE ALSO</Title>
  66. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorClearSelection;, &cdeman.DtEditorCopyToClipboard;, &cdeman.DtEditorDeleteSelection;, &cdeman.DtEditorDeselect;, &cdeman.DtEditorPasteFromClipboard;, &cdeman.DtEditorSelectAll;, &cdeman.DtEditorUndoEdit;.</Para>
  67. </RefSect1>
  68. </RefEntry>
  69. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->