xref: /aoo4110/main/svtools/inc/svtools/rtfout.hxx (revision b1cdbd2c)
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 _RTFOUT_HXX
25 #define _RTFOUT_HXX
26 
27 #include "svtools/svtdllapi.h"
28 #include <tools/solar.h>
29 
30 #ifndef _RTL_TEXTENC_H_
31 #include <rtl/textenc.h>
32 #endif
33 
34 class String;
35 class SvStream;
36 
37 class SVT_DLLPUBLIC RTFOutFuncs
38 {
39 public:
40 #if defined(UNX)
41 	static const sal_Char sNewLine;		// nur \012 oder \015
42 #else
43 	static const sal_Char __FAR_DATA sNewLine[];	// \015\012
44 #endif
45 
46 	static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
47 					int *pUCMode,
48 					rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
49 					sal_Bool bWriteHelpFile = sal_False );
50 	static SvStream& Out_String( SvStream&, const String&,
51 					rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
52 					sal_Bool bWriteHelpFile = sal_False );
53 	static SvStream& Out_Fontname( SvStream&, const String&,
54 					rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
55 					sal_Bool bWriteHelpFile = sal_False );
56 
57 	static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen );
58 };
59 
60 
61 #endif
62 
63 
64