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

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

#ifndef PSWindowHPP
#define PSWindowHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <PSJob.hpp>	// Pascal unit
#include <PSStatusBar.hpp>	// Pascal unit
#include <PSToolbar.hpp>	// Pascal unit
#include <PSPreview.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Pswindow
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TPreviewForm;
class DELPHICLASS TCustomPreviewWindow;
class PASCALIMPLEMENTATION TCustomPreviewWindow : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	TPreviewForm* FForm;
	Psjob::TCustomPrintJob* FPrintJob;
	Forms::TBorderIcons FBorderIcons;
	Forms::TFormBorderStyle FBorderStyle;
	AnsiString FCaption;
	bool FCtl3D;
	Graphics::TFont* FFont;
	Graphics::TIcon* FIcon;
	Forms::TPosition FPosition;
	Forms::TWindowState FWindowState;
	int FLeft;
	int FTop;
	int FWidth;
	int FHeight;
	Graphics::TColor FColor;
	Graphics::TColor FShadowColor;
	Graphics::TColor FMarginsBorder;
	Graphics::TColor FMarginsFill;
	bool FMarginsVisible;
	Graphics::TColor FNonPrintableBorder;
	Graphics::TColor FNonPrintableFill;
	bool FNonPrintableVisible;
	int FPageIndex;
	bool FDragScroll;
	bool FScrollTracking;
	Pspreview::TViewMode FViewMode;
	int FViewScale;
	bool FUseMetafile;
	Pstoolbar::TButtons FButtons;
	bool FFlat;
	bool FScaleBox;
	Pstoolbar::TButtonKind FScaleBoxPos;
	bool FShowHint;
	bool FUserButtonEnabled;
	Graphics::TBitmap* FUserButtonGlyph;
	AnsiString FUserButtonHint;
	int FPagePanelWidth;
	Psstatusbar::TPanels FPanels;
	int FScalePanelWidth;
	AnsiString FUserText;
	bool FSizeGrip;
	Classes::TNotifyEvent FOnCreate;
	Classes::TNotifyEvent FOnDestroy;
	Classes::TNotifyEvent FOnShow;
	Classes::TNotifyEvent FOnClose;
	Classes::TNotifyEvent FOnUpdate;
	Classes::TNotifyEvent FOnPageChanged;
	Classes::TNotifyEvent FOnUserButtonClick;
	void __fastcall OnCloseForm(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall SetPrintJob(const Psjob::TCustomPrintJob* Value);
	void __fastcall SetBorderIcons(const Forms::TBorderIcons Value);
	void __fastcall SetBorderStyle(const Forms::TFormBorderStyle Value);
	void __fastcall SetCaption(const AnsiString Value);
	void __fastcall SetCtl3D(const bool Value);
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetIcon(const Graphics::TIcon* Value);
	void __fastcall SetPosition(const Forms::TPosition Value);
	void __fastcall SetWindowState(const Forms::TWindowState Value);
	void __fastcall SetLeft(const int Value);
	void __fastcall SetTop(const int Value);
	void __fastcall SetWidth(const int Value);
	void __fastcall SetHeight(const int Value);
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetShadowColor(const Graphics::TColor Value);
	void __fastcall SetMarginsBorder(const Graphics::TColor Value);
	void __fastcall SetMarginsFill(const Graphics::TColor Value);
	void __fastcall SetMarginsVisible(const bool Value);
	void __fastcall SetNonPrintableBorder(const Graphics::TColor Value);
	void __fastcall SetNonPrintableFill(const Graphics::TColor Value);
	void __fastcall SetNonPrintableVisible(const bool Value);
	void __fastcall SetPageIndex(const int Value);
	void __fastcall SetDragScroll(const bool Value);
	void __fastcall SetScrollTracking(const bool Value);
	void __fastcall SetViewMode(const Pspreview::TViewMode Value);
	void __fastcall SetViewScale(const int Value);
	void __fastcall SetUseMetafile(const bool Value);
	void __fastcall SetButtons(const Pstoolbar::TButtons Value);
	void __fastcall SetFlat(const bool Value);
	void __fastcall SetScaleBox(const bool Value);
	void __fastcall SetScaleBoxPos(const Pstoolbar::TButtonKind Value);
	void __fastcall SetShowHint(const bool Value);
	void __fastcall SetUserButtonEnabled(const bool Value);
	void __fastcall SetUserButtonGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetUserButtonHint(const AnsiString Value);
	void __fastcall SetOnUserButtonClick(const Classes::TNotifyEvent Value);
	void __fastcall SetPagePanelWidth(const int Value);
	void __fastcall SetPanels(const Psstatusbar::TPanels Value);
	void __fastcall SetScalePanelWidth(const int Value);
	void __fastcall SetUserText(const AnsiString Value);
	void __fastcall SetSizeGrip(const bool Value);
	Pspreview::TPreview* __fastcall GetPreview(void);
	Pstoolbar::TPreviewToolbar* __fastcall GetToolbar(void);
	Psstatusbar::TPreviewStatusBar* __fastcall GetStatusBar(void);
	__property TPreviewForm* Form = {read=FForm, write=FForm};
	__property Pspreview::TPreview* Preview = {read=GetPreview};
	__property Pstoolbar::TPreviewToolbar* Toolbar = {read=GetToolbar};
	__property Psstatusbar::TPreviewStatusBar* StatusBar = {read=GetStatusBar};
	void __fastcall PreviewPageChanged(System::TObject* Sender);
	
protected:
	void __fastcall CopyProperties(void);
	__property Psjob::TCustomPrintJob* PrintJob = {read=FPrintJob, write=SetPrintJob};
	__property Forms::TBorderIcons BorderIcons = {read=FBorderIcons, write=SetBorderIcons, nodefault};
	__property Forms::TFormBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, nodefault
		};
	__property AnsiString Caption = {read=FCaption, write=SetCaption};
	__property bool Ctl3D = {read=FCtl3D, write=SetCtl3D, nodefault};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property Graphics::TIcon* Icon = {read=FIcon, write=SetIcon};
	__property Forms::TPosition Position = {read=FPosition, write=SetPosition, nodefault};
	__property Forms::TWindowState WindowState = {read=FWindowState, write=SetWindowState, nodefault};
	__property int Left = {read=FLeft, write=SetLeft, nodefault};
	__property int Top = {read=FTop, write=SetTop, nodefault};
	__property int Width = {read=FWidth, write=SetWidth, nodefault};
	__property int Height = {read=FHeight, write=SetHeight, nodefault};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
	__property Graphics::TColor ShadowColor = {read=FShadowColor, write=SetShadowColor, nodefault};
	__property Graphics::TColor MarginsBorder = {read=FMarginsBorder, write=SetMarginsBorder, nodefault
		};
	__property Graphics::TColor MarginsFill = {read=FMarginsFill, write=SetMarginsFill, nodefault};
	__property bool MarginsVisible = {read=FMarginsVisible, write=SetMarginsVisible, nodefault};
	__property Graphics::TColor NonPrintableBorder = {read=FNonPrintableBorder, write=SetNonPrintableBorder
		, nodefault};
	__property Graphics::TColor NonPrintableFill = {read=FNonPrintableFill, write=SetNonPrintableFill, 
		nodefault};
	__property bool NonPrintableVisible = {read=FNonPrintableVisible, write=SetNonPrintableVisible, nodefault
		};
	__property int PageIndex = {read=FPageIndex, write=SetPageIndex, nodefault};
	__property bool DragScroll = {read=FDragScroll, write=SetDragScroll, nodefault};
	__property bool ScrollTracking = {read=FScrollTracking, write=SetScrollTracking, nodefault};
	__property Pspreview::TViewMode ViewMode = {read=FViewMode, write=SetViewMode, nodefault};
	__property int ViewScale = {read=FViewScale, write=SetViewScale, nodefault};
	__property bool UseMetafile = {read=FUseMetafile, write=SetUseMetafile, nodefault};
	__property Pstoolbar::TButtons Buttons = {read=FButtons, write=SetButtons, nodefault};
	__property bool Flat = {read=FFlat, write=SetFlat, nodefault};
	__property bool ScaleBox = {read=FScaleBox, write=SetScaleBox, nodefault};
	__property Pstoolbar::TButtonKind ScaleBoxPos = {read=FScaleBoxPos, write=SetScaleBoxPos, nodefault
		};
	__property bool ShowHint = {read=FShowHint, write=SetShowHint, nodefault};
	__property bool UserButtonEnabled = {read=FUserButtonEnabled, write=SetUserButtonEnabled, nodefault
		};
	__property Graphics::TBitmap* UserButtonGlyph = {read=FUserButtonGlyph, write=SetUserButtonGlyph};
	__property AnsiString UserButtonHint = {read=FUserButtonHint, write=SetUserButtonHint};
	__property int PagePanelWidth = {read=FPagePanelWidth, write=SetPagePanelWidth, nodefault};
	__property Psstatusbar::TPanels Panels = {read=FPanels, write=SetPanels, nodefault};
	__property int ScalePanelWidth = {read=FScalePanelWidth, write=SetScalePanelWidth, nodefault};
	__property AnsiString UserText = {read=FUserText, write=SetUserText};
	__property bool SizeGrip = {read=FSizeGrip, write=SetSizeGrip, nodefault};
	__property Classes::TNotifyEvent OnCreate = {read=FOnCreate, write=FOnCreate};
	__property Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy};
	__property Classes::TNotifyEvent OnShow = {read=FOnShow, write=FOnShow};
	__property Classes::TNotifyEvent OnClose = {read=FOnClose, write=FOnClose};
	__property Classes::TNotifyEvent OnUpdate = {read=FOnUpdate, write=FOnUpdate};
	__property Classes::TNotifyEvent OnPageChanged = {read=FOnPageChanged, write=FOnPageChanged};
	__property Classes::TNotifyEvent OnUserButtonClick = {read=FOnUserButtonClick, write=SetOnUserButtonClick
		};
	
public:
	__fastcall virtual TCustomPreviewWindow(Classes::TComponent* AOwner);
	__fastcall virtual ~TCustomPreviewWindow(void);
	virtual void __fastcall Update(void);
	void __fastcall Show(void);
	void __fastcall ShowModal(void);
	void __fastcall Close(void);
};


class PASCALIMPLEMENTATION TPreviewForm : public Forms::TCustomForm 
{
	typedef Forms::TCustomForm inherited;
	
private:
	TCustomPreviewWindow* FPreviewWindow;
	Pspreview::TPreview* FPreview;
	Pstoolbar::TPreviewToolbar* FToolbar;
	Psstatusbar::TPreviewStatusBar* FStatusBar;
	
protected:
	virtual void __fastcall WndProc(Messages::TMessage &Msg);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	
public:
	__fastcall TPreviewForm(Classes::TComponent* AOwner);
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TPreviewForm(Classes::TComponent* AOwner) : Forms::TCustomForm(
		AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TPreviewForm(Classes::TComponent* AOwner, int 
		Dummy) : Forms::TCustomForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TPreviewForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TPreviewForm(HWND ParentWindow) : Forms::TCustomForm(
		ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TPreviewWindow;
class PASCALIMPLEMENTATION TPreviewWindow : public TCustomPreviewWindow 
{
	typedef TCustomPreviewWindow inherited;
	
__published:
	__property PrintJob ;
	__property BorderIcons ;
	__property BorderStyle ;
	__property Caption ;
	__property Ctl3D ;
	__property Font ;
	__property Icon ;
	__property Position ;
	__property WindowState ;
	__property Left ;
	__property Top ;
	__property Width ;
	__property Height ;
	__property Color ;
	__property ShadowColor ;
	__property MarginsBorder ;
	__property MarginsFill ;
	__property MarginsVisible ;
	__property NonPrintableBorder ;
	__property NonPrintableFill ;
	__property NonPrintableVisible ;
	__property PageIndex ;
	__property DragScroll ;
	__property ScrollTracking ;
	__property ViewMode ;
	__property ViewScale ;
	__property UseMetafile ;
	__property Buttons ;
	__property Flat ;
	__property ScaleBox ;
	__property ScaleBoxPos ;
	__property ShowHint ;
	__property UserButtonEnabled ;
	__property UserButtonGlyph ;
	__property UserButtonHint ;
	__property PagePanelWidth ;
	__property Panels ;
	__property ScalePanelWidth ;
	__property UserText ;
	__property SizeGrip ;
	__property OnCreate ;
	__property OnDestroy ;
	__property OnShow ;
	__property OnClose ;
	__property OnUpdate ;
	__property OnPageChanged ;
	__property OnUserButtonClick ;
public:
	#pragma option push -w-inl
	/* TCustomPreviewWindow.Create */ inline __fastcall virtual TPreviewWindow(Classes::TComponent* AOwner
		) : TCustomPreviewWindow(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomPreviewWindow.Destroy */ inline __fastcall virtual ~TPreviewWindow(void) { }
	#pragma option pop
	
};


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

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

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