1 |
torben |
2671 |
// ***** BEGIN LICENSE BLOCK *****
|
2 |
|
|
// * Version: MPL 1.1
|
3 |
|
|
// *
|
4 |
|
|
// * The contents of this file are subject to the Mozilla Public License Version
|
5 |
|
|
// * 1.1 (the "License"); you may not use this file except in compliance with
|
6 |
|
|
// * the License. You may obtain a copy of the License at
|
7 |
|
|
// * http://www.mozilla.org/MPL/
|
8 |
|
|
// *
|
9 |
|
|
// * Software distributed under the License is distributed on an "AS IS" basis,
|
10 |
|
|
// * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11 |
|
|
// * for the specific language governing rights and limitations under the
|
12 |
|
|
// * License.
|
13 |
|
|
// *
|
14 |
|
|
// * The Original Code is TurboPower SysTools
|
15 |
|
|
// *
|
16 |
|
|
// * The Initial Developer of the Original Code is
|
17 |
|
|
// * TurboPower Software
|
18 |
|
|
// *
|
19 |
|
|
// * Portions created by the Initial Developer are Copyright (C) 1996-2002
|
20 |
|
|
// * the Initial Developer. All Rights Reserved.
|
21 |
|
|
// *
|
22 |
|
|
// * Contributor(s):
|
23 |
|
|
// *
|
24 |
|
|
// * ***** END LICENSE BLOCK *****
|
25 |
|
|
//---------------------------------------------------------------------------
|
26 |
|
|
#ifndef dbexprt0H
|
27 |
|
|
#define dbexprt0H
|
28 |
|
|
//---------------------------------------------------------------------------
|
29 |
|
|
#include <Classes.hpp>
|
30 |
|
|
#include <Controls.hpp>
|
31 |
|
|
#include <StdCtrls.hpp>
|
32 |
|
|
#include <Forms.hpp>
|
33 |
|
|
|
34 |
|
|
#include "StExport.hpp"
|
35 |
|
|
#include <Db.hpp>
|
36 |
|
|
#include <DBTables.hpp>
|
37 |
|
|
#include <Dialogs.hpp>
|
38 |
|
|
|
39 |
|
|
#define DefaultCaption "Table Export Example"
|
40 |
|
|
//---------------------------------------------------------------------------
|
41 |
|
|
class TForm1 : public TForm
|
42 |
|
|
{
|
43 |
|
|
__published: // IDE-managed Components
|
44 |
|
|
TLabel *Label1;
|
45 |
|
|
TMemo *Memo1;
|
46 |
|
|
TButton *Button2;
|
47 |
|
|
TButton *Button3;
|
48 |
|
|
TButton *Button4;
|
49 |
|
|
TCheckBox *CheckBox1;
|
50 |
|
|
TButton *Button1;
|
51 |
|
|
TEdit *Edit1;
|
52 |
|
|
TOpenDialog *OpenDialog1;
|
53 |
|
|
TTable *Table1;
|
54 |
|
|
TSaveDialog *SaveDialog1;
|
55 |
|
|
void __fastcall Button1Click(TObject *Sender);
|
56 |
|
|
void __fastcall Button2Click(TObject *Sender);
|
57 |
|
|
void __fastcall Button3Click(TObject *Sender);
|
58 |
|
|
void __fastcall Button4Click(TObject *Sender);
|
59 |
|
|
private: // User declarations
|
60 |
|
|
public: // User declarations
|
61 |
|
|
__fastcall TForm1(TComponent* Owner);
|
62 |
|
|
void __fastcall TForm1::SetCaption(String FN);
|
63 |
|
|
|
64 |
|
|
String CurrentDb;
|
65 |
|
|
TStDBtoCSVExport* Exporter;
|
66 |
|
|
TStDbSchemaGenerator* SchemaMaker;
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
};
|
70 |
|
|
//---------------------------------------------------------------------------
|
71 |
|
|
extern PACKAGE TForm1 *Form1;
|
72 |
|
|
//---------------------------------------------------------------------------
|
73 |
|
|
#endif
|