/***************************************************************************
 *                          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 IMenuLayout
 *   Tool's layout: menu. This interface allows to put the tool
 *   into menu. The following features are used
 *      - branch-node
 *      - images
 *      - item mode (check-box/check-group)
 *--------------------------------------------------------------------------
 * @created: Saturday, September 21, 2002 17:36:30
 */

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


namespace core
{
  namespace layout
  {
    
    class IMenuLayout : public core::layout::ILayout
    {
    public:
      virtual ZRESULT getBranch(ZStringSeq& branch) const=0;
      /* kind of menu-item: check-box, check-group, single item */
      virtual ZRESULT getItemKind(DWORD& kind) const=0;
      virtual ZRESULT onDeploy(CMenu* pMenu, DWORD dwID)=0;
    
    };//class IMenuLayout
  };//layout
};//core

#endif
