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 _TOOLS_INETDEF_HXX 25 #define _TOOLS_INETDEF_HXX 26 27 //============================================================================ 28 #if defined WNT 29 // This token goes into the "generator" string of every document written -- 30 // ODF meta.xml and the HTML export's <meta> tag. It used to say Win32 for 31 // both architectures; the rest of this file already distinguishes them 32 // (FreeBSD/i386 vs FreeBSD/amd64, NETBSD x86 vs NETBSD ARM32), Windows just 33 // never did. 34 #if defined _WIN64 || defined X86_64 35 #define TOOLS_INETDEF_OS "Win64" 36 #else 37 #define TOOLS_INETDEF_OS "Win32" 38 #endif 39 #elif defined OS2 40 #define TOOLS_INETDEF_OS "OS/2" 41 #elif defined UNX 42 #if defined AIX 43 #define TOOLS_INETDEF_OS "AIX" 44 #elif defined HPUX 45 #define TOOLS_INETDEF_OS "HP/UX" 46 #elif defined SOLARIS && defined SPARC 47 #define TOOLS_INETDEF_OS "Solaris Sparc" 48 #elif defined SOLARIS && defined INTEL 49 #define TOOLS_INETDEF_OS "Solaris x86" 50 #elif defined SCO 51 #define TOOLS_INETDEF_OS "SCO" 52 #elif defined NETBSD && defined X86 53 #define TOOLS_INETDEF_OS "NETBSD x86" 54 #elif defined NETBSD && defined ARM32 55 #define TOOLS_INETDEF_OS "NETBSD ARM32" 56 #elif defined NETBSD && defined SPARC 57 #define TOOLS_INETDEF_OS "NETBSD Sparc" 58 #elif defined LINUX && defined X86 59 #define TOOLS_INETDEF_OS "Linux" 60 #elif defined FREEBSD && defined X86 61 #define TOOLS_INETDEF_OS "FreeBSD/i386" 62 #elif defined FREEBSD && defined X86_64 63 #define TOOLS_INETDEF_OS "FreeBSD/amd64" 64 #elif defined SINIX 65 #define TOOLS_INETDEF_OS "SINIX" 66 #else // AIX, HPUX, SOLARIS, ... 67 #define TOOLS_INETDEF_OS "Unix" 68 #endif // AIX, HPUX, SOLARIS, ... 69 #else // WNT, ... 70 #define TOOLS_INETDEF_OS "unknown OS" 71 #endif // WN, ... 72 73 #define TOOLS_INETDEF_PRODUCT "StarOffice/5.2" 74 #define TOOLS_INETDEF_MOZILLA "Mozilla/3.0" 75 76 #define INET_PRODUCTNAME TOOLS_INETDEF_PRODUCT " (" TOOLS_INETDEF_OS ")" 77 #define INET_DEF_CALLERNAME TOOLS_INETDEF_MOZILLA " (compatible; " \ 78 TOOLS_INETDEF_PRODUCT "; " TOOLS_INETDEF_OS ")" 79 80 //============================================================================ 81 // The following definitions seem obsolete and might get removed in future. 82 83 #define INET_PERS_CERT_HOMEPAGE "http://www.stardivision.de/certs.html" 84 #define INET_PERS_CERT_HOMEPAGE_INT \ 85 "http://www.stardivision.de/certs/certs##.html" 86 // the above definitions are only used in svx/source/options/optinet2.cxx 87 88 #if defined __RSC 89 #define INET_UNDEFINED 0 90 #define INET_NAME_RESOLVE_START 1 91 #define INET_NAME_RESOLVE_ERROR 2 92 #define INET_NAME_RESOLVE_SUCCESS 3 93 #define INET_CONNECT_START 4 94 #define INET_CONNECT_ERROR 5 95 #define INET_CONNECT_SUCCESS 6 96 #define INET_WRITE_START 7 97 #define INET_WRITE_STATUS 8 98 #define INET_WRITE_ERROR 9 99 #define INET_WRITE_SUCCESS 10 100 #define INET_READ_START 11 101 #define INET_READ_STATUS 12 102 #define INET_READ_ERROR 13 103 #define INET_READ_SUCCESS 14 104 #define INET_CLOSING_CONNECTION 15 105 #define INET_CONNECTION_CLOSED 16 106 #define INET_REQUEST_CANCELED 17 107 #define INET_CONNECTION_CANCELED 18 108 #define INET_SESSION_CANCELED 19 109 #define INET_AUTHENTICATION 20 110 #define INET_OFFLINE_ERROR 21 111 #define INET_PROXY_AUTHENTICATION 22 112 #endif // __RSC 113 // the above definitions are only used in sfx2/source/doc/doc.src 114 115 #endif // _TOOLS_INETDEF_HXX 116