diff -r 0fd27995241b -r 9ac0a0a7da70 javauis/lcdui_akn/lcdui/inc/CMIDTextEditorEdwin.h --- a/javauis/lcdui_akn/lcdui/inc/CMIDTextEditorEdwin.h Tue May 11 16:07:20 2010 +0300 +++ b/javauis/lcdui_akn/lcdui/inc/CMIDTextEditorEdwin.h Tue May 25 12:34:19 2010 +0300 @@ -21,6 +21,7 @@ // INTERNAL INCLUDES #include "CMIDEdwinUtils.h" +#include // EXTERNAL INCLUDES #include @@ -42,7 +43,8 @@ */ NONSHARABLE_CLASS(CMIDTextEditorEdwin) : public CEikEdwin, - public MEikEdwinObserver + public MEikEdwinObserver, + public MMIDScalable { public: // Constructors and destructor @@ -477,6 +479,36 @@ */ const TPtrC Read() const; + /** + * Sets current fullscreen canvas size. + * + * @param Current fullscreen canvas size. + * + * @since S60 5.0 + */ + inline void SetOnScreenCanvasRect(const TRect& aSize); + + /** + * Gets current fullscreen canvas size. + * + * @return Current fullscreen canvas size. + * + * @since S60 5.0 + */ + inline TRect GetOnScreenCanvasRect() const; + + /** + * Sets flag if scaling is on now. + * + * @param Flag if scaling is on now. + * + * @since S60 5.0 + */ + inline void SetScaling(TBool aScaling); + +public: // From MMIDScalable + inline TBool IsScalingOn() const; + protected: // New methods. /** @@ -559,6 +591,10 @@ TAknLayoutId iDirection; // Visible content height used for sending scroll event TBool iVisibleContentHeight; + // Canvas fullscreen size + TRect iOnScreenCanvasRect; + // Flag if scaling is on now. + TBool iIsScalingOn; }; // --------------------------------------------------------------------------- @@ -571,6 +607,26 @@ return (iConstraints & MMIDTextField::EConstraintMask) == aConstraint; } +inline void CMIDTextEditorEdwin::SetOnScreenCanvasRect(const TRect& aRect) +{ + iOnScreenCanvasRect = aRect; +} + +inline TRect CMIDTextEditorEdwin::GetOnScreenCanvasRect() const +{ + return iOnScreenCanvasRect; +} + +inline TBool CMIDTextEditorEdwin::IsScalingOn() const +{ + return iIsScalingOn; +} + +inline void CMIDTextEditorEdwin::SetScaling(TBool aScaling) +{ + iIsScalingOn = aScaling; +} + #endif // CMIDTEXTEDITOREDWIN_H // End of file