// CodeGear C++Builder
// Copyright (c) 1995, 2010 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'RVFMisc.pas' rev: 22.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 bool RichViewWriteControlIgnoreChildren;
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::TRVRawByteString 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 Rvclasses::TRVMemoryStream* __fastcall RVFStringToStream(const Rvtypes::TRVRawByteString str);
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, Classes::TReaderError OnError);
extern PACKAGE Rvtypes::TRVAnsiString __fastcall RVFSaveControl(Classes::TComponent* ctrl);
extern PACKAGE bool __fastcall RVFLoadControlBinary(const Rvtypes::TRVRawByteString Data, Classes::TComponent* &ctrl, const System::UnicodeString ClassName, Controls::TWinControl* ParentControl, Classes::TReaderError OnError);
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 */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE)
using namespace Rvfmisc;
#endif
#pragma pack(pop)
#pragma option pop

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