diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-08-01 11:14:26 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-08-01 11:14:26 +0000 |
commit | 2b14d3ce97c65f724dc501af3d9a32118d3eb2f0 (patch) | |
tree | b75bcc787d8668a6b1fc73ab0f5c4ae7850535d6 /xmlhelp | |
parent | 1c86b83d97dbe4893bfdc1d50ba508ab15347c59 (diff) |
INTEGRATION: CWS helpsearch (1.17.8); FILE MERGED
2008/07/23 07:26:19 jsc 1.17.8.1: #i91750# add lang parameter for help search call
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index d290ea8094..06c552eac7 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resultsetforquery.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.18 $ * * This file is part of OpenOffice.org. * @@ -141,22 +141,25 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF { if( xInvocation.is() ) { - int nParamCount = bCaptionsOnly ? 5 : 4; + int nParamCount = bCaptionsOnly ? 7 : 6; Sequence<uno::Any> aParamsSeq( nParamCount ); - aParamsSeq[0] = uno::makeAny( rtl::OUString::createFromAscii( "-index" ) ); + aParamsSeq[0] = uno::makeAny( rtl::OUString::createFromAscii( "-lang" ) ); + aParamsSeq[1] = uno::makeAny( m_aURLParameter.get_language() ); + + aParamsSeq[2] = uno::makeAny( rtl::OUString::createFromAscii( "-index" ) ); rtl::OUString aSystemPath; osl::FileBase::getSystemPathFromFileURL( idxDir, aSystemPath ); - aParamsSeq[1] = uno::makeAny( aSystemPath ); + aParamsSeq[3] = uno::makeAny( aSystemPath ); - aParamsSeq[2] = uno::makeAny( rtl::OUString::createFromAscii( "-query" ) ); + aParamsSeq[4] = uno::makeAny( rtl::OUString::createFromAscii( "-query" ) ); const std::vector< rtl::OUString >& aListItem = queryList[i]; ::rtl::OUString aNewQueryStr = aListItem[0]; - aParamsSeq[3] = uno::makeAny( aNewQueryStr ); + aParamsSeq[5] = uno::makeAny( aNewQueryStr ); if( bCaptionsOnly ) - aParamsSeq[4] = uno::makeAny( rtl::OUString::createFromAscii( "-caption" ) ); + aParamsSeq[6] = uno::makeAny( rtl::OUString::createFromAscii( "-caption" ) ); Sequence< sal_Int16 > aOutParamIndex; Sequence< uno::Any > aOutParam; |