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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __COECNTSS_H__
17 #define __COECNTSS_H__
19 #include <coemain.h> // class CCoeStatic
21 /** Holds global settings for all CCoeControls.
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.
35 class CCoeControlStaticSettings : public CCoeStatic
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();
50 CCoeControlStaticSettings();
51 ~CCoeControlStaticSettings();
52 static CCoeControlStaticSettings* Self(CCoeEnv* aCoeEnv=NULL);
54 static CCoeControlStaticSettings* NewL();
57 TBool iFocusedByDefault;
58 TBool iOrdinalForAllViews;
60 RArray<TInt> iLogicalToPixelSizes;
63 #endif // __COECNTSS_H__