LibreOffice Module xmloff (master) 1
ElemTransformerAction.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "TransformerAction.hxx"
23
25{
26 XML_ETACTION_EOT=XML_TACTION_EOT, // uses for initialization only
27 XML_ETACTION_COPY, // copy all (default)
28 // for persistent elements: keep
29 // elem content
31 // for persistent elements: keep
32 // text content
33 XML_ETACTION_COPY_CONTENT, // ignore elem, process content
34 XML_ETACTION_RENAME_ELEM, // rename element:
35 // - param1: namespace +
36 // token of local name
37 XML_ETACTION_RENAME_ELEM_PROC_ATTRS,// rename element and proc attr:
38 // - param1: elem namespace +
39 // token of local name
40 // - param2: attr action map
41 XML_ETACTION_RENAME_ELEM_ADD_ATTR, // rename element and add attr:
42 // - param1: elem namespace +
43 // token of local name
44 // - param2: attr namespace +
45 // token of local name
46 // - param3: attr value
47 XML_ETACTION_RENAME_ELEM_ADD_PROC_ATTR, // rename element and add attr:
48 // - param1: elem namespace +
49 // token of local name
50 // - param2: attr namespace +
51 // token of local name
52 // - param3: attr value (low)
53 // attr action map (high)
54 XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND,// rename element and proc attr
55 // if child of another:
56 // - param1: elem namespace +
57 // token of new local name
58 // - param2: attr action map
59 // - param3: namespace +
60 // token of parent element
62 // - param1: attr action map
63 XML_ETACTION_MOVE_ATTRS_TO_ELEMS, // turn some attributes into elems
64 // - param1: action map specifying
65 // the attrs that shall be moved
66 XML_ETACTION_MOVE_ELEMS_TO_ATTRS, // turn some elems into attrs
67 // - param1: action map specifying
68 // the elems that shall be moved
69 XML_ETACTION_PROC_ATTRS_COND, // proc attr if child of another:
70 // - param1: namespace +
71 // token of parent element
72 // - param2: attr action map
73 XML_ETACTION_EXTRACT_CHARACTERS, // takes the characters of the current
74 // element and all child elements
75 // and put them together into the
76 // current element
77 // the child elements are removed
78 XML_ETACTION_MOVE_TO_ATTR, // turn elem into an attr:
79 // - param1: namespace +
80 // token of local name
81 XML_ETACTION_MOVE_TO_ATTR_RNG2ISO_DATETIME, // turn elem into an attr and convert . to , in datetimes
82 // - param1: namespace +
83 // token of local name
84 XML_ETACTION_USER_DEFINED=0x40000000// user defined actions start here
85};
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XMLElemTransformerAction
@ XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND
@ XML_ETACTION_RENAME_ELEM_ADD_PROC_ATTR
@ XML_ETACTION_EXTRACT_CHARACTERS
@ XML_ETACTION_EOT
@ XML_ETACTION_RENAME_ELEM
@ XML_ETACTION_PROC_ATTRS_COND
@ XML_ETACTION_RENAME_ELEM_PROC_ATTRS
@ XML_ETACTION_RENAME_ELEM_ADD_ATTR
@ XML_ETACTION_COPY_TEXT
@ XML_ETACTION_MOVE_ELEMS_TO_ATTRS
@ XML_ETACTION_USER_DEFINED
@ XML_ETACTION_COPY
@ XML_ETACTION_MOVE_TO_ATTR
@ XML_ETACTION_MOVE_ATTRS_TO_ELEMS
@ XML_ETACTION_COPY_CONTENT
@ XML_ETACTION_MOVE_TO_ATTR_RNG2ISO_DATETIME
@ XML_ETACTION_PROC_ATTRS
#define XML_TACTION_EOT