LibreOffice Module xmloff (master)
1
xmloff
source
transform
AttrTransformerAction.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
24
enum
XMLAttrTransformerAction
25
{
26
XML_ATACTION_EOT
=
XML_TACTION_EOT
,
// uses for initialization only
27
XML_ATACTION_COPY
,
// copy attr
28
XML_ATACTION_RENAME
,
// rename attr:
29
// - param1: namespace +
30
// token of local name
31
XML_ATACTION_REMOVE
,
// remove attr
32
XML_ATACTION_IN2INCH
,
// replace "in" with "inch"
33
XML_ATACTION_INS2INCHS
,
// replace "in" with "inch"
34
// multiple times
35
XML_ATACTION_IN2TWIPS
,
// replace "in" with "inch" and
36
// convert value from inch to twips
37
// but only for writer documents
38
XML_ATACTION_RENAME_IN2INCH
,
// replace "in" with "inch" and rename
39
// attr:
40
// - param1: namespace +
41
// token of local name
42
XML_ATACTION_INCH2IN
,
// replace "inch" with "in"
43
XML_ATACTION_INCHS2INS
,
// replace "inch" with "in"
44
// multiple times
45
XML_ATACTION_TWIPS2IN
,
// replace "inch" with "in" and for writer
46
// documents convert measure value from twips
47
// to inch
48
XML_ATACTION_RENAME_INCH2IN
,
// replace "inch" with "in" and rename
49
// attr:
50
// - param1: namespace +
51
// token of local name
52
XML_ATACTION_STYLE_FAMILY
,
// NOP, used for style:family
53
XML_ATACTION_DECODE_STYLE_NAME
,
// NOP, used for style:name
54
// - param1: style family
55
XML_ATACTION_STYLE_DISPLAY_NAME
,
// NOP, used for style:display_name
56
// - param1: style family
57
XML_ATACTION_DECODE_STYLE_NAME_REF
,
// NOP, used for style:name reference
58
// - param1: style family
59
XML_ATACTION_RENAME_DECODE_STYLE_NAME_REF
,
// NOP, used for style:name
60
// - param1: namespace +
61
// token of local name
62
XML_ATACTION_ENCODE_STYLE_NAME
,
// NOP, used for style:name
63
XML_ATACTION_ENCODE_STYLE_NAME_REF
,
// NOP, used for style:name
64
XML_ATACTION_RENAME_ENCODE_STYLE_NAME_REF
,
// NOP, used for style:name
65
// - param1: namespace +
66
// token of local name
67
// - param2: style family
68
XML_ATACTION_MOVE_TO_ELEM
,
// turn attr into an elem
69
// - param1: namespace +
70
// token of local name
71
XML_ATACTION_NEG_PERCENT
,
// replace % val with 100-%
72
XML_ATACTION_RENAME_NEG_PERCENT
,
// replace % val with 100-%, rename attr
73
// - param1: namespace +
74
// token of local name
75
XML_ATACTION_HREF
,
// xmlink:href
76
XML_ATACTION_ADD_NAMESPACE_PREFIX
,
// add a namespace prefix
77
// - param1: prefix
78
XML_ATACTION_ADD_APP_NAMESPACE_PREFIX
,
// add a namespace prefix
79
// - param1: default prefix
80
XML_ATACTION_RENAME_ADD_NAMESPACE_PREFIX
,
// add a namespace prefix
81
// - param1: namespace +
82
// token of local name
83
// - param2: prefix
84
XML_ATACTION_REMOVE_NAMESPACE_PREFIX
,
// remove a namespace prefix
85
// - param1: prefix
86
XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX
,
// remove any namespace prefix
87
XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX
,
// remove a namespace prefix
88
// - param1: namespace +
89
// token of local name
90
// - param2: prefix
91
XML_ATACTION_EVENT_NAME
,
92
XML_ATACTION_MACRO_NAME
,
93
XML_ATACTION_MACRO_LOCATION
,
94
XML_ATACTION_DLG_BORDER
,
95
XML_ATACTION_URI_OOO
,
// a URI in OOo notation
96
// - param1: pacakage URI are supported
97
XML_ATACTION_URI_OASIS
,
// a URI in OASIS notation
98
// - param1: pacakage URI are supported
99
XML_ATACTION_RENAME_ATTRIBUTE
,
// rename up to 3 different possible values of an attribute
100
// - param1: token of old attribute value (lower 16 bit)
101
// + token of new attribute value (upper 16 bit)
102
// - param2: token of old attribute value
103
// + token of new attribute value
104
// - param3: token of old attribute value
105
// + token of new attribute value
106
// if param2 or param3 are unused they must contain
107
// XML_TOKEN_INVALID
108
XML_ATACTION_RNG2ISO_DATETIME
,
// converts . into , in datetimes
109
XML_ATACTION_RENAME_RNG2ISO_DATETIME
,
// converts . into , in datetimes and renames the attribute
110
// - param1: namespace +
111
// token of local name
112
XML_ATACTION_SVG_WIDTH_HEIGHT_OOO
,
// replace "inch" with "in" and subtracts 1/100th mm
113
XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS
,
// replace "in" with "inch" and adds 1/100th mm
114
XML_ATACTION_DRAW_MIRROR_OOO
,
// renames draw:mirror to style:mirror and adapts values
115
// OpenDocument file format: attribute value of <style:mirror> wrong (#i49139#)
116
XML_ATACTION_STYLE_MIRROR_OOO
,
// adapts style:mirror values
117
XML_ATACTION_DRAW_MIRROR_OASIS
,
// renames style:mirror to draw:mirror and adapts values
118
XML_ATACTION_GAMMA_OASIS
,
// converts percentage to double value
119
XML_ATACTION_GAMMA_OOO
,
// converts double value to percentage
120
XML_ATACTION_DECODE_ID
,
// converts strings with non numeric characters to only numeric character ids
121
XML_ATACTION_OPACITY_FIX
,
// converts transparency to opacity and back
122
XML_ATACTION_SHAPEID
,
// convert shape id
123
XML_ATACTION_USER_DEFINED
=0x40000000,
// user defined actions start here
124
};
125
126
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XMLAttrTransformerAction
XMLAttrTransformerAction
Definition:
AttrTransformerAction.hxx:25
XML_ATACTION_DECODE_STYLE_NAME_REF
@ XML_ATACTION_DECODE_STYLE_NAME_REF
Definition:
AttrTransformerAction.hxx:57
XML_ATACTION_EVENT_NAME
@ XML_ATACTION_EVENT_NAME
Definition:
AttrTransformerAction.hxx:91
XML_ATACTION_RENAME_DECODE_STYLE_NAME_REF
@ XML_ATACTION_RENAME_DECODE_STYLE_NAME_REF
Definition:
AttrTransformerAction.hxx:59
XML_ATACTION_IN2INCH
@ XML_ATACTION_IN2INCH
Definition:
AttrTransformerAction.hxx:32
XML_ATACTION_RENAME_IN2INCH
@ XML_ATACTION_RENAME_IN2INCH
Definition:
AttrTransformerAction.hxx:38
XML_ATACTION_RENAME_ATTRIBUTE
@ XML_ATACTION_RENAME_ATTRIBUTE
Definition:
AttrTransformerAction.hxx:99
XML_ATACTION_MOVE_TO_ELEM
@ XML_ATACTION_MOVE_TO_ELEM
Definition:
AttrTransformerAction.hxx:68
XML_ATACTION_RENAME_INCH2IN
@ XML_ATACTION_RENAME_INCH2IN
Definition:
AttrTransformerAction.hxx:48
XML_ATACTION_REMOVE
@ XML_ATACTION_REMOVE
Definition:
AttrTransformerAction.hxx:31
XML_ATACTION_EOT
@ XML_ATACTION_EOT
Definition:
AttrTransformerAction.hxx:26
XML_ATACTION_RENAME_ENCODE_STYLE_NAME_REF
@ XML_ATACTION_RENAME_ENCODE_STYLE_NAME_REF
Definition:
AttrTransformerAction.hxx:64
XML_ATACTION_TWIPS2IN
@ XML_ATACTION_TWIPS2IN
Definition:
AttrTransformerAction.hxx:45
XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX
@ XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:86
XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS
@ XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS
Definition:
AttrTransformerAction.hxx:113
XML_ATACTION_URI_OOO
@ XML_ATACTION_URI_OOO
Definition:
AttrTransformerAction.hxx:95
XML_ATACTION_DECODE_STYLE_NAME
@ XML_ATACTION_DECODE_STYLE_NAME
Definition:
AttrTransformerAction.hxx:53
XML_ATACTION_STYLE_MIRROR_OOO
@ XML_ATACTION_STYLE_MIRROR_OOO
Definition:
AttrTransformerAction.hxx:116
XML_ATACTION_RENAME_ADD_NAMESPACE_PREFIX
@ XML_ATACTION_RENAME_ADD_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:80
XML_ATACTION_INS2INCHS
@ XML_ATACTION_INS2INCHS
Definition:
AttrTransformerAction.hxx:33
XML_ATACTION_GAMMA_OOO
@ XML_ATACTION_GAMMA_OOO
Definition:
AttrTransformerAction.hxx:119
XML_ATACTION_SVG_WIDTH_HEIGHT_OOO
@ XML_ATACTION_SVG_WIDTH_HEIGHT_OOO
Definition:
AttrTransformerAction.hxx:112
XML_ATACTION_RNG2ISO_DATETIME
@ XML_ATACTION_RNG2ISO_DATETIME
Definition:
AttrTransformerAction.hxx:108
XML_ATACTION_ENCODE_STYLE_NAME
@ XML_ATACTION_ENCODE_STYLE_NAME
Definition:
AttrTransformerAction.hxx:62
XML_ATACTION_DRAW_MIRROR_OOO
@ XML_ATACTION_DRAW_MIRROR_OOO
Definition:
AttrTransformerAction.hxx:114
XML_ATACTION_RENAME_NEG_PERCENT
@ XML_ATACTION_RENAME_NEG_PERCENT
Definition:
AttrTransformerAction.hxx:72
XML_ATACTION_ENCODE_STYLE_NAME_REF
@ XML_ATACTION_ENCODE_STYLE_NAME_REF
Definition:
AttrTransformerAction.hxx:63
XML_ATACTION_INCH2IN
@ XML_ATACTION_INCH2IN
Definition:
AttrTransformerAction.hxx:42
XML_ATACTION_MACRO_LOCATION
@ XML_ATACTION_MACRO_LOCATION
Definition:
AttrTransformerAction.hxx:93
XML_ATACTION_DRAW_MIRROR_OASIS
@ XML_ATACTION_DRAW_MIRROR_OASIS
Definition:
AttrTransformerAction.hxx:117
XML_ATACTION_SHAPEID
@ XML_ATACTION_SHAPEID
Definition:
AttrTransformerAction.hxx:122
XML_ATACTION_HREF
@ XML_ATACTION_HREF
Definition:
AttrTransformerAction.hxx:75
XML_ATACTION_GAMMA_OASIS
@ XML_ATACTION_GAMMA_OASIS
Definition:
AttrTransformerAction.hxx:118
XML_ATACTION_REMOVE_NAMESPACE_PREFIX
@ XML_ATACTION_REMOVE_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:84
XML_ATACTION_INCHS2INS
@ XML_ATACTION_INCHS2INS
Definition:
AttrTransformerAction.hxx:43
XML_ATACTION_OPACITY_FIX
@ XML_ATACTION_OPACITY_FIX
Definition:
AttrTransformerAction.hxx:121
XML_ATACTION_URI_OASIS
@ XML_ATACTION_URI_OASIS
Definition:
AttrTransformerAction.hxx:97
XML_ATACTION_RENAME
@ XML_ATACTION_RENAME
Definition:
AttrTransformerAction.hxx:28
XML_ATACTION_ADD_APP_NAMESPACE_PREFIX
@ XML_ATACTION_ADD_APP_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:78
XML_ATACTION_DECODE_ID
@ XML_ATACTION_DECODE_ID
Definition:
AttrTransformerAction.hxx:120
XML_ATACTION_ADD_NAMESPACE_PREFIX
@ XML_ATACTION_ADD_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:76
XML_ATACTION_USER_DEFINED
@ XML_ATACTION_USER_DEFINED
Definition:
AttrTransformerAction.hxx:123
XML_ATACTION_DLG_BORDER
@ XML_ATACTION_DLG_BORDER
Definition:
AttrTransformerAction.hxx:94
XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX
@ XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX
Definition:
AttrTransformerAction.hxx:87
XML_ATACTION_STYLE_FAMILY
@ XML_ATACTION_STYLE_FAMILY
Definition:
AttrTransformerAction.hxx:52
XML_ATACTION_STYLE_DISPLAY_NAME
@ XML_ATACTION_STYLE_DISPLAY_NAME
Definition:
AttrTransformerAction.hxx:55
XML_ATACTION_COPY
@ XML_ATACTION_COPY
Definition:
AttrTransformerAction.hxx:27
XML_ATACTION_IN2TWIPS
@ XML_ATACTION_IN2TWIPS
Definition:
AttrTransformerAction.hxx:35
XML_ATACTION_RENAME_RNG2ISO_DATETIME
@ XML_ATACTION_RENAME_RNG2ISO_DATETIME
Definition:
AttrTransformerAction.hxx:109
XML_ATACTION_NEG_PERCENT
@ XML_ATACTION_NEG_PERCENT
Definition:
AttrTransformerAction.hxx:71
XML_ATACTION_MACRO_NAME
@ XML_ATACTION_MACRO_NAME
Definition:
AttrTransformerAction.hxx:92
TransformerAction.hxx
XML_TACTION_EOT
#define XML_TACTION_EOT
Definition:
TransformerAction.hxx:22
Generated on Sun Jul 30 2023 04:40:45 for LibreOffice Module xmloff (master) by
1.9.3