summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-03 15:46:50 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-03 15:46:50 +0000
commit708b2a9e639c3d2a709d9e0a0356d30c6c29479a (patch)
tree2cc2160f1ca2482d8acf4f4338c994245e847331 /psprint
parentedf3f23909cd1491aace795a57ed72116cb3e8e4 (diff)
INTEGRATION: CWS vcl87 (1.30.8); FILE MERGED
2008/02/27 16:29:05 pl 1.30.8.1: #i56226# remove java fontpath
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/helper/helper.cxx78
1 files changed, 17 insertions, 61 deletions
diff --git a/psprint/source/helper/helper.cxx b/psprint/source/helper/helper.cxx
index 45ac6f07a2c6..3c40f41c2acb 100644
--- a/psprint/source/helper/helper.cxx
+++ b/psprint/source/helper/helper.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: helper.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: vg $ $Date: 2008-03-18 12:13:45 $
+ * last change: $Author: kz $ $Date: 2008-04-03 16:46:50 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -41,18 +41,12 @@
#include <unistd.h>
#include <limits.h>
-#include <psprint/helper.hxx>
-#include <tools/string.hxx>
-#include <tools/urlobj.hxx>
-#include <osl/file.hxx>
-#include <osl/process.h>
-#include <osl/thread.h>
-#include <tools/config.hxx>
-#include <rtl/bootstrap.hxx>
-#include <sal/config.h>
-#ifdef SOLAR_JAVA
-#include <jvmfwk/framework.h>
-#endif // SOLAR_JAVA
+#include "psprint/helper.hxx"
+#include "tools/string.hxx"
+#include "tools/urlobj.hxx"
+#include "osl/file.hxx"
+#include "osl/process.h"
+#include "rtl/bootstrap.hxx"
#ifdef MACOSX
// directories of OS X fonts
@@ -257,56 +251,18 @@ const OUString& psp::getFontPath()
#ifdef MACOSX // Search for truetype fonts also in the MACOSX system paths
- aPathBuffer.append(sal_Unicode(';') );
- aPath += OUString( RTL_CONSTASCII_USTRINGPARAM(MACXP_FONT_DIR) );
+ aPathBuffer.append(sal_Unicode(';') );
+ aPath += OUString( RTL_CONSTASCII_USTRINGPARAM(MACXP_FONT_DIR) );
- //Userfonts
- aPath += aUserPath;
- // #i67231# [ericb 07/06] aPath was not concatened with other paths
- if (aUserPath.getLength() )
- {
- aPathBuffer.append(aPath);
- aPathBuffer.appendAscii("/../../Fonts");
- }
-#endif // MACOSX
-
- // append jre/jdk fonts if possible
- OString aJREpath;
-
-#ifdef SOLAR_JAVA
- JavaInfo * pInfo = NULL;
- javaFrameworkError jerr = jfw_getSelectedJRE( & pInfo);
- if (jerr == JFW_E_NONE && pInfo != NULL)
- {
- OUString aSys;
- if( osl_getSystemPathFromFileURL( pInfo->sLocation, &aSys.pData ) == osl_File_E_None )
- aJREpath = OUStringToOString( aSys, osl_getThreadTextEncoding() );
- }
- jfw_freeJavaInfo(pInfo);
-#endif
-
- if( aJREpath.getLength() > 0 )
+ //Userfonts
+ aPath += aUserPath;
+ // #i67231# [ericb 07/06] aPath was not concatened with other paths
+ if (aUserPath.getLength() )
{
- OString aTestPath( aJREpath );
- aTestPath += "/jre/lib/fonts";
- if( access( aTestPath.getStr(), R_OK ) )
- {
- aTestPath = aJREpath;
- aTestPath += "/lib/fonts";
- if( access( aTestPath.getStr(), R_OK ) )
- aJREpath = OString();
- else
- aJREpath = aTestPath;
- }
- else
- aJREpath = aTestPath;
- }
-
- if( aJREpath.getLength() )
- {
- aPathBuffer.append( sal_Unicode(';') );
- aPathBuffer.append( OStringToOUString( aJREpath, osl_getThreadTextEncoding() ) );
+ aPathBuffer.append(aPath);
+ aPathBuffer.appendAscii("/../../Fonts");
}
+#endif // MACOSX
aPath = aPathBuffer.makeStringAndClear();
#if OSL_DEBUG_LEVEL > 1