1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/grdcells.h Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,77 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#if !defined(__GRDCELLS_H__)
1.20 +#define __GRDCELLS_H__
1.21 +
1.22 +#if !defined(__E32STD_H__)
1.23 +#include <e32std.h>
1.24 +#endif
1.25 +#if !defined(__E32BASE_H__)
1.26 +#include <e32base.h>
1.27 +#endif
1.28 +#if !defined(__BACELL_H__)
1.29 +#include <bacell.h>
1.30 +#endif
1.31 +
1.32 +
1.33 +
1.34 +class CGridCellRegion : public CBase
1.35 +/** Defines a selected region.
1.36 +
1.37 +A selected region consists of one or more cell ranges, represented by TRangeRef
1.38 +objects, that exist within a defined boundary. The boundary is itself defined
1.39 +as a cell range.
1.40 +
1.41 +Cell ranges map cell selections, and the class provides the behaviour to manage
1.42 +these selections.
1.43 +
1.44 +@publishedAll
1.45 +@released */
1.46 + {
1.47 +public:
1.48 + IMPORT_C static CGridCellRegion* NewL(const TRangeRef& aBounds);
1.49 + IMPORT_C virtual ~CGridCellRegion();
1.50 + IMPORT_C void AddColL(TInt aCol);
1.51 + IMPORT_C void AddRowL(TInt aRow);
1.52 + IMPORT_C void AddCellRangeL(const TRangeRef& aCellRange);
1.53 + IMPORT_C void SetLastCellRange(const TRangeRef& aCellRange);
1.54 + IMPORT_C void ResizeBounds(const TCellRef& aNewToBounds);
1.55 + IMPORT_C void Reset();
1.56 + IMPORT_C TInt Count() const;
1.57 + IMPORT_C TBool IsCellSelected(const TCellRef &aCell) const;
1.58 + IMPORT_C TBool IsCellSelected(const TCellRef &aCell,TInt aIndex) const;
1.59 + IMPORT_C TBool IsCellSelectedLastIndex(const TCellRef &aCell) const;
1.60 + IMPORT_C TBool IsRowSelected(TInt aRow) const;
1.61 + IMPORT_C TBool IsRowSelected(TInt aRow,TInt aIndex) const;
1.62 + IMPORT_C TBool IsRowSelectedLastIndex(TInt aRow) const;
1.63 + IMPORT_C TBool IsAnyRowSelected() const;
1.64 + IMPORT_C TBool IsColSelected(TInt aCol) const;
1.65 + IMPORT_C TBool IsColSelected(TInt aCol,TInt aIndex) const;
1.66 + IMPORT_C TBool IsColSelectedLastIndex(TInt aCol) const;
1.67 + IMPORT_C TBool IsAnyColSelected() const;
1.68 + IMPORT_C TBool IsRangeSelected(const TRangeRef &aRange) const;
1.69 + IMPORT_C TBool IsRangeSelected(const TRangeRef &aRange,TInt aIndex) const;
1.70 + IMPORT_C TBool IsRangeSelectedLastIndex(const TRangeRef &aRange) const;
1.71 + IMPORT_C TRangeRef operator[](TInt aIndex) const;
1.72 + IMPORT_C const CArrayFix<TRangeRef>* RangeList() const;
1.73 +private:
1.74 + CGridCellRegion(const TRangeRef& aBounds);
1.75 + void ConstructL();
1.76 +private:
1.77 + TRangeRef iBounds;
1.78 + CArrayFix<TRangeRef>* iRangeList;
1.79 + };
1.80 +#endif