1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textshared0000000020xml" indexer="include" status="PUBLISH">
27<title id="tit" xml-lang="en-US">About Import and Export Filters</title>
28<filename>/text/shared/00/00000020.xhp</filename>
29</topic>
30</meta>
31<body>
32<bookmark xml-lang="en-US" branch="index" id="bm_id3152952"><bookmark_value>import filters</bookmark_value>
33<bookmark_value>export filters</bookmark_value>
34<bookmark_value>filters; for import and export</bookmark_value>
35<bookmark_value>files; filters and formats</bookmark_value>
36<bookmark_value>formats; on opening and saving</bookmark_value>
37<bookmark_value>importing; HTML and text documents</bookmark_value>
38<bookmark_value>exporting;HTML and text documents</bookmark_value>
39<bookmark_value>text documents; importing/exporting</bookmark_value>
40<bookmark_value>HTML documents; importing/exporting</bookmark_value>
41<bookmark_value>UTF-8/UCS2 support</bookmark_value>
42<bookmark_value>HTML; export character set</bookmark_value>
43<bookmark_value>PostScript; creating files</bookmark_value>
44<bookmark_value>exporting;to PostScript format</bookmark_value>
45</bookmark>
46<paragraph role="heading" id="hd_id3152952" xml-lang="en-US" level="1" l10n="U" oldref="1">About Import and Export Filters</paragraph>
47<paragraph role="paragraph" id="par_id3143272" xml-lang="en-US" l10n="U" oldref="2">In $[officename], apart from its own <link href="text/shared/00/00000021.xhp" name="XML formats">XML formats</link> you can also open and save many foreign XML formats.</paragraph>
48<paragraph role="paragraph" id="par_id3152414" xml-lang="en-US" l10n="U" oldref="3"><switchinline select="sys"><caseinline select="UNIX">In UNIX, certain file formats cannot be recognized automatically.
49</caseinline><defaultinline>$[officename] normally recognizes the correct file type automatically on opening a file.</defaultinline></switchinline> There may be cases where you have to select the file type yourself in the <emph>Open</emph> dialog. For example, if you have a database table in text format that you want to open as a database table, you need to specify the file type "Text CSV" after selecting the file.</paragraph>
50<paragraph role="heading" id="hd_id3148668" xml-lang="en-US" level="2" l10n="U" oldref="238">Basic Macros in MS Office Documents</paragraph>
51<paragraph role="paragraph" id="par_id3156211" xml-lang="en-US" l10n="U" oldref="239">In <switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01130100.xhp" name="Load/Save - VBA Properties">Load/Save - VBA Properties</link> you can specify the settings for the VBA macro codes in MS Office documents. VBA macros are unable to run in $[officename]; they must first be converted and adapted. Often you only want to use $[officename] to change the visible content of a Word, Excel or PowerPoint file and then save the file again in Microsoft Office format without changing the macros they contain. You can set the behavior of $[officename] as desired: Either the VBA macros are saved in commented form as a subroutine of $[officename] and when the document is saved in MS Office format are written back correctly again, or you can select the Microsoft Office macros to be removed when loading. The last option is an effective protection against viruses within the Microsoft Office documents.</paragraph>
52<paragraph role="heading" id="hd_id3154232" xml-lang="en-US" level="2" l10n="U" oldref="5">Notes regarding external formats and file types</paragraph>
53<paragraph role="paragraph" id="par_id3154230" xml-lang="en-US" l10n="U" oldref="226">Even if they are not installed, some filters can be selected in the <emph>Open</emph> and <emph>Save</emph> dialogs. If you select such a filter, a message will appear saying that you can still install the filter if you require.</paragraph>
54<paragraph role="paragraph" id="par_id3149999" xml-lang="en-US" l10n="U" oldref="200"><switchinline select="sys"><caseinline select="WIN">If you want to install additional filters or remove individual filters from the installation, close %PRODUCTNAME, start the Setup program and select the <emph>Modify</emph> option. Then you will see a dialog in which you can add or remove individual components of %PRODUCTNAME. Graphic filters can be found in "Optional Components".
55</caseinline></switchinline></paragraph>
56<paragraph role="heading" id="hd_id3156027" xml-lang="en-US" level="3" l10n="U" oldref="7"><switchinline select="appl"><caseinline select="CALC">
57</caseinline><caseinline select="DRAW">
58</caseinline><caseinline select="IMPRESS">
59</caseinline><defaultinline>Importing and Exporting Text Documents</defaultinline></switchinline></paragraph>
60<paragraph role="paragraph" id="par_id3145669" xml-lang="en-US" l10n="U" oldref="8"><switchinline select="appl"><caseinline select="CALC">
61</caseinline><caseinline select="DRAW">
62</caseinline><caseinline select="IMPRESS">
63</caseinline><defaultinline>$[officename] Writer can read various versions of the Microsoft Word text format. You also can save your own texts in Word format. However, not everything available with $[officename] Writer can be transferred to MS Word, and not everything can be imported.</defaultinline></switchinline></paragraph>
64<paragraph role="paragraph" id="par_id3150144" xml-lang="en-US" l10n="U" oldref="233"><switchinline select="appl"><caseinline select="CALC">
65</caseinline><caseinline select="DRAW">
66</caseinline><caseinline select="IMPRESS">
67</caseinline><defaultinline>Importing is normally not problematic. Even redlining information and controls are imported (and exported) so that $[officename] recognizes inserted or deleted text in Word documents as well as font attributes that have been modified. Different coloring for each author and the time of such changes is also included. When graphic text boxes and labels are imported from templates, most of the attributes are also imported as direct paragraph and drawing attributes. However, some of the attributes may be lost during the import procedure.</defaultinline></switchinline></paragraph>
68<paragraph role="paragraph" id="par_id3149095" xml-lang="en-US" l10n="U" oldref="10"><switchinline select="appl"><caseinline select="CALC">
69</caseinline><caseinline select="DRAW">
70</caseinline><caseinline select="IMPRESS">
71</caseinline><defaultinline>It is also possible to import and export <link href="text/shared/00/00000005.xhp#rtf" name="RTF">RTF</link> files. This file format can be used to exchange formatted texts across various applications and platforms. In this way, many formats read by most programs will be transferred without a problem. The clipboard uses RTF format when you insert part of a spreadsheet from $[officename] Calc through <link href="text/shared/00/00000005.xhp" name="DDE">DDE</link> into $[officename] Writer.</defaultinline></switchinline></paragraph>
72<paragraph role="tip" id="par_id3151378" xml-lang="en-US" l10n="U" oldref="237">The filter <emph>Text Encoded</emph> helps you open and save text documents with another encoding font. The filter opens a dialog that enables you to select character set, default fonts, language and paragraph break.</paragraph>
73<paragraph role="heading" id="hd_id3149763" xml-lang="en-US" level="3" l10n="U" oldref="11">Importing and Exporting in HTML Format </paragraph>
74<paragraph role="paragraph" id="par_id3150244" xml-lang="en-US" l10n="U" oldref="198">With $[officename] Writer, you can insert footnotes and endnotes in your HTML document. They are exported as meta tags. The footnote and endnote characters are exported as hyperlinks.</paragraph>
75<paragraph role="paragraph" id="par_id3149800" xml-lang="en-US" l10n="U" oldref="199">Comments are used to include unknown characters in an HTML document. Every note that begins with "HTML:..." and ends with "&gt;" is treated as an HTML code, but is exported without these designations. Several tags around text can be included after "HTML:..." Accented characters are converted into the ANSI character set. Comments are created during import (for example, for meta tags that have no room in the file properties or unknown tags).</paragraph>
76<paragraph role="paragraph" id="par_id3149734" xml-lang="en-US" l10n="U" oldref="201">The HTML import of $[officename] Writer is able to read files that have UTF-8 or UCS2 character coding. All characters that are contained in the ANSI character set or in the system's character set can be displayed.</paragraph>
77<paragraph role="paragraph" id="par_id3149578" xml-lang="en-US" l10n="U" oldref="240">When exporting to HTML, the character set selected in <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Load/Save - HTML Compatibility</emph> is used. Characters not present there are written in a substitute form, which is displayed correctly in modern web browsers. When exporting such characters, you will receive an appropriate warning.</paragraph>
78<paragraph role="paragraph" id="par_id3153146" xml-lang="en-US" l10n="CHG" oldref="197">If, in <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Load/Save - HTML Compatibility</emph>, you select Netscape Navigator, MS Internet Explorer, or $[officename] Writer as the export option, upon export all important font attributes are exported as direct attributes (for example, text color, font size, bold, italic, and so on) in CSS1 styles. (<link href="text/shared/00/00000002.xhp" name="CSS">CSS</link> stands for Cascading Style Sheets.) Importing is also carried out according to this standard.</paragraph>
79<paragraph role="paragraph" id="par_id3154143" xml-lang="en-US" l10n="U" oldref="130">The "font" property corresponds to Netscape Navigator; that is, before the font size you can specify optional values for "font-style" (italic, none), "font-variant" (normal, small-caps) and "font-weight" (normal, bold).</paragraph>
80<list type="unordered">
81<listitem>
82<paragraph role="listitem" id="par_id3153760" xml-lang="en-US" l10n="U" oldref="131">For example, "Font: bold italic small-caps 12pt/200% Arial, Helvetica" switches to bold, italic, small caps, double-space with the font family Arial or Helvetica, if Arial doesn't exist.</paragraph>
83</listitem>
84</list>
85<list type="unordered">
86<listitem>
87<paragraph role="listitem" id="par_id3150129" xml-lang="en-US" l10n="U" oldref="132">"Font: 10pt" switches to a 10pt font, with bold, italic, small caps off.</paragraph>
88</listitem>
89</list>
90<paragraph role="paragraph" id="par_id3155135" xml-lang="en-US" l10n="CHG" oldref="14">If MS Internet Explorer or $[officename] Writer are set as the export option, the sizes of the control field and their internal margins are exported as styles (print formats). CSS1 size properties are based on "width" and "height" values. The "Margin" property is used to set equal margins on all sides of the page. To allow different margins, the "Margin-Left", "Margin-Right", "Margin-Top" and "Margin-Bottom" properties are used.</paragraph>
91<paragraph role="paragraph" id="par_id3148473" xml-lang="en-US" l10n="CHG" oldref="15">The distances of graphics and Plug-Ins to the content can be set individually for export to $[officename] Writer and MS Internet Explorer. If the top/bottom or right/left margin is set differently, the distances are exported in a "STYLE" option for the corresponding tag as CSS1 size properties "Margin-Top", "Margin-Bottom", "Margin-Left" and "Margin-Right".</paragraph>
92<paragraph role="paragraph" id="par_id3144510" xml-lang="en-US" l10n="CHG" oldref="16">Text frames are supported with the use of CSS1 extensions for absolute positioned objects. This applies only to the export options Netscape Navigator, MS Internet Explorer, and $[officename] Writer. Text frames can be aligned as graphics, <switchinline select="sys"><caseinline select="WIN"> Plug-Ins,
93</caseinline></switchinline>and Floating Frames, but character-linked frames are not possible.</paragraph>
94<paragraph role="paragraph" id="par_id3147530" xml-lang="en-US" l10n="U" oldref="46">Text frames are exported as "&lt;SPAN&gt;" or "&lt;DIV&gt;" tags if they do not contain columns. If they do contain columns then they are exported as "&lt;MULTICOL&gt;".</paragraph>
95<paragraph role="paragraph" id="par_id3153896" xml-lang="en-US" l10n="U" oldref="202">The measurement unit set in $[officename] is used for HTML export of CSS1 properties. The unit can be set separately for text and HTML documents under <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME Writer - General</emph> or <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME Writer/Web - View</emph>. The number of exported decimal places depends on the unit.</paragraph>
96<table id="tbl_id3154346">
97<tablerow>
98<tablecell colspan="" rowspan="">
99<paragraph role="paragraph" id="par_id3154935" xml-lang="en-US" l10n="U" oldref="203">Measurement Unit</paragraph>
100</tablecell>
101<tablecell colspan="" rowspan="">
102<paragraph role="paragraph" id="par_id3154226" xml-lang="en-US" l10n="U" oldref="204">Measurement Unit Name in CSS1</paragraph>
103</tablecell>
104<tablecell colspan="" rowspan="">
105<paragraph role="paragraph" id="par_id3151106" xml-lang="en-US" l10n="U" oldref="205">Maximum Number of Decimal Places</paragraph>
106</tablecell>
107</tablerow>
108<tablerow>
109<tablecell colspan="" rowspan="">
110<paragraph role="paragraph" id="par_id3154071" xml-lang="en-US" l10n="U" oldref="206">Millimeter</paragraph>
111</tablecell>
112<tablecell colspan="" rowspan="">
113<paragraph role="paragraph" id="par_id3149290" xml-lang="en-US" l10n="U" oldref="207">mm</paragraph>
114</tablecell>
115<tablecell colspan="" rowspan="">
116<paragraph role="paragraph" id="par_id3152920" xml-lang="en-US" l10n="U" oldref="208">2</paragraph>
117</tablecell>
118</tablerow>
119<tablerow>
120<tablecell colspan="" rowspan="">
121<paragraph role="paragraph" id="par_id3156293" xml-lang="en-US" l10n="U" oldref="209">Centimeter</paragraph>
122</tablecell>
123<tablecell colspan="" rowspan="">
124<paragraph role="paragraph" id="par_id3154819" xml-lang="en-US" l10n="U" oldref="210">cm</paragraph>
125</tablecell>
126<tablecell colspan="" rowspan="">
127<paragraph role="paragraph" id="par_id3147228" xml-lang="en-US" l10n="U" oldref="211">2</paragraph>
128</tablecell>
129</tablerow>
130<tablerow>
131<tablecell colspan="" rowspan="">
132<paragraph role="paragraph" id="par_id3154329" xml-lang="en-US" l10n="U" oldref="212">Inch</paragraph>
133</tablecell>
134<tablecell colspan="" rowspan="">
135<paragraph role="paragraph" id="par_id3150740" xml-lang="en-US" l10n="U" oldref="213">in</paragraph>
136</tablecell>
137<tablecell colspan="" rowspan="">
138<paragraph role="paragraph" id="par_id3157320" xml-lang="en-US" l10n="U" oldref="214">2</paragraph>
139</tablecell>
140</tablerow>
141<tablerow>
142<tablecell colspan="" rowspan="">
143<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U" oldref="215">Pica</paragraph>
144</tablecell>
145<tablecell colspan="" rowspan="">
146<paragraph role="paragraph" id="par_id3144760" xml-lang="en-US" l10n="U" oldref="216">pc</paragraph>
147</tablecell>
148<tablecell colspan="" rowspan="">
149<paragraph role="paragraph" id="par_id3145322" xml-lang="en-US" l10n="U" oldref="217">2</paragraph>
150</tablecell>
151</tablerow>
152<tablerow>
153<tablecell colspan="" rowspan="">
154<paragraph role="paragraph" id="par_id3155131" xml-lang="en-US" l10n="U" oldref="218">Point</paragraph>
155</tablecell>
156<tablecell colspan="" rowspan="">
157<paragraph role="paragraph" id="par_id3147288" xml-lang="en-US" l10n="U" oldref="219">pt</paragraph>
158</tablecell>
159<tablecell colspan="" rowspan="">
160<paragraph role="paragraph" id="par_id3145364" xml-lang="en-US" l10n="U" oldref="220">1</paragraph>
161</tablecell>
162</tablerow>
163</table>
164<paragraph role="paragraph" id="par_id3149262" xml-lang="en-US" l10n="U" oldref="70">The $[officename] Web page filter supports certain capabilities of CSS2. However, to use it, print layout export must be activated in <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Load/Save - HTML Compatibility</emph>. Then, in HTML documents, besides the HTML Page Style, you can also use the styles "First page", "Left page" and "Right page". These styles should enable you to set different page sizes and margins for the first page and for right and left pages when printing.</paragraph>
165<paragraph role="heading" id="hd_id3145750" xml-lang="en-US" level="3" l10n="U" oldref="223">Importing and Exporting Numbering</paragraph>
166<paragraph role="paragraph" id="par_id3145591" xml-lang="en-US" l10n="U" oldref="224">If, in <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Load/Save - HTML Compatibility</emph>, the export option "$[officename] Writer" or "Internet Explorer" is selected, the indents of numberings are exported as "margin-left" CSS1 property in the STYLE attribute of the &lt;OL&gt; and &lt;UL&gt; tags. The property indicates the difference relative to the indent of the next higher level.</paragraph>
167<paragraph role="paragraph" id="par_id3153573" xml-lang="en-US" l10n="U" oldref="225">A left paragraph indent in numbering is indicated as "margin-left" CSS1 property. First-line indents are ignored in numbering and not exported.</paragraph>
168<paragraph role="heading" id="hd_id3148556" xml-lang="en-US" level="3" l10n="U" oldref="235">Importing and Exporting Spreadsheet Files</paragraph>
169<paragraph role="paragraph" id="par_id3153365" xml-lang="en-US" l10n="U" oldref="236">$[officename] imports and exports references to deleted sections such as, for example, a referenced column. The whole formula can be viewed during the export process and the deleted reference contains an indication (#REF!) to the reference. A #REF! will be correspondingly created for the reference during the import.</paragraph>
170<paragraph role="heading" id="hd_id3150228" xml-lang="en-US" level="3" l10n="U" oldref="103">Importing and Exporting Graphics Files</paragraph>
171<paragraph role="paragraph" id="par_id3152578" xml-lang="en-US" l10n="U" oldref="104">As with HTML documents, you can choose to use a filter with or without the element ($[officename] Impress) in the name to open a $[officename] graphics file. If without, the file will be opened as a $[officename] Draw document. Otherwise, the file saved by an old program version is now opened in $[officename] Impress.</paragraph>
172<paragraph role="paragraph" id="par_id3144441" xml-lang="en-US" l10n="U" oldref="106">When you import an EPS file, a preview of the graphic is displayed in the document. If a preview is not available, a placeholder corresponding to the size of the graphic is displayed in the document. Under Unix and Microsoft Windows you can print the imported file by using a PostScript printer. <switchinline select="sys"><caseinline select="UNIX">
173</caseinline><defaultinline>If a different printer is used the preview will be printed.</defaultinline></switchinline> When exporting EPS graphics, a preview is created and has the TIFF or EPSI format. If an EPS graphic together with other graphics is exported in the EPS format then this file will be embedded unchanged in the new file.</paragraph>
174<paragraph role="paragraph" id="par_id3146120" xml-lang="en-US" l10n="U" oldref="222">Multipage-TIFFs are allowed when graphics are imported or exported in TIFF format. The graphics are retrieved as a set of individual pictures in a single file, for example, the individual pages of a fax.</paragraph>
175<paragraph role="paragraph" id="par_id3159153" xml-lang="en-US" l10n="CHG" oldref="109">Some $[officename] Draw and $[officename] Impress options can be accessed through <emph>File - Export</emph>. See <link href="text/shared/00/00000200.xhp" name="Graphics Export Options">Graphics Export Options</link> for more information.</paragraph>
176<paragraph role="heading" id="hd_id3153213" xml-lang="en-US" level="3" l10n="U" oldref="228">PostScript</paragraph>
177<paragraph role="paragraph" id="par_id3156444" xml-lang="en-US" l10n="U" oldref="229">To export a document or graphic in PostScript format:</paragraph>
178<list type="ordered">
179<listitem>
180<paragraph role="listitem" id="par_id3163714" xml-lang="en-US" l10n="U" oldref="230">If you have not yet done so, install a PostScript printer driver, such as the Apple LaserWriter driver.</paragraph>
181</listitem>
182<listitem>
183<paragraph role="listitem" id="par_id3153142" xml-lang="en-US" l10n="U" oldref="231">Print the document with the <emph>File - Print</emph> menu command.</paragraph>
184</listitem>
185<listitem>
186<paragraph role="listitem" id="par_id3154149" xml-lang="en-US" l10n="U" oldref="242">Select the PostScript printer in the dialog and mark the <emph>Print to file</emph> check box. A PostScript file will be created.</paragraph>
187</listitem>
188</list>
189</body>
190</helpdocument>
191