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

// (DO NOT EDIT: machine generated header) 'Rvfmisc.pas' rev: 10.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 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 Rvclasses::TRVMemoryStream* __fastcall RVFStringToStream(const AnsiString str);
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, Classes::TReaderError OnError);
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, Classes::TReaderError OnError);
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 pack(pop)
#pragma option pop

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