home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / mac / UserInterface / LGABox_fixes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 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.  
  20. // LGABox_fixes.h
  21.  
  22. #pragma once
  23.  
  24. /*====================================================================================*/
  25.     #pragma mark INCLUDE FILES
  26. /*====================================================================================*/
  27.  
  28. #include <LGABox.h>
  29.  
  30.  
  31. #pragma mark -
  32. /*====================================================================================*/
  33.     #pragma mark TYPEDEFS
  34. /*====================================================================================*/
  35.  
  36.  
  37. #pragma mark -
  38. /*====================================================================================*/
  39.     #pragma mark CONSTANTS
  40. /*====================================================================================*/
  41.  
  42.  
  43. #pragma mark -
  44. /*====================================================================================*/
  45.     #pragma mark EXTERNAL FUNCTION PROTOTYPES
  46. /*====================================================================================*/
  47.  
  48.  
  49. #pragma mark -
  50. /*====================================================================================*/
  51.     #pragma mark CLASS DECLARATIONS
  52. /*====================================================================================*/
  53.  
  54. class LGABox_fixes : public LGABox {
  55.  
  56. #if !defined(__MWERKS__) || (__MWERKS__ >= 0x2000)
  57.     typedef LGABox inherited;
  58. #endif
  59.  
  60. public:
  61.  
  62.     enum { class_ID = 'Gbo_' };
  63.                             LGABox_fixes(LStream *inStream) :
  64.                                          LGABox(inStream) {
  65.                                 
  66.                                 SetRefreshAllWhenResized(false);
  67.                             }
  68.  
  69.     virtual    void            ResizeFrameBy(Int16 inWidthDelta, Int16 inHeightDelta,
  70.                                           Boolean inRefresh);
  71.     virtual    void            RefreshBoxBorder(void);
  72.     virtual    void            RefreshBoxTitle(void);
  73.                                           
  74. protected:
  75.  
  76.     virtual    void            Disable(void);
  77.     virtual    void            Enable(void);
  78. };
  79.                       
  80.