javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtlistboxlists.cpp
branchRCL_3
changeset 66 2455ef1f5bbc
child 83 26b2b12093af
equal deleted inserted replaced
65:ae942d28ec0e 66:2455ef1f5bbc
       
     1 /*******************************************************************************
       
     2  * Copyright (c) 2007, 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved. This program and the accompanying materials
       
     4  * are made available under the terms of the Eclipse Public License v1.0
       
     5  * which accompanies this distribution, and is available at
       
     6  * http://www.eclipse.org/legal/epl-v10.html
       
     7  *
       
     8  * Contributors:
       
     9  *     Nokia Corporation - S60 implementation
       
    10  *******************************************************************************/
       
    11 
       
    12 
       
    13 #include <eikclbd.h>
       
    14 #include <barsread.h>
       
    15 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
       
    16 #include <aknlistloadertfx.h>
       
    17 #include <aknlistboxtfxinternal.h>
       
    18 #endif //RD_UI_TRANSITION_EFFECTS_LIST
       
    19 #include "swtlistboxlists.h"
       
    20 
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 
       
    25 //
       
    26 // CSwtListBoxTemplate
       
    27 //
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // CSwtListBoxTemplate<T, U, V>::NewL
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 template<class T, class U, class V>
       
    34 CSwtListBoxTemplate<T, U, V>* CSwtListBoxTemplate<T, U, V>::NewL()
       
    35 {
       
    36     CSwtListBoxTemplate<T, U, V>* list = new(ELeave) CSwtListBoxTemplate<T, U, V>;
       
    37     CleanupStack::PushL(list);
       
    38     list->ConstructL();
       
    39     CleanupStack::Pop();
       
    40     return list;
       
    41 }
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CSwtListBoxTemplate<T, U, V>::~CSwtListBoxTemplate
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 template<class T, class U, class V>
       
    48 CSwtListBoxTemplate<T, U, V>::~CSwtListBoxTemplate()
       
    49 {
       
    50 }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // CSwtListBoxTemplate<T, U, V>::CSwtListBoxTemplate
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 template<class T, class U, class V>
       
    57 CSwtListBoxTemplate<T, U, V>::CSwtListBoxTemplate()
       
    58         :T()
       
    59 {
       
    60 }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // CSwtListBoxTemplate<T, U, V>::ConstructL
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 template<class T, class U, class V>
       
    67 void CSwtListBoxTemplate<T, U, V>::ConstructL()
       
    68 {
       
    69 }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CSwtListBoxTemplate<T, U, V>::SetItemDrawerClippingRect
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 template<class T, class U, class V>
       
    76 void CSwtListBoxTemplate<T, U, V>::SetItemDrawerClippingRect(const TRect& aRect)
       
    77 {
       
    78     U* customItemDrawer = static_cast<U*>(T::ItemDrawer());
       
    79 
       
    80     if (customItemDrawer)
       
    81     {
       
    82         customItemDrawer->SetCustomClippingRect(aRect);
       
    83     }
       
    84 }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // CSwtListBoxTemplate<T, U, V>::SetMargins
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 template<class T, class U, class V>
       
    91 void CSwtListBoxTemplate<T, U, V>::SetMargins(TInt aHorizontal, TInt aVertical)
       
    92 {
       
    93     T::SetHorizontalMargin(aHorizontal);
       
    94     T::SetVerticalMargin(aVertical);
       
    95 }
       
    96 
       
    97 // ---------------------------------------------------------------------------
       
    98 // CSwtListBoxTemplate<T, U, V>::SizeChanged
       
    99 // ---------------------------------------------------------------------------
       
   100 //
       
   101 template<class T, class U, class V>
       
   102 void CSwtListBoxTemplate<T, U, V>::SizeChanged()
       
   103 {
       
   104     T::SizeChanged();
       
   105     TRAP_IGNORE(RectChangedL(ETrue));
       
   106 }
       
   107 
       
   108 // ---------------------------------------------------------------------------
       
   109 // CSwtListBoxTemplate<T, U, V>::PositionChanged
       
   110 // ---------------------------------------------------------------------------
       
   111 //
       
   112 template<class T, class U, class V>
       
   113 void CSwtListBoxTemplate<T, U, V>::PositionChanged()
       
   114 {
       
   115     T::PositionChanged();
       
   116     TRAP_IGNORE(RectChangedL(EFalse));
       
   117 }
       
   118 
       
   119 // ---------------------------------------------------------------------------
       
   120 // CSwtListBoxTemplate<T, U, V>::RectChangedL
       
   121 // ---------------------------------------------------------------------------
       
   122 //
       
   123 template<class T, class U, class V>
       
   124 void CSwtListBoxTemplate<T, U, V>::RectChangedL(TBool aDoHandleSizeChanged)
       
   125 {
       
   126     if (iListObserver && aDoHandleSizeChanged)
       
   127     {
       
   128         iListObserver->HandleSizeChangedL();
       
   129     }
       
   130 
       
   131     TRect rect(ClientRect(T::Rect(), T::Border(), T::ScrollBarFrame(), EFalse));
       
   132     T::SetViewRectFromClientRect(rect);
       
   133     CAknDoubleSpanScrollBar* vBar = static_cast<CAknDoubleSpanScrollBar*>(
       
   134                                         T::ScrollBarFrame()->VerticalScrollBar());
       
   135     if (vBar)
       
   136     {
       
   137         // This will cause the scrollbar to be relocated in the right place
       
   138         vBar->SetFixedLayoutRect(TRect(0, 0, 0, 0));
       
   139     }
       
   140     T::HandleViewRectSizeChangeL();
       
   141 }
       
   142 
       
   143 // ---------------------------------------------------------------------------
       
   144 // CSwtListBoxTemplate<T, U, V>::SetItemHeightL
       
   145 // From CEikListBox
       
   146 // ---------------------------------------------------------------------------
       
   147 //
       
   148 template<class T, class U, class V>
       
   149 void CSwtListBoxTemplate<T, U, V>::SetItemHeightL(TInt aHeight)
       
   150 {
       
   151     T::iItemHeight = aHeight;
       
   152     TRect rect(ClientRect(T::Rect(), T::Border(), T::ScrollBarFrame(), EFalse));
       
   153     T::SetViewRectFromClientRect(rect);
       
   154     T::View()->SetItemHeight(aHeight);
       
   155     CAknDoubleSpanScrollBar* vBar = static_cast<CAknDoubleSpanScrollBar*>(
       
   156                                         T::ScrollBarFrame()->VerticalScrollBar());
       
   157     if (vBar)
       
   158     {
       
   159         vBar->SetFixedLayoutRect(TRect(0, 0, 0, 0));
       
   160     }
       
   161     T::HandleViewRectSizeChangeL();
       
   162 }
       
   163 
       
   164 
       
   165 // ---------------------------------------------------------------------------
       
   166 // CSwtListBoxTemplate<T, U, V>::MopSupplyObject
       
   167 // ---------------------------------------------------------------------------
       
   168 //
       
   169 template<class T, class U, class V>
       
   170 TTypeUid::Ptr CSwtListBoxTemplate<T, U, V>::MopSupplyObject(TTypeUid aId)
       
   171 {
       
   172     return CEikTextListBox::MopSupplyObject(aId);
       
   173 }
       
   174 
       
   175 // ---------------------------------------------------------------------------
       
   176 // CSwtListBoxTemplate<T, U, V>::ClientRect
       
   177 // ---------------------------------------------------------------------------
       
   178 //
       
   179 template<class T, class U, class V>
       
   180 TRect CSwtListBoxTemplate<T, U, V>::ClientRect(TRect aRect, TGulBorder aBorder,
       
   181         CEikScrollBarFrame* aSbFrame, TBool aExcludeScrollBars) const
       
   182 {
       
   183     TRect clientRect(aBorder.InnerRect(aRect));
       
   184 
       
   185     if (aSbFrame && !aExcludeScrollBars)
       
   186     {
       
   187         if (aSbFrame->ScrollBarExists(CEikScrollBar::EHorizontal)
       
   188                 && aSbFrame->ScrollBarVisibility(CEikScrollBar::EHorizontal)
       
   189                 != CEikScrollBarFrame::EOff)
       
   190         {
       
   191             TInt breadth(0);
       
   192             if (iListObserver)
       
   193             {
       
   194                 breadth = iListObserver->Utils().ScrollBarBreadth(
       
   195                               aSbFrame->GetScrollBarHandle(CEikScrollBar::EHorizontal));
       
   196             }
       
   197             else
       
   198             {
       
   199                 breadth = aSbFrame->ScrollBarBreadth(CEikScrollBar::EHorizontal);
       
   200             }
       
   201             clientRect.iBr.iY -= breadth;
       
   202         }
       
   203         if (aSbFrame->ScrollBarExists(CEikScrollBar::EVertical)
       
   204                 && aSbFrame->ScrollBarVisibility(CEikScrollBar::EVertical)
       
   205                 != CEikScrollBarFrame::EOff)
       
   206         {
       
   207             TInt breadth(0);
       
   208             if (iListObserver)
       
   209             {
       
   210                 breadth = iListObserver->Utils().ScrollBarBreadth(
       
   211                               aSbFrame->VerticalScrollBar());
       
   212             }
       
   213             else
       
   214             {
       
   215                 breadth = aSbFrame->ScrollBarBreadth(CEikScrollBar::EVertical);
       
   216             }
       
   217 
       
   218             if (!AknLayoutUtils::LayoutMirrored())
       
   219             {
       
   220                 clientRect.iBr.iX -= breadth;
       
   221             }
       
   222             else
       
   223             {
       
   224                 clientRect.iTl.iX += breadth;
       
   225             }
       
   226         }
       
   227     }
       
   228 
       
   229     return clientRect;
       
   230 }
       
   231 
       
   232 // ---------------------------------------------------------------------------
       
   233 // CSwtListBoxTemplate<T, U, V>::SetListObserver
       
   234 // ---------------------------------------------------------------------------
       
   235 //
       
   236 template<class T, class U, class V>
       
   237 void CSwtListBoxTemplate<T, U, V>::SetListObserver(MSwtListObserver* aListObserver)
       
   238 {
       
   239     iListObserver = aListObserver;
       
   240 }
       
   241 
       
   242 // ---------------------------------------------------------------------------
       
   243 // CSwtListBoxTemplate<T, U, V>::CreateItemDrawerL
       
   244 // ---------------------------------------------------------------------------
       
   245 //
       
   246 template<class T, class U, class V>
       
   247 void CSwtListBoxTemplate<T, U, V>::CreateItemDrawerL()
       
   248 {
       
   249     V* columnData = V::NewL();
       
   250     CleanupStack::PushL(columnData);
       
   251     T::iItemDrawer = new(ELeave) U(T::Model(),
       
   252                                    T::iCoeEnv->NormalFont(), columnData, this);
       
   253     CleanupStack::Pop();
       
   254 }
       
   255 
       
   256 //
       
   257 // CSwtListBoxLists
       
   258 //
       
   259 
       
   260 // ---------------------------------------------------------------------------
       
   261 // CSwtListBoxLists::NewListL
       
   262 // ---------------------------------------------------------------------------
       
   263 //
       
   264 CEikTextListBox* CSwtListBoxLists::NewListL(TInt aListType)
       
   265 {
       
   266     ASSERT(IsListType(aListType));
       
   267     CEikTextListBox* list = NULL;
       
   268     switch (aListType)
       
   269     {
       
   270     case ESwtLbSingle:
       
   271         list = CSwtListBoxSingle::NewL();
       
   272         break;
       
   273     case ESwtLbSingleGraphic:
       
   274         list = CSwtListBoxSingleGraphic::NewL();
       
   275         break;
       
   276     case ESwtLbSingleLarge:
       
   277         list = CSwtListBoxSingleLarge::NewL();
       
   278         break;
       
   279     case ESwtLbSingleHeading:
       
   280         list = CSwtListBoxSingleHeading::NewL();
       
   281         break;
       
   282     case ESwtLbSingleHeadingGraphic:
       
   283         list = CSwtListBoxSingleHeadingGraphic::NewL();
       
   284         break;
       
   285     case ESwtLbDouble:
       
   286         list = CSwtListBoxDouble::NewL();
       
   287         break;
       
   288     case ESwtLbDoubleGraphic:
       
   289         list = CSwtListBoxDoubleGraphic::NewL();
       
   290         break;
       
   291     case ESwtLbDoubleLarge:
       
   292         list = CSwtListBoxDoubleLarge::NewL();
       
   293         break;
       
   294     default:
       
   295         break;
       
   296     }
       
   297     return list;
       
   298 }
       
   299 
       
   300 // ---------------------------------------------------------------------------
       
   301 // CSwtListBoxLists::SetListObserver
       
   302 // ---------------------------------------------------------------------------
       
   303 //
       
   304 void CSwtListBoxLists::SetListObserver(TInt aListType, CEikTextListBox* aList,
       
   305                                        MSwtListObserver* aListObserver)
       
   306 {
       
   307     ASSERT(IsListType(aListType));
       
   308     switch (aListType)
       
   309     {
       
   310     case ESwtLbSingle:
       
   311         STATIC_CAST(CSwtListBoxSingle*, aList)->SetListObserver(aListObserver);
       
   312         break;
       
   313     case ESwtLbSingleGraphic:
       
   314         STATIC_CAST(CSwtListBoxSingleGraphic*, aList)->SetListObserver(aListObserver);
       
   315         break;
       
   316     case ESwtLbSingleLarge:
       
   317         STATIC_CAST(CSwtListBoxSingleLarge*, aList)->SetListObserver(aListObserver);
       
   318         break;
       
   319     case ESwtLbSingleHeading:
       
   320         STATIC_CAST(CSwtListBoxSingleHeading*, aList)->SetListObserver(aListObserver);
       
   321         break;
       
   322     case ESwtLbSingleHeadingGraphic:
       
   323         STATIC_CAST(CSwtListBoxSingleHeadingGraphic*, aList)->SetListObserver(aListObserver);
       
   324         break;
       
   325     case ESwtLbDouble:
       
   326         STATIC_CAST(CSwtListBoxDouble*, aList)->SetListObserver(aListObserver);
       
   327         break;
       
   328     case ESwtLbDoubleGraphic:
       
   329         STATIC_CAST(CSwtListBoxDoubleGraphic*, aList)->SetListObserver(aListObserver);
       
   330         break;
       
   331     case ESwtLbDoubleLarge:
       
   332         STATIC_CAST(CSwtListBoxDoubleLarge*, aList)->SetListObserver(aListObserver);
       
   333         break;
       
   334     default:
       
   335         break;
       
   336     }
       
   337 }
       
   338 
       
   339 // ---------------------------------------------------------------------------
       
   340 // CSwtListBoxLists::Cells
       
   341 // ---------------------------------------------------------------------------
       
   342 //
       
   343 void CSwtListBoxLists::CellsL(
       
   344     TInt aListType,
       
   345     RArray<TInt>& aCellArray)
       
   346 {
       
   347     ASSERT(IsListType(aListType));
       
   348     for (TInt i = 0; (KSwtLbCells[aListType][i] != ECellInvalid)
       
   349             && (i < KMaxCellCount); i++)
       
   350     {
       
   351         aCellArray.AppendL(KSwtLbCells[aListType][i]);
       
   352     }
       
   353 }
       
   354 
       
   355 // ---------------------------------------------------------------------------
       
   356 // CSwtListBoxLists::IsListFormatted
       
   357 // ---------------------------------------------------------------------------
       
   358 //
       
   359 TBool CSwtListBoxLists::IsListFormatted(TInt aListType)
       
   360 {
       
   361     ASSERT(IsListType(aListType));
       
   362     if (aListType > ESwtLbSingleHeadingGraphic)
       
   363     {
       
   364         return ETrue;
       
   365     }
       
   366     else
       
   367     {
       
   368         return EFalse;
       
   369     }
       
   370 }
       
   371 
       
   372 // ---------------------------------------------------------------------------
       
   373 // CSwtListBoxLists::IsListType
       
   374 // ---------------------------------------------------------------------------
       
   375 //
       
   376 TBool CSwtListBoxLists::IsListType(TInt aVal)
       
   377 {
       
   378     return aVal >= 0 && aVal < ESwtLbTypeCount;
       
   379 }
       
   380 
       
   381 
       
   382 // ---------------------------------------------------------------------------
       
   383 // CSwtListBoxLists::SetItemDrawerClippingRect
       
   384 // ---------------------------------------------------------------------------
       
   385 //
       
   386 void CSwtListBoxLists::SetItemDrawerClippingRect(TInt aListType,
       
   387         CEikTextListBox* aList, const TRect& aRect)
       
   388 {
       
   389     ASSERT(IsListType(aListType));
       
   390 
       
   391     switch (aListType)
       
   392     {
       
   393     case ESwtLbSingle:
       
   394         STATIC_CAST(CSwtListBoxSingle*, aList)
       
   395         ->SetItemDrawerClippingRect(aRect);
       
   396         break;
       
   397     case ESwtLbSingleGraphic:
       
   398         STATIC_CAST(CSwtListBoxSingleGraphic*, aList)
       
   399         ->SetItemDrawerClippingRect(aRect);
       
   400         break;
       
   401     case ESwtLbSingleLarge:
       
   402         STATIC_CAST(CSwtListBoxSingleLarge*, aList)
       
   403         ->SetItemDrawerClippingRect(aRect);
       
   404         break;
       
   405     case ESwtLbSingleHeading:
       
   406         STATIC_CAST(CSwtListBoxSingleHeading*, aList)
       
   407         ->SetItemDrawerClippingRect(aRect);
       
   408         break;
       
   409     case ESwtLbSingleHeadingGraphic:
       
   410         STATIC_CAST(CSwtListBoxSingleHeadingGraphic*, aList)
       
   411         ->SetItemDrawerClippingRect(aRect);
       
   412         break;
       
   413     case ESwtLbDouble:
       
   414         STATIC_CAST(CSwtListBoxDouble*, aList)
       
   415         ->SetItemDrawerClippingRect(aRect);
       
   416         break;
       
   417     case ESwtLbDoubleGraphic:
       
   418         STATIC_CAST(CSwtListBoxDoubleGraphic*, aList)
       
   419         ->SetItemDrawerClippingRect(aRect);
       
   420         break;
       
   421     case ESwtLbDoubleLarge:
       
   422         STATIC_CAST(CSwtListBoxDoubleLarge*, aList)
       
   423         ->SetItemDrawerClippingRect(aRect);
       
   424         break;
       
   425     default:
       
   426         break;
       
   427     }
       
   428 }
       
   429 
       
   430 
       
   431 // ---------------------------------------------------------------------------
       
   432 // CSwtListBoxLists::SetMargins
       
   433 // ---------------------------------------------------------------------------
       
   434 //
       
   435 void CSwtListBoxLists::SetMargins(TInt aListType,
       
   436                                   CEikTextListBox* aList, TInt aHorizontal, TInt aVertical)
       
   437 {
       
   438     ASSERT(IsListType(aListType));
       
   439 
       
   440     switch (aListType)
       
   441     {
       
   442     case ESwtLbSingle:
       
   443         STATIC_CAST(CSwtListBoxSingle*, aList)
       
   444         ->SetMargins(aHorizontal, aVertical);
       
   445         break;
       
   446     case ESwtLbSingleGraphic:
       
   447         STATIC_CAST(CSwtListBoxSingleGraphic*, aList)
       
   448         ->SetMargins(aHorizontal, aVertical);
       
   449         break;
       
   450     case ESwtLbSingleLarge:
       
   451         STATIC_CAST(CSwtListBoxSingleLarge*, aList)
       
   452         ->SetMargins(aHorizontal, aVertical);
       
   453         break;
       
   454     case ESwtLbSingleHeading:
       
   455         STATIC_CAST(CSwtListBoxSingleHeading*, aList)
       
   456         ->SetMargins(aHorizontal, aVertical);
       
   457         break;
       
   458     case ESwtLbSingleHeadingGraphic:
       
   459         STATIC_CAST(CSwtListBoxSingleHeadingGraphic*, aList)
       
   460         ->SetMargins(aHorizontal, aVertical);
       
   461         break;
       
   462     case ESwtLbDouble:
       
   463         STATIC_CAST(CSwtListBoxDouble*, aList)
       
   464         ->SetMargins(aHorizontal, aVertical);
       
   465         break;
       
   466     case ESwtLbDoubleGraphic:
       
   467         STATIC_CAST(CSwtListBoxDoubleGraphic*, aList)
       
   468         ->SetMargins(aHorizontal, aVertical);
       
   469         break;
       
   470     case ESwtLbDoubleLarge:
       
   471         STATIC_CAST(CSwtListBoxDoubleLarge*, aList)
       
   472         ->SetMargins(aHorizontal, aVertical);
       
   473         break;
       
   474     default:
       
   475         break;
       
   476     }
       
   477 }
       
   478 
       
   479 // ---------------------------------------------------------------------------
       
   480 // CSwtListBoxLists::EnableStretching
       
   481 // ---------------------------------------------------------------------------
       
   482 //
       
   483 void CSwtListBoxLists::EnableStretching(TInt aListType, CEikTextListBox* aList,
       
   484                                         TBool aEnabled)
       
   485 {
       
   486     ASSERT(IsListType(aListType));
       
   487 
       
   488     switch (aListType)
       
   489     {
       
   490     case ESwtLbDouble:
       
   491         STATIC_CAST(CSwtListBoxDouble*, aList)
       
   492         ->EnableStretching(aEnabled);
       
   493         break;
       
   494     case ESwtLbDoubleGraphic:
       
   495         STATIC_CAST(CSwtListBoxDoubleGraphic*, aList)
       
   496         ->EnableStretching(aEnabled);
       
   497         break;
       
   498     case ESwtLbDoubleLarge:
       
   499         STATIC_CAST(CSwtListBoxDoubleLarge*, aList)
       
   500         ->EnableStretching(aEnabled);
       
   501         break;
       
   502     default:
       
   503         // Other list types are not supported
       
   504         break;
       
   505     }
       
   506 }
       
   507 
       
   508 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   509 // ---------------------------------------------------------------------------
       
   510 // CSwtListBoxLists::EnableFocusHighlight
       
   511 // ---------------------------------------------------------------------------
       
   512 //
       
   513 void CSwtListBoxLists::EnableFocusHighlight(CListItemDrawer* aItemDrawer,
       
   514         TBool aEnable)
       
   515 {
       
   516     if (aItemDrawer)
       
   517     {
       
   518         TInt disabledHighlight =
       
   519             aItemDrawer->Flags() & CListItemDrawer::EDisableHighlight;
       
   520 
       
   521         if (aEnable && disabledHighlight)
       
   522         {
       
   523             aItemDrawer->ClearFlags(CListItemDrawer::EDisableHighlight);
       
   524         }
       
   525         else if (!aEnable && !disabledHighlight)
       
   526         {
       
   527             aItemDrawer->SetFlags(CListItemDrawer::EDisableHighlight);
       
   528         }
       
   529     }
       
   530 }
       
   531 #endif //RD_JAVA_S60_RELEASE_9_2
       
   532 
       
   533 // The compiler does not automatically instantiate templates defined in other
       
   534 // files. Because of this, code written will often produce undefined symbol
       
   535 // errors when compiled with the compiler. You need to tell the compiler which
       
   536 // template instances you want, by explicitly instantiating them in the file
       
   537 // where they are defined.
       
   538 template class CSwtListBoxTemplate <CAknSingleStyleListBox,
       
   539 CSwtColumnListBoxItemDrawer, CColumnListBoxData>;
       
   540 template class CSwtListBoxTemplate <CAknSingleGraphicStyleListBox,
       
   541 CSwtColumnListBoxItemDrawer, CColumnListBoxData>;
       
   542 template class CSwtListBoxTemplate <CAknSingleLargeStyleListBox,
       
   543 CSwtColumnListBoxItemDrawer, CColumnListBoxData>;
       
   544 template class CSwtListBoxTemplate <CAknSingleHeadingStyleListBox,
       
   545 CSwtSingleHeadingStyleListBoxItemDrawer,CColumnListBoxData>;
       
   546 template class CSwtListBoxTemplate <CAknSingleGraphicHeadingStyleListBox,
       
   547 CSwtSingleHeadingStyleListBoxItemDrawer,CColumnListBoxData>;
       
   548 template class CSwtListBoxTemplate <CAknDoubleStyleListBox,
       
   549 CSwtFormattedCellListBoxItemDrawer, CFormattedCellListBoxData>;
       
   550 template class CSwtListBoxTemplate <CAknDoubleGraphicStyleListBox,
       
   551 CSwtFormattedCellListBoxItemDrawer, CFormattedCellListBoxData>;
       
   552 template class CSwtListBoxTemplate <CAknDoubleLargeStyleListBox,
       
   553 CSwtDoubleLargeStyleItemDrawer, CFormattedCellListBoxData>;