odfuserfield.docbook 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <refentry id="odfuserfield">
  5. <refentryinfo>
  6. <productname>odfpy</productname>
  7. <author>
  8. <firstname>Søren</firstname><surname>Roug</surname>
  9. <contrib>Original author</contrib>
  10. </author>
  11. <author>
  12. <firstname>Michael</firstname><surname>Howitz</surname>
  13. <affiliation>
  14. <orgname>gocept gmbh &amp; co. kg</orgname>
  15. </affiliation>
  16. <contrib>Refactoring</contrib>
  17. </author>
  18. </refentryinfo>
  19. <refmeta>
  20. <refentrytitle>odfuserfield</refentrytitle>
  21. <manvolnum>1</manvolnum>
  22. <refmiscinfo class="manual">User commands</refmiscinfo>
  23. </refmeta>
  24. <refnamediv>
  25. <refname>odfuserfield</refname>
  26. <refpurpose>List or change the user-field declarations in an ODF file</refpurpose>
  27. </refnamediv>
  28. <refsynopsisdiv>
  29. <cmdsynopsis>
  30. <command>odfuserfield</command>
  31. <arg>-l</arg>
  32. <arg>-L</arg>
  33. <arg rep="repeat">-x <replaceable>field</replaceable></arg>
  34. <arg rep="repeat">-X <replaceable>field</replaceable></arg>
  35. <arg rep="repeat">-s <replaceable>field:value</replaceable></arg>
  36. <arg choice="opt">-o <replaceable>path</replaceable></arg>
  37. <arg choice="plain"><replaceable>path</replaceable></arg>
  38. </cmdsynopsis>
  39. </refsynopsisdiv>
  40. <refsect1><title>Description</title>
  41. <para>
  42. <command>Odfuserfield</command> is a program that will list or change
  43. the user variable declarations in an OpenDocument file.
  44. There are two kinds of variables in OpenDocument. Simple variables can
  45. take different values at different positions, throughout a document.
  46. User variables have the same value throughout a document. Due to the latter's
  47. global nature it is safe to change them with an external application.
  48. </para>
  49. <para>
  50. Use <command>odfuserfield</command> to fill out form letters before
  51. printing or giving to the user.
  52. </para>
  53. <para>
  54. <quote>Path</quote> is assumed to be an
  55. OpenDocument file of text, spreadsheet or presentation type.
  56. </para>
  57. </refsect1>
  58. <refsect1><title>Options</title>
  59. <variablelist>
  60. <varlistentry>
  61. <term>-l</term>
  62. <listitem>
  63. <para>
  64. List (extract) all known user-fields.
  65. </para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry>
  69. <term>-L</term>
  70. <listitem>
  71. <para>
  72. List (extract) all known user-fields with type and value.
  73. </para>
  74. </listitem>
  75. </varlistentry>
  76. <varlistentry>
  77. <term>-x <replaceable>field</replaceable></term>
  78. <listitem>
  79. <para>
  80. Extract the contents of this field from the file.
  81. </para>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry>
  85. <term>-X <replaceable>field</replaceable></term>
  86. <listitem>
  87. <para>
  88. Same as -x, but also preserves/includes the field name and type.
  89. </para>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry>
  93. <term>-s <replaceable>field:value</replaceable></term>
  94. <listitem>
  95. <para>
  96. Set the value of an existing user field.
  97. The field type will be the same.
  98. </para>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry>
  102. <term>-o <replaceable>path</replaceable></term>
  103. <listitem>
  104. <para>
  105. Filename to write modified ODT file to.
  106. If no <option>-o</option> option is provided, the ODT file will be written to stdout.
  107. </para>
  108. </listitem>
  109. </varlistentry>
  110. </variablelist>
  111. </refsect1>
  112. <refsect1><title>Example</title>
  113. <screen>
  114. odfuserfield -L odf-file
  115. </screen>
  116. </refsect1>
  117. <refsect1><title>See Also</title>
  118. <para>
  119. <command>formail</command>(1),
  120. <command>id3tag</command>(1)
  121. </para>
  122. </refsect1>
  123. <refsect1><title>Todo</title>
  124. <para>
  125. Implement formulas. See OpenDocument v1.0 specification section 6.3.5.
  126. This requires a different syntax for -s arguments.
  127. </para>
  128. </refsect1>
  129. </refentry>