diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-24 15:17:49 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-24 15:17:49 +0000 |
commit | 28837c48b70f5fb2630e3da919dd401e0fd5290f (patch) | |
tree | 8f492a48bd8289cfb032ce815e92ea050631b2d8 /xmlhelp | |
parent | a8a6fa5ea4383c189103639542b47ac7c4621d33 (diff) |
INTEGRATION: CWS ab52 (1.8.6); FILE MERGED
2008/06/18 10:34:16 ab 1.8.6.1: #i83625# Migration to Lucene
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/com/sun/star/help/HelpCompiler.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/xmlhelp/source/com/sun/star/help/HelpCompiler.cxx b/xmlhelp/source/com/sun/star/help/HelpCompiler.cxx index a11bbdce7b66..f3d49d2af70c 100644 --- a/xmlhelp/source/com/sun/star/help/HelpCompiler.cxx +++ b/xmlhelp/source/com/sun/star/help/HelpCompiler.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: HelpCompiler.cxx,v $ - * $Revision: 1.8 $ + * $Revision: 1.9 $ * * This file is part of OpenOffice.org. * @@ -95,7 +95,7 @@ xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath) doc = xmlParseFile(filePath.native_file_string().c_str()); } - res = xmlParseFile(filePath.native_file_string().c_str()); + //???res = xmlParseFile(filePath.native_file_string().c_str()); res = xsltApplyStylesheet(cur, doc, params); xmlFreeDoc(doc); @@ -507,6 +507,18 @@ bool HelpCompiler::compile( void ) throw( HelpProcessingException ) namespace fs { + rtl_TextEncoding getThreadTextEncoding( void ) + { + static bool bNeedsInit = true; + static rtl_TextEncoding nThreadTextEncoding; + if( bNeedsInit ) + { + bNeedsInit = false; + nThreadTextEncoding = osl_getThreadTextEncoding(); + } + return nThreadTextEncoding; + } + void create_directory(const fs::path indexDirName) { HCDBG( @@ -522,6 +534,11 @@ namespace fs osl::File::move(src.data, dest.data); } + void copy(const fs::path &src, const fs::path &dest) + { + osl::File::copy(src.data, dest.data); + } + bool exists(const fs::path &in) { osl::File tmp(in.data); |