1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _PSPRINT_HELPER_HXX_ 25 #define _PSPRINT_HELPER_HXX_ 26 27 #include <list> 28 29 #include "vcl/dllapi.h" 30 31 #include "rtl/ustring.hxx" 32 33 34 // forwards 35 namespace osl { class File; } 36 37 namespace psp { 38 typedef int fontID; 39 40 void VCL_DLLPUBLIC getPrinterPathList( std::list< rtl::OUString >& rPathList, const char* pSubDir ); 41 42 // note: gcc 3.4.1 warns about visibility if we retunr a const rtl::OUString& here 43 // seems to be a bug in gcc, now we return an object instead of a reference 44 rtl::OUString VCL_DLLPUBLIC getFontPath(); 45 46 bool VCL_DLLPUBLIC convertPfbToPfa( osl::File& rInFile, osl::File& rOutFile ); 47 48 // normalized path (equivalent to realpath) 49 void VCL_DLLPUBLIC normPath( rtl::OString& rPath ); 50 51 // splits rOrgPath into dirname and basename 52 // rOrgPath will be subject to normPath 53 void VCL_DLLPUBLIC splitPath( rtl::OString& rOrgPath, rtl::OString& rDir, rtl::OString& rBase ); 54 55 enum whichOfficePath { NetPath, UserPath, ConfigPath }; 56 // note: gcc 3.4.1 warns about visibility if we retunr a const rtl::OUString& here 57 // seems to be a bug in gcc, now we return an object instead of a reference 58 rtl::OUString VCL_DLLPUBLIC getOfficePath( enum whichOfficePath ePath ); 59 } // namespace 60 61 #endif // _PSPRINT_HELPER_HXX_ 62