/***************************************************************************
 *                          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 ICommandBarLayout
 *   Generic commands bar layout
 *--------------------------------------------------------------------------
 * @created: Saturday, September 21, 2002 17:21:42
 */

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


namespace core
{
  namespace layout
  {
    
    class ICommandBarLayout : public core::layout::ILayout
    {
    public:
      virtual ZRESULT getGroup(tCommandBarTab& group) const=0;
      virtual ZRESULT getBranch(ZStringSeq& branch) const=0;
      virtual ZRESULT getButtonKind(DWORD& kind) const=0;
      /* Called by framework after deplying the tool on command bar.
       * Layout can adopt to supplied command bar. */
      virtual ZRESULT onDeploy(core::ui::IControlBar* pBar)=0;
    
    };//class ICommandBarLayout
  };//layout
};//core

#endif
