update credits
[LibreOffice.git] / include / vcl / helper.hxx
blob295df4a1a5e7b9b959ed495622e972c9a81fbe85
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _PSPRINT_HELPER_HXX_
21 #define _PSPRINT_HELPER_HXX_
23 #include <list>
25 #include "vcl/dllapi.h"
27 #include "rtl/ustring.hxx"
30 // forwards
31 namespace osl { class File; }
33 namespace psp {
34 typedef int fontID;
36 void VCL_DLLPUBLIC getPrinterPathList( std::list< OUString >& rPathList, const char* pSubDir );
38 // note: gcc 3.4.1 warns about visibility if we retunr a const OUString& here
39 // seems to be a bug in gcc, now we return an object instead of a reference
40 OUString VCL_DLLPUBLIC getFontPath();
42 bool VCL_DLLPUBLIC convertPfbToPfa( osl::File& rInFile, osl::File& rOutFile );
44 // normalized path (equivalent to realpath)
45 void VCL_DLLPUBLIC normPath( OString& rPath );
47 // splits rOrgPath into dirname and basename
48 // rOrgPath will be subject to normPath
49 void VCL_DLLPUBLIC splitPath( OString& rOrgPath, OString& rDir, OString& rBase );
51 enum whichOfficePath { InstallationRootPath, UserPath, ConfigPath };
52 // note: gcc 3.4.1 warns about visibility if we retunr a const OUString& here
53 // seems to be a bug in gcc, now we return an object instead of a reference
54 OUString VCL_DLLPUBLIC getOfficePath( enum whichOfficePath ePath );
55 } // namespace
57 #endif // _PSPRINT_HELPER_HXX_
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */