notepad/notepad1/LibSrc/NpdEdwinBase.cpp
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
12:38571fd2a704 13:0f07cd1b5772
    30 #include <eikdialg.h>
    30 #include <eikdialg.h>
    31 #include <skinlayout.cdl.h>
    31 #include <skinlayout.cdl.h>
    32 #include <aknlayoutscalable_apps.cdl.h>
    32 #include <aknlayoutscalable_apps.cdl.h>
    33 #include <aknappui.h>
    33 #include <aknappui.h>
    34 #include <NpdLib.rsg>
    34 #include <NpdLib.rsg>
       
    35 #ifdef RD_SCALABLE_UI_V2
       
    36 #include <akntoolbar.h> 
       
    37 #include <eikcolib.h>
       
    38 #endif
    35 
    39 
    36 #include "NpdEdwin.h"
    40 #include "NpdEdwin.h"
    37 #include "NpdRichTextEditor.h"
    41 #include "NpdRichTextEditor.h"
    38 
    42 
    39 #include "NpdLibPanic.h"
    43 #include "NpdLibPanic.h"
   108 	TRect tempMainPane;
   112 	TRect tempMainPane;
   109 	AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane,tempMainPane);
   113 	AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane,tempMainPane);
   110 	TRect mainPane(TPoint(0, 0), tempMainPane.Size());
   114 	TRect mainPane(TPoint(0, 0), tempMainPane.Size());
   111 	mainNotesPane.LayoutRect(mainPane, AknLayoutScalable_Apps::main_notes_pane().LayoutLine());
   115 	mainNotesPane.LayoutRect(mainPane, AknLayoutScalable_Apps::main_notes_pane().LayoutLine());
   112 	lineLayout.LayoutRect(mainNotesPane.Rect(),AknLayoutScalable_Apps::list_notes_pane().LayoutLine());
   116 	lineLayout.LayoutRect(mainNotesPane.Rect(),AknLayoutScalable_Apps::list_notes_pane().LayoutLine());
   113 	TAknLayoutScalableParameterLimits textLimits =AknLayoutScalable_Apps::list_notes_text_pane_ParamLimits();
   117 	TAknLayoutScalableParameterLimits textLimits; 
       
   118 	TBool isShowToolbar = EFalse;
       
   119 #ifdef RD_SCALABLE_UI_V2
       
   120     CEikAppUiFactory* appUiFactory 
       
   121         = static_cast<CEikAppUiFactory*>( CEikonEnv::Static()->AppUiFactory() );
       
   122     CAknToolbar* oldFixedToolbar = appUiFactory->CurrentFixedToolbar();
       
   123     if ( oldFixedToolbar != NULL )
       
   124         {
       
   125         isShowToolbar = oldFixedToolbar->IsShown();
       
   126         }
       
   127 #endif
       
   128     if ( isShowToolbar )
       
   129         {
       
   130         textLimits = AknLayoutScalable_Apps::list_notes_text_pane_ParamLimits(1);
       
   131         }
       
   132     else
       
   133         {
       
   134         textLimits =AknLayoutScalable_Apps::list_notes_text_pane_ParamLimits();
       
   135         }
   114 	RArray<TAknTextComponentLayout> layouts;
   136 	RArray<TAknTextComponentLayout> layouts;
   115 	for (TInt i = 0; i < textLimits.LastRow()+1 ; i++)
   137 	for (TInt i = 0; i < textLimits.LastRow()+1 ; i++)
   116     		{
   138     		{
   117     		TAknWindowComponentLayout paneLayout = AknLayoutScalable_Apps::list_notes_text_pane(i);
   139     		TAknWindowComponentLayout paneLayout = AknLayoutScalable_Apps::list_notes_text_pane(i);
   118     		TAknTextComponentLayout textLayout = AknLayoutScalable_Apps::list_notes_text_pane_t1();
   140     		TAknTextComponentLayout textLayout = AknLayoutScalable_Apps::list_notes_text_pane_t1();
   350         	{
   372         	{
   351 		TAknLayoutRect mainNotesPane;
   373 		TAknLayoutRect mainNotesPane;
   352 		TRect tempMainPane;
   374 		TRect tempMainPane;
   353         	AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane,tempMainPane);
   375         	AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane,tempMainPane);
   354 		TRect mainPane(TPoint(0, 0), tempMainPane.Size());
   376 		TRect mainPane(TPoint(0, 0), tempMainPane.Size());
   355 		TAknWindowLineLayout scrollPane = AknLayoutScalable_Apps::scroll_pane_cp06().LayoutLine();
   377         TAknWindowLineLayout scrollPane = AknLayoutScalable_Apps::scroll_pane_cp05(0).LayoutLine();
   356 		mainNotesPane.LayoutRect(mainPane, AknLayoutScalable_Apps::main_notes_pane().LayoutLine());
   378 		mainNotesPane.LayoutRect(mainPane, AknLayoutScalable_Apps::main_notes_pane().LayoutLine());
   357         	AknLayoutUtils::LayoutVerticalScrollBar(sbFrame, mainNotesPane.Rect(), scrollPane);
   379         	AknLayoutUtils::LayoutVerticalScrollBar(sbFrame, mainNotesPane.Rect(), scrollPane);
   358         	}
   380         	}
   359 	}
   381 	}
   360 // End of File  
   382 // End of File