home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / gui / CNetscapeWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 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. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  20. //    CNetscapeWindow.h
  21. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  22.  
  23. #pragma once
  24.  
  25. #include "CWindowMediator.h"
  26.  
  27. typedef struct _History_entry History_entry;
  28.  
  29. #define    kMaxToolbars (4)
  30.  
  31. #define    BROWSER_MENU_TOGGLE_STRINGS_ID    (1037)
  32. #define    HIDE_NAVIGATION_TOOLBAR_STRING    (5)
  33. #define    SHOW_NAVIGATION_TOOLBAR_STRING    (6)
  34. #define    HIDE_LOCATION_TOOLBAR_STRING    (7)
  35. #define    SHOW_LOCATION_TOOLBAR_STRING    (8)
  36. #define    HIDE_MESSAGE_TOOLBAR_STRING        (9)
  37. #define    SHOW_MESSAGE_TOOLBAR_STRING        (10)
  38. #define    HIDE_FOLDERPANE_STRING            (11)
  39. #define    SHOW_FOLDERPANE_STRING            (12)
  40. #define HIDE_NAVCENTER_STRING            (13)
  41. #define SHOW_NAVCENTER_STRING            (14)
  42. #define HIDE_PERSONAL_TOOLBAR_STRING    (15)
  43. #define SHOW_PERSONAL_TOOLBAR_STRING    (16)
  44.  
  45.  
  46. class CNSContext;
  47. class CExtraFlavorAdder;
  48. typedef struct URL_Struct_ URL_Struct;
  49.  
  50. class CNetscapeWindow : public CMediatedWindow
  51. {
  52.     private:
  53.         typedef CMediatedWindow Inherited;
  54.     public:
  55.                             CNetscapeWindow(
  56.                                     LStream*     inStream,
  57.                                     DataIDT        inWindowType);
  58.                                     
  59.         virtual                ~CNetscapeWindow();
  60.     
  61.         virtual Boolean        ObeyCommand(CommandT inCommand, void *ioParam = nil);
  62.         void                ShowOneDragBar(PaneIDT dragBarID, Boolean isShown);
  63.         void                ToggleDragBar(PaneIDT dragBarID, int whichBar,
  64.                                             const char* prefName = nil);
  65.         virtual    CNSContext*    GetWindowContext() const = 0;
  66.         virtual CExtraFlavorAdder* CreateExtraFlavorAdder() const { return nil; }
  67.         virtual URL_Struct*    CreateURLForProxyDrag(char* outTitle = nil);
  68.  
  69.         static void            DisplayStatusMessageInAllWindows(ConstStringPtr inMessage);
  70.  
  71.     protected:
  72.         // Visibility of toolbars and status bars
  73.         Boolean                mToolbarShown[kMaxToolbars];
  74.         virtual    void        DoDefaultPrefs() = 0;
  75. };
  76.  
  77.  
  78.