LibreOffice Module connectivity (master) 1
Classes | Typedefs | Enumerations | Functions
connectivity::dbase Namespace Reference

Classes

class  ODbaseCatalog
 
class  ODbaseColumns
 
class  ODbaseConnection
 
class  ODbaseDatabaseMetaData
 
class  ODbaseIndex
 
class  ODbaseIndexColumns
 
class  ODbaseIndexes
 
class  ODbasePreparedStatement
 
class  ODbaseResultSet
 
class  ODbaseStatement
 
class  ODbaseTable
 
class  ODbaseTables
 
class  ODriver
 
class  OIndexIterator
 
class  ONDXKey
 
class  ONDXNode
 
class  ONDXPage
 
class  ONDXPagePtr
 

Typedefs

typedef sdbcx::OIndex ODbaseIndex_BASE
 
typedef sdbcx::OCollection ODbaseIndexes_BASE
 
typedef file::OOperand ONDXKey_BASE
 
typedef ::cppu::ImplHelper2< css::sdbcx::XRowLocate, css::sdbcx::XDeleteRows > ODbaseResultSet_BASE
 
typedef file::OResultSet ODbaseResultSet_BASE2
 
typedef ::comphelper::OPropertyArrayUsageHelper< ODbaseResultSetODbaseResultSet_BASE3
 
typedef file::OFileTable ODbaseTable_BASE
 
typedef file::OTables ODbaseTables_BASE
 

Enumerations

enum  DBFType {
  dBaseIII = 0x03 ,
  dBaseIV = 0x04 ,
  dBaseV = 0x05 ,
  VisualFoxPro = 0x30 ,
  VisualFoxProAuto = 0x31 ,
  dBaseFS = 0x43 ,
  dBaseFSMemo = 0xB3 ,
  dBaseIIIMemo = 0x83 ,
  dBaseIVMemo = 0x8B ,
  dBaseIVMemoSQL = 0x8E ,
  FoxProMemo = 0xF5
}
 

Functions

bool dbfDecodeCharset (rtl_TextEncoding &_out_nCharset, sal_uInt8 nType, sal_uInt8 nCodepage)
 decode a DBase file's codepage byte to a RTL charset More...
 
bool dbfReadCharset (rtl_TextEncoding &nCharSet, SvStream *dbf_Stream)
 decode a DBase file's codepage byte to a RTL charset More...
 
css::uno::Reference< css::uno::XInterface > ODriver_CreateInstance (const css::uno::Reference< css::lang::XMultiServiceFactory > &_rxFactory)
 
SvStreamWriteODbaseIndex (SvStream &rStream, const ODbaseIndex &)
 
SvStreamoperator>> (SvStream &rStream, ODbaseIndex &)
 
void ReadHeader (SvStream &rStream, ODbaseIndex::NDXHeader &rHeader)
 
SvStreamWriteONDXPagePtr (SvStream &rStream, const ONDXPagePtr &)
 
SvStreamoperator>> (SvStream &rStream, ONDXPagePtr &)
 
SvStreamoperator>> (SvStream &rStream, ONDXPage &rPage)
 
SvStreamWriteONDXPage (SvStream &rStream, const ONDXPage &rPage)
 

Typedef Documentation

◆ ODbaseIndex_BASE

Definition at line 33 of file DIndex.hxx.

◆ ODbaseIndexes_BASE

Definition at line 29 of file DIndexes.hxx.

◆ ODbaseResultSet_BASE

typedef ::cppu::ImplHelper2< css::sdbcx::XRowLocate, css::sdbcx::XDeleteRows> connectivity::dbase::ODbaseResultSet_BASE

Definition at line 31 of file DResultSet.hxx.

◆ ODbaseResultSet_BASE2

Definition at line 32 of file DResultSet.hxx.

◆ ODbaseResultSet_BASE3

Definition at line 33 of file DResultSet.hxx.

◆ ODbaseTable_BASE

Definition at line 29 of file DTable.hxx.

◆ ODbaseTables_BASE

Definition at line 26 of file DTables.hxx.

◆ ONDXKey_BASE

Definition at line 38 of file dindexnode.hxx.

Enumeration Type Documentation

◆ DBFType

Enumerator
dBaseIII 
dBaseIV 
dBaseV 
VisualFoxPro 
VisualFoxProAuto 
dBaseFS 
dBaseFSMemo 
dBaseIIIMemo 
dBaseIVMemo 
dBaseIVMemoSQL 
FoxProMemo 

Definition at line 821 of file dbtools.hxx.

Function Documentation

◆ dbfDecodeCharset()

OOO_DLLPUBLIC_DBTOOLS bool connectivity::dbase::dbfDecodeCharset ( rtl_TextEncoding &  _out_nCharset,
sal_uInt8  nType,
sal_uInt8  nCodepage 
)

decode a DBase file's codepage byte to a RTL charset

Parameters
_out_nCharsetin case of success, the decoded RTL charset is written there. else, this is not written to.
nTypethe file's type byte
nCodepagethe file's codepage byte
Returns
true if a RTL charset was successfully decoded and written to _out_nCharset false if nothing was written to _out_nCharset

Definition at line 1989 of file dbtools.cxx.

References dBaseFS, dBaseFSMemo, dBaseIII, dBaseIIIMemo, dBaseIV, dBaseIVMemoSQL, dBaseV, FoxProMemo, nType, VisualFoxPro, and VisualFoxProAuto.

Referenced by dbfReadCharset(), and connectivity::dbase::ODbaseTable::readHeader().

◆ dbfReadCharset()

OOO_DLLPUBLIC_DBTOOLS bool connectivity::dbase::dbfReadCharset ( rtl_TextEncoding &  nCharSet,
SvStream dbf_Stream 
)

decode a DBase file's codepage byte to a RTL charset

Parameters
_out_nCharsetin case of success, the decoded RTL charset is written there. else, this is not written to.
dbf_Streampointer to a SvStream encapsulating the DBase file. The stream will be rewinded and read from. No guarantee is made on its position afterwards. Caller must reposition it itself.
Returns
true if a RTL charset was successfully decoded and written to _out_nCharset false if nothing was written to _out_nCharset

Definition at line 2052 of file dbtools.cxx.

References dbfDecodeCharset(), SvStream::eof(), nType, SvStream::ReadUChar(), SvStream::Seek(), and STREAM_SEEK_TO_BEGIN.

◆ ODriver_CreateInstance()

css::uno::Reference< css::uno::XInterface > connectivity::dbase::ODriver_CreateInstance ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  _rxFactory)
Exceptions
css::uno::Exception

◆ operator>>() [1/3]

SvStream & connectivity::dbase::operator>> ( SvStream rStream,
ODbaseIndex rIndex 
)

◆ operator>>() [2/3]

SvStream & connectivity::dbase::operator>> ( SvStream rStream,
ONDXPage rPage 
)

◆ operator>>() [3/3]

SvStream & connectivity::dbase::operator>> ( SvStream rStream,
ONDXPagePtr rPage 
)

◆ ReadHeader()

void connectivity::dbase::ReadHeader ( SvStream rStream,
ODbaseIndex::NDXHeader rHeader 
)

◆ WriteODbaseIndex()

SvStream & connectivity::dbase::WriteODbaseIndex ( SvStream rStream,
const ODbaseIndex rIndex 
)

◆ WriteONDXPage()

SvStream & connectivity::dbase::WriteONDXPage ( SvStream rStream,
const ONDXPage rPage 
)

◆ WriteONDXPagePtr()

SvStream & connectivity::dbase::WriteONDXPagePtr ( SvStream rStream,
const ONDXPagePtr rPage 
)