home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / mac / UserInterface / CSelectionBroadcastingList.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  64 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. #ifndef CSelectionBroadcastingList_H
  20. #define CSelectionBroadcastingList_H
  21. #pragma once
  22.  
  23. #include <LListBox.h>
  24.  
  25. class CSelectionBroadcastingList : public LListBox
  26. {
  27. public:
  28.  
  29.     enum    { class_ID = 'Brlb' };
  30.  
  31.     typedef LListBox super;
  32.  
  33.     static    void* CreateFromStream(LStream* inStream);
  34.     
  35.                         CSelectionBroadcastingList(LStream* inStream);
  36.                         ~CSelectionBroadcastingList();
  37.  
  38.     virtual void        SetBroadcastMessage(MessageT inMessage);
  39.     virtual MessageT    GetBroadcastMessage();
  40.     
  41.     virtual void        DontAllowSelectionChange();
  42.     virtual void        AllowSelectionChange();
  43.     
  44.         // PP overrides
  45.     
  46.     virtual void        SetValue(Int32 inValue);
  47.  
  48.     virtual void        DoNavigationKey(const EventRecord& inKeyEvent);
  49.     virtual void        DoTypeSelection(const EventRecord& inKeyEvent);
  50.  
  51.     virtual void        SelectOneCell(Cell inCell);
  52.  
  53. protected:
  54.  
  55.     virtual void        ClickSelf(const SMouseDownEvent    &inMouseDown);
  56.     
  57.     int                    NumCellsSelected();
  58.     
  59. private:
  60.     MessageT    fMessage;
  61.     Boolean        fAllowSelectionChange;
  62. };
  63.  
  64. #endif