home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / central / CProxyDragTask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  78 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. //    CProxyDragTask.h
  20.  
  21.  
  22. #ifndef CProxyDragTask_H
  23. #define CProxyDragTask_H
  24. #pragma once
  25.  
  26. // Includes
  27.  
  28. #include "CBrowserDragTask.h"
  29.  
  30. #include "CProxyPane.h"
  31.  
  32. // Forward declarations
  33.  
  34. class LView;
  35. class CProxyPane;
  36. class LCaption;
  37.  
  38. // Class declaration
  39.  
  40. class CExtraFlavorAdder // to be called by AddFlavor.  Allows a window to add extra flavors.
  41. {
  42.     public:
  43.         virtual void AddExtraFlavorData(DragReference inDragRef, ItemReference inItemRef) = 0;
  44. };
  45.  
  46. class CProxyDragTask : public CBrowserDragTask
  47. {
  48. public:
  49.     typedef CBrowserDragTask Inherited;
  50.     
  51.                             CProxyDragTask(
  52.                                             LView&                    inProxyView,
  53.                                             CProxyPane&                inProxyPane,
  54.                                             LCaption&                inPageProxyCaption,
  55.                                             const EventRecord&        inEventRecord,
  56.                                             CExtraFlavorAdder*        inFlavorAdder = nil);
  57.     virtual                     ~CProxyDragTask();
  58.  
  59.     virtual OSErr            DoDrag();
  60.     virtual void            AddFlavors(DragReference inDragRef);
  61.                         
  62. protected:
  63.     virtual    void            DoNormalDrag();
  64.     virtual    void            DoTranslucentDrag();
  65.         
  66.     virtual void            MakeDragRegion(
  67.                                             DragReference            inDragRef,
  68.                                             RgnHandle                inDragRegion);
  69.  
  70.     LView&                    mProxyView;
  71.     CProxyPane&                mProxyPane;
  72.     LCaption&                mPageProxyCaption;
  73.     CExtraFlavorAdder*        mExtraFlavorAdder;
  74. };
  75.  
  76.  
  77. #endif
  78.