xref: /trunk/main/sw/source/filter/inc/wrt_fn.hxx (revision 1d2dbeb0)
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 #ifndef _WRT_FN_HXX
24 #define _WRT_FN_HXX
25 #include "hintids.hxx"		// fuer die Konstanten
26 
27 // einige Forward-Deklarationen
28 class SwNode;
29 class SwCntntNode;
30 class Writer;
31 class SfxPoolItem;
32 class SfxItemSet;
33 
34 /* Funktionspointer auf die Attribut-Write-Funktionen */
35 typedef Writer& (*FnAttrOut)( Writer&, const SfxPoolItem& );
36 typedef FnAttrOut SwAttrFnTab[ POOLATTR_END - POOLATTR_BEGIN ];
37 
38 SW_DLLPUBLIC Writer& Out( const SwAttrFnTab, const SfxPoolItem&, Writer& );
39 SW_DLLPUBLIC Writer& Out_SfxItemSet( const SwAttrFnTab, Writer&, const SfxItemSet&,
40 						 sal_Bool bDeep, sal_Bool bTstForDefault = sal_True );
41 
42 
43 /* Funktionspointer auf die Node-Write-Funktionen */
44 
45 enum RES_NODE
46 {
47 RES_NODE_BEGIN = 0,
48 	RES_TXTNODE = RES_NODE_BEGIN,
49 	RES_GRFNODE,
50 	RES_OLENODE,
51 RES_NODE_END
52 };
53 
54 typedef Writer& (*FnNodeOut)( Writer&, SwCntntNode& );
55 typedef FnNodeOut SwNodeFnTab[ RES_NODE_END - RES_NODE_BEGIN ];
56 
57 SW_DLLPUBLIC Writer& Out( const SwNodeFnTab, SwNode&, Writer & rWrt );
58 
59 
60 
61 
62 #endif	//	_WRT_FN_HXX
63