⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 richtexteditorcontainer.h

📁 文本输入框事例
💻 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__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -