williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __COECNTSS_H__ williamr@2: #define __COECNTSS_H__ williamr@2: williamr@2: #include // class CCoeStatic williamr@2: williamr@2: /** Holds global settings for all CCoeControls. williamr@2: williamr@2: This class is not designed for general use. It is intended to be used williamr@2: to override certain settings on a system-wide basis at startup. At present, the williamr@2: only settings it contains are williamr@2: 1. To set whether or not CCoeControls take focus on williamr@2: creation. By default, a CCoeControl does take focus - this class can be used to williamr@2: change that. To use it, CCoeControlStaticSettings::SetFocusedByDefaultL() should williamr@2: be called from a "start-up" DLL to set the default once. Changing the default on williamr@2: the fly will almost certainly cause instability. williamr@2: 2. To set whether the CC williamr@2: @publishedPartner This class should only be used by developers of User Interfaces for Symbian OS phones. williamr@2: @released williamr@2: */ williamr@2: class CCoeControlStaticSettings : public CCoeStatic williamr@2: { williamr@2: public: williamr@2: IMPORT_C static void SetFocusedByDefaultL(TBool aFocusedByDefault); williamr@2: IMPORT_C static TBool FocusedByDefault(); williamr@2: IMPORT_C static TBool FocusedByDefault(CCoeEnv* aCoeEnv); williamr@2: IMPORT_C static void SetParentByDefaultL(TBool aParentByDefault); // deprecated williamr@2: IMPORT_C static TBool ParentByDefault(); // deprecated williamr@2: IMPORT_C static const TDesC& SystemTypeface(); williamr@2: IMPORT_C static void SetSystemTypefaceL(const TDesC& aTypeface); williamr@2: IMPORT_C static void GetLogicalToPixelFontSizesL(RArray& aLogicalToPixelSizes); williamr@2: IMPORT_C static void SetLogicalToPixelFontSizesL(const RArray& aLogicalToPixelSizes); williamr@2: IMPORT_C static void SetOrdinalForAllViewsL(TBool aOrdinalForAllViews); williamr@2: IMPORT_C static TBool OrdinalForAllViews(); williamr@2: private: williamr@2: CCoeControlStaticSettings(); williamr@2: ~CCoeControlStaticSettings(); williamr@2: static CCoeControlStaticSettings* Self(CCoeEnv* aCoeEnv=NULL); williamr@2: williamr@2: static CCoeControlStaticSettings* NewL(); williamr@2: void ConstructL(); williamr@2: private: williamr@2: TBool iFocusedByDefault; williamr@2: TBool iOrdinalForAllViews; williamr@2: TTypeface iTypeface; williamr@2: RArray iLogicalToPixelSizes; williamr@2: }; williamr@2: williamr@2: #endif // __COECNTSS_H__