// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Srvactions.pas' rev: 21.00

#ifndef SrvactionsHPP
#define SrvactionsHPP

#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 <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Printers.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Rvscroll.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Rvnote.hpp>	// Pascal unit
#include <Rvedit.hpp>	// Pascal unit
#include <Sclrview.hpp>	// Pascal unit
#include <Srvpagescroll.hpp>	// Pascal unit
#include <Richviewactions.hpp>	// Pascal unit
#include <Rvalocalize.hpp>	// Pascal unit
#include <Srvalocalize.hpp>	// Pascal unit
#include <Actnlist.hpp>	// Pascal unit

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

namespace Srvactions
{
//-- type declarations -------------------------------------------------------
typedef Set<Sclrview::TSRVPageFormat, srvfmCustom, srvfmArch_E1>  TSRVPageFormats;

class DELPHICLASS TsrvaDocumentInfo;
class PASCALIMPLEMENTATION TsrvaDocumentInfo : public Richviewactions::TrvaDocumentInfo
{
	typedef Richviewactions::TrvaDocumentInfo inherited;
	
protected:
	void __fastcall AssignFromEditor(Sclrview::TSRichViewEdit* srve);
	void __fastcall AssignToEditor(Sclrview::TSRichViewEdit* srve);
	
public:
	float PrintZoomPercent;
	float WebZoomPercent;
	float DraftZoomPercent;
	Rvscroll::TRVZoomMode PrintZoomMode;
	Rvscroll::TRVZoomMode DraftZoomMode;
	__fastcall TsrvaDocumentInfo(void);
	DYNAMIC void __fastcall Update(void);
public:
	/* TObject.Destroy */ inline __fastcall virtual ~TsrvaDocumentInfo(void) { }
	
};


class DELPHICLASS TsrvAction;
class PASCALIMPLEMENTATION TsrvAction : public Richviewactions::TrvCustomAction
{
	typedef Richviewactions::TrvCustomAction inherited;
	
private:
	Sclrview::TSRichViewEdit* FControl;
	void __fastcall SetControl(const Sclrview::TSRichViewEdit* Value);
	
protected:
	Srvalocalize::TSRVAMessageID FSRVMessageID;
	Sclrview::TSRichViewEdit* __fastcall GetControl(System::TObject* Target);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	DYNAMIC void __fastcall Localize(void);
	
public:
	virtual bool __fastcall HandlesTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	
__published:
	__property Sclrview::TSRichViewEdit* Control = {read=FControl, write=SetControl};
public:
	/* TAction.Create */ inline __fastcall virtual TsrvAction(Classes::TComponent* AOwner) : Richviewactions::TrvCustomAction(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvAction(void) { }
	
};


class DELPHICLASS TsrvCustomActionThatNeedsDocProps;
class PASCALIMPLEMENTATION TsrvCustomActionThatNeedsDocProps : public TsrvAction
{
	typedef TsrvAction inherited;
	
private:
	Richviewactions::TrvActionSave* FActionSave;
	bool FOldAutoWidth;
	bool FOldPageViewMode;
	bool FOldModified;
	Sclrview::TSRVPageFormat FOldPageFormat;
	System::Extended FOldPageWidth;
	System::Extended FOldPageHeight;
	
protected:
	void __fastcall SetMultipageLayout(Sclrview::TSRichViewEdit* Edit);
	void __fastcall RestoreOldLayout(Sclrview::TSRichViewEdit* Edit, bool RestorePageSize);
	Richviewactions::TrvActionSave* __fastcall GetActionSave(void);
	TsrvaDocumentInfo* __fastcall GetDocumentInfo(Sclrview::TSRichViewEdit* srve);
	__property Richviewactions::TrvActionSave* ActionSave = {read=FActionSave, write=FActionSave};
public:
	/* TAction.Create */ inline __fastcall virtual TsrvCustomActionThatNeedsDocProps(Classes::TComponent* AOwner) : TsrvAction(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvCustomActionThatNeedsDocProps(void) { }
	
};


class DELPHICLASS TsrvCustomPrintAction;
class PASCALIMPLEMENTATION TsrvCustomPrintAction : public TsrvCustomActionThatNeedsDocProps
{
	typedef TsrvCustomActionThatNeedsDocProps inherited;
	
public:
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	
__published:
	__property ActionSave;
public:
	/* TAction.Create */ inline __fastcall virtual TsrvCustomPrintAction(Classes::TComponent* AOwner) : TsrvCustomActionThatNeedsDocProps(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvCustomPrintAction(void) { }
	
};


class DELPHICLASS TsrvActionQuickPrint;
class PASCALIMPLEMENTATION TsrvActionQuickPrint : public TsrvCustomPrintAction
{
	typedef TsrvCustomPrintAction inherited;
	
private:
	System::UnicodeString FTitle;
	
protected:
	DYNAMIC void __fastcall Localize(void);
	
public:
	__fastcall virtual TsrvActionQuickPrint(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	
__published:
	__property System::UnicodeString Title = {read=FTitle, write=FTitle};
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionQuickPrint(void) { }
	
};


class DELPHICLASS TsrvActionPrint;
class PASCALIMPLEMENTATION TsrvActionPrint : public TsrvCustomPrintAction
{
	typedef TsrvCustomPrintAction inherited;
	
private:
	System::UnicodeString FTitle;
	
public:
	__fastcall virtual TsrvActionPrint(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	
__published:
	__property System::UnicodeString Title = {read=FTitle, write=FTitle};
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionPrint(void) { }
	
};


class DELPHICLASS TsrvActionPreview;
class PASCALIMPLEMENTATION TsrvActionPreview : public TsrvAction
{
	typedef TsrvAction inherited;
	
public:
	__fastcall virtual TsrvActionPreview(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionPreview(void) { }
	
};


class DELPHICLASS TsrvActionThumbnails;
class PASCALIMPLEMENTATION TsrvActionThumbnails : public TsrvAction
{
	typedef TsrvAction inherited;
	
private:
	Srvpagescroll::TSRVPageScroll* FPageScroll;
	Classes::TNotifyEvent FOnExecuted;
	
public:
	__fastcall virtual TsrvActionThumbnails(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	
__published:
	__property Srvpagescroll::TSRVPageScroll* PageScroll = {read=FPageScroll, write=FPageScroll};
	__property Classes::TNotifyEvent OnExecuted = {read=FOnExecuted, write=FOnExecuted};
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionThumbnails(void) { }
	
};


class DELPHICLASS TsrvActionPageSetup;
class PASCALIMPLEMENTATION TsrvActionPageSetup : public TsrvCustomActionThatNeedsDocProps
{
	typedef TsrvCustomActionThatNeedsDocProps inherited;
	
private:
	Classes::TNotifyEvent FOnChange;
	
public:
	__fastcall virtual TsrvActionPageSetup(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	
__published:
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property ActionSave;
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionPageSetup(void) { }
	
};


class DELPHICLASS TsrvActionCustomLayout;
class PASCALIMPLEMENTATION TsrvActionCustomLayout : public TsrvCustomActionThatNeedsDocProps
{
	typedef TsrvCustomActionThatNeedsDocProps inherited;
	
private:
	Classes::TNotifyEvent FOnExecuted;
	
protected:
	DYNAMIC void __fastcall Apply(Sclrview::TSRichViewEdit* srve) = 0 ;
	
public:
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	
__published:
	__property ActionSave;
	__property Classes::TNotifyEvent OnExecuted = {read=FOnExecuted, write=FOnExecuted};
public:
	/* TAction.Create */ inline __fastcall virtual TsrvActionCustomLayout(Classes::TComponent* AOwner) : TsrvCustomActionThatNeedsDocProps(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionCustomLayout(void) { }
	
};


class DELPHICLASS TsrvActionLayoutPrint;
class PASCALIMPLEMENTATION TsrvActionLayoutPrint : public TsrvActionCustomLayout
{
	typedef TsrvActionCustomLayout inherited;
	
private:
	int FBoundLeftRight;
	Graphics::TColor FColor;
	bool FHeaderVisible;
	bool FFooterVisible;
	
protected:
	DYNAMIC void __fastcall Apply(Sclrview::TSRichViewEdit* srve);
	
public:
	__fastcall virtual TsrvActionLayoutPrint(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	
__published:
	__property int BoundLeftRight = {read=FBoundLeftRight, write=FBoundLeftRight, default=20};
	__property Graphics::TColor Color = {read=FColor, write=FColor, default=10070188};
	__property bool HeaderVisible = {read=FHeaderVisible, write=FHeaderVisible, default=1};
	__property bool FooterVisible = {read=FFooterVisible, write=FFooterVisible, default=1};
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionLayoutPrint(void) { }
	
};


class DELPHICLASS TsrvActionLayoutWeb;
class PASCALIMPLEMENTATION TsrvActionLayoutWeb : public TsrvActionCustomLayout
{
	typedef TsrvActionCustomLayout inherited;
	
protected:
	DYNAMIC void __fastcall Apply(Sclrview::TSRichViewEdit* srve);
	
public:
	__fastcall virtual TsrvActionLayoutWeb(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionLayoutWeb(void) { }
	
};


class DELPHICLASS TsrvActionLayoutDraft;
class PASCALIMPLEMENTATION TsrvActionLayoutDraft : public TsrvActionCustomLayout
{
	typedef TsrvActionCustomLayout inherited;
	
private:
	int FBoundLeftRight;
	
protected:
	DYNAMIC void __fastcall Apply(Sclrview::TSRichViewEdit* srve);
	
public:
	__fastcall virtual TsrvActionLayoutDraft(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	
__published:
	__property int BoundLeftRight = {read=FBoundLeftRight, write=FBoundLeftRight, default=20};
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionLayoutDraft(void) { }
	
};


class DELPHICLASS TsrvActionCustomZoom;
class PASCALIMPLEMENTATION TsrvActionCustomZoom : public TsrvAction
{
	typedef TsrvAction inherited;
	
private:
	float FZoomPercent;
	Rvscroll::TRVZoomMode FZoomMode;
	
protected:
	virtual void __fastcall SetZoomPercent(const float Value);
	__property float ZoomPercent = {read=FZoomPercent, write=SetZoomPercent};
	__property Rvscroll::TRVZoomMode ZoomMode = {read=FZoomMode, write=FZoomMode, nodefault};
	
public:
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
public:
	/* TAction.Create */ inline __fastcall virtual TsrvActionCustomZoom(Classes::TComponent* AOwner) : TsrvAction(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionCustomZoom(void) { }
	
};


class DELPHICLASS TsrvActionZoom;
class PASCALIMPLEMENTATION TsrvActionZoom : public TsrvActionCustomZoom
{
	typedef TsrvActionCustomZoom inherited;
	
protected:
	virtual void __fastcall SetZoomPercent(const float Value);
	
public:
	DYNAMIC void __fastcall Localize(void);
	__fastcall virtual TsrvActionZoom(Classes::TComponent* AOwner);
	
__published:
	__property ZoomPercent;
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionZoom(void) { }
	
};


class DELPHICLASS TsrvActionZoomPageWidth;
class PASCALIMPLEMENTATION TsrvActionZoomPageWidth : public TsrvActionCustomZoom
{
	typedef TsrvActionCustomZoom inherited;
	
public:
	__fastcall virtual TsrvActionZoomPageWidth(Classes::TComponent* AOwner);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionZoomPageWidth(void) { }
	
};


class DELPHICLASS TsrvActionZoomFullPage;
class PASCALIMPLEMENTATION TsrvActionZoomFullPage : public TsrvActionCustomZoom
{
	typedef TsrvActionCustomZoom inherited;
	
public:
	__fastcall virtual TsrvActionZoomFullPage(Classes::TComponent* AOwner);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionZoomFullPage(void) { }
	
};


class DELPHICLASS TsrvActionCustomOrientation;
class PASCALIMPLEMENTATION TsrvActionCustomOrientation : public TsrvAction
{
	typedef TsrvAction inherited;
	
protected:
	Printers::TPrinterOrientation FOrientation;
	
public:
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TAction.Create */ inline __fastcall virtual TsrvActionCustomOrientation(Classes::TComponent* AOwner) : TsrvAction(AOwner) { }
	
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionCustomOrientation(void) { }
	
};


class DELPHICLASS TsrvActionOrientationPortrait;
class PASCALIMPLEMENTATION TsrvActionOrientationPortrait : public TsrvActionCustomOrientation
{
	typedef TsrvActionCustomOrientation inherited;
	
public:
	__fastcall virtual TsrvActionOrientationPortrait(Classes::TComponent* AOwner);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionOrientationPortrait(void) { }
	
};


class DELPHICLASS TsrvActionOrientationLandscape;
class PASCALIMPLEMENTATION TsrvActionOrientationLandscape : public TsrvActionCustomOrientation
{
	typedef TsrvActionCustomOrientation inherited;
	
public:
	__fastcall virtual TsrvActionOrientationLandscape(Classes::TComponent* AOwner);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionOrientationLandscape(void) { }
	
};


class DELPHICLASS TsrvActionPageFormat;
class PASCALIMPLEMENTATION TsrvActionPageFormat : public TsrvCustomActionThatNeedsDocProps
{
	typedef TsrvCustomActionThatNeedsDocProps inherited;
	
private:
	System::Extended FPageHeight;
	System::Extended FPageWidth;
	Rvstyle::TRVUnits FUnits;
	Sclrview::TSRVPageFormat FPageFormat;
	void __fastcall SetPageFormat(const Sclrview::TSRVPageFormat Value);
	void __fastcall SetPageHeight(const System::Extended Value);
	void __fastcall SetPageWidth(const System::Extended Value);
	void __fastcall SetUnits(const Rvstyle::TRVUnits Value);
	
public:
	__fastcall virtual TsrvActionPageFormat(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	DYNAMIC void __fastcall Localize(void);
	
__published:
	__property Sclrview::TSRVPageFormat PageFormat = {read=FPageFormat, write=SetPageFormat, default=7};
	__property System::Extended PageWidth = {read=FPageWidth, write=SetPageWidth};
	__property System::Extended PageHeight = {read=FPageHeight, write=SetPageHeight};
	__property Rvstyle::TRVUnits Units = {read=FUnits, write=SetUnits, default=2};
	__property ActionSave;
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionPageFormat(void) { }
	
};


class DELPHICLASS TsrvActionEditHeader;
class PASCALIMPLEMENTATION TsrvActionEditHeader : public TsrvAction
{
	typedef TsrvAction inherited;
	
public:
	__fastcall virtual TsrvActionEditHeader(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionEditHeader(void) { }
	
};


class DELPHICLASS TsrvActionEditFooter;
class PASCALIMPLEMENTATION TsrvActionEditFooter : public TsrvAction
{
	typedef TsrvAction inherited;
	
public:
	__fastcall virtual TsrvActionEditFooter(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionEditFooter(void) { }
	
};


class DELPHICLASS TsrvActionEditMain;
class PASCALIMPLEMENTATION TsrvActionEditMain : public TsrvAction
{
	typedef TsrvAction inherited;
	
private:
	bool FAutoVisible;
	
public:
	__fastcall virtual TsrvActionEditMain(Classes::TComponent* AOwner);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionEditMain(void) { }
	
};


class DELPHICLASS TsrvActionInsertNote;
class PASCALIMPLEMENTATION TsrvActionInsertNote : public TsrvAction
{
	typedef TsrvAction inherited;
	
private:
	Graphics::TFont* FFont;
	void __fastcall SetFont(const Graphics::TFont* Value);
	int __fastcall GetNoteTextStyleNo(Rvstyle::TRVStyle* RVStyle);
	
protected:
	DYNAMIC Rvnote::TCustomRVNoteItemInfo* __fastcall CreateNote(Rvedit::TCustomRichViewEdit* Edit) = 0 ;
	
public:
	__fastcall virtual TsrvActionInsertNote(Classes::TComponent* AOwner);
	__fastcall virtual ~TsrvActionInsertNote(void);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
	
__published:
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
};


class DELPHICLASS TsrvActionInsertFootnote;
class PASCALIMPLEMENTATION TsrvActionInsertFootnote : public TsrvActionInsertNote
{
	typedef TsrvActionInsertNote inherited;
	
protected:
	DYNAMIC Rvnote::TCustomRVNoteItemInfo* __fastcall CreateNote(Rvedit::TCustomRichViewEdit* Edit);
	
public:
	__fastcall virtual TsrvActionInsertFootnote(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TsrvActionInsertNote.Destroy */ inline __fastcall virtual ~TsrvActionInsertFootnote(void) { }
	
};


class DELPHICLASS TsrvActionInsertEndnote;
class PASCALIMPLEMENTATION TsrvActionInsertEndnote : public TsrvActionInsertNote
{
	typedef TsrvActionInsertNote inherited;
	
protected:
	DYNAMIC Rvnote::TCustomRVNoteItemInfo* __fastcall CreateNote(Rvedit::TCustomRichViewEdit* Edit);
	
public:
	__fastcall virtual TsrvActionInsertEndnote(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
public:
	/* TsrvActionInsertNote.Destroy */ inline __fastcall virtual ~TsrvActionInsertEndnote(void) { }
	
};


class DELPHICLASS TsrvActionEditNote;
class PASCALIMPLEMENTATION TsrvActionEditNote : public TsrvAction
{
	typedef TsrvAction inherited;
	
public:
	__fastcall virtual TsrvActionEditNote(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionEditNote(void) { }
	
};


class DELPHICLASS TsrvActionReturnToNote;
class PASCALIMPLEMENTATION TsrvActionReturnToNote : public TsrvAction
{
	typedef TsrvAction inherited;
	
public:
	__fastcall virtual TsrvActionReturnToNote(Classes::TComponent* AOwner);
	virtual void __fastcall UpdateTarget(System::TObject* Target);
	virtual void __fastcall ExecuteTarget(System::TObject* Target);
public:
	/* TCustomAction.Destroy */ inline __fastcall virtual ~TsrvActionReturnToNote(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
#define SRVDEFPAGEFORMATSAB (Set<Sclrview::TSRVPageFormat, srvfmCustom, srvfmArch_E1> () << srvfmA4 << srvfmA5 )
#define SRVDEFPAGEFORMATSUSA (Set<Sclrview::TSRVPageFormat, srvfmCustom, srvfmArch_E1> () << srvfmLetter << srvfmLegal )

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

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