home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / EditorDrop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  58 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.    EditorDrop.h -- class definition for the editor drop class
  20.    Created: Alastair Gourlay <sgidev@netscape.com>, 1-Jan-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _EDITOR_DROP_H
  26. #define _EDITOR_DROP_H
  27.  
  28. class XFE_EditorDrop;
  29. class XFE_EditorView;
  30.  
  31. #include "EditorView.h"
  32. #include "DragDrop.h"
  33.  
  34. //
  35. // XFE_EditorDrop class
  36. //
  37.  
  38. class XFE_EditorDrop : public XFE_DropNetscape
  39. {
  40. public:
  41.     XFE_EditorDrop(Widget,XFE_EditorView*);
  42.     ~XFE_EditorDrop();
  43. protected:
  44.     XFE_EditorView *_editorView;
  45.  
  46.     void targets();
  47.     void operations();
  48.     Atom acceptDrop(unsigned int,Atom*,unsigned int);
  49.     int processTargets(Atom*,const char**,int);
  50.  
  51.     int insertLink(const char*);
  52.     int insertFile(const char*);
  53.     int insertText(const char*);
  54. private:
  55. };
  56.  
  57. #endif // _EDITOR_DROP_H
  58.