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

// (DO NOT EDIT: machine generated header) 'SMPWhen.pas' rev: 37.00 (Windows)

#ifndef SMPWhenHPP
#define SMPWhenHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <SMRDMan.hpp>

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

namespace Smpwhen
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TSMPrintWhen;
class DELPHICLASS TfrmPrintWhen;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TSMPrintWhen : public System::Classes::TPersistent
{
	typedef System::Classes::TPersistent inherited;
	
private:
	bool FRepeatedValues;
	bool FRePrintOnNewPage;
	bool FOnGroupChange;
	System::UnicodeString FGroupName;
	bool FOnOverflow;
	bool FRemoveBlankLine;
	System::UnicodeString FShowIf;
	System::UnicodeString FHideWhen;
	
public:
	virtual void __fastcall Assign(System::Classes::TPersistent* Source);
	
__published:
	__property bool RepeatedValues = {read=FRepeatedValues, write=FRepeatedValues, default=1};
	__property bool RePrintOnNewPage = {read=FRePrintOnNewPage, write=FRePrintOnNewPage, default=0};
	__property bool OnGroupChange = {read=FOnGroupChange, write=FOnGroupChange, default=0};
	__property System::UnicodeString GroupName = {read=FGroupName, write=FGroupName};
	__property bool OnOverflow = {read=FOnOverflow, write=FOnOverflow, default=0};
	__property bool RemoveBlankLine = {read=FRemoveBlankLine, write=FRemoveBlankLine, default=0};
	__property System::UnicodeString ShowIf = {read=FShowIf, write=FShowIf};
	__property System::UnicodeString HideWhen = {read=FHideWhen, write=FHideWhen};
public:
	/* TPersistent.Destroy */ inline __fastcall virtual ~TSMPrintWhen() { }
	
public:
	/* TObject.Create */ inline __fastcall TSMPrintWhen() : System::Classes::TPersistent() { }
	
};


class PASCALIMPLEMENTATION TfrmPrintWhen : public Vcl::Forms::TForm
{
	typedef Vcl::Forms::TForm inherited;
	
__published:
	Vcl::Extctrls::TBevel* bvlButtons;
	Vcl::Stdctrls::TButton* btnOk;
	Vcl::Stdctrls::TButton* btnCancel;
	Vcl::Extctrls::TImage* imgPrintWhen;
	Vcl::Stdctrls::TGroupBox* gbRepeated;
	Vcl::Stdctrls::TRadioButton* rbYes;
	Vcl::Stdctrls::TRadioButton* rbNo;
	Vcl::Stdctrls::TGroupBox* gbAlsoPrint;
	Vcl::Stdctrls::TCheckBox* cbNewPage;
	Vcl::Stdctrls::TCheckBox* cbGroupChange;
	Vcl::Stdctrls::TCheckBox* cbOverflow;
	Vcl::Stdctrls::TCheckBox* cbBlankLine;
	Vcl::Stdctrls::TComboBox* cbGroups;
	Vcl::Stdctrls::TCheckBox* cbShowIf;
	Vcl::Stdctrls::TEdit* edShowIf;
	Vcl::Stdctrls::TButton* btnShowIf;
	Vcl::Stdctrls::TCheckBox* cbHideWhen;
	Vcl::Stdctrls::TEdit* edHideWhen;
	Vcl::Stdctrls::TButton* btnHideWhen;
	void __fastcall btnOkClick(System::TObject* Sender);
	void __fastcall FormActivate(System::TObject* Sender);
	void __fastcall cbGroupChangeClick(System::TObject* Sender);
	void __fastcall btnShowIfClick(System::TObject* Sender);
	void __fastcall cbShowIfClick(System::TObject* Sender);
	void __fastcall cbHideWhenClick(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	
protected:
	virtual void __fastcall FillStringsFromRes();
	
public:
	TSMPrintWhen* PWhen;
	System::LongInt LangShift;
	Smrdman::TSMRDataManager* FDataManager;
	System::Classes::TCollection* lstVariables;
	System::Classes::TCollection* lstParameters;
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmPrintWhen(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmPrintWhen(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.CreateScaledNew */ inline __fastcall virtual TfrmPrintWhen(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmPrintWhen() { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmPrintWhen(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
}	/* namespace Smpwhen */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMPWHEN)
using namespace Smpwhen;
#endif
#pragma pack(pop)
#pragma option pop

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