diff -r 000000000000 -r bde4ae8d615e os/textandloc/textrendering/texthandling/inc/TXTFRMAT.INL --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/textandloc/textrendering/texthandling/inc/TXTFRMAT.INL Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,165 @@ +/* +* Copyright (c) 1997-2009 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: +* +*/ + + + +TBool TTabStop::operator!=(const TTabStop& aTabStop)const +/** Compares two tab stops for inequality. They are different if the twips +position or alignment is different. + +@param aTabStop The tab stop to compare with the current tab stop +@return ETrue if the objects' twips position or alignment differs. EFalse if +equal. */ + {return !(*this==aTabStop);} + + +TBool TParaBorder::operator!=(const TParaBorder& aParaBorder)const +/** Compares two paragraph border sides for inequality. Two paragraph border +sides are different if any of their data members are different. + +@param aBorder The paragraph border to compare with the current border. +@return ETrue if the two paragraph border sides are different, +EFalse if not. */ + {return !(*this==aParaBorder);} + + +TBool TBullet::operator!=(const TBullet& aBullet)const +/** Compares two bullet points for inequality. Two bullet points are unequal if +any of their data members are different. + +@param aBullet The bullet point to compare. +@return ETrue if the two bullet points are different, EFalse if not. */ + {return !(*this==aBullet);} + + + +void CParaFormat::RemoveAllTabs() +/** Removes all tab stops from the object. */ + { + if (iTabList) + { + delete iTabList; + iTabList = NULL; + } + } + + +TInt CParaFormat::TabCount()const +/** Gets a count of the total number of tab stops in the object's tab list. If +the object has no tab list, returns zero. + +@return The number of tab stops. */ + {return (iTabList)?iTabList->Count():0;} + + + + +TParaFormatMask::TParaFormatMask() + :iGuard(0) +/** The default C++ constructor constructs a paragraph format mask, initialising +all bits to zero. */ + {} + + +void TParaFormatMask::SetAttrib(TTextFormatAttribute aAttribute) +/** Sets a single attribute flag in the paragraph format mask. + +@param aAttribute The attribute flag to set. */ + {iGuard|=(1<