CMsgBaseControl Class Reference
class CMsgBaseControl : public CEikBorderedControl
|
Defines a base class for message editor/viewer controls. All header and body controls must be inherited from this class.
Inherited Functions
|
|
CAknControl::CAknControl()
|
|
CAknControl::~CAknControl()
|
|
CBase::CBase()
|
|
CBase::Delete(CBase *)
|
|
CBase::Extension_(TUint,TAny *&,TAny *)
|
|
CBase::operator new(TUint)
|
|
CBase::operator new(TUint,TAny *)
|
|
CBase::operator new(TUint,TLeave)
|
|
CBase::operator new(TUint,TLeave,TUint)
|
|
CBase::operator new(TUint,TUint)
|
|
CBase::~CBase()
|
|
CCoeControl::AccumulatedZoom()const
|
|
CCoeControl::ActivateGc()const
|
|
CCoeControl::ActivateL()
|
|
CCoeControl::BackedUpWindow()const
|
|
CCoeControl::Background()const
|
|
CCoeControl::CCoeControl()
|
|
CCoeControl::CCoeControl(CCoeEnv *)
|
|
CCoeControl::CCoeControl(const CCoeControl &)
|
|
CCoeControl::CapturesPointer()const
|
|
CCoeControl::ClaimPointerGrab(TBool)
|
|
CCoeControl::ClaimPointerGrab(TInt,TBool)
|
|
CCoeControl::CloseWindow()
|
|
CCoeControl::ComponentArrayExists()const
|
|
CCoeControl::Components()
|
|
CCoeControl::Components()const
|
|
CCoeControl::ConstructFromResourceL(TResourceReader &)
|
|
CCoeControl::ControlContext()const
|
|
CCoeControl::ControlEnv()const
|
|
CCoeControl::CopyControlContextFrom(const CCoeControl *)
|
|
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
|
|
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
|
|
CCoeControl::CreateWindowL()
|
|
CCoeControl::CreateWindowL(RWindowGroup *)
|
|
CCoeControl::CreateWindowL(RWindowTreeNode &)
|
|
CCoeControl::CreateWindowL(const CCoeControl *)
|
|
CCoeControl::CustomGc()const
|
|
CCoeControl::DeactivateGc()const
|
|
CCoeControl::DrawBackground(const TRect &)const
|
|
CCoeControl::DrawDeferred()const
|
|
CCoeControl::DrawForeground(const TRect &)const
|
|
CCoeControl::DrawNow()const
|
|
CCoeControl::DrawNow(const TRect &)const
|
|
CCoeControl::DrawableWindow()const
|
|
CCoeControl::EnableDragEvents()
|
|
CCoeControl::EnableReportControlStateChange(TBool)
|
|
CCoeControl::EnableWindowTransparency()
|
|
CCoeControl::FindBackground()const
|
|
CCoeControl::FindFontProvider()const
|
|
CCoeControl::GetColor(TInt,TRgb &)const
|
|
CCoeControl::GetGc()const
|
|
CCoeControl::GetHelpContext(TCoeHelpContext &)const
|
|
CCoeControl::GrabbingComponent()const
|
|
CCoeControl::GrabbingComponent(TInt)const
|
|
CCoeControl::HandleComponentControlsResourceChange(TInt)
|
|
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
|
|
CCoeControl::HandlePointerBufferReadyL()
|
|
CCoeControl::HandleRedrawEvent(const TRect &)const
|
|
CCoeControl::HitTest()const
|
|
CCoeControl::IgnoreEventsUntilNextPointerUp()
|
|
CCoeControl::Index(const CCoeControl *)const
|
|
CCoeControl::InitComponentArrayL()
|
|
CCoeControl::InputCapabilities()const
|
|
CCoeControl::IsActivated()const
|
|
CCoeControl::IsBackedUp()const
|
|
CCoeControl::IsBeingDestroyed()const
|
|
CCoeControl::IsBlank()const
|
|
CCoeControl::IsDimmed()const
|
|
CCoeControl::IsFocused()const
|
|
CCoeControl::IsNonFocusing()const
|
|
CCoeControl::IsReadyToDraw()const
|
|
CCoeControl::IsVisible()const
|
|
CCoeControl::LayoutManager()const
|
|
CCoeControl::MakeVisible(TBool)
|
|
CCoeControl::MaximumWidth()const
|
|
CCoeControl::MinimumSize()
|
|
CCoeControl::MopSupplyObject(TTypeUid)
|
|
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
|
|
CCoeControl::Observer()const
|
|
CCoeControl::OfferKeyEventL(const TKeyEvent &,TEventCode)
|
|
CCoeControl::OverrideColorL(TInt,TRgb)
|
|
CCoeControl::OwnsWindow()const
|
|
CCoeControl::Parent()
|
|
CCoeControl::Parent()const
|
|
CCoeControl::Position()const
|
|
CCoeControl::PositionChanged()
|
|
CCoeControl::PositionRelativeToScreen()const
|
|
CCoeControl::PrepareForFocusGainL()
|
|
CCoeControl::PrepareForFocusLossL()
|
|
CCoeControl::ProcessPointerBufferReadyL()
|
|
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
|
|
CCoeControl::Rect()const
|
|
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
|
|
CCoeControl::RecursivelyMergedInputCapabilities()const
|
|
CCoeControl::RefetchPixelMappingL()
|
|
CCoeControl::RemoveFromParent()
|
|
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
|
|
CCoeControl::RequestRelayout(const CCoeControl *)
|
|
CCoeControl::ResetGc()const
|
|
CCoeControl::ScreenFont(const TCoeFont &)const
|
|
CCoeControl::SetAllowStrayPointers()
|
|
CCoeControl::SetBackground(const MCoeControlBackground *)
|
|
CCoeControl::SetBlank()
|
|
CCoeControl::SetCanDrawOutsideRect()
|
|
CCoeControl::SetComponentsToInheritVisibility(TBool)
|
|
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
|
|
CCoeControl::SetContainerWindowL(RWindow &)
|
|
CCoeControl::SetContainerWindowL(const CCoeControl &)
|
|
CCoeControl::SetControlContext(MCoeControlContext *)
|
|
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
|
|
CCoeControl::SetCustomGc(CWindowGc *)
|
|
CCoeControl::SetDimmed(TBool)
|
|
CCoeControl::SetExtent(const TPoint &,const TSize &)
|
|
CCoeControl::SetExtentToWholeScreen()
|
|
CCoeControl::SetFocus(TBool,TDrawNow)
|
|
CCoeControl::SetFocusing(TBool)
|
|
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
|
|
CCoeControl::SetGc(CWindowGc *)const
|
|
CCoeControl::SetGloballyCapturing(TBool)
|
|
CCoeControl::SetHitTest(const MCoeControlHitTest *)
|
|
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
|
|
CCoeControl::SetMaximumWidth(TInt)
|
|
CCoeControl::SetMopParent(MObjectProvider *)
|
|
CCoeControl::SetNeighbor(CCoeControl *)
|
|
CCoeControl::SetNonFocusing()
|
|
CCoeControl::SetObserver(MCoeControlObserver *)
|
|
CCoeControl::SetParent(CCoeControl *)
|
|
CCoeControl::SetPointerCapture(TBool)
|
|
CCoeControl::SetPosition(const TPoint &)
|
|
CCoeControl::SetRect(const TRect &)
|
|
CCoeControl::SetSize(const TSize &)
|
|
CCoeControl::SetSizeWithoutNotification(const TSize &)
|
|
CCoeControl::SetTextBaselineSpacing(TInt)
|
|
CCoeControl::SetUniqueHandle(TInt)
|
|
CCoeControl::SetZoomFactorL(TInt,TZoomType)
|
|
CCoeControl::Size()const
|
|
CCoeControl::SystemGc()const
|
|
CCoeControl::TextBaselineOffset(const TSize &)const
|
|
CCoeControl::TextDrawer(TInt)const
|
|
CCoeControl::UniqueHandle()const
|
|
CCoeControl::Window()const
|
|
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
|
|
CCoeControl::ZoomWithType()const
|
|
CCoeControl::operator=(const CCoeControl &)
|
|
CCoeControl::~CCoeControl()
|
|
CEikBorderedControl::Border()const
|
|
CEikBorderedControl::CEikBorderedControl()
|
|
CEikBorderedControl::CEikBorderedControl(const TGulBorder &)
|
|
CEikBorderedControl::Draw(const TRect &)const
|
|
CEikBorderedControl::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
|
|
CEikBorderedControl::HandlePointerEventL(const TPointerEvent &)
|
|
CEikBorderedControl::HasBorder()const
|
|
CEikBorderedControl::SetAdjacent(TInt)
|
|
CEikBorderedControl::SetBorder(TGulBorder::TBorderType)
|
|
CEikBorderedControl::SetBorder(TInt)
|
|
CEikBorderedControl::WriteInternalStateL(RWriteStream &)const
|
Public Member Enumerations
|
enum
|
TMsgEditPermissionFlags
{
EMsgEditNone
= 0x00000000,
EMsgEditCopy
= 0x00000001,
EMsgEditCut
= 0x00000002,
EMsgEditPaste
= 0x00000004,
EMsgEditSelectAll
= 0x00000008,
EMsgEditUnSelectAll
= 0x00000010,
EMsgEditUndo
= 0x00000020,
EMsgFirstReservedFlag
= 0x00001000,
EMsgFirstFreeFlag
= 0x00010000,
EMsgEditAll
= 0xFFFFFFFF
}
|
enum
|
TMsgViewEventFlags
{
EMsgViewEventNone
= 0x00000000,
EMsgViewEventAutoHighlight
= 0x00000001 }
|
Constructor & Destructor Documentation
CMsgBaseControl(MMsgBaseControlObserver &)
CMsgBaseControl()
IMPORT_C
|
CMsgBaseControl
|
(
|
)
|
|
~CMsgBaseControl()
IMPORT_C
|
~CMsgBaseControl
|
(
|
)
|
|
Member Functions Documentation
BaseConstructL()
IMPORT_C void
|
BaseConstructL
|
(
|
)
|
[protected]
|
Sets default margins for the control.
ClipboardL(TMsgClipboardFunc)
Handles clipboard operation.
ComponentControl(TInt)
IMPORT_C
CCoeControl
*
|
ComponentControl
|
(
|
TInt
|
aIndex
|
)
|
const [protected, virtual]
|
Returns a control of index aIndex.
ConstructFromResourceL(TInt)
IMPORT_C void
|
ConstructFromResourceL
|
(
|
TInt
|
aResourceId
|
)
|
[virtual]
|
Creates this control from resource.
ControlId()
IMPORT_C
TInt
|
ControlId
|
(
|
)
|
const
|
ControlModeFlags()
TUint32
|
ControlModeFlags
|
(
|
)
|
const [inline]
|
Returns control mode flags.
ControlType()
TInt
|
ControlType
|
(
|
)
|
const [inline]
|
CountComponentControls()
IMPORT_C
TInt
|
CountComponentControls
|
(
|
)
|
const [protected, virtual]
|
Returns a number of controls.
CurrentLineRect()
TRect
|
CurrentLineRect
|
(
|
)
|
[pure virtual]
|
Returns the current control rect.
DistanceFromComponentAbove()
IMPORT_C
TInt
|
DistanceFromComponentAbove
|
(
|
)
|
const
|
Returns a distance from above to this control in pixels.
EditL(TMsgEditFunc)
Handles editing operation.
EditPermission()
TUint32
|
EditPermission
|
(
|
)
|
const [pure virtual]
|
Returns edit permission flags.
FocusChanged(TDrawNow)
IMPORT_C void
|
FocusChanged
|
(
|
TDrawNow
|
aDrawNow
|
)
|
[protected, virtual]
|
This is called when the focus of the control is changed.
HandleResourceChange(TInt)
IMPORT_C void
|
HandleResourceChange
|
(
|
TInt
|
aType
|
)
|
[virtual]
|
For handling dynamic layout switch.
IsCursorLocation(TMsgCursorLocation)
Checks if the cursor location is on the topmost or downmost position and returns ETrue if it is.
IsFocusChangePossible(TMsgFocusDirection)
Checks if the focus change up or down is possible and returns ETrue if it is.
IsModified()
IMPORT_C
TBool
|
IsModified
|
(
|
)
|
const [virtual]
|
Return ETrue if contents of control has been modified.
IsReadOnly()
IMPORT_C
TBool
|
IsReadOnly
|
(
|
)
|
const
|
Returns the read only status of the control.
ItemFinder()
IMPORT_C CItemFinder *
|
ItemFinder
|
(
|
)
|
[virtual]
|
Default implementation returns NULL
LabelFontL()
IMPORT_C const
CFont
*
|
LabelFontL
|
(
|
)
|
const [protected]
|
Returns a pointer to the normal label font.
Margins()
Returns the margins of the control.
NormalTextFontL()
IMPORT_C const
CFont
*
|
NormalTextFontL
|
(
|
)
|
const [protected]
|
Returns a pointer to the normal text font.
NotifyViewEvent(TMsgViewEvent, TInt)
Prepares control for viewing.
PrepareForReadOnly(TBool)
void
|
PrepareForReadOnly
|
(
|
TBool
|
aReadOnly
|
)
|
[protected, pure virtual]
|
Prepares for read only or non read only state.
Reset()
IMPORT_C void
|
Reset
|
(
|
)
|
[virtual]
|
Resets (= clears) contents of the control.
ScrollL(TInt, TMsgScrollDirection)
Performs the internal scrolling of control if needed. Default implementation does not perform any scrolling and returns that zero pixels where scrolled.
SetAndGetSizeL(TSize &)
void
|
SetAndGetSizeL
|
(
|
TSize
&
|
aSize
|
)
|
[pure virtual]
|
Calculates and sets the size of the control and returns new size as reference aSize.
SetBaseControlObserver(MMsgBaseControlObserver &)
Sets base control observer.
SetControlId(TInt)
IMPORT_C void
|
SetControlId
|
(
|
TInt
|
aControlId
|
)
|
|
SetControlModeFlags(TUint32)
void
|
SetControlModeFlags
|
(
|
TUint32
|
aFlags
|
)
|
[inline]
|
SetControlType(TInt)
void
|
SetControlType
|
(
|
TInt
|
aType
|
)
|
[inline]
|
SetDistanceFromComponentAbove(TInt)
IMPORT_C void
|
SetDistanceFromComponentAbove
|
(
|
TInt
|
aDistance
|
)
|
|
Sets a distance from above control in pixels.
SetMargins(const TMargins &)
IMPORT_C void
|
SetMargins
|
(
|
const
TMargins
&
|
aMargins
|
)
|
|
Sets margins for the control.
SetModified(TBool)
IMPORT_C void
|
SetModified
|
(
|
TBool
|
aModified
|
)
|
[virtual]
|
Sets the modified flag of the control.
SetReadOnly(TBool)
IMPORT_C void
|
SetReadOnly
|
(
|
TBool
|
aReadOnly
|
)
|
|
Sets the control read only or not.
SetupAutomaticFindAfterFocusChangeL(TBool)
IMPORT_C void
|
SetupAutomaticFindAfterFocusChangeL
|
(
|
TBool
|
aBeginning
|
)
|
[virtual]
|
Should be called when focus is changed to body. Note: this default implementation is empty
SizeChanged()
IMPORT_C void
|
SizeChanged
|
(
|
)
|
[protected, virtual]
|
This function must be implemented in derived control and it must set positions for its controls using SetExtent function.
SetExtent function must be used for setting positions because when this is called the first time, positions are not set yet. Hence, SetPosition cannot be used because it assumes that positions are already set.
VirtualHeight()
IMPORT_C
TInt
|
VirtualHeight
|
(
|
)
|
[virtual]
|
Returns approximate height of the control.
VirtualVisibleTop()
IMPORT_C
TInt
|
VirtualVisibleTop
|
(
|
)
|
[virtual]
|
Returns a topmost visible text position.
Member Enumerations Documentation
Enum TMsgEditPermissionFlags
Enumerators
EMsgEditNone = 0x00000000
|
|
EMsgEditCopy = 0x00000001
|
|
EMsgEditCut = 0x00000002
|
|
EMsgEditPaste = 0x00000004
|
|
EMsgEditSelectAll = 0x00000008
|
|
EMsgEditUnSelectAll = 0x00000010
|
|
EMsgEditUndo = 0x00000020
|
|
EMsgFirstReservedFlag = 0x00001000
|
|
EMsgFirstFreeFlag = 0x00010000
|
|
EMsgEditAll = 0xFFFFFFFF
|
|
Enum TMsgViewEventFlags
Enumerators
EMsgViewEventNone = 0x00000000
|
|
EMsgViewEventAutoHighlight = 0x00000001
|
|
Member Data Documentation
MMsgBaseControlObserver * iBaseControlObserver
TInt
iControlId
TInt
|
iControlId
|
[protected]
|
TUint32
iControlModeFlags
TUint32
|
iControlModeFlags
|
[protected]
|
TInt
iControlType
TInt
|
iControlType
|
[protected]
|
TInt
iDistanceFromComponentAbove
TInt
|
iDistanceFromComponentAbove
|
[protected]
|
TInt
iLineHeight
TInt
|
iLineHeight
|
[protected]
|
TInt
iMaxBodyHeight
TInt
|
iMaxBodyHeight
|
[protected]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.