//--------------------------------------------------------------------------- #ifndef MainH #define MainH //--------------------------------------------------------------------------- #include #include #include #include "Winsoft.FireMonkey.PDFium.hpp" #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- class TFormMain : public TForm { __published: // IDE-managed Components TScrollBox *ScrollBox; TFPdfView *FPdfView; THorzScrollBox *HorzScrollBox; TSpeedButton *SpeedButtonFirstPage; TImage *ImageFirstPage; TSpeedButton *SpeedButtonPreviousPage; TImage *ImagePreviousPage; TSpeedButton *SpeedButtonPageNumber; TSpeedButton *SpeedButtonNextPage; TImage *ImageNextPage; TSpeedButton *SpeedButtonLastPage; TImage *ImageLastPage; TSpeedButton *SpeedButtonShowInfo; TImage *ImageShowInfo; TSpeedButton *SpeedButtonShowText; TImage *ImageShowText; TFPdf *FPdf; void __fastcall FPdfViewPageChange(TObject *Sender); void __fastcall FormResize(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall SpeedButtonFirstPageClick(TObject *Sender); void __fastcall SpeedButtonPreviousPageClick(TObject *Sender); void __fastcall SpeedButtonNextPageClick(TObject *Sender); void __fastcall SpeedButtonLastPageClick(TObject *Sender); void __fastcall SpeedButtonShowInfoClick(TObject *Sender); void __fastcall SpeedButtonShowTextClick(TObject *Sender); void __fastcall ScrollBoxGesture(TObject *Sender, const TGestureEventInfo &EventInfo, bool &Handled); private: // User declarations int LastDistance; double Zoom; double PixelsPerInch; public: // User declarations __fastcall TFormMain(TComponent* Owner); void __fastcall DoZoom(); }; //--------------------------------------------------------------------------- extern PACKAGE TFormMain *FormMain; //--------------------------------------------------------------------------- #endif