equal
deleted
inserted
replaced
37 // --------------------------------------------------------- |
37 // --------------------------------------------------------- |
38 // |
38 // |
39 inline const TPtrC CCalcAppEnv::EditorOperator( |
39 inline const TPtrC CCalcAppEnv::EditorOperator( |
40 const TCalcEditLine::TCalcOperatorType aType ) const |
40 const TCalcEditLine::TCalcOperatorType aType ) const |
41 { |
41 { |
42 //'r_calc_editor_operator_array' is operator array for Editor Operator. |
42 if ( ( aType == TCalcEditLine::ECalcMultiply || |
43 if ( ( aType == TCalcEditLine::ECalcDivide ) && |
43 aType == TCalcEditLine::ECalcDivide ) && |
44 AknLayoutUtils::PenEnabled() ) |
44 AknLayoutUtils::PenEnabled() ) |
45 { |
45 { |
46 //show operator '/' instead of division operator |
|
47 //division move 6 is '/' in Editor Operator array |
|
48 return ( *iEditorOperArray )[( TInt ) aType + 6]; |
46 return ( *iEditorOperArray )[( TInt ) aType + 6]; |
49 } |
47 } |
50 return ( *iEditorOperArray )[(TInt) aType]; |
48 return ( *iEditorOperArray )[(TInt) aType]; |
51 } |
49 } |
52 |
50 |
57 // --------------------------------------------------------- |
55 // --------------------------------------------------------- |
58 // |
56 // |
59 inline const TPtrC CCalcAppEnv::OutSheetOperator( |
57 inline const TPtrC CCalcAppEnv::OutSheetOperator( |
60 const TCalcEditLine::TCalcOperatorType aType ) const |
58 const TCalcEditLine::TCalcOperatorType aType ) const |
61 { |
59 { |
62 //'r_calc_outsheet_operator_array' is operator array for OutSheet Operator. |
60 if ( ( aType == TCalcEditLine::ECalcMultiply || |
63 if ( ( aType == TCalcEditLine::ECalcDivide ) && |
61 aType == TCalcEditLine::ECalcDivide ) && |
64 AknLayoutUtils::PenEnabled() ) |
62 AknLayoutUtils::PenEnabled() ) |
65 { |
63 { |
66 //show operator '/' instead of division operator |
|
67 //division move 6 is '/' in OutSheet Operator array |
|
68 return (*iOutSheetOperArray)[( TInt ) aType + 6]; |
64 return (*iOutSheetOperArray)[( TInt ) aType + 6]; |
69 } |
65 } |
70 return (*iOutSheetOperArray)[( TInt ) aType]; |
66 return (*iOutSheetOperArray)[( TInt ) aType]; |
71 } |
67 } |
72 |
68 |