richtexteditorrichtexteditor.h

来自「同样自己做的 还不错哦 Symbian的 上面没找到分类」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef RICHTEXTEDITORRICHTEXTEDITOR_H
#define RICHTEXTEDITORRICHTEXTEDITOR_H

// INCLUDES
//Martin
// System includes
#include <eikrted.h> // CCEikRichTextEditor
#include <txtfrmat.h> // TCharFormatMask


// CLASS DECLARATION

/**
*
* @class	CRichTextEditorRichTextEditor RichTextEditorContainer.h
* @brief	This is the rich text editor class for a Rich Text Editor example based on the
* standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
*
*/
class CRichTextEditorRichTextEditor : public CEikRichTextEditor
	{
public: // Constructors and destructor
	
	static CRichTextEditorRichTextEditor* NewL();
	
	static CRichTextEditorRichTextEditor* NewLC();

private: // Constructor

	void ConstructL();

public: // from CoeControl

	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

public: // members
	
	void SetUnderlineOn (TBool aOn);
	
	void SetBoldOn (TBool aOn);
	
	void ApplyCharFormatL ();
	
	void AddTextL (const TDesC& aText);
	
	void DisplayStartOfHelpTextL();

private: //data

	TCharFormatMask iCharFormatMask;  // current formatting, e.g bold etc
	
	TCharFormat iCharFormat; // current formatting, e.g bold etc

	};

#endif	// #ifndef RICHTEXTEDITORRICHTEXTEDITOR_H

// End of File

⌨️ 快捷键说明

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