File: odfuserfield.docbook

package info (click to toggle)
python-odf 1.3.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,356 kB
  • ctags: 1,902
  • sloc: python: 21,654; makefile: 352; sh: 10; xml: 2
file content (144 lines) | stat: -rw-r--r-- 3,614 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<refentry id="odfuserfield">
  <refentryinfo>
    <productname>odfpy</productname>
    <author>
      <firstname>Søren</firstname><surname>Roug</surname>
      <contrib>Original author</contrib>
    </author>
    <author>
      <firstname>Michael</firstname><surname>Howitz</surname>
      <affiliation>
      <orgname>gocept gmbh &amp; co. kg</orgname>
      </affiliation>
      <contrib>Refactoring</contrib>
    </author>
  </refentryinfo>
  <refmeta>
    <refentrytitle>odfuserfield</refentrytitle>
    <manvolnum>1</manvolnum>
    <refmiscinfo class="manual">User commands</refmiscinfo>
  </refmeta>

<refnamediv>
<refname>odfuserfield</refname>
<refpurpose>List or change the user-field declarations in an ODF file</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
    <command>odfuserfield</command>
    <arg>-l</arg>
    <arg>-L</arg>
    <arg rep="repeat">-x <replaceable>field</replaceable></arg>
    <arg rep="repeat">-X <replaceable>field</replaceable></arg>
    <arg rep="repeat">-s <replaceable>field:value</replaceable></arg>
    <arg choice="opt">-o <replaceable>path</replaceable></arg>
    <arg choice="plain"><replaceable>path</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
<command>Odfuserfield</command> is a program that will list or change
the user variable declarations in an OpenDocument file.
There are two kinds of variables in OpenDocument. Simple variables can
take different values at different positions, throughout a document.
User variables have the same value throughout a document. Due to the latter's
global nature it is safe to change them with an external application.
</para>
<para>
Use <command>odfuserfield</command> to fill out form letters before
printing or giving to the user.
</para>
<para>
<quote>Path</quote> is assumed to be an
OpenDocument file of text, spreadsheet or presentation type.
</para>
</refsect1>

<refsect1><title>Options</title>
<variablelist>

<varlistentry>
<term>-l</term>
<listitem>
<para>
List (extract) all known user-fields.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term>-L</term>
<listitem>
<para>
List (extract) all known user-fields with type and value.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term>-x <replaceable>field</replaceable></term>
<listitem>
<para>
Extract the contents of this field from the file.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term>-X <replaceable>field</replaceable></term>
<listitem>
<para>
Same as -x, but also preserves/includes the field name and type.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term>-s <replaceable>field:value</replaceable></term>
<listitem>
<para>
Set the value of an existing user field.
The field type will be the same.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term>-o <replaceable>path</replaceable></term>
<listitem>
<para>
Filename to write modified ODT file to.
If no <option>-o</option> option is provided, the ODT file will be written to stdout.
</para>
</listitem>
</varlistentry>

</variablelist>
</refsect1>

<refsect1><title>Example</title>
<screen>
odfuserfield -L odf-file
</screen>
</refsect1>

<refsect1><title>See Also</title>
<para>
<command>formail</command>(1),
<command>id3tag</command>(1)
</para>
</refsect1>

<refsect1><title>Todo</title>
<para>
Implement formulas. See OpenDocument v1.0 specification section 6.3.5.
This requires a different syntax for -s arguments.
</para>
</refsect1>

</refentry>