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

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

#ifndef EnAnnotaHPP
#define EnAnnotaHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Forms.hpp>	// Pascal unit
#include <EnImgScr.hpp>	// Pascal unit
#include <EnDiGrph.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <EnAnEdit.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Enannota
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TProtectedScrollBox;
class PASCALIMPLEMENTATION TProtectedScrollBox : public Enimgscr::TImageScrollBox 
{
	typedef Enimgscr::TImageScrollBox inherited;
	
public:
	#pragma option push -w-inl
	/* TImageScrollBox.Create */ inline __fastcall virtual TProtectedScrollBox(Classes::TComponent* AOwner
		) : Enimgscr::TImageScrollBox(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TImageScrollBox.Destroy */ inline __fastcall virtual ~TProtectedScrollBox(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TProtectedScrollBox(HWND ParentWindow) : Enimgscr::TImageScrollBox(
		ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAnnotationMouseHandler;
class PASCALIMPLEMENTATION TAnnotationMouseHandler : public Enimgscr::TMouseHandler 
{
	typedef Enimgscr::TMouseHandler inherited;
	
protected:
	TProtectedScrollBox* FImageScrollBox;
	Enanedit::TAnnotationsEditor* FEditor;
	Menus::TPopupMenu* FMenu;
	Enanedit::TGenericMark* LastAnnotationSelected;
	Enimgscr::TNewGraphicEvent OldNewGraphic;
	virtual void __fastcall BeforeResize(void);
	virtual void __fastcall AfterResize(void);
	virtual void __fastcall PropertiesDialog(System::TObject* Sender);
	virtual void __fastcall DeleteAnnotation(System::TObject* Sender);
	virtual void __fastcall AnnotationClick(System::TObject* Sender);
	void __fastcall ImageScrollBoxNewGraphic(const Endigrph::TDibGraphic* Graphic);
	AnsiString __fastcall SaveToString(void);
	void __fastcall LoadFromString(const AnsiString Str);
	
public:
	__fastcall TAnnotationMouseHandler(const Enimgscr::TImageScrollBox* InImageScrollBox);
	__fastcall virtual ~TAnnotationMouseHandler(void);
	virtual void __fastcall MouseDown(const Controls::TMouseButton Button, const Classes::TShiftState Shift
		, const int X, const int Y);
	virtual void __fastcall MouseUp(const Controls::TMouseButton Button, const Classes::TShiftState Shift
		, const int X, const int Y);
	virtual void __fastcall MouseMove(const Classes::TShiftState Shift, const int X, const int Y);
	void __fastcall AddNote(void);
	void __fastcall AddText(void);
	void __fastcall AddRectangle(void);
	void __fastcall AddLine(void);
	void __fastcall AddImage(void);
	void __fastcall Burn(void);
	__property AnsiString AnnotationsStr = {read=SaveToString, write=LoadFromString};
};


class DELPHICLASS EAnnotationError;
class PASCALIMPLEMENTATION EAnnotationError : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall EAnnotationError(const AnsiString Msg) : Sysutils::Exception(
		Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EAnnotationError(const AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EAnnotationError(int Ident)/* overload */ : Sysutils::Exception(
		Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EAnnotationError(int Ident, const System::TVarRec * 
		Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EAnnotationError(const AnsiString Msg, int AHelpContext
		) : Sysutils::Exception(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EAnnotationError(const AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
		) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EAnnotationError(int Ident, int AHelpContext)/* overload */
		 : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EAnnotationError(System::PResStringRec ResStringRec
		, const System::TVarRec * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(
		ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EAnnotationError(void) { }
	#pragma option pop
	
};


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

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

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