summaryrefslogtreecommitdiff
path: root/olb/prn2swordfrm.h
blob: 138ba17039fe863cabdb15798ee67348c31d5502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
 *	CrossWire Bible Society
 *	P. O. Box 2528
 *	Tempe, AZ  85280-2528
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation version 2.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 */

//---------------------------------------------------------------------------
#ifndef prn2swordfrmH
#define prn2swordfrmH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published:	// IDE-managed Components
	TPanel *Panel1;
	TLabel *Label1;
	TEdit *FilePathEdit;
	TButton *FSButton;
	TPanel *Panel2;
	TButton *Button1;
	TMemo *Memo1;
	TOpenDialog *FSDialog;
	void __fastcall FSButtonClick(TObject *Sender);
	void __fastcall Button1Click(TObject *Sender);
private:	// User declarations
	int fp, vfp, cfp, bfp, dfp;
	void openFiles(char *fileName);
	void filterVerse(char *finalBuf, char lang);
public:		// User declarations
	__fastcall TForm2(TComponent* Owner);
	void ProcessFile(char *fileName);
	char getVerse(int fp, int *verseNum, char *verseBuf, char testament);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif