mwrtfexport.hpp

来自「本人买的<<VC++项目开发实例>>源代码配套光盘.」· HPP 代码 · 共 84 行

HPP
84
字号
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'mwRtfExport.pas' rev: 5.00

#ifndef mwRtfExportHPP
#define mwRtfExportHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <mwExport.hpp>	// Pascal unit
#include <mwHighlighter.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Mwrtfexport
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TmwRtfExport;
class PASCALIMPLEMENTATION TmwRtfExport : public Mwexport::TmwCustomExport 
{
	typedef Mwexport::TmwCustomExport inherited;
	
private:
	Classes::TList* FColorList;
	AnsiString FFontSize;
	int FClipboardFormat;
	
protected:
	AnsiString __fastcall ColorToRTF(Graphics::TColor AColor);
	virtual AnsiString __fastcall GetCapability();
	virtual AnsiString __fastcall GetData();
	virtual void __fastcall Init(Controls::TCustomControl* AmwEdit, Mwhighlighter::TmwCustomHighLighter* 
		AmwHighlighter, int LineCount);
	AnsiString __fastcall MakeFontTable();
	virtual AnsiString __fastcall MakeFooter();
	AnsiString __fastcall MakeColorTable();
	virtual AnsiString __fastcall MakeHeader();
	AnsiString __fastcall ScanTags(const AnsiString S);
	virtual AnsiString __fastcall GetExporterName();
	virtual int __fastcall GetClipboardFormat(void);
	
public:
	__fastcall virtual TmwRtfExport(Classes::TComponent* AOwner);
	virtual void __fastcall CopyToClipboardFormat(Controls::TCustomControl* AmwEdit, Mwhighlighter::TmwCustomHighLighter* 
		AmwHighlighter, int CbFormat);
	virtual void __fastcall CopyToClipboard(Controls::TCustomControl* AmwEdit, Mwhighlighter::TmwCustomHighLighter* 
		AmwHighlighter);
	virtual void __fastcall Clear(void);
	__fastcall virtual ~TmwRtfExport(void);
	virtual void __fastcall FormatToken(AnsiString Token, Mwhighlighter::TmwHighLightAttributes* Attribute
		, bool Tags, bool IsSpace);
	__property AnsiString Capability = {read=GetCapability};
	__property AnsiString Data = {read=GetData};
	
__published:
	__property Title ;
	__property UseBackGround ;
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Register(void);

}	/* namespace Mwrtfexport */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Mwrtfexport;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// mwRtfExport

⌨️ 快捷键说明

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