home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / rdfui / CNavCenterContextMenuAtt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  70 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. //
  20. // Mike Pinkerton, Netscape Communications
  21. //
  22. // Contains:
  23. //
  24. // Ñ CNavCenterContextMenuAttachment
  25. //        A version of the contextual menu attachment that generates the menu from the
  26. //        RDF backend.
  27. //
  28. // Ñ CNavCenterSelectorContextMenuAttachment
  29. //        inherits from above but overrides to create a different HT iterator for 
  30. //        the selector pane. 
  31. //
  32.  
  33. #pragma once
  34.  
  35. #include "htrdf.h"
  36. #include "CContextMenuAttachment.h"
  37.  
  38.  
  39. class CNavCenterContextMenuAttachment : public CContextMenuAttachment
  40. {
  41. public:
  42.     enum { class_ID = 'NCxM' } ;
  43.     
  44.     CNavCenterContextMenuAttachment(LStream* inStream) : CContextMenuAttachment(inStream) { };
  45.     virtual    ~CNavCenterContextMenuAttachment() { };
  46.  
  47. protected:    
  48.  
  49.     virtual HT_Cursor NewHTContextMenuCursor ( ) ; 
  50.     virtual CommandT ConvertHTCommandToPPCommand ( HT_MenuCmd inCmd ) ;
  51.     virtual LMenu* BuildMenu ( ) ;
  52.     virtual UInt16 PruneMenu ( LMenu* inMenu ) ;
  53.  
  54. }; // CNavCenterContextMenuAttachment
  55.  
  56.  
  57.  
  58. class CNavCenterSelectorContextMenuAttachment : public CNavCenterContextMenuAttachment //whew!
  59. {
  60. public:
  61.     enum { class_ID = 'NSxM' } ;
  62.     
  63.     CNavCenterSelectorContextMenuAttachment(LStream* inStream) : CNavCenterContextMenuAttachment(inStream) { };
  64.     virtual    ~CNavCenterSelectorContextMenuAttachment() { };
  65.  
  66. protected:    
  67.  
  68.     virtual HT_Cursor NewHTContextMenuCursor ( ) ; 
  69.  
  70. }; // CNavCenterSelectorContextMenuAttachment