equal
deleted
inserted
replaced
21 |
21 |
22 #include <gdi.h> |
22 #include <gdi.h> |
23 #include "TXTFRMAT.H" |
23 #include "TXTFRMAT.H" |
24 |
24 |
25 #include "TXTSTD.H" |
25 #include "TXTSTD.H" |
|
26 #include "OstTraceDefinitions.h" |
|
27 #ifdef OST_TRACE_COMPILER_IN_USE |
|
28 #include "TXTFRMATTraces.h" |
|
29 #endif |
|
30 |
26 |
31 |
27 |
32 |
28 const TInt KParaDefaultLanguage=0; |
33 const TInt KParaDefaultLanguage=0; |
29 const TInt KParaDefaultLeftMargin=0; |
34 const TInt KParaDefaultLeftMargin=0; |
30 const TInt KParaDefaultRightMargin=0; |
35 const TInt KParaDefaultRightMargin=0; |
645 @param aTabIndex The offset of the tab stop in the tab list. Must be less |
650 @param aTabIndex The offset of the tab stop in the tab list. Must be less |
646 than the total number of tab stops, or a panic occurs. To find the total number |
651 than the total number of tab stops, or a panic occurs. To find the total number |
647 of tab stops, use TabCount(). |
652 of tab stops, use TabCount(). |
648 @return The tab stop located at the specified index. */ |
653 @return The tab stop located at the specified index. */ |
649 { |
654 { |
|
655 if (aTabIndex>=TabCount()) |
|
656 { |
|
657 OstTrace0( TRACE_FATAL, CPARAFORMAT_TABSTOP, "ETabNotFound" ); |
|
658 } |
650 __ASSERT_ALWAYS(aTabIndex<TabCount(),Panic(ETabNotFound)); |
659 __ASSERT_ALWAYS(aTabIndex<TabCount(),Panic(ETabNotFound)); |
651 |
660 |
652 return (iTabList) |
661 return (iTabList) |
653 ? TTabStop((*iTabList)[aTabIndex]) |
662 ? TTabStop((*iTabList)[aTabIndex]) |
654 : TTabStop(); |
663 : TTabStop(); |