|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <BrCtlSampleAppLayoutObserver.h>
Public Member Functions | |
| ~CBrCtlSampleAppLayoutObserver () | |
| void | UpdateBrowserVScrollBarL (TInt aDocumentHeight, TInt aDisplayHeight, TInt aDisplayPosY) |
| void | UpdateBrowserHScrollBarL (TInt aDocumentWidth, TInt aDisplayWidth, TInt aDisplayPosX) |
| void | NotifyLayoutChange (TBrCtlLayout aNewLayout) |
| void | UpdateTitleL (const TDesC &aTitle) |
Static Public Member Functions | |
| static CBrCtlSampleAppLayoutObserver * | NewL (CBrCtlSampleAppContainer *aContainer) |
Private Member Functions | |
| void | ConstructL (CBrCtlSampleAppContainer *aContainer) |
Private Attributes | |
| CBrCtlSampleAppContainer * | iContainer |
Definition at line 33 of file BrCtlSampleAppLayoutObserver.h.
|
|
Destructor. Definition at line 110 of file BrCtlSampleAppLayoutObserver.cpp.
|
|
|
Two-phased constructor. Definition at line 119 of file BrCtlSampleAppLayoutObserver.cpp. 00120 { 00121 CBrCtlSampleAppLayoutObserver* self = new(ELeave)CBrCtlSampleAppLayoutObserver(); 00122 CleanupStack::PushL(self); 00123 self->ConstructL(aContainer); 00124 CleanupStack::Pop(); 00125 return self; 00126 }
|
|
||||||||||||||||
|
Update the position of vertical scrollbar.
Definition at line 26 of file BrCtlSampleAppLayoutObserver.cpp. References iContainer, CBrCtlSampleAppContainer::SetPoint(), and CBrCtlSampleAppContainer::SetText(). 00029 { 00030 // Here we are creating a text string that will be displayed on the screen 00031 // But if you were implementing this method, you most likely would be implementing 00032 // your own scroll bars here. 00033 TBuf16<256> tgt; 00034 TPoint point(0, 220); 00035 00036 _LIT(KUpdateScrollbar, "Doc Height=%d, Dis Height=%d, Dis Pos=%d"); 00037 00038 tgt.AppendFormat(KUpdateScrollbar, aDocumentHeight, aDisplayHeight, aDisplayPosY); 00039 00040 iContainer->SetPoint(point); 00041 iContainer->SetText(tgt); 00042 00043 iContainer->DrawNow(); 00044 }
|
|
||||||||||||||||
|
Update the position of horizontal scrollbar.
Definition at line 50 of file BrCtlSampleAppLayoutObserver.cpp. References iContainer, CBrCtlSampleAppContainer::SetPoint(), and CBrCtlSampleAppContainer::SetText(). 00053 { 00054 // Here we are creating a text string that will be displayed on the screen 00055 // But if you were implementing this method, you most likely would be implementing 00056 // your own scroll bars here. 00057 TBuf16<256> tgt; 00058 TPoint point(0, 130); 00059 00060 _LIT(KUpdateScrollbar, "Doc Width=%d, Dis Width=%d, Dis Pos=%d"); 00061 00062 tgt.AppendFormat(KUpdateScrollbar, aDocumentWidth, aDisplayWidth, aDisplayPosX); 00063 00064 iContainer->SetPoint(point); 00065 iContainer->SetText(tgt); 00066 00067 iContainer->DrawNow(); 00068 }
|
|
|
Inform the layout of the page: right to left or left to right. Useful when the application draws the scrollbar itself.
Definition at line 74 of file BrCtlSampleAppLayoutObserver.cpp. References iContainer, CBrCtlSampleAppContainer::SetPoint(), and CBrCtlSampleAppContainer::SetText(). 00075 { 00076 TBuf16<256> tgt; 00077 TPoint point(0, 120); 00078 00079 _LIT(KUpdateLayout, "New layout is %d"); 00080 00081 tgt.AppendFormat(KUpdateLayout, aNewLayout); 00082 00083 iContainer->SetPoint(point); 00084 iContainer->SetText(tgt); 00085 00086 iContainer->DrawNow(); 00087 }
|
|
|
Update the title of the page in history view
Definition at line 93 of file BrCtlSampleAppLayoutObserver.cpp.
|
|
|
By default Symbian 2nd phase constructor is private. Definition at line 101 of file BrCtlSampleAppLayoutObserver.cpp. References iContainer. 00102 { 00103 iContainer = aContainer; 00104 }
|
|
© Nokia 2006 |