?? richtexteditorcontainer.h
字號:
/* Copyright (c) 2006, Nokia Mobile Phones. All rights reserved */
#ifndef __RICHTEXTEDITORCONTAINER_H__
#define __RICHTEXTEDITORCONTAINER_H__
#include <aknview.h>
#include <eikrted.h>
/*!
@class CRichTextEditorContainer
@discussion Container class for some associated view
*/
class CRichTextEditorContainer : public CCoeControl//, MCoeControlObserver
{
public:
/*!
@function NewL
@discussion Create a CRichTextEditorContainer object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CRichTextEditorContainer
*/
static CRichTextEditorContainer* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CRichTextEditorContainer object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CRichTextEditorContainer
*/
static CRichTextEditorContainer* NewLC(const TRect& aRect);
/*!
@function ~CRichTextEditorContainer
@discussion Destroy the object and release all memory objects
*/
~CRichTextEditorContainer();
private:
/*!
@fuction ConstructL
@discussion Perform the second phase construction of a CRichTextEditorContainer object
@param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/*!
@function CRichTextEditorContainer
@discussion Constructs this object
*/
CRichTextEditorContainer();
public: // from CoeControl
/*!
@function CountComponentControls
@return Number of component controls
*/
TInt CountComponentControls() const;
/*!
@function ComponentControl.
@param aIndex index of the component control
@return Pointer to component control
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/*!
@function Draw
@discussion Draw this CRichTextEditorContainer to the screen
@param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
private:
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode& aType);
private:
void SetTextFormat();
private:
CEikRichTextEditor* iRichTextEditor;
TCharFormatMask iCharFormatMask;
TCharFormat iCharFormat;
};
#endif // __RICHTEXTEDITORCONTAINER_H__
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -