/***************************************************************************
 *                          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 IViewportService
 *--------------------------------------------------------------------------
 * @created: Saturday, January 18, 2003 17:52:58
 */

#if !defined(IViewportService_h_included)
#define IViewportService_h_included
//forward declaration of this class might require
namespace services
{ class IViewportService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IUIService.h>
#include <core/ui/IView.h>
#include <core/ui/IViewport.h>


namespace services
{
  
  class IViewportService : public services::IUIService
  {
  public:
    virtual ZRESULT createView(CWnd* pParentWnd, core::ui::IView** ppView)=0;
    virtual ZRESULT createViewport(core::ui::IView* pView, core::ui::eViewport nKind, core::ui::IViewport** ppViewport)=0;
    virtual ZRESULT createViewportDirect(core::ui::IView* pView, ZString strClass, core::ui::eViewport nKind, core::ui::IViewport** ppViewport)=0;
    virtual ZRESULT registerViewportKind(core::ui::eViewport nKind, ZString strTitle, ZString strClassName)=0;
    virtual ZRESULT enumViewportKinds(core::ui::tViewportSeq& seqKinds)=0;
    virtual ZRESULT getViewportTitle(core::ui::eViewport vKind, ZString& strTitle)=0;
    /* Changes view's viewport kind. Internally, the old viewport is released and
     * new viewport is created. */
    virtual ZRESULT changeViewportKind(core::ui::IViewport* pViewport, core::ui::eViewport nKind)=0;
    virtual ZRESULT registerViewportTool(ZString strClassName)=0;
    virtual ZRESULT getViewportTools(ZStringSeq& seqClassNames)=0;
  
  };//class IViewportService
};//services

#endif
