//---------------------------------------------------------------------------
#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Dialogs.hpp>
#include "PDFium.hpp"
//---------------------------------------------------------------------------
class TFormMain : public TForm
{
__published: // IDE-managed Components
    TPdf *Pdf;
    TImage *Image;
    TSaveDialog *SaveDialog;

    TPanel *PanelTop;
    TPanel *PanelBottom;

    TLabel *LabelTitle;
    TEdit *EditTitle;
    TLabel *LabelAuthor;
    TEdit *EditAuthor;

    TGroupBox *GroupOptions;
    TCheckBox *CheckShapes;
    TCheckBox *CheckTable;
    TCheckBox *CheckWatermark;

    TButton *ButtonCreate;
    TButton *ButtonOpen;

    TLabel *LabelStatus;
    TLinkLabel *LinkLabel1;

    void __fastcall FormCreate(TObject *Sender);
    void __fastcall ButtonCreateClick(TObject *Sender);
    void __fastcall ButtonOpenClick(TObject *Sender);
    void __fastcall LinkLabel1LinkClick(TObject *Sender, const UnicodeString Link, TSysLinkType LinkType);

private: // User declarations
    UnicodeString FLastCreatedFile;
    void CreateSimplePDF();
    void AddShapes();
    void AddTable();
    void AddWatermark();
    void UpdateStatus(const UnicodeString Status);

public: // User declarations
    __fastcall TFormMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMain *FormMain;
//---------------------------------------------------------------------------
#endif
