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

  1. /* -*- Mode: C++; tab-width: 4; 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.    LocationDrag.h -- class definitions for browser location drag source
  20.    Created: Alastair Gourlay(SGI) c/o Dora Hsu<dora@netscape.com>, 26 Nov 1996
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _LOCATION_DRAG_H
  26. #define _LOCATION_DRAG_H
  27.  
  28. #undef Bool
  29. #include "mozilla.h"
  30. #include "xfe.h"
  31. #include "net.h"
  32. #include "DragDrop.h"
  33.  
  34. class XFE_LocationDrag : public XFE_DragNetscape
  35. {
  36. public:
  37.     XFE_LocationDrag(Widget);
  38.     ~XFE_LocationDrag();
  39.     void setDragData(URL_Struct*);
  40. protected:
  41.     char *_dragDataURL;
  42.  
  43.     // methods for derived classes to override
  44.     virtual int dragStart(int,int);
  45.     virtual void targets();
  46.     virtual void operations();
  47.     virtual char *getTargetData(Atom);
  48.     virtual void dragComplete();
  49. private:
  50. };
  51.  
  52. #endif // _LOCATION_DRAG_H
  53.