formatmetafile.hpp

来自「FlexGraphics是一套创建矢量图形的VCL组件」· HPP 代码 · 共 82 行

HPP
82
字号
// CodeGear C++Builder
// Copyright (c) 1995, 2008 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Formatmetafile.pas' rev: 20.00

#ifndef FormatmetafileHPP
#define FormatmetafileHPP

#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 <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Flexbase.hpp>	// Pascal unit
#include <Flexfileformats.hpp>	// Pascal unit

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

namespace Formatmetafile
{
//-- type declarations -------------------------------------------------------
struct TDoublePoint
{
	
public:
	double X;
	double Y;
};


class DELPHICLASS TFlexMetafileFormat;
class PASCALIMPLEMENTATION TFlexMetafileFormat : public Flexfileformats::TFlexFileFormat
{
	typedef Flexfileformats::TFlexFileFormat inherited;
	
protected:
	Graphics::TMetafile* FMetafile;
	Flexbase::TFlexPanel* FFlexPanel;
	Graphics::TCanvas* FCanvas;
	#pragma pack(push,1)
	tagXFORM FXForm;
	#pragma pack(pop)
	TDoublePoint FWExt;
	TDoublePoint FWOrg;
	TDoublePoint FVExt;
	TDoublePoint FVOrg;
	virtual void __fastcall RegisterSupportedExtensions(void);
	void __fastcall MetaToFlex(void *Points, int PointCount);
	void __fastcall ConvertEmr(HDC DC, tagEMR &lpEmr);
	
public:
	virtual void __fastcall ImportFromStream(Classes::TStream* AStream, Flexbase::TFlexPanel* AFlexPanel, const Flexfileformats::TFlexFileExtension* Extension, const System::UnicodeString AFileName);
	virtual void __fastcall ExportToStream(Classes::TStream* AStream, Flexbase::TFlexPanel* AFlexPanel, const Flexfileformats::TFlexFileExtension* Extension, const System::UnicodeString AFileName);
public:
	/* TFlexFileFormat.Create */ inline __fastcall virtual TFlexMetafileFormat(System::TObject* AOwner) : Flexfileformats::TFlexFileFormat(AOwner) { }
	/* TFlexFileFormat.CreateForRegister */ inline __fastcall TFlexMetafileFormat(Flexfileformats::TFlexFileExtensions* AExtensions) : Flexfileformats::TFlexFileFormat(AExtensions) { }
	/* TFlexFileFormat.Destroy */ inline __fastcall virtual ~TFlexMetafileFormat(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::ResourceString _sWmfFileDescription;
#define Formatmetafile_sWmfFileDescription System::LoadResourceString(&Formatmetafile::_sWmfFileDescription)
extern PACKAGE System::ResourceString _sEmfFileDescription;
#define Formatmetafile_sEmfFileDescription System::LoadResourceString(&Formatmetafile::_sEmfFileDescription)

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

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

⌨️ 快捷键说明

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