equal
deleted
inserted
replaced
24 #include <txtfrmat.h> |
24 #include <txtfrmat.h> |
25 #include "TmTextDrawExt.h" |
25 #include "TmTextDrawExt.h" |
26 #include <frmtlay.h> |
26 #include <frmtlay.h> |
27 #include "tmreformat.h" |
27 #include "tmreformat.h" |
28 #include "frmUtils.h" |
28 #include "frmUtils.h" |
|
29 #include "OstTraceDefinitions.h" |
|
30 #ifdef OST_TRACE_COMPILER_IN_USE |
|
31 #include "TMLAYOUTTraces.h" |
|
32 #endif |
|
33 |
29 |
34 |
30 #define UNUSED_VAR(a) a = a |
35 #define UNUSED_VAR(a) a = a |
31 |
36 |
32 /** |
37 /** |
33 Construct a TTmFormatParamBase object. Set iWrapWidth, iMaxHeight and iMaxLines to 'infinity' (KMaxTInt), |
38 Construct a TTmFormatParamBase object. Set iWrapWidth, iMaxHeight and iMaxLines to 'infinity' (KMaxTInt), |
1059 @since 7.0 |
1064 @since 7.0 |
1060 */ |
1065 */ |
1061 EXPORT_C TBool CTmTextLayout::GetDisplayedTextL(TInt aLineNumber, TDes& aText, |
1066 EXPORT_C TBool CTmTextLayout::GetDisplayedTextL(TInt aLineNumber, TDes& aText, |
1062 TInt& aNeeded) const |
1067 TInt& aNeeded) const |
1063 { |
1068 { |
|
1069 if (!iSource) |
|
1070 { |
|
1071 OstTrace0( TRACE_FATAL, CTMTEXTLAYOUT_GETDISPLAYEDTEXTL, "ENoSource" ); |
|
1072 } |
1064 __ASSERT_ALWAYS(iSource, TmPanic(ENoSource)); |
1073 __ASSERT_ALWAYS(iSource, TmPanic(ENoSource)); |
1065 RTmGeneralInterpreter interpreter(*iSource, TTmInterpreterParam(*this)); |
1074 RTmGeneralInterpreter interpreter(*iSource, TTmInterpreterParam(*this)); |
1066 CleanupClosePushL(interpreter); |
1075 CleanupClosePushL(interpreter); |
1067 TBool result = interpreter.GetDisplayedTextL(aLineNumber, aText,0, aNeeded); |
1076 TBool result = interpreter.GetDisplayedTextL(aLineNumber, aText,0, aNeeded); |
1068 CleanupStack::PopAndDestroy(); |
1077 CleanupStack::PopAndDestroy(); |