/***************************************************************************
 *                          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 IDialogSizingService
 *   Service for resizing dialog boxes and certain dialog controls.
 *   You can obtain the service for dialog box by creating
 *   service with IModeler::getService call. Services instantated
 *   for each call. The service can store/load state of dialog
 *   controls. Service transparently inherits:
 *   - core::IProfileable
 *--------------------------------------------------------------------------
 * @created: Thursday, January 02, 2003 00:58:59
 */

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


namespace services
{
  
  class IDialogSizingService : public services::IUIService
  {
  public:
    /* Sets main dialog window */
    virtual ZRESULT setDialog(CDialog* pDlg, ZRect minRect, bool bEmbed=true, bool bGripper=false, LPCTSTR strProfile=NULL)=0;
    /* Adds control to the set of sizable controls */
    virtual ZRESULT addControl(DWORD nControlID, DWORD nHow)=0;
    /* Performs sizing routine */
    virtual ZRESULT onSize(long cx, long cy)=0;
  
  };//class IDialogSizingService
};//services

#endif
