uifw/EikStd/dlgsrc/EIKDLIB.CPP
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 1997-1999 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "EIKDLIB.H"
       
    20 #include <eikenv.h>
       
    21 #include <eikpanic.h>
       
    22 #include <eikon.hrh>
       
    23 
       
    24 // Static DLL functions
       
    25 GLDEF_C void Panic(TEikPanic aPanic)
       
    26     {
       
    27     _LIT(KPanicCat,"EIKDLG");
       
    28     User::Panic(KPanicCat,aPanic);
       
    29     }
       
    30 
       
    31 ///////////////////////////////////////////////////////////////////////////////////////
       
    32 //
       
    33 // CEikDlgLibrary
       
    34 //
       
    35 ///////////////////////////////////////////////////////////////////////////////////////
       
    36 CEikDlgLibrary::CEikDlgLibrary()
       
    37     {
       
    38     }
       
    39 
       
    40 ///////////////////////////////////////////////////////////////////////////////////////
       
    41 //
       
    42 // ResourceFile
       
    43 //
       
    44 ///////////////////////////////////////////////////////////////////////////////////////
       
    45 EXPORT_C TFileName CEikDlgLibrary::ResourceFile()
       
    46     {
       
    47     _LIT(KResFileName,"z:\\resource\\eikdlg.rsc");
       
    48     return KResFileName();
       
    49     }
       
    50 
       
    51 ///////////////////////////////////////////////////////////////////////////////////////
       
    52 //
       
    53 // ControlFactory
       
    54 //
       
    55 ///////////////////////////////////////////////////////////////////////////////////////
       
    56 EXPORT_C TCreateByTypeFunction  CEikDlgLibrary::ControlFactory()
       
    57     {
       
    58     return CreateByTypeL;
       
    59     }
       
    60 
       
    61 ///////////////////////////////////////////////////////////////////////////////////////
       
    62 //
       
    63 // CreateByTypeL
       
    64 //
       
    65 ///////////////////////////////////////////////////////////////////////////////////////
       
    66 SEikControlInfo CEikDlgLibrary::CreateByTypeL(TInt /*aControlType*/)
       
    67     {
       
    68     SEikControlInfo controlInfo;
       
    69     controlInfo.iControl = NULL;
       
    70     controlInfo.iTrailerTextId = 0;
       
    71     controlInfo.iFlags = 0;
       
    72 /*
       
    73     if(aControlType == EEikCtDialogToolBar)
       
    74         {
       
    75         controlInfo.iControl = new(ELeave) CEikDialogToolBar;
       
    76         controlInfo.iFlags = EEikControlIsNonFocusing;
       
    77         }
       
    78 */
       
    79     return controlInfo;
       
    80     }
       
    81 
       
    82 ///////////////////////////////////////////////////////////////////////////////////////
       
    83 // END OF FILE
       
    84 ///////////////////////////////////////////////////////////////////////////////////////