xsi_griddata.h
Go to the documentation of this file.

    00001 //*****************************************************************************
    00011 //*****************************************************************************
    00012
    00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
    00014 #pragma once
    00015 #endif
    00016
    00017 #ifndef __XSIGRIDDATA_H__
    00018 #define __XSIGRIDDATA_H__
    00019
    00020 #include <xsi_base.h>
    00021 #include <xsi_ppgitem.h>
    00022 #include <xsi_value.h>
    00023 namespace XSI {
    00024 struct CColor ;
    00025 //*****************************************************************************
    00178 //*****************************************************************************
    00179
    00180 class GridWidget ;
    00181
    00182 class SICPPSDKDECL GridData : public CBase
    00183 {
    00184 public:
    00186     GridData();
    00187
    00189     ~GridData();
    00190
    00194     GridData(const CRef& in_ref);
    00195
    00199     GridData(const GridData& in_obj);
    00200
    00205     bool IsA( siClassID in_ClassID) const;
    00206
    00210     siClassID GetClassID() const;
    00211
    00216     GridData& operator=(const GridData& in_obj);
    00217
    00223     GridData& operator=(const CRef& in_ref);
    00224
    00229     CValueArray GetData() const;
    00230
    00237     CStatus PutData( const CValueArray& in_items ) ;
    00238
    00244     CStatus PutColumnCount( LONG in_val );
    00245
    00249     LONG GetColumnCount() const ;
    00250
    00256     CStatus PutRowCount( LONG in_val ) ;
    00257
    00261     LONG GetRowCount() const ;
    00262
    00270     CStatus PutCell(LONG in_Column, LONG in_Row, const CValue& in_CellValue);
    00271
    00280     CStatus PutCell(const CString& in_ColumnLabel, const CString& in_RowLabel, const CValue& in_CellValue);
    00281
    00288     CValue GetCell(LONG in_Column, LONG in_Row) const;
    00289
    00299     CValue GetCell(const CString& in_ColumnLabel, const CString& in_RowLabel) const;
    00305     CStatus PutColumnValues( LONG in_Column, const CValueArray & in_ColumnItems );
    00311     CStatus PutColumnValues( const CString& in_ColumnLabel, const CValueArray & in_ColumnItems );
    00312
    00317     CValueArray GetColumnValues(LONG in_Column ) const ;
    00318
    00323     CValueArray GetColumnValues(const CString& in_ColumnLabel ) const ;
    00324
    00330     CStatus PutRowValues( LONG in_Row, const CValueArray & in_RowItems );
    00331
    00337     CStatus PutRowValues( const CString& in_RowLabel, const CValueArray & in_RowItems );
    00338
    00343     CValueArray GetRowValues(LONG in_Row ) const ;
    00344
    00349     CValueArray GetRowValues(const CString& in_RowLabel ) const ;
    00350
    00359     CStatus PutRowLabel(LONG in_RowIndex, const CString& in_RowLabel );
    00360
    00366     CString GetRowLabel(LONG in_RowIndex) const;
    00367
    00376     CStatus PutColumnLabel(LONG in_ColumnIndex, const CString& in_ColumnLabel);
    00377
    00383     CString GetColumnLabel(LONG in_ColumnIndex) const;
    00384
    00391     CStatus BeginEdit();
    00392
    00398     CStatus EndEdit();
    00399
    00407     CStatus PutColumnType(LONG in_ColumnIndex, siGridWidgetColumnType in_Type );
    00408
    00414     siGridWidgetColumnType GetColumnType( LONG in_ColumnIndex ) const;
    00415
    00424     CStatus PutColumnComboItems(LONG in_ColumnIndex, const CValueArray& in_Items);
    00425
    00431     CValueArray GetColumnComboItems(LONG in_ColumnIndex);
    00432
    00438     GridWidget GetGridWidget() ;
    00439
    00447     CStatus SetRowBackgroundColor( LONG in_Row, const CColor &in_Color );
    00448
    00454     CColor GetRowBackgroundColor(LONG in_Row );
    00455
    00456     private:
    00457     GridData * operator&() const;
    00458     GridData * operator&();
    00459 };
    00460
    00461 };
    00462 #endif // __XSIGRIDDATA_H__