home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / selection.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  80 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* 
  19.    selection.h --- Selections: Cut, Copy, Paste, etc
  20.    Created: Stephen Lamm <slamm@netscape.com>, 8 April 1997.
  21.  */
  22.  
  23.  
  24. #ifndef _SELECTION_H_
  25. #define _SELECTION_H_
  26.  
  27. #include "mozilla.h"
  28. #include "xfe.h"
  29.  
  30. XP_BEGIN_PROTOS
  31.  
  32. extern void fe_own_selection_1 (MWContext*, Time, Boolean, char *);
  33.  
  34. extern void fe_OwnSelection (MWContext *, Time, Boolean);
  35. extern void fe_DisownSelection (MWContext *, Time, Boolean);
  36.  
  37. extern void fe_OwnEDTSelection (MWContext*, Time, Boolean, 
  38.                                 char*, char*, char*, unsigned long);
  39.  
  40. extern void fe_cut_cb (Widget, XtPointer, XtPointer);
  41. extern void fe_copy_cb (Widget, XtPointer, XtPointer);
  42. extern void fe_paste_cb (Widget, XtPointer, XtPointer);
  43. extern void fe_paste_quoted_cb (Widget, XtPointer, XtPointer);
  44.  
  45. extern Boolean fe_can_cut (MWContext *context);
  46. extern Boolean fe_can_copy (MWContext *context);
  47. extern Boolean fe_can_paste (MWContext *context);
  48.  
  49. extern void fe_OwnClipboard(Widget, Time,
  50.                             char*, char*, char*, unsigned long, 
  51.                             XP_Bool);
  52. extern void fe_OwnPrimarySelection(Widget, Time,
  53.                                    char*, char*, char*, unsigned long,
  54.                                    MWContext*); 
  55.  
  56. extern void fe_DisownClipboard(Widget, Time);
  57. extern void fe_DisownPrimarySelection(Widget, Time);
  58.  
  59. extern char* fe_GetPrimaryText(void);
  60. extern char* fe_GetPrimaryHtml(void);
  61. extern char* fe_GetPrimaryData(unsigned long*);
  62.  
  63. extern char* fe_GetInternalText(void);
  64. extern char* fe_GetInternalHtml(void);
  65. extern char* fe_GetInternalData(unsigned long*);
  66.  
  67. extern XP_Bool fe_InternalSelection(XP_Bool, 
  68.                                     unsigned long*, 
  69.                                     unsigned long*, 
  70.                                     unsigned long*);
  71.  
  72. extern char* xfe2_GetClipboardText (Widget, int32 *);
  73. extern int xfe_clipboard_retrieve_work(Widget focus, char* name,
  74.                                        char** buf, unsigned long* buf_len_a,
  75.                                        Time timestamp);
  76.  
  77. XP_END_PROTOS
  78.  
  79. #endif
  80.