/***************************************************************************
 *                          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 IMultyColumn
 *   Support for multycolumn.
 *--------------------------------------------------------------------------
 * @created: Friday, May 16, 2003 12:59:33
 */

#if !defined(IMultyColumn_h_included)
#define IMultyColumn_h_included
//forward declaration of this class might require
namespace core
{ namespace ui
  { namespace controls
    { class IMultyColumn; }; }; };
#include <zmodeler.h>
#include <core/ui/controls/uiControls.h>

namespace core
{
  namespace ui
  {
    namespace controls
    {
      
      class IMultyColumn : public ZUnknown
      {
      public:
        virtual ZRESULT insertColumn(long nPosition, ZString strTitle, long nWidth)=0;
        virtual ZRESULT deleteColumn(long nIndex)=0;
        virtual ZRESULT showColumn(long nIndex, bool bShow=true)=0;
        virtual ZRESULT showColumnHeader(bool bShow=true)=0;
        virtual ZRESULT setColumnColor(long nIndex, ZColor color)=0;
        virtual ZRESULT setColumnValue(long nOrdinal, long nColumn, ZString strValue)=0;
        virtual ZRESULT getColumnValue(long nOrdinal, long nColumn, ZString& strValue)=0;
        virtual ZRESULT getItemColor(long nOrdinal, long nColumn, ZColor& col)=0;
        virtual ZRESULT setItemColor(long nOrdinal, long nColumn, ZColor col)=0;
        /* Modifies column style. Column's style surpresses control style. */
        virtual ZRESULT modifyColumnStyle(long nColumn, DWORD dwAdd, DWORD dwRemove, DWORD* pdwCurrent=NULL)=0;
      
      };//class IMultyColumn
    };//controls
  };//ui
};//core

#endif
