diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-24 15:18:04 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-24 15:18:04 +0000 |
commit | 566bf452be787afc42c2fb76f139d162540583b4 (patch) | |
tree | e7d8a6d1296dcc05523164e5d8c2871915f7c54b /xmlhelp | |
parent | 579ee4ef8042d9c1313e5cec95f4cf6994deba59 (diff) |
INTEGRATION: CWS ab52 (1.7.6); FILE MERGED
2008/06/18 10:34:16 ab 1.7.6.1: #i83625# Migration to Lucene
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/com/sun/star/help/HelpCompiler.hxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/xmlhelp/source/com/sun/star/help/HelpCompiler.hxx b/xmlhelp/source/com/sun/star/help/HelpCompiler.hxx index 9f9ca205a5..61233d0299 100644 --- a/xmlhelp/source/com/sun/star/help/HelpCompiler.hxx +++ b/xmlhelp/source/com/sun/star/help/HelpCompiler.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: HelpCompiler.hxx,v $ - * $Revision: 1.7 $ + * $Revision: 1.8 $ * * This file is part of OpenOffice.org. * @@ -72,6 +72,8 @@ namespace fs { + rtl_TextEncoding getThreadTextEncoding( void ); + enum convert { native }; class path { @@ -86,20 +88,20 @@ namespace fs osl_getProcessWorkingDir(&sWorkingDir.pData); rtl::OString tmp(in.c_str()); - rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, osl_getThreadTextEncoding())); + rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, getThreadTextEncoding())); osl::File::getFileURLFromSystemPath(ustrSystemPath, data); osl::File::getAbsoluteFileURL(sWorkingDir, data, data); } path(const std::string &FileURL) { rtl::OString tmp(FileURL.c_str()); - data = rtl::OStringToOUString(tmp, osl_getThreadTextEncoding()); + data = rtl::OStringToOUString(tmp, getThreadTextEncoding()); } std::string native_file_string() const { ::rtl::OUString ustrSystemPath; osl::File::getSystemPathFromFileURL(data, ustrSystemPath); - rtl::OString tmp(rtl::OUStringToOString(ustrSystemPath, osl_getThreadTextEncoding())); + rtl::OString tmp(rtl::OUStringToOString(ustrSystemPath, getThreadTextEncoding())); HCDBG(std::cerr << "native_file_string is " << tmp.getStr() << std::endl); return std::string(tmp.getStr()); } @@ -116,7 +118,7 @@ namespace fs HCDBG(std::cerr << "orig was " << rtl::OUStringToOString(ret.data, RTL_TEXTENCODING_UTF8).getStr() << std::endl); rtl::OString tmp(in.c_str()); - rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, osl_getThreadTextEncoding())); + rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, getThreadTextEncoding())); ret.data += rtl::OUString(sal_Unicode('/')); ret.data += ustrSystemPath; HCDBG(std::cerr << "final is " << @@ -126,7 +128,7 @@ namespace fs void append(const char *in) { rtl::OString tmp(in); - rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, osl_getThreadTextEncoding())); + rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, getThreadTextEncoding())); data = data + ustrSystemPath; } void append(const std::string &in) { append(in.c_str()); } @@ -134,6 +136,7 @@ namespace fs void create_directory(const fs::path indexDirName); void rename(const fs::path &src, const fs::path &dest); + void copy(const fs::path &src, const fs::path &dest); bool exists(const fs::path &in); void remove_all(const fs::path &in); void remove(const fs::path &in); |