Componentes.Terceros.DevExp.../official/x.26/ExpressPrinting System/Demos/CBuilder/OrgChartRL/main.h
2007-09-09 11:27:27 +00:00

74 lines
2.4 KiB
C++

//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Graphics.hpp>
#include <Forms.hpp>
#include <checklst.hpp>
#include <ComCtrls.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <Db.hpp>
#include <DBTables.hpp>
#include "dxorgchr.hpp"
#include "dxdborgc.hpp"
#include "dxPSCore.hpp"
#include "dxPSdxDBOCLnk.hpp"
#include "dxPSdxOCLnk.hpp"
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TToolBar *ToolBar1;
TToolButton *tbSetup;
TToolButton *tbPreview;
TToolButton *tbPrint;
TToolButton *tbDevider;
TToolButton *tbDesigner;
TToolButton *tbSeparator;
TToolButton *tbDX;
TToolButton *tbExit;
TMainMenu *MainMenu;
TMenuItem *miFile;
TMenuItem *miPageSetup;
TMenuItem *miPrintPreview;
TMenuItem *miPrint;
TMenuItem *N1;
TMenuItem *miExit;
TMenuItem *miDesigner;
TMenuItem *miHelp;
TMenuItem *miDX;
TdxComponentPrinter *dxComponentPrinter1;
TImageList *ilButtons;
TdxOrgChartReportLink *dxComponentPrinter1Link1;
TPageControl *PageControl1;
TTabSheet *tsDBOrgChart;
TTabSheet *tsOrgChart;
TTable *OCTable;
TdxOrgChart *dxOrgChart;
TdxDbOrgChart *dxDBOrgChart;
TDataSource *dsOCTable;
void __fastcall tbDXClick(TObject *Sender);
void __fastcall tbSetupClick(TObject *Sender);
void __fastcall tbPreviewClick(TObject *Sender);
void __fastcall tbPrintClick(TObject *Sender);
void __fastcall tbDesignerClick(TObject *Sender);
void __fastcall tbExitClick(TObject *Sender);
void __fastcall PageControl1Change(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall dxDBOrgChartCreateNode(TObject *Sender,
TdxOcNode *Node);
private: // User declarations
TdxOcShape __fastcall GetShape(String ShapeName);
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif