summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-08-01 11:14:26 +0000
committerRüdiger Timm <rt@openoffice.org>2008-08-01 11:14:26 +0000
commit6bf72c337051bf89c704fa7598a52ae09970b604 (patch)
tree6ddde0ec609a21c96779951b302a5fa626974036 /xmlhelp
parent82d54111e1d39bc5f54b3a330b2f59b51ef245f3 (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.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
index 7d449a88e660..8cfb95a5c8b6 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;