// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'rteditor.pas' rev: 5.00

#ifndef rteditorHPP
#define rteditorHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ExtCtrls.hpp>	// Pascal unit
#include <Registry.hpp>	// Pascal unit
#include <Clipbrd.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <ShellAPI.hpp>	// Pascal unit
#include <ComCtrls.hpp>	// Pascal unit
#include <MemIni.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <siComp.hpp>	// Pascal unit
#include <Grids.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Rteditor
{
//-- type declarations -------------------------------------------------------
typedef Classes::TStrings* *pStrings;

#pragma option push -b-
enum TMemoReturnText { mrtCommaText, mrtText };
#pragma option pop

class DELPHICLASS TfrmRTEditor;
class PASCALIMPLEMENTATION TfrmRTEditor : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
__published:
	Grids::TStringGrid* Grid1;
	Stdctrls::TListBox* List1;
	Dialogs::TOpenDialog* odLoad;
	Dialogs::TSaveDialog* sdSave;
	Comctrls::TStatusBar* StatusBar1;
	Menus::TPopupMenu* PopupMenu1;
	Menus::TMenuItem* Clearfield1;
	Sicomp::TsiFormStorage* siFormStorage1;
	Menus::TPopupMenu* PopupMenu2;
	Menus::TMenuItem* OK1;
	Menus::TMenuItem* Cancel1;
	Menus::TMenuItem* Add1;
	Menus::TMenuItem* Remove1;
	Menus::TMenuItem* Load1;
	Menus::TMenuItem* Save1;
	Menus::TMenuItem* Sortby1;
	Menus::TMenuItem* N1;
	Menus::TMenuItem* Cut1;
	Menus::TMenuItem* Copy1;
	Menus::TMenuItem* Paste1;
	Menus::TMenuItem* Delete1;
	Menus::TMenuItem* Multiline1;
	Menus::TMenuItem* N2;
	Extctrls::TPanel* Panel2;
	Extctrls::TBevel* Bevel6;
	Buttons::TSpeedButton* sbAdd;
	Buttons::TSpeedButton* sbDel;
	Buttons::TSpeedButton* sbOK;
	Buttons::TSpeedButton* sbCancel;
	Buttons::TSpeedButton* sbLoad;
	Buttons::TSpeedButton* sbSave;
	Buttons::TSpeedButton* sbDelimiter;
	Buttons::TSpeedButton* sbAbout;
	Buttons::TSpeedButton* SpeedButton1;
	Buttons::TSpeedButton* sbLanguages;
	Extctrls::TBevel* Bevel1;
	Extctrls::TBevel* Bevel2;
	Extctrls::TBevel* Bevel3;
	Extctrls::TBevel* Bevel4;
	Extctrls::TBevel* Bevel5;
	Buttons::TSpeedButton* sbDictMan;
	Buttons::TSpeedButton* sbDictFind;
	Buttons::TSpeedButton* sbDictAuto;
	Buttons::TSpeedButton* sbDictAdd;
	Buttons::TSpeedButton* sbDictAddAll;
	Stdctrls::TComboBox* cbComponents;
	Stdctrls::TEdit* edDelim;
	Menus::TMenuItem* N3;
	Menus::TMenuItem* Dictionary1;
	Menus::TMenuItem* Show1;
	Menus::TMenuItem* Addrow1;
	Menus::TMenuItem* AddAll1;
	Menus::TMenuItem* Gettranslation1;
	Menus::TMenuItem* Translateall1;
	Buttons::TSpeedButton* sbClear;
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall BitBtn1Click(System::TObject* Sender);
	void __fastcall BuildGrid(void);
	void __fastcall BitBtn2Click(System::TObject* Sender);
	void __fastcall sbAddClick(System::TObject* Sender);
	void __fastcall sbDelClick(System::TObject* Sender);
	void __fastcall sbSaveClick(System::TObject* Sender);
	void __fastcall sbLoadClick(System::TObject* Sender);
	void __fastcall sbDelimiterClick(System::TObject* Sender);
	void __fastcall edDelimKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall edDelimExit(System::TObject* Sender);
	void __fastcall StatusBar1MouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int 
		Y);
	void __fastcall FormCloseQuery(System::TObject* Sender, bool &CanClose);
	void __fastcall sbAboutClick(System::TObject* Sender);
	void __fastcall ComboBox1Change(System::TObject* Sender);
	void __fastcall ComboBox1Enter(System::TObject* Sender);
	void __fastcall ComboBox1Exit(System::TObject* Sender);
	void __fastcall Clearfield1Click(System::TObject* Sender);
	void __fastcall Grid1SelectCell(System::TObject* Sender, int Col, int Row, bool &CanSelect);
	void __fastcall Grid1TopLeftChanged(System::TObject* Sender);
	void __fastcall ComboBox1KeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall Grid1DblClick(System::TObject* Sender);
	void __fastcall MemoChange(System::TObject* Sender);
	void __fastcall MemoKeyPress(System::TObject* Sender, char &Key);
	void __fastcall Grid1KeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall Grid1SetEditText(System::TObject* Sender, int ACol, int ARow, const AnsiString Value
		);
	void __fastcall ColumnN11Click(System::TObject* Sender);
	void __fastcall PopupMenu2Popup(System::TObject* Sender);
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall Grid1DrawCell(System::TObject* Sender, int Col, int Row, const Windows::TRect &Rect
		, Grids::TGridDrawState State);
	void __fastcall Grid1MouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
		Shift, int X, int Y);
	void __fastcall Grid1MouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
		Shift, int X, int Y);
	void __fastcall Delete1Click(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall sbLanguagesClick(System::TObject* Sender);
	void __fastcall Multiline1Click(System::TObject* Sender);
	void __fastcall sbDictManClick(System::TObject* Sender);
	void __fastcall sbDictAddClick(System::TObject* Sender);
	void __fastcall sbDictAddAllClick(System::TObject* Sender);
	void __fastcall sbDictFindClick(System::TObject* Sender);
	void __fastcall sbDictAutoClick(System::TObject* Sender);
	void __fastcall Grid1Exit(System::TObject* Sender);
	void __fastcall Grid1Enter(System::TObject* Sender);
	void __fastcall Dictionary1Click(System::TObject* Sender);
	void __fastcall Show1Click(System::TObject* Sender);
	void __fastcall sbClearClick(System::TObject* Sender);
	void __fastcall Grid1GetEditText(System::TObject* Sender, int ACol, int ARow, AnsiString &Value);
	void __fastcall cbComponentsChange(System::TObject* Sender);
	
private:
	int SortedColumn;
	int ColIsDown;
	Variant FIntf;
	bool __fastcall ShowMultilineEditor(AnsiString AText, AnsiString AProperty, TMemoReturnText Return, 
		AnsiString &Value);
	void __fastcall CreateServer(void);
	void __fastcall FreeServer(void);
	
protected:
	AnsiString FDraggedFile;
	MESSAGE void __fastcall WMDropFiles(Messages::TMessage &MSG);
public:
	#pragma option push -w-inl
	/* TCustomForm.Create */ inline __fastcall virtual TfrmRTEditor(Classes::TComponent* AOwner) : Forms::TForm(
		AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmRTEditor(Classes::TComponent* AOwner, int 
		Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmRTEditor(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TfrmRTEditor(HWND ParentWindow) : Forms::TForm(ParentWindow
		) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE AnsiString ACaption;
extern PACKAGE short CurrLang;
extern PACKAGE bool OK;
extern PACKAGE Sicomp::TStringsType AStringsType;
extern PACKAGE Sicomp::TsiCustomLang* Comp;
extern PACKAGE Forms::TModalResult __fastcall ShowDesigner(Sicomp::TsiCustomLang* AComp, Classes::TStrings* 
	CaptList, Sicomp::TStringsType PropType);

}	/* namespace Rteditor */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Rteditor;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// rteditor
