lafagnosticuifoundation/cone/inc/COECNTSS.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __COECNTSS_H__
       
    17 #define __COECNTSS_H__
       
    18 
       
    19 #include <coemain.h>	// class CCoeStatic
       
    20 
       
    21 /** Holds global settings for all CCoeControls.
       
    22 
       
    23 This class is not designed for general use. It is intended to be used
       
    24 to override certain settings on a system-wide basis at startup. At present, the
       
    25 only settings it contains are 
       
    26 1. To set whether or not CCoeControls take focus on
       
    27 creation. By default, a CCoeControl does take focus - this class can be used to
       
    28 change that. To use it, CCoeControlStaticSettings::SetFocusedByDefaultL() should
       
    29 be called from a "start-up" DLL to set the default once. Changing the default on
       
    30 the fly will almost certainly cause instability.
       
    31 2. To set whether the CC
       
    32 @publishedPartner This class should only be used by developers of User Interfaces for Symbian OS phones.
       
    33 @released
       
    34 */
       
    35 class CCoeControlStaticSettings : public CCoeStatic
       
    36 	{
       
    37 public:
       
    38 	IMPORT_C static void SetFocusedByDefaultL(TBool aFocusedByDefault);
       
    39 	IMPORT_C static TBool FocusedByDefault();
       
    40 	IMPORT_C static TBool FocusedByDefault(CCoeEnv* aCoeEnv);
       
    41 	IMPORT_C static void SetParentByDefaultL(TBool aParentByDefault);	// deprecated
       
    42 	IMPORT_C static TBool ParentByDefault();	// deprecated
       
    43 	IMPORT_C static const TDesC& SystemTypeface();
       
    44 	IMPORT_C static void SetSystemTypefaceL(const TDesC& aTypeface);		
       
    45 	IMPORT_C static void GetLogicalToPixelFontSizesL(RArray<TInt>& aLogicalToPixelSizes);
       
    46 	IMPORT_C static void SetLogicalToPixelFontSizesL(const RArray<TInt>& aLogicalToPixelSizes);
       
    47 	IMPORT_C static void SetOrdinalForAllViewsL(TBool aOrdinalForAllViews);
       
    48 	IMPORT_C static TBool OrdinalForAllViews();
       
    49 private:
       
    50 	CCoeControlStaticSettings();
       
    51 	~CCoeControlStaticSettings();
       
    52 	static CCoeControlStaticSettings* Self(CCoeEnv* aCoeEnv=NULL);
       
    53 
       
    54     static CCoeControlStaticSettings* NewL();
       
    55 	void ConstructL();
       
    56 private:
       
    57 	TBool iFocusedByDefault;
       
    58 	TBool iOrdinalForAllViews;
       
    59 	TTypeface iTypeface;
       
    60 	RArray<TInt> iLogicalToPixelSizes;
       
    61 	};
       
    62 
       
    63 #endif	// __COECNTSS_H__