/***************************************************************************
 *                          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 IViewLayout
 *   Tool is a visual component (see core::ui::IVisualControl), or a layer, or
 *   additionally, a menu-item
 *--------------------------------------------------------------------------
 * @created: Friday, March 26, 2004 16:22:45
 */

#if !defined(IViewLayout_h_included)
#define IViewLayout_h_included
//forward declaration of this class might require
namespace core
{ namespace layout
  { class IViewLayout; }; };
#include <zmodeler.h>
#include <core/layout/layoutTypes.h>
#include <core/layout/ILayout.h>
#include <core/ui/IView.h>


namespace core
{
  namespace layout
  {
    
    class IViewLayout : public core::layout::ILayout
    {
    public:
      /* Tries to deploy the tool in supplied view. returns ZRESULT_OK on success.
       * If tool failed to deploy, the view doesn't longer hold a reference to the tool. */
      virtual ZRESULT deploy(core::ui::IView* pView)=0;
    
    };//class IViewLayout
  };//layout
};//core

#endif
