Update ooo320-m1
[ooovba.git] / xmloff / source / transform / ElemTransformerAction.hxx
blob70115c579626ae6f6e18205379b5847546bb44b6
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ElemTransformerAction.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_ELEMTRANSFORMERACTION_HXX
32 #define _XMLOFF_ELEMTRANSFORMERACTION_HXX
34 #include "TransformerAction.hxx"
36 enum XMLElemTransformerAction
38 XML_ETACTION_EOT=XML_TACTION_EOT, // uses for initialization only
39 XML_ETACTION_COPY, // copy all (default)
40 // for persistent elements: keep
41 // elem content
42 XML_ETACTION_COPY_TEXT, // copy all
43 // for persistent elements: keep
44 // text content
45 XML_ETACTION_COPY_CONTENT, // ignore elem, process content
46 XML_ETACTION_RENAME_ELEM, // rename element:
47 // - param1: namespace +
48 // token of local name
49 XML_ETACTION_RENAME_ELEM_PROC_ATTRS,// rename element and proc attr:
50 // - param1: elem namespace +
51 // token of local name
52 // - param2: attr acation map
53 XML_ETACTION_RENAME_ELEM_ADD_ATTR, // rename element and add attr:
54 // - param1: elem namespace +
55 // token of local name
56 // - param2: attr namespace +
57 // token of local name
58 // - param3: attr value
59 XML_ETACTION_RENAME_ELEM_ADD_PROC_ATTR, // rename element and add attr:
60 // - param1: elem namespace +
61 // token of local name
62 // - param2: attr namespace +
63 // token of local name
64 // - param3: attr value (low)
65 // attr action map (high)
66 XML_ETACTION_RENAME_ELEM_COND, // rename element if child of another:
67 // - param1: namespace +
68 // token of new local name
69 // - param2: namespace +
70 // token of parent element
71 XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND,// rename element and proc attr
72 // if child of another:
73 // - param1: elem namespace +
74 // token of new local name
75 // - param2: attr acation map
76 // - param3: namespace +
77 // token of parent element
78 XML_ETACTION_PROC_ATTRS, // proc attr:
79 // - param1: attr acation map
80 XML_ETACTION_MOVE_ATTRS_TO_ELEMS, // turn some attributes into elems
81 // - param1: action map specifying
82 // the attrs that shall be moved
83 XML_ETACTION_MOVE_ELEMS_TO_ATTRS, // turn some elems into attrs
84 // - param1: action map specifying
85 // the elems that shall be moved
86 XML_ETACTION_PROC_ATTRS_COND, // proc attr if child of another:
87 // - param1: namespace +
88 // token of parent element
89 // - param2: attr acation map
90 XML_ETACTION_EXTRACT_CHARACTERS, // takes the characters of the current
91 // element and all child elements
92 // and put them together into the
93 // current element
94 // the child elements are removed
95 XML_ETACTION_USER_DEFINED=0x40000000,// user defined actions start here
96 XML_ETACTION_END=XML_TACTION_END
99 #endif // _XMLOFF_ELEMTRANSFORMERACTION_HXX