/***************************************************************************
 *                          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 ICommandsBarService
 *--------------------------------------------------------------------------
 * @created: Friday, January 03, 2003 23:14:38
 */

#if !defined(ICommandsBarService_h_included)
#define ICommandsBarService_h_included
//forward declaration of this class might require
namespace services
{ class ICommandsBarService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IUIService.h>
#include <core/layout/ICommandBarNavigator.h>
#include <core/tools/ITool.h>


namespace services
{
  
  class ICommandsBarService : public services::IUIService
  {
  public:
    virtual ZRESULT getMenuRoot(core::layout::ICommandBarNavigator** ppRoot)=0;
    virtual ZRESULT addTool(core::tools::ITool* pTool, long nIndex=-1)=0;
    /* Provides tool by name. If no such a tool available in commands bar,
     * ZRESULT_FALSE is returned. */
    virtual ZRESULT getTool(LPCTSTR pszName, ZStringSeq seqBranch, core::tools::ITool** ppTool, long& nIndex)=0;
  
  };//class ICommandsBarService
};//services

#endif
