/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IChildDialog
 *   This interface can be inherited by the tool if it
 *   desire to have a child (integrated) dialog
 *--------------------------------------------------------------------------
 * @created: Saturday, September 21, 2002 16:52:51
 */

#if !defined(IChildDialog_h_included)
#define IChildDialog_h_included
//forward declaration of this class might require
namespace core
{ namespace layout
  { class IChildDialog; class CChildDialogCol; }; };
#include <zmodeler.h>
#include <core/layout/layoutTypes.h>
#include <core/layout/IDialog.h>
#include <core/IProcParams.h>


namespace core
{
  namespace layout
  {
    
    class IChildDialog : public core::layout::IDialog
    {
    public:
      virtual ZRESULT init(HWND hOwner, HWND** hThis=NULL)=0;
      virtual ZRESULT setDialogTitle(ZString strTitle)=0;
      virtual ZRESULT getDialogTitle(ZString& strTitle)=0;
      virtual ZRESULT show(core::IProcParams* params)=0;
      virtual ZRESULT hide(core::IProcParams* params)=0;
      /* ZRESULT_OK if dialog is visible. ZRESULT_FALSE otherwise */
      virtual ZRESULT isVisible(void)=0;
    
    };//class IChildDialog
    
    //
    // collection template
    //
    class CChildDialogCol : public ZUnknown,
        public ZIntrCollection<IChildDialog>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CChildDialogCol)
    };//class CChildDialogCol
  };//layout
};//core

#endif
