// CodeGear C++Builder
// Copyright (c) 1995, 2008 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rvfmisc.pas' rev: 20.00

#ifndef RvfmiscHPP
#define RvfmiscHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Rvclasses.hpp>	// Pascal unit
#include <Rvstyle.hpp>	// Pascal unit
#include <Rvuni.hpp>	// Pascal unit
#include <Rvtypes.hpp>	// Pascal unit

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

namespace Rvfmisc
{
//-- type declarations -------------------------------------------------------
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall RVFWrite(Classes::TStream* Stream, const Rvtypes::TRVAnsiString s);
extern PACKAGE void __fastcall RVFWriteLine(Classes::TStream* Stream, Rvtypes::TRVAnsiString s);
extern PACKAGE void __fastcall RVFWriteLineX(Classes::TStream* Stream, const Rvtypes::TRVAnsiString s, bool Unicode, bool HexUnicode);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVFStream2TextString(Rvclasses::TRVMemoryStream* Stream);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVEncodeString(const Rvtypes::TRVAnsiString str);
extern PACKAGE bool __fastcall RVFTextString2Stream(const Rvtypes::TRVAnsiString str, Rvclasses::TRVMemoryStream* Stream);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVDecodeString(const Rvtypes::TRVAnsiString str);
extern PACKAGE void __fastcall RVFSaveStreamToStream(Classes::TStream* SourceStream, Classes::TStream* Stream);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVEncodeWideString(const Rvtypes::TRVUnicodeString str);
extern PACKAGE Rvtypes::TRVUnicodeString __fastcall RVDecodeWideString(const Rvtypes::TRVAnsiString str);
extern PACKAGE bool __fastcall RVFLoadPicture(const Rvtypes::TRVAnsiString s, Graphics::TGraphic* gr);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVFSavePicture(Graphics::TGraphic* gr);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVFSavePictureBinaryWithoutSize(Graphics::TGraphic* gr);
extern PACKAGE void __fastcall RVFLoadPictureBinary(const Rvtypes::TRVAnsiString 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 Rvtypes::TRVAnsiString s, Classes::TComponent* &ctrl, const System::UnicodeString ClassName, Controls::TWinControl* ParentControl);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVFSaveControl(Classes::TComponent* ctrl);
extern PACKAGE bool __fastcall RVFLoadControlBinary(const Rvtypes::TRVAnsiString Data, Classes::TComponent* &ctrl, const System::UnicodeString ClassName, Controls::TWinControl* ParentControl);
extern PACKAGE void __fastcall RVFSaveControlBinary(Classes::TStream* Stream, Classes::TComponent* ctrl);
extern PACKAGE bool __fastcall RVFReadString(char * &P, Rvtypes::TRVRawByteString &s);
extern PACKAGE bool __fastcall RVFReadInteger(char * &P, int &V);
extern PACKAGE Rvtypes::TRVRawByteString __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 Rvtypes::TRVRawByteString __fastcall RVFSaveTag(bool TagsArePChars, int Tag);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall RVFSaveText(Rvstyle::TRVStyle* RVStyle, bool UseStyleNames, int TextIdx);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall RVFSavePara(Rvstyle::TRVStyle* RVStyle, bool UseStyleNames, int TextIdx);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall RVFItemSavePara(int ParaNo, Classes::TPersistent* RVData, bool ForceSameAsPrev);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall RVFEncodeLineBreaks(const Rvtypes::TRVRawByteString s);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall RVFDecodeLineBreaks(const Rvtypes::TRVRawByteString s);
extern PACKAGE Rvtypes::TRVRawByteString __fastcall StringToRVFString(const System::UnicodeString s);
extern PACKAGE System::UnicodeString __fastcall RVFStringToString(const Rvtypes::TRVRawByteString s, bool UTF8);

}	/* namespace Rvfmisc */
using namespace Rvfmisc;
#pragma pack(pop)
#pragma option pop

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