diff -r 000000000000 -r 2f259fa3e83a uifw/uiklaf/src/LAFFNLAB.CPP --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/uiklaf/src/LAFFNLAB.CPP Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,48 @@ +/* +* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#include +#include + +#include "LAFSTD.H" +#include "LAFFNLAB.H" +#include "lafcommn.h" + +// +// Class LafFileNameLabel +// + +/** + * Gets the default border for the matched control in aBorder. Called from the constructor of the matched control. + */ +EXPORT_C void LafFileNameLabel::GetDefaultBorder(TGulBorder& aBorder) + { + aBorder=TGulBorder(TGulBorder::ESingleBlack); + } + +/** + * Gets the set of border colors for the matched control in aBorderColors. The RGB values of the colors obtained + * may depend on the the display mode, the environment color list and the instance of the + * matched control aMatchedControl. Called by the matched control from its Draw() method and passed on to the + * Draw() method of TGulBorder. + */ +EXPORT_C void LafFileNameLabel::GetBorderColors(TGulBorder::TColors& aBorderColors, const MLafEnv& aLafEnv, const CCoeControl& aMatchedControl) + { + LafCommonUtils::GetRgbDerivedBorderColors( aBorderColors, + EColorControlSurroundBackground, aLafEnv,aMatchedControl ); + }