⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rm_printdlg.hpp

📁 这是一个功能强大
💻 HPP
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rm_printdlg.pas' rev: 11.00

#ifndef Rm_printdlgHPP
#define Rm_printdlgHPP

#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 <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Comctrls.hpp>	// Pascal unit
#include <Winspool.hpp>	// Pascal unit
#include <Rm_ctrls.hpp>	// Pascal unit
#include <Rm_printer.hpp>	// Pascal unit

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

namespace Rm_printdlg
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRMPrintDialogForm;
class PASCALIMPLEMENTATION TRMPrintDialogForm : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Stdctrls::TGroupBox* GroupBox2;
	Stdctrls::TRadioButton* rdbPrintAll;
	Stdctrls::TRadioButton* rbdPrintCurPage;
	Stdctrls::TRadioButton* rbdPrintPapges;
	Stdctrls::TEdit* edtPages;
	Stdctrls::TLabel* Label2;
	Stdctrls::TButton* btnOK;
	Stdctrls::TButton* btnCancel;
	Stdctrls::TGroupBox* GroupBox1;
	Stdctrls::TComboBox* cmbPrinters;
	Stdctrls::TButton* btnPrinterProp;
	Stdctrls::TGroupBox* GroupBox3;
	Stdctrls::TLabel* lblCopies;
	Stdctrls::TCheckBox* chkCollate;
	Stdctrls::TLabel* Label4;
	Stdctrls::TLabel* Label5;
	Extctrls::TImage* Image1;
	Stdctrls::TComboBox* cmbPrintAll;
	Stdctrls::TLabel* Label6;
	Stdctrls::TLabel* Label7;
	Stdctrls::TLabel* Label8;
	Stdctrls::TLabel* Label9;
	Extctrls::TImage* imgCollate;
	Stdctrls::TLabel* lblStatus;
	Stdctrls::TLabel* lblType;
	Stdctrls::TLabel* lblPosition;
	Stdctrls::TLabel* lblCommon;
	Extctrls::TImage* Image3;
	Extctrls::TImage* Image2;
	Stdctrls::TCheckBox* chkTaoda;
	Stdctrls::TGroupBox* GroupBox4;
	Stdctrls::TLabel* Label3;
	Stdctrls::TComboBox* cmbScalePapers;
	Stdctrls::TLabel* lblScale;
	Stdctrls::TGroupBox* GroupBox5;
	Stdctrls::TLabel* lblPrnOffsetTop;
	Stdctrls::TLabel* lbllblPrnOffsetLeft;
	Stdctrls::TCheckBox* chkColorPrint;
	void __fastcall cmbPrintersDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &ARect, Windows::TOwnerDrawState State);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall btnPrinterPropClick(System::TObject* Sender);
	void __fastcall E2Click(System::TObject* Sender);
	void __fastcall rbdPrintPapgesClick(System::TObject* Sender);
	void __fastcall chkCollateClick(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall cmbPrintersChange(System::TObject* Sender);
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall FormCloseQuery(System::TObject* Sender, bool &CanClose);
	
private:
	int FOldIndex;
	Rm_ctrls::TRMSpinEdit* FScale;
	Rm_ctrls::TRMSpinEdit* FSpinOffsetTop;
	Rm_ctrls::TRMSpinEdit* FSpinOffsetLeft;
	int FPrintOffsetTop;
	int FPrintOffsetLeft;
	Rm_ctrls::TRMSpinEdit* FSpinCopies;
	void __fastcall SpinOffsetTopChangeEvent(System::TObject* Sender);
	void __fastcall Localize(void);
	void __fastcall UpdateCollationSettings(void);
	void __fastcall UpdatePrinterSettings(void);
	void __fastcall FillScalePapers(void);
	int __fastcall GetScale(void);
	int __fastcall GetCopies(void);
	void __fastcall SetCopies(int Value);
	
public:
	bool NeedRebuild;
	Rm_printer::TRMPrinter* CurrentPrinter;
	void __fastcall GetPageInfo(int &aPaperWidth, int &aPaperHeight, int &apgSize);
	void __fastcall ChangeVirtualPrinter(void);
	__property int ScaleFactor = {read=GetScale, nodefault};
	__property int PrintOffsetTop = {read=FPrintOffsetTop, write=FPrintOffsetTop, nodefault};
	__property int PrintOffsetLeft = {read=FPrintOffsetLeft, write=FPrintOffsetLeft, nodefault};
	__property int Copies = {read=GetCopies, write=SetCopies, nodefault};
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TRMPrintDialogForm(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TRMPrintDialogForm(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TRMPrintDialogForm(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRMPrintDialogForm(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


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

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

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

⌨️ 快捷键说明

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