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

📄 rm_htmlmemo.hpp

📁 这是一个功能强大
💻 HPP
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rm_htmlmemo.pas' rev: 11.00

#ifndef Rm_htmlmemoHPP
#define Rm_htmlmemoHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Clipbrd.hpp>	// Pascal unit
#include <Rm_class.hpp>	// Pascal unit
#include <Rm_ctrls.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Rm_common.hpp>	// Pascal unit

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

namespace Rm_htmlmemo
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TjanHTMLElement;
class PASCALIMPLEMENTATION TjanHTMLElement : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	int FFontSize;
	AnsiString FText;
	AnsiString FFontName;
	Graphics::TFontStyles FFontStyle;
	Graphics::TColor FFontColor;
	int FAscent;
	int FHeight;
	int FWidth;
	AnsiString FSolText;
	AnsiString FEolText;
	bool FBreakLine;
	bool Fsups;
	bool Fsubs;
	void __fastcall SetFontName(const AnsiString Value);
	void __fastcall SetFontSize(const int Value);
	void __fastcall SetFontStyle(const Graphics::TFontStyles Value);
	void __fastcall SetText(const AnsiString Value);
	void __fastcall SetFontColor(const Graphics::TColor Value);
	void __fastcall SetAscent(const int Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetWidth(const int Value);
	void __fastcall SetEolText(const AnsiString Value);
	void __fastcall SetSolText(const AnsiString Value);
	void __fastcall SetBreakLine(const bool Value);
	void __fastcall SetSup(const bool Value);
	void __fastcall SetSub(const bool Value);
	
public:
	void __fastcall Break(Graphics::TCanvas* ACanvas, int available);
	__property AnsiString Text = {read=FText, write=SetText};
	__property AnsiString SolText = {read=FSolText, write=SetSolText};
	__property AnsiString EolText = {read=FEolText, write=SetEolText};
	__property AnsiString FontName = {read=FFontName, write=SetFontName};
	__property int FontSize = {read=FFontSize, write=SetFontSize, nodefault};
	__property Graphics::TFontStyles FontStyle = {read=FFontStyle, write=SetFontStyle, nodefault};
	__property Graphics::TColor FontColor = {read=FFontColor, write=SetFontColor, nodefault};
	__property int Height = {read=FHeight, write=SetHeight, nodefault};
	__property int Width = {read=FWidth, write=SetWidth, nodefault};
	__property int Ascent = {read=FAscent, write=SetAscent, nodefault};
	__property bool BreakLine = {read=FBreakLine, write=SetBreakLine, nodefault};
	__property bool Sups = {read=Fsups, write=SetSup, nodefault};
	__property bool Subs = {read=Fsubs, write=SetSub, nodefault};
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TjanHTMLElement(void) : System::TObject() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TjanHTMLElement(void) { }
	#pragma option pop
	
};


class DELPHICLASS TjanHTMLElementStack;
class PASCALIMPLEMENTATION TjanHTMLElementStack : public Classes::TList 
{
	typedef Classes::TList inherited;
	
public:
	__fastcall virtual ~TjanHTMLElementStack(void);
	virtual void __fastcall Clear(void);
	void __fastcall push(TjanHTMLElement* Element);
	TjanHTMLElement* __fastcall pop(void);
	TjanHTMLElement* __fastcall peek(void);
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TjanHTMLElementStack(void) : Classes::TList() { }
	#pragma option pop
	
};


class DELPHICLASS TjanMarkupLabel;
class PASCALIMPLEMENTATION TjanMarkupLabel : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	TjanHTMLElementStack* ElementStack;
	TjanHTMLElementStack* TagStack;
	AnsiString FText;
	Graphics::TColor FBackColor;
	int FMarginLeft;
	int FMarginRight;
	int FMarginTop;
	void __fastcall ParseHTML(AnsiString s);
	void __fastcall RenderHTML(void);
	void __fastcall HTMLClearBreaks(void);
	void __fastcall HTMLElementDimensions(void);
	void __fastcall SetBackColor(const Graphics::TColor Value);
	HIDESBASE void __fastcall SetText(const AnsiString Value);
	void __fastcall SetMarginLeft(const int Value);
	void __fastcall SetMarginRight(const int Value);
	void __fastcall SetMarginTop(const int Value);
	
public:
	__fastcall virtual TjanMarkupLabel(Classes::TComponent* AOwner);
	__fastcall virtual ~TjanMarkupLabel(void);
	virtual void __fastcall Paint(void);
	
__published:
	__property AnsiString Text = {read=FText, write=SetText};
	__property Graphics::TColor BackColor = {read=FBackColor, write=SetBackColor, nodefault};
	__property int MarginLeft = {read=FMarginLeft, write=SetMarginLeft, nodefault};
	__property int MarginRight = {read=FMarginRight, write=SetMarginRight, nodefault};
	__property int MarginTop = {read=FMarginTop, write=SetMarginTop, nodefault};
};


class DELPHICLASS TRMHTMLMemoObject;
class PASCALIMPLEMENTATION TRMHTMLMemoObject : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
public:
	#pragma option push -w-inl
	/* TComponent.Create */ inline __fastcall virtual TRMHTMLMemoObject(Classes::TComponent* AOwner) : Classes::TComponent(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TComponent.Destroy */ inline __fastcall virtual ~TRMHTMLMemoObject(void) { }
	#pragma option pop
	
};


class DELPHICLASS THTMLElement;
class PASCALIMPLEMENTATION THTMLElement : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	int FFontSize;
	AnsiString FText;
	AnsiString FFontName;
	Graphics::TFontStyles FFontStyle;
	Graphics::TColor FFontColor;
	int FAscent;
	int FHeight;
	int FWidth;
	AnsiString FSolText;
	AnsiString FEolText;
	bool FBreakLine;
	bool Fsups;
	bool Fsubs;
	bool Fspans;
	void __fastcall SetFontName(const AnsiString Value);
	void __fastcall SetFontSize(const int Value);
	void __fastcall SetFontStyle(const Graphics::TFontStyles Value);
	void __fastcall SetText(const AnsiString Value);
	void __fastcall SetFontColor(const Graphics::TColor Value);
	void __fastcall SetAscent(const int Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetWidth(const int Value);
	void __fastcall SetEolText(const AnsiString Value);
	void __fastcall SetSolText(const AnsiString Value);
	void __fastcall SetBreakLine(const bool Value);
	void __fastcall SetSup(const bool Value);
	void __fastcall SetSub(const bool Value);
	void __fastcall Setspan(const bool Value);
	
public:
	void __fastcall Break(Graphics::TCanvas* ACanvas, int available);
	__property AnsiString Text = {read=FText, write=SetText};
	__property AnsiString SolText = {read=FSolText, write=SetSolText};
	__property AnsiString EolText = {read=FEolText, write=SetEolText};
	__property AnsiString FontName = {read=FFontName, write=SetFontName};
	__property int FontSize = {read=FFontSize, write=SetFontSize, nodefault};
	__property Graphics::TFontStyles FontStyle = {read=FFontStyle, write=SetFontStyle, nodefault};
	__property Graphics::TColor FontColor = {read=FFontColor, write=SetFontColor, nodefault};
	__property int Height = {read=FHeight, write=SetHeight, nodefault};
	__property int Width = {read=FWidth, write=SetWidth, nodefault};
	__property int Ascent = {read=FAscent, write=SetAscent, nodefault};
	__property bool BreakLine = {read=FBreakLine, write=SetBreakLine, nodefault};
	__property bool Sups = {read=Fsups, write=SetSup, nodefault};
	__property bool Subs = {read=Fsubs, write=SetSub, nodefault};
	__property bool Spans = {read=Fspans, write=Setspan, nodefault};
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall THTMLElement(void) : System::TObject() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~THTMLElement(void) { }
	#pragma option pop
	
};


class DELPHICLASS THTMLElementStack;
class PASCALIMPLEMENTATION THTMLElementStack : public Classes::TList 
{
	typedef Classes::TList inherited;
	
public:
	__fastcall virtual ~THTMLElementStack(void);
	virtual void __fastcall Clear(void);
	void __fastcall push(THTMLElement* Element);
	THTMLElement* __fastcall pop(void);
	THTMLElement* __fastcall peek(void);
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall THTMLElementStack(void) : Classes::TList() { }
	#pragma option pop
	
};


class DELPHICLASS TRMHTMLMemoView;
class PASCALIMPLEMENTATION TRMHTMLMemoView : public Rm_class::TRMReportView 
{
	typedef Rm_class::TRMReportView inherited;
	
private:
	THTMLElementStack* ElementStack;
	THTMLElementStack* TagStack;
	AnsiString FText;
	Graphics::TColor FBackColor;
	int FMarginLeft;
	int FMarginRight;
	int FMarginTop;
	void __fastcall ParseHTML(AnsiString s);
	void __fastcall HTMLClearBreaks(void);
	void __fastcall SetBackColor(const Graphics::TColor Value);
	void __fastcall SetMarginLeft(const int Value);
	void __fastcall SetMarginRight(const int Value);
	void __fastcall SetMarginTop(const int Value);
	bool __fastcall ShowHTML(void);
	
protected:
	HIDESBASE void __fastcall ExpandVariables(void);
	
public:
	Byte VDC;
	Byte HDC;
	int width1;
	int height1;
	__fastcall virtual TRMHTMLMemoView(void);
	__fastcall virtual ~TRMHTMLMemoView(void);
	virtual void __fastcall Draw(Graphics::TCanvas* Canvas);
	virtual void __fastcall LoadFromStream(Classes::TStream* Stream);
	virtual void __fastcall SaveToStream(Classes::TStream* Stream);
	virtual void __fastcall OnHook(Rm_class::TRMView* View);
	void __fastcall RenderHTML(void);
	void __fastcall writeHTML(AnsiString value);
	void __fastcall HTMLElementDimensions(void);
	virtual void __fastcall ShowEditor(void);
	
__published:
	__property Graphics::TColor BackColor = {read=FBackColor, write=SetBackColor, nodefault};
	__property int MarginLeft = {read=FMarginLeft, write=SetMarginLeft, nodefault};
	__property int MarginRight = {read=FMarginRight, write=SetMarginRight, nodefault};
	__property int MarginTop = {read=FMarginTop, write=SetMarginTop, nodefault};
};


class DELPHICLASS TRMHtmlForm;
class PASCALIMPLEMENTATION TRMHtmlForm : public Rm_class::TRMObjEditorForm 
{
	typedef Rm_class::TRMObjEditorForm inherited;
	
__published:
	Stdctrls::TButton* Button1;
	Stdctrls::TButton* Button2;
	Forms::TScrollBox* ScrollBox1;
	Dialogs::TFontDialog* FontDialog1;
	Extctrls::TPanel* Panel1;
	Stdctrls::TMemo* M1;
	Stdctrls::TButton* Button3;
	Buttons::TSpeedButton* btnFont;
	Buttons::TSpeedButton* btnFontItalic;
	Buttons::TSpeedButton* btnFontBold;
	Buttons::TSpeedButton* SpeedButton4;
	Buttons::TSpeedButton* SpeedButton6;
	Buttons::TSpeedButton* SpeedButton3;
	Buttons::TSpeedButton* SpeedButton1;
	Stdctrls::TGroupBox* GroupBox1;
	Buttons::TSpeedButton* HLB;
	Buttons::TSpeedButton* HCB;
	Buttons::TSpeedButton* HRB;
	Buttons::TSpeedButton* VLB;
	Buttons::TSpeedButton* VCB;
	Buttons::TSpeedButton* VRB;
	Stdctrls::TLabel* Label1;
	void __fastcall Button3Click(System::TObject* Sender);
	void __fastcall FormKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall M1KeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall M1Change(System::TObject* Sender);
	void __fastcall SpeedButton1Click(System::TObject* Sender);
	void __fastcall SpeedButton3Click(System::TObject* Sender);
	void __fastcall btnFontClick(System::TObject* Sender);
	void __fastcall btnFontItalicClick(System::TObject* Sender);
	void __fastcall SpeedButton4Click(System::TObject* Sender);
	void __fastcall btnFontBoldClick(System::TObject* Sender);
	void __fastcall SpeedButton6Click(System::TObject* Sender);
	void __fastcall FormActivate(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	
private:
	TjanMarkupLabel* FLabel;
	void __fastcall Localize(void);
	
public:
	virtual Controls::TModalResult __fastcall ShowEditor(Rm_class::TRMView* View);
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TRMHtmlForm(Classes::TComponent* AOwner) : Rm_class::TRMObjEditorForm(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TRMHtmlForm(Classes::TComponent* AOwner, int Dummy) : Rm_class::TRMObjEditorForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TRMHtmlForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRMHtmlForm(HWND ParentWindow) : Rm_class::TRMObjEditorForm(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Rm_htmlmemo */
using namespace Rm_htmlmemo;
#pragma pack(pop)
#pragma option pop

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

⌨️ 快捷键说明

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