diff options
author | Andreas Bregas <ab@openoffice.org> | 2009-12-03 17:22:08 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2009-12-03 17:22:08 +0000 |
commit | b5b0a616cc603435f8c8d4e3b348baa4fb24e740 (patch) | |
tree | 16d4b72736d4b6f25ff765e9886fa8854a351c41 /desktop | |
parent | 4068d2bc8d7acba8a45e33a54cf80e3c6ff9de81 (diff) |
#i107283# Pass config help path as argument to compileExtensionHelp()
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/help/dp_help.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index dd9e009e90cc..3bc1e1458670 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -39,6 +39,7 @@ #include "ucbhelper/content.hxx" #include "comphelper/servicedecl.hxx" #include "svtools/inettype.hxx" +#include "svtools/pathoptions.hxx" #include <transex3/compilehelp.hxx> #include <com/sun/star/ucb/XSimpleFileAccess.hpp> @@ -350,8 +351,12 @@ void BackendImpl::implProcessHelp pXhpFiles[iXhp] = aXhpRelFile; } + rtl::OUString aOfficeHelpPath( SvtPathOptions().GetHelpPath() ); + rtl::OUString aOfficeHelpPathFileURL; + ::osl::File::getFileURLFromSystemPath( aOfficeHelpPath, aOfficeHelpPathFileURL ); + HelpProcessingErrorInfo aErrorInfo; - bool bSuccess = compileExtensionHelp( aHelpStr, aLangURL, + bool bSuccess = compileExtensionHelp( aOfficeHelpPathFileURL, aHelpStr, aLangURL, nXhpFileCount, pXhpFiles, aErrorInfo ); if( bSuccess && xInvocation.is() ) |