home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / gui / CPlaceHolderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  58 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. #include "LView.h"
  21.  
  22. //------------------------------------------------------------------------------------
  23.  
  24. class CPlaceHolderView : public LView
  25.  
  26. //     Similarly to the CIncludeView, this pane lets its superview "include" another view
  27. //    but unlike the CIncludeView, it doesn't create the included view from a 'PPob' resource:
  28. //    instead it searches for it in the window. This allows to create a global object like
  29. //    a CFlexTable for instance, attach it to the window and have different tab panels share it.
  30. //
  31. //    The included view is put back to its original place when the CPlaceHolderView is hidden.
  32. //
  33. //------------------------------------------------------------------------------------
  34. {
  35. public:
  36.  
  37.     enum { class_ID = 'Hold' };
  38.  
  39.                                 CPlaceHolderView(LStream* inStream);
  40.     virtual                     ~CPlaceHolderView();
  41.  
  42.     virtual void                FinishCreateSelf();
  43.     virtual void                ShowSelf();
  44.     virtual void                HideSelf();
  45.  
  46.     virtual void                AcquirePane();
  47.     virtual void                ReturnPane();
  48.  
  49. protected:
  50.     virtual void                InstallPane(LPane* inPane);
  51.  
  52.  
  53. protected:
  54.     PaneIDT                        mInstalledViewID;
  55.     LView *                        mInstalledView;
  56.     LView *                        mSaveSuperViewOfInstalledView;
  57. };
  58.