1.1 --- a/epoc32/include/txtfrmat.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/txtfrmat.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,160 @@
1.4 -txtfrmat.inl
1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +
1.21 +TBool TTabStop::operator!=(const TTabStop& aTabStop)const
1.22 +/** Compares two tab stops for inequality. They are different if the twips
1.23 +position or alignment is different.
1.24 +
1.25 +@param aTabStop The tab stop to compare with the current tab stop
1.26 +@return ETrue if the objects' twips position or alignment differs. EFalse if
1.27 +equal. */
1.28 + {return !(*this==aTabStop);}
1.29 +
1.30 +
1.31 +TBool TParaBorder::operator!=(const TParaBorder& aParaBorder)const
1.32 +/** Compares two paragraph border sides for inequality. Two paragraph border
1.33 +sides are different if any of their data members are different.
1.34 +
1.35 +@param aBorder The paragraph border to compare with the current border.
1.36 +@return ETrue if the two paragraph border sides are different,
1.37 +EFalse if not. */
1.38 + {return !(*this==aParaBorder);}
1.39 +
1.40 +
1.41 +TBool TBullet::operator!=(const TBullet& aBullet)const
1.42 +/** Compares two bullet points for inequality. Two bullet points are unequal if
1.43 +any of their data members are different.
1.44 +
1.45 +@param aBullet The bullet point to compare.
1.46 +@return ETrue if the two bullet points are different, EFalse if not. */
1.47 + {return !(*this==aBullet);}
1.48 +
1.49 +
1.50 +
1.51 +void CParaFormat::RemoveAllTabs()
1.52 +/** Removes all tab stops from the object. */
1.53 + {
1.54 + if (iTabList)
1.55 + {
1.56 + delete iTabList;
1.57 + iTabList = NULL;
1.58 + }
1.59 + }
1.60 +
1.61 +
1.62 +TInt CParaFormat::TabCount()const
1.63 +/** Gets a count of the total number of tab stops in the object's tab list. If
1.64 +the object has no tab list, returns zero.
1.65 +
1.66 +@return The number of tab stops. */
1.67 + {return (iTabList)?iTabList->Count():0;}
1.68 +
1.69 +
1.70 +
1.71 +
1.72 +TParaFormatMask::TParaFormatMask()
1.73 + :iGuard(0)
1.74 +/** The default C++ constructor constructs a paragraph format mask, initialising
1.75 +all bits to zero. */
1.76 + {}
1.77 +
1.78 +
1.79 +void TParaFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
1.80 +/** Sets a single attribute flag in the paragraph format mask.
1.81 +
1.82 +@param aAttribute The attribute flag to set. */
1.83 + {iGuard|=(1<<aAttribute);}
1.84 +
1.85 +
1.86 +
1.87 +void TParaFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
1.88 +/** Clears a single attribute flag in the paragraph format mask.
1.89 +
1.90 +@param aAttribute The attribute flag to clear. */
1.91 + {iGuard&=~(1<<aAttribute);}
1.92 +
1.93 +
1.94 +
1.95 +TBool TParaFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
1.96 +/** Tests whether an attribute flag is set.
1.97 +
1.98 +@param aAttribute The paragraph format attribute to test for.
1.99 +@return ETrue if the flag is set, EFalse if not. */
1.100 + {return (iGuard&(1<<aAttribute));}
1.101 +
1.102 +
1.103 +
1.104 +TBool TParaFormatMask::IsNull()const
1.105 +/** Tests whether the mask is NULL, indicating that no flags have been set.
1.106 +
1.107 +@return ETrue if mask is NULL, EFalse if not NULL. */
1.108 + {return !iGuard;}
1.109 +
1.110 +
1.111 +TBool TParaFormatMask::operator!=(const TParaFormatMask& aMask)const
1.112 +/** Compares two paragraph format masks for inequality.
1.113 +
1.114 +@param aMask The mask to compare.
1.115 +@return ETrue if any flags are different. EFalse if all flags are the same. */
1.116 + {return !(*this==aMask);}
1.117 +
1.118 +
1.119 +
1.120 +
1.121 +TCharFormatMask::TCharFormatMask()
1.122 + :iGuard(0)
1.123 +/** The default C++ constructor constructs a character format mask, initialising
1.124 +all bits to zero. */
1.125 + {}
1.126 +
1.127 +
1.128 +
1.129 +void TCharFormatMask::SetAttrib(TTextFormatAttribute aAttribute)
1.130 +/** Sets a single attribute flag in the character format mask.
1.131 +
1.132 +@param aAttribute The attribute flag to set. */
1.133 + {iGuard|=(1<<((aAttribute-KMaxParaAttributes)-1));}
1.134 +
1.135 +
1.136 +void TCharFormatMask::ClearAttrib(TTextFormatAttribute aAttribute)
1.137 +/** Clears a single attribute flag in the character format mask.
1.138 +
1.139 +@param aAttribute The attribute flag to clear. */
1.140 + {iGuard&=~(1<<((aAttribute-KMaxParaAttributes)-1));}
1.141 +
1.142 +
1.143 +
1.144 +TBool TCharFormatMask::AttribIsSet(TTextFormatAttribute aAttribute)const
1.145 +/** Tests whether an attribute flag is set.
1.146 +
1.147 +@param aAttribute The character format attribute to test for.
1.148 +@return ETrue if the flag is set, EFalse if not. */
1.149 + {return iGuard&(1<<((aAttribute-KMaxParaAttributes)-1));}
1.150 +
1.151 +
1.152 +TBool TCharFormatMask::IsNull()const
1.153 +/** Tests whether the mask is NULL, indicating that no flags have been set.
1.154 +
1.155 +@return ETrue if mask is NULL, EFalse if not NULL. */
1.156 + {return !iGuard;}
1.157 +
1.158 +
1.159 +TBool TCharFormatMask::operator!=(const TCharFormatMask& aMask)const
1.160 +/** Compares two paragraph format masks for inequality.
1.161 +
1.162 +@param aMask The mask to compare.
1.163 +@return ETrue if any flags are different. EFalse if all flags are the same. */
1.164 + {return !(*this==aMask);}