svgtviewer/SvgtViewerPlugin/AppSrc/SvgtViewerAppView.cpp
branchRCL_3
changeset 20 5fd161fa28b6
parent 0 632761c941a7
equal deleted inserted replaced
17:e52958d06c29 20:5fd161fa28b6
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Application viewer for SVGT Viewer App.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "SvgtViewerAppView.h"
       
    21 #include <AknUtils.h>
       
    22 
       
    23 void CSvgtViewerAppView::ConstructL(const TRect& aRect)
       
    24     {
       
    25     CreateWindowL();
       
    26 
       
    27     SetRect(aRect);
       
    28     ActivateL();
       
    29     }
       
    30 
       
    31 CSvgtViewerAppView::~CSvgtViewerAppView()
       
    32     {
       
    33     }
       
    34     
       
    35 TInt CSvgtViewerAppView::CountComponentControls() const
       
    36 	{
       
    37 	return 0;
       
    38 	}
       
    39 
       
    40 CCoeControl* CSvgtViewerAppView::ComponentControl(TInt /* aIndex */) const
       
    41 	{
       
    42     return NULL;
       
    43 	}
       
    44 
       
    45 void CSvgtViewerAppView::Draw(const TRect& /* aRect */) const
       
    46 	{
       
    47 	CWindowGc& gc = SystemGc();
       
    48 	gc.Clear();
       
    49 	}
       
    50 
       
    51 void CSvgtViewerAppView::HandleResourceChange (TInt /* aType */)
       
    52     {
       
    53     TRect rect;
       
    54     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, rect );
       
    55     SetRect( rect );
       
    56     }
       
    57 
       
    58 //End of file
       
    59