EdPasteF.sgm 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!-- $XConsortium: EdPasteF.sgm /main/5 1996/08/30 13:01:09 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.MAN34.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN34.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorPasteFromClipboard</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorPasteFromClipboard</Function></RefName>
  17. <RefPurpose>insert the clipboard selection 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>Boolean <Function>DtEditorPasteFromClipboard</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorPasteFromClipboard</Function> function inserts the clipboard selection before the insertion cursor of the
  39. DtEditor widget.
  40. If the insertion cursor is inside the current selection,
  41. the clipboard selection replaces the selected text.
  42. Text can be cut or copied to the clipboard with
  43. &cdeman.DtEditorCutToClipboard; and
  44. &cdeman.DtEditorCopyToClipboard;. Text can be selected and deselected programmatically with
  45. &cdeman.DtEditorSelectAll; and
  46. &cdeman.DtEditorDeselect;.</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>DtEditorPasteFromClipboard</Function> function returns
  58. True;
  59. otherwise, if the widget does not own the primary selection,
  60. the function 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.DtEditorCutToClipboard;, &cdeman.DtEditorCopyToClipboard;, &cdeman.DtEditorDeleteSelection;, &cdeman.DtEditorDeselect;, &cdeman.DtEditorSelectAll;, &cdeman.DtEditorUndoEdit;.</Para>
  67. </RefSect1>
  68. </RefEntry>
  69. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->