Unit1.h
上传用户:daoqigc
上传日期:2021-04-20
资源大小:2795k
文件大小:2k
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <vclClasses.hpp>
- #include <vclControls.hpp>
- #include <vclStdCtrls.hpp>
- #include <vclForms.hpp>
- #include <vclComCtrls.hpp>
- #include "RichView.hpp"
- #include "RVScroll.hpp"
- #include "RVPP.hpp"
- #include "CRVPP.hpp"
- #include "CtrlImg.hpp"
- #include <vclExtCtrls.hpp>
- #include "RVStyle.hpp"
- #include "PtblRV.hpp"
- #include <vclDialogs.hpp>
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TPageControl *PageControl1;
- TTabSheet *TabSheet1;
- TRichView *RichView1;
- TTabSheet *TabSheet2;
- TRVPrintPreview *RVPrintPreview1;
- TPanel *Panel3;
- TScrollBar *ScrollBar1;
- TPanel *Panel1;
- TImage *Image1;
- TImage *Image2;
- TPanel *Panel2;
- TLabel *Label1;
- TButton *Button1;
- TEdit *Edit1;
- TButton *btnPrint;
- TRVStyle *RVStyle1;
- TRVPrint *RVPrint1;
- TPrintDialog *PrintDialog1;
- TStatusBar *StatusBar1;
- void __fastcall PageControl1Change(TObject *Sender);
- void __fastcall ScrollBar1Change(TObject *Sender);
- void __fastcall btnPrintClick(TObject *Sender);
- void __fastcall RVPrint1Formatting(TCustomRichView *Sender,
- int PageCompleted, TRVPrintingStep Step);
- void __fastcall RVPrint1SendingToPrinter(TCustomRichView *Sender,
- int PageCompleted, TRVPrintingStep Step);
- void __fastcall RVPrint1PagePrepaint(TRVPrint *Sender, int PageNo,
- TCanvas *Canvas, bool Preview, TRect &PageRect, TRect &PrintAreaRect);
- void __fastcall Panel3Resize(TObject *Sender);
- private: // User declarations
- void __fastcall RVPrint1PrintComponent(TCustomRVPrint *Sender, TControl *PrintMe,
- Graphics::TBitmap *&ComponentImage);
- bool PreviewCreated;
- void UpdatePreview();
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif