// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'RVFMisc.pas' rev: 6.00

#ifndef RVFMiscHPP
#define RVFMiscHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <RVTypes.hpp>	// Pascal unit
#include <RVUni.hpp>	// Pascal unit
#include <RVStyle.hpp>	// Pascal unit
#include <RVClasses.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Rvfmisc
{
//-- type declarations -------------------------------------------------------
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall RVFWrite(Classes::TStream* Stream, const AnsiString s);
extern PACKAGE void __fastcall RVFWriteLine(Classes::TStream* Stream, AnsiString s);
extern PACKAGE void __fastcall RVFWriteLineX(Classes::TStream* Stream, const AnsiString s, bool Unicode, bool HexUnicode);
extern PACKAGE AnsiString __fastcall RVFStream2TextString(Rvclasses::TRVMemoryStream* Stream);
extern PACKAGE AnsiString __fastcall RVEncodeString(const AnsiString str);
extern PACKAGE bool __fastcall RVFTextString2Stream(const AnsiString str, Rvclasses::TRVMemoryStream* Stream);
extern PACKAGE AnsiString __fastcall RVDecodeString(const AnsiString str);
extern PACKAGE void __fastcall RVFSaveStreamToStream(Classes::TStream* SourceStream, Classes::TStream* Stream);
extern PACKAGE AnsiString __fastcall RVEncodeWideString(const WideString str);
extern PACKAGE WideString __fastcall RVDecodeWideString(const AnsiString str);
extern PACKAGE bool __fastcall RVFLoadPicture(const AnsiString s, Graphics::TGraphic* gr);
extern PACKAGE AnsiString __fastcall RVFSavePicture(Graphics::TGraphic* gr);
extern PACKAGE AnsiString __fastcall RVFSavePictureBinaryWithoutSize(Graphics::TGraphic* gr);
extern PACKAGE void __fastcall RVFLoadPictureBinary(const AnsiString Data, Graphics::TGraphic* gr);
extern PACKAGE void __fastcall RVFLoadPictureBinary2(Classes::TStream* AStream, Graphics::TGraphic* gr);
extern PACKAGE void __fastcall RVFSavePictureBinary(Classes::TStream* Stream, Graphics::TGraphic* gr);
extern PACKAGE bool __fastcall RVFLoadControl(const AnsiString s, Classes::TComponent* &ctrl, const AnsiString ClassName, Controls::TWinControl* ParentControl);
extern PACKAGE AnsiString __fastcall RVFSaveControl(Classes::TComponent* ctrl);
extern PACKAGE bool __fastcall RVFLoadControlBinary(const AnsiString Data, Classes::TComponent* &ctrl, const AnsiString ClassName, Controls::TWinControl* ParentControl);
extern PACKAGE void __fastcall RVFSaveControlBinary(Classes::TStream* Stream, Classes::TComponent* ctrl);
extern PACKAGE bool __fastcall RVFReadString(char * &P, AnsiString &s);
extern PACKAGE bool __fastcall RVFReadInteger(char * &P, int &V);
extern PACKAGE AnsiString __fastcall RVFReadText(char * &P);
extern PACKAGE bool __fastcall RVFReadTag(char * &P, bool TagsArePChars, bool Quoted, int &Tag, bool UTF8Strings);
extern PACKAGE bool __fastcall RVFReadParaStyle(Rvstyle::TRVStyle* RVStyle, char * &P, int &V, bool UTF8Strings, bool &StyleNameUsed);
extern PACKAGE bool __fastcall RVFReadTextStyle(Rvstyle::TRVStyle* RVStyle, char * &P, int &V, bool UTF8Strings, bool &StyleNameUsed);
extern PACKAGE AnsiString __fastcall RVFSaveTag(bool TagsArePChars, int Tag);
extern PACKAGE AnsiString __fastcall RVFSaveText(Rvstyle::TRVStyle* RVStyle, bool UseStyleNames, int TextIdx);
extern PACKAGE AnsiString __fastcall RVFSavePara(Rvstyle::TRVStyle* RVStyle, bool UseStyleNames, int TextIdx);
extern PACKAGE AnsiString __fastcall RVFItemSavePara(int ParaNo, Classes::TPersistent* RVData, bool ForceSameAsPrev);
extern PACKAGE AnsiString __fastcall RVFEncodeLineBreaks(const AnsiString s);
extern PACKAGE AnsiString __fastcall RVFDecodeLineBreaks(const AnsiString s);
extern PACKAGE AnsiString __fastcall StringToRVFString(const AnsiString s);
extern PACKAGE AnsiString __fastcall RVFStringToString(const AnsiString s, bool UTF8);

}	/* namespace Rvfmisc */
using namespace Rvfmisc;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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