home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / gui / CBrowserView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  80 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. #pragma once
  20.  
  21. #include "CHTMLView.h"
  22. #include "CKeyUpReceiver.h"
  23.  
  24. class CBrowserViewDoDragReceiveMochaCallback;
  25.  
  26. class CBrowserView : public CHTMLView, public CKeyUpReceiver
  27. {
  28.     private:
  29.         typedef CHTMLView Inherited;
  30.     public:
  31.     
  32.         enum { class_ID = 'BrVw' };
  33.         
  34.                                 CBrowserView(LStream* inStream);
  35.         virtual                    ~CBrowserView();
  36.                 
  37.         virtual Boolean            DragIsAcceptable(DragReference inDragRef);
  38.         virtual Boolean            ItemIsAcceptable(DragReference inDragRef,
  39.                                                     ItemReference inItemRef);
  40. /*        
  41.         virtual void            ReceiveDragItem(DragReference inDragRef,
  42.                                                 DragAttributes inDragAttrs,
  43.                                                 ItemReference inItemRef,
  44.                                                 Rect& inItemBounds);
  45. */    
  46.         // Drag receive is now processed through a callback, so that javascript has a
  47.         // chance to cancel the event.
  48.         virtual void            DoDragReceive(DragReference    inDragRef);
  49.         virtual void            DoDragReceiveCallback(XP_List* inRequestList);
  50.         
  51.         virtual void        MoveBy(
  52.                                 Int32                inHorizDelta,
  53.                                 Int32                inVertDelta,
  54.                                 Boolean                inRefresh);
  55.                                 
  56.             // COMMANDER
  57.         Boolean                    FindCommandStatusForContextMenu(
  58.                                     CommandT inCommand,
  59.                                     Boolean    &outEnabled,
  60.                                     Boolean    &outUsesMark,
  61.                                     Char16    &outMark,
  62.                                     Str255    outName);
  63.         virtual void            FindCommandStatus(
  64.                                     CommandT inCommand,
  65.                                     Boolean    &outEnabled,
  66.                                     Boolean    &outUsesMark,
  67.                                     Char16    &outMark,
  68.                                     Str255    outName);
  69.         virtual Boolean            ObeyCommand(CommandT inCommand, void* ioParam);
  70.         
  71.     protected:
  72.         virtual void        BeTarget();
  73.         virtual void        DontBeTarget();
  74.         
  75.         virtual void        QueueFTPUpload(const FSSpec & spec, URL_Struct* request);
  76.  
  77. };
  78.  
  79.  
  80.