summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlhelp/source/cxxhelp/db/BtreeDict.cxx102
-rw-r--r--xmlhelp/source/cxxhelp/provider/content.cxx16
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx8
-rw-r--r--xmlhelp/source/cxxhelp/provider/makefile.mk6
-rw-r--r--xmlhelp/source/cxxhelp/provider/provider.cxx6
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx209
-rw-r--r--xmlhelp/source/cxxhelp/qe/QueryProcessor.cxx6
-rw-r--r--xmlhelp/source/cxxhelp/qe/XmlIndex.cxx16
-rw-r--r--xmlhelp/source/cxxhelp/test/searchdemo.cxx8
-rw-r--r--xmlhelp/source/cxxhelp/util/IndexAccessor.cxx22
10 files changed, 262 insertions, 137 deletions
diff --git a/xmlhelp/source/cxxhelp/db/BtreeDict.cxx b/xmlhelp/source/cxxhelp/db/BtreeDict.cxx
index af6c6127b91d..e4197b597da4 100644
--- a/xmlhelp/source/cxxhelp/db/BtreeDict.cxx
+++ b/xmlhelp/source/cxxhelp/db/BtreeDict.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: BtreeDict.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2001-05-10 15:25:10 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,10 +85,11 @@
#ifndef _XMLSEARCH_DB_DBENVIMPL_HXX_
#include <util/DBEnvImpl.hxx>
#endif
+#ifndef _XMLSEARCH_UTIL_RANDOMACCESSSTREAM_HXX_
+#include <util/RandomAccessStream.hxx>
+#endif
-extern xmlsearch::util::RandomAccessStream* theFile();
-
const sal_Int32 xmlsearch::db::BtreeDict::ENTHEADERLEN = 6;
const sal_Int32 xmlsearch::db::BtreeDict::BLOCKSIZE = 2048;
@@ -262,32 +263,11 @@ namespace xmlsearch {
}
- void setBlockNumbers( sal_Int32* blocks );
-// {
-// for( sal_Int32 e = firstEntry(); e < getFree() ; e = nextEntry(e) )
-// blocks[ entryID(e) ] = getNum();
-// }
-
-
-#ifdef ABIDEBUG
- void listBlock() const
+ void setBlockNumbers( sal_Int32* blocks )
{
- sal_Int8 buffer[ BtreeDict::MaxKeyLength ];
- sal_Int32 freeSpace = free();
- sal_Int32 entryPtr = firstEntry();
-
- if ( isLeaf() )
- while( entryPtr < freeSpace )
- {
-// cout << ( restoreKey( entryPtr,buffer ) + rtl::OUString::createFromAscii(" ") )
-// << entryID( entryPtr )
-// << endl;
- entryPtr = nextEntry( entryPtr );
- }
- else
- cout << "not leaf";
+ for( sal_Int32 e = firstEntry(); e < getFree() ; e = nextEntry(e) )
+ blocks[ entryID(e) ] = getNum();
}
-#endif
protected:
@@ -327,16 +307,6 @@ namespace xmlsearch {
}; // end class DictBlock
-
- void DictBlock::setBlockNumbers( sal_Int32* blocks )
- {
- for( sal_Int32 e = firstEntry(); e < getFree() ; e = nextEntry(e) )
- blocks[ entryID(e) ] = getNum();
- }
-
-
-
-
} // end namespace db
} // end namespace xmlsearch
@@ -382,20 +352,20 @@ void BlockProcessorImpl::process( Block* block ) const
-BtreeDict::BtreeDict( DBEnv* dbenv )
- : // parameter_( parameter ),
- blockManager_( dbenv ? dbenv : new DBEnvImpl() ),
- root_( 2 ),
- blocks_( new sal_Int32[5664] )
+BtreeDict::BtreeDict( const util::IndexAccessor& indexAccessor )
+ : // parameter_( parameter ),
+ blockManager_( new DBEnvImpl( indexAccessor ) ),
+ root_( 2 ), // SCHEMA( rt )
+ blocks_( new sal_Int32[ 12736 ] ) // SCHEMA( id1 )
{
- BlockProcessorImpl blProc( this );
- blockManager_.mapBlocks( blProc );
+ BlockProcessorImpl blProc( this );
+ blockManager_.mapBlocks( blProc );
}
BtreeDict::~BtreeDict()
{
- delete[] blocks_;
+ delete[] blocks_;
}
@@ -522,49 +492,20 @@ rtl::OUString BtreeDict::findID( sal_Int32 blNum,sal_Int32 id ) const throw( xml
-
-
-
-
-
-
-
-#ifndef _XMLSEARCH_UTIL_RANDOMACCESSSTREAM_HXX_
-#include <util/RandomAccessStream.hxx>
-#endif
-
-void BtreeDict::test()
-{
-// DictBlock* block = new DictBlock( DATALEN );
-// for( int i = 0; i < theFile()->length()/BLOCKSIZE; ++i )
-// {
-// theFile()->seek( i * BLOCKSIZE );
-// block->read( theFile() );
-// block->listBlock();
-// }
-
-// const DictBlock* bla = accessBlock(4);
-
-// if( ! bla )
-// ; // cout << rtl::OUString::createFromAscii( "zero" ) << endl;
-// else
-// bla->listBlock();
-}
-
-
-
// Definitions for DBEnvImpl
-DBEnvImpl::DBEnvImpl()
+DBEnvImpl::DBEnvImpl( const util::IndexAccessor& indexAccessor )
{
- file_ = theFile();
+ file_ = indexAccessor.getStream( rtl::OUString::createFromAscii( "DICTIONARY" ),
+ rtl::OUString::createFromAscii( "r" ) );
}
DBEnvImpl::~DBEnvImpl()
{
+ delete file_;
}
@@ -604,9 +545,6 @@ void DBEnvImpl::read( sal_Int32 blNum,xmlsearch::db::Block*& block ) const
file_->seek( blNum * getBlockLen() );
block->read( file_ );
-
-// if( block->getNum() != blNum )
-// cout << rtl::OUString::createFromAscii( " aua aua " ) << endl;
}
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index ebeebde96d28..884292e1ae92 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: content.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: abi $ $Date: 2001-05-22 07:29:14 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -415,13 +415,13 @@ Any SAL_CALL Content::execute( const Command& aCommand,
Reference< XActiveDataSink > xActiveDataSink( aOpenCommand.Sink,UNO_QUERY );
if( xActiveDataSink.is() )
{
- m_aURLParameter.open( m_xSMgr,aCommand,CommandId,Environment );
- Reference< XInputStream > xUntransformed = xActiveDataSink->getInputStream();
- Reference< XInputStream > xTransformed( new Transformer( m_xProvider.getBodyPtr(),
- xUntransformed,
- m_aURLParameter ) );
+ m_aURLParameter.open( m_xSMgr,aCommand,CommandId,Environment,xActiveDataSink );
+// Reference< XInputStream > xUntransformed = xActiveDataSink->getInputStream();
+// Reference< XInputStream > xTransformed( new Transformer( m_xProvider.getBodyPtr(),
+// xUntransformed,
+// m_aURLParameter ) );
- xActiveDataSink->setInputStream( xTransformed );
+// xActiveDataSink->setInputStream( xTransformed );
}
if( m_aURLParameter.isRoot() )
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 8d18e3cd6833..5b9f26baf00a 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: databases.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: abi $ $Date: 2001-05-17 15:46:30 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -97,6 +97,7 @@ void Databases::setInstallPath( const rtl::OUString& aInstDir )
{
osl::MutexGuard aGuard( m_aMutex );
+
if( osl::FileBase::E_None != osl::FileBase::normalizePath( aInstDir,m_aInstallDirectory ) )
;
@@ -147,7 +148,6 @@ rtl::OUString Databases::getInstallPathAsURL()
}
-
rtl::OUString Databases::getURLMode()
{
return rtl::OUString::createFromAscii( "with-jars" );
@@ -187,7 +187,7 @@ std::vector< rtl::OUString > Databases::getModuleList( const rtl::OUString& Lang
if( fileName.getLength() == idx + 3 &&
( str[idx + 1] == 'd' || str[idx + 1] == 'D' ) &&
( str[idx + 2] == 'b' || str[idx + 2] == 'B' ) &&
- ( fileName = fileName.copy(0,idx).toLowerCase() ).compareToAscii( "picture" ) != 0 )
+ ( fileName = fileName.copy(0,idx).toAsciiLowerCase() ).compareToAscii( "picture" ) != 0 )
ret.push_back( fileName );
}
diff --git a/xmlhelp/source/cxxhelp/provider/makefile.mk b/xmlhelp/source/cxxhelp/provider/makefile.mk
index d11e2449142b..c9da727bd22d 100644
--- a/xmlhelp/source/cxxhelp/provider/makefile.mk
+++ b/xmlhelp/source/cxxhelp/provider/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.4 $
+# $Revision: 1.5 $
#
-# last change: $Author: abi $ $Date: 2001-05-22 07:29:14 $
+# last change: $Author: abi $ $Date: 2001-05-22 14:57:11 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -73,6 +73,8 @@ NO_BSYMBOLIC=TRUE
.INCLUDE: settings.mk
+INC+=-Ie:/w3c/Sablot-0.52/include
+
.IF "$(GUI)"=="WNT"
CFLAGS+=/GR
.ENDIF
diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx
index 85de7b712e8a..2a7858e42bbe 100644
--- a/xmlhelp/source/cxxhelp/provider/provider.cxx
+++ b/xmlhelp/source/cxxhelp/provider/provider.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: provider.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: abi $ $Date: 2001-05-17 15:46:30 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -180,7 +180,7 @@ ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider );
Reference< XContent > SAL_CALL ContentProvider::queryContent( const Reference< XContentIdentifier >& xCanonicId )
throw( IllegalIdentifierException, RuntimeException )
{
- if ( ! xCanonicId->getContentProviderScheme().equalsIgnoreCase( m_aScheme ) )
+ if ( ! xCanonicId->getContentProviderScheme().equalsIgnoreAsciiCase( m_aScheme ) )
{ // Wrong URL-scheme
throw IllegalIdentifierException();
}
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 965bf7a3338c..698b44df48e3 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: urlparameter.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: abi $ $Date: 2001-05-22 07:29:14 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,9 +59,18 @@
*
************************************************************************/
+#ifndef SablotHIncl
+#include <sablot.h>
+#endif
#ifndef _VOS_DIAGNOSE_HXX_
#include <vos/diagnose.hxx>
#endif
+#ifndef _CPPUHELPER_WEAK_HXX_
+#include <cppuhelper/weak.hxx>
+#endif
+#ifndef _CPPUHELPER_QUERYINTERFACE_HXX_
+#include <cppuhelper/queryinterface.hxx>
+#endif
#ifndef _RTL_URI_HXX_
#include <rtl/uri.hxx>
#endif
@@ -80,6 +89,9 @@
#ifndef _COM_SUN_STAR_IO_XINPUTSTREAM_HPP_
#include <com/sun/star/io/XInputStream.hpp>
#endif
+#ifndef _COM_SUN_STAR_IO_XSEEKABLE_HPP_
+#include <com/sun/star/io/XSeekable.hpp>
+#endif
#ifndef _COM_SUN_STAR_UCB_OPENCOMMANDARGUMENT2_HPP_
#include <com/sun/star/ucb/OpenCommandArgument2.hpp>
#endif
@@ -116,6 +128,7 @@ namespace chelp {
}
+using namespace cppu;
using namespace com::sun::star::io;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -397,11 +410,70 @@ void URLParameter::readBerkeley()
+// Class encapsulating the transformation of the XInputStream to XHTML
+
+
+class InputStreamTransformer
+ : public OWeakObject,
+ public XInputStream,
+ public XSeekable
+{
+public:
+
+ InputStreamTransformer( const Reference< XInputStream >& xUntransformed );
+ ~InputStreamTransformer();
+
+ virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException );
+ virtual void SAL_CALL acquire( void ) throw( RuntimeException );
+ virtual void SAL_CALL release( void ) throw( RuntimeException );
+
+
+ virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData,sal_Int32 nBytesToRead ) throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException);
+
+ virtual sal_Int32 SAL_CALL readSomeBytes( Sequence< sal_Int8 >& aData,sal_Int32 nMaxBytesToRead ) throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException);
+
+ virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException );
+
+ virtual sal_Int32 SAL_CALL available( void ) throw( NotConnectedException,
+ IOException,
+ RuntimeException );
+
+ virtual void SAL_CALL closeInput( void ) throw( NotConnectedException,
+ IOException,
+ RuntimeException );
+
+ virtual void SAL_CALL seek( sal_Int64 location ) throw( IllegalArgumentException,
+ IOException,
+ RuntimeException );
+
+ virtual sal_Int64 SAL_CALL getPosition( void ) throw( IOException,RuntimeException );
+
+ virtual sal_Int64 SAL_CALL getLength( void ) throw( IOException,RuntimeException );
+
+
+private:
+
+ Reference< XInputStream > m_xInputStream;
+ Reference< XSeekable > m_xSeekable;
+};
+
+
+
void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr,
const Command& command,
sal_Int32 CommandId,
- const Reference< XCommandEnvironment >& Environment )
+ const Reference< XCommandEnvironment >& Environment,
+ const Reference< XActiveDataSink >& xDataSink )
{
rtl::OUString service = rtl::OUString::createFromAscii( "com.sun.star.ucb.UniversalContentBroker" );
@@ -430,14 +502,17 @@ void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr,
if( isRoot() )
{
+ printf( "isRoot" );
// getPicture( HelpDatabases.getCssSheet(),m_xOutputStream);
}
else if( isPicture() )
{
+ printf( "isPicture" );
// getPicture( m_xParameter.getInputFromJarFile(),m_xOutputStream );
}
else if( isActive() )
{ // This is a Helptext
+ printf( "isActive" );
// m_xOutputStream.setBigBuffer( m_xParameter.getByteArrayText() );
}
else
@@ -445,6 +520,9 @@ void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr,
processor->execute( command,
CommandId,
Environment );
+
+ // Now plug in a new XInputStream
+ xDataSink->setInputStream( new InputStreamTransformer( xDataSink->getInputStream() ) );
}
}
@@ -601,3 +679,128 @@ bool URLParameter::query()
return ret;
}
+
+
+
+
+////////////////////////////////////////////////////////////////////////////////
+// InutStreamTransformerImpl //
+////////////////////////////////////////////////////////////////////////////////
+
+
+
+InputStreamTransformer::InputStreamTransformer( const Reference< XInputStream >& xInputStream )
+ : m_xInputStream( xInputStream ),
+ m_xSeekable( xInputStream,UNO_QUERY )
+{
+}
+
+
+InputStreamTransformer::~InputStreamTransformer()
+{
+}
+
+
+Any SAL_CALL InputStreamTransformer::queryInterface( const Type& rType ) throw( RuntimeException )
+{
+ Any aRet;
+ if( m_xSeekable.is() )
+ aRet = ::cppu::queryInterface( rType,
+ SAL_STATIC_CAST( XInputStream*,this ),
+ SAL_STATIC_CAST( XSeekable*,this ) );
+ else
+ aRet = ::cppu::queryInterface( rType,
+ SAL_STATIC_CAST( XInputStream*,this ) );
+
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
+}
+
+
+
+void SAL_CALL InputStreamTransformer::acquire( void ) throw( RuntimeException )
+{
+ OWeakObject::acquire();
+}
+
+
+
+void SAL_CALL InputStreamTransformer::release( void ) throw( RuntimeException )
+{
+ OWeakObject::release();
+}
+
+
+
+sal_Int32 SAL_CALL InputStreamTransformer::readBytes( Sequence< sal_Int8 >& aData,sal_Int32 nBytesToRead ) throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException)
+{
+ return m_xInputStream->readBytes( aData,nBytesToRead );
+}
+
+
+
+sal_Int32 SAL_CALL InputStreamTransformer::readSomeBytes( Sequence< sal_Int8 >& aData,sal_Int32 nMaxBytesToRead )
+ throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException)
+{
+ return m_xInputStream->readSomeBytes( aData,nMaxBytesToRead );
+}
+
+
+
+void SAL_CALL InputStreamTransformer::skipBytes( sal_Int32 nBytesToSkip ) throw( NotConnectedException,
+ BufferSizeExceededException,
+ IOException,
+ RuntimeException )
+{
+ m_xInputStream->skipBytes( nBytesToSkip );
+}
+
+
+
+sal_Int32 SAL_CALL InputStreamTransformer::available( void ) throw( NotConnectedException,
+ IOException,
+ RuntimeException )
+{
+ return m_xInputStream->available();
+}
+
+
+
+void SAL_CALL InputStreamTransformer::closeInput( void ) throw( NotConnectedException,
+ IOException,
+ RuntimeException )
+{
+ m_xInputStream->closeInput();
+}
+
+
+
+void SAL_CALL InputStreamTransformer::seek( sal_Int64 location ) throw( IllegalArgumentException,
+ IOException,
+ RuntimeException )
+{
+ if( m_xSeekable.is() )
+ m_xSeekable->seek( location );
+}
+
+
+
+sal_Int64 SAL_CALL InputStreamTransformer::getPosition( void ) throw( IOException,
+ RuntimeException )
+{
+ if( m_xSeekable.is() )
+ return m_xSeekable->getPosition();
+}
+
+
+
+sal_Int64 SAL_CALL InputStreamTransformer::getLength( void ) throw( IOException,RuntimeException )
+{
+ if( m_xSeekable.is() )
+ return m_xSeekable->getLength();
+}
diff --git a/xmlhelp/source/cxxhelp/qe/QueryProcessor.cxx b/xmlhelp/source/cxxhelp/qe/QueryProcessor.cxx
index 60da249e5410..95d4ededafcc 100644
--- a/xmlhelp/source/cxxhelp/qe/QueryProcessor.cxx
+++ b/xmlhelp/source/cxxhelp/qe/QueryProcessor.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: QueryProcessor.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2001-05-11 12:39:12 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -130,7 +130,7 @@ Query* QueryProcessor::processQuery( Search& search,const QueryStatement& ment )
else
{
++nContentTerms;
- rtl::OUString term = terms[i].toLowerCase();
+ rtl::OUString term = terms[i].toAsciiLowerCase();
sal_Int32 id = 0;
std::vector< sal_Int32 > ids;
if( str[0] == sal_Unicode('\"') )
diff --git a/xmlhelp/source/cxxhelp/qe/XmlIndex.cxx b/xmlhelp/source/cxxhelp/qe/XmlIndex.cxx
index ad633dd5910e..636fa103e6ed 100644
--- a/xmlhelp/source/cxxhelp/qe/XmlIndex.cxx
+++ b/xmlhelp/source/cxxhelp/qe/XmlIndex.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XmlIndex.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2001-05-10 15:25:32 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,7 +84,7 @@ using namespace xmlsearch::qe;
XmlIndex::XmlIndex( const rtl::OUString& indexDir )
: indexAccessor_( indexDir ),
- dict_( 0 ),
+ dict_( indexAccessor_ ),
documents_( 0 ),
concepts_( 0 ),
allLists_( 0 ),
@@ -93,7 +93,9 @@ XmlIndex::XmlIndex( const rtl::OUString& indexDir )
positions_( 0 ),
contextsDataL_( 0 ),
contextsData_( 0 ),
- contextTables_( 0 )
+ contextTables_( 0 ),
+ currentBatchOffset_( 0 ),
+ maxDocNumberInCache_( -1 )
{
// reading DOCS
{
@@ -138,12 +140,6 @@ XmlIndex::XmlIndex( const rtl::OUString& indexDir )
util::StreamDecompressor sdoffsets( in );
sdoffsets.ascDecode( k2,offsets_ );
delete in;
-
-// int a;
-// for( a = 0; a < offsets_.size(); ++a )
-// cout << "concepts_[" << a << "] = " << concepts_[a] << endl;
-// for( a = 0; a < offsets_.size(); ++a )
-// cout << "offsets_[" << a << "] = " << offsets_[a] << endl;
}
// reading OFFSETS
diff --git a/xmlhelp/source/cxxhelp/test/searchdemo.cxx b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
index c85e514c5b02..4ead54672782 100644
--- a/xmlhelp/source/cxxhelp/test/searchdemo.cxx
+++ b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: searchdemo.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: abi $ $Date: 2001-05-11 12:39:37 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -115,10 +115,10 @@ int main( int argc,char* argv[] )
std::vector<rtl::OUString> Query(2);
Query[0] = rtl::OUString::createFromAscii( "text*" );
Query[1] = rtl::OUString::createFromAscii( "abbildung" );
- rtl::OUString Scope = rtl::OUString::createFromAscii( "" );
+ rtl::OUString Scope = rtl::OUString::createFromAscii( "headingheading" );
int HitCount = 40;
- QueryStatement queryStatement( HitCount,Query,Scope );
+ QueryStatement queryStatement( HitCount,Query,Scope );
queryResults = queryProcessor.processQuery( queryStatement );
rtl::OUString translations[2];
diff --git a/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx b/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
index f96234e179b8..6d82293be023 100644
--- a/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
+++ b/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: IndexAccessor.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2001-05-10 15:25:58 $
+ * last change: $Author: abi $ $Date: 2001-05-22 14:57:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -154,20 +154,11 @@ RandomAccessStreamImpl::RandomAccessStreamImpl( const rtl::OUString& aPath,const
}
-RandomAccessStreamImpl Dic( rtl::OUString::createFromAscii( "//./e:/index/DICTIONARY" ),
- rtl::OUString::createFromAscii( "r" ) );
-RandomAccessStream* theFile()
+RandomAccessStream* IndexAccessor::getStream( const rtl::OUString& fileName,const rtl::OUString& how ) const
{
- return &Dic;
-}
-
-
-
-RandomAccessStream* IndexAccessor::getStream( const rtl::OUString& fileName,const rtl::OUString& how )
-{
- return new RandomAccessStreamImpl( dirName_ + fileName, how );
+ return new RandomAccessStreamImpl( dirName_ + fileName,how );
}
@@ -181,8 +172,3 @@ sal_Int32 IndexAccessor::readByteArray( sal_Int8*& out,const rtl::OUString& file
delete in;
return n;
}
-
-
-
-
-