1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _COMPHELPER_DOCUMENTCONSTANTS_HXX
20 #define _COMPHELPER_DOCUMENTCONSTANTS_HXX
22 #include <rtl/ustring.hxx>
25 #define MIMETYPE_VND_SUN_XML_WRITER_ASCII "application/vnd.sun.xml.writer"
26 #define MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII "application/vnd.sun.xml.writer.web"
27 #define MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII "application/vnd.sun.xml.writer.global"
28 #define MIMETYPE_VND_SUN_XML_DRAW_ASCII "application/vnd.sun.xml.draw"
29 #define MIMETYPE_VND_SUN_XML_IMPRESS_ASCII "application/vnd.sun.xml.impress"
30 #define MIMETYPE_VND_SUN_XML_CALC_ASCII "application/vnd.sun.xml.calc"
31 #define MIMETYPE_VND_SUN_XML_CHART_ASCII "application/vnd.sun.xml.chart"
32 #define MIMETYPE_VND_SUN_XML_MATH_ASCII "application/vnd.sun.xml.math"
33 #define MIMETYPE_VND_SUN_XML_BASE_ASCII "application/vnd.sun.xml.base"
35 #define MIMETYPE_VND_SUN_XML_WRITER OUString( MIMETYPE_VND_SUN_XML_WRITER_ASCII )
36 #define MIMETYPE_VND_SUN_XML_WRITER_WEB OUString( MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII )
37 #define MIMETYPE_VND_SUN_XML_WRITER_GLOBAL OUString( MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII )
38 #define MIMETYPE_VND_SUN_XML_DRAW OUString( MIMETYPE_VND_SUN_XML_DRAW_ASCII )
39 #define MIMETYPE_VND_SUN_XML_IMPRESS OUString( MIMETYPE_VND_SUN_XML_IMPRESS_ASCII )
40 #define MIMETYPE_VND_SUN_XML_CALC OUString( MIMETYPE_VND_SUN_XML_CALC_ASCII )
41 #define MIMETYPE_VND_SUN_XML_CHART OUString( MIMETYPE_VND_SUN_XML_CHART_ASCII )
42 #define MIMETYPE_VND_SUN_XML_MATH OUString( MIMETYPE_VND_SUN_XML_MATH_ASCII )
43 #define MIMETYPE_VND_SUN_XML_BASE OUString( MIMETYPE_VND_SUN_XML_BASE_ASCII )
45 // template formats of SO6/7
46 #define MIMETYPE_VND_SUN_XML_WRITER_TEMPLATE_ASCII "application/vnd.sun.xml.writer.template"
47 #define MIMETYPE_VND_SUN_XML_DRAW_TEMPLATE_ASCII "application/vnd.sun.xml.draw.template"
48 #define MIMETYPE_VND_SUN_XML_IMPRESS_TEMPLATE_ASCII "application/vnd.sun.xml.impress.template"
49 #define MIMETYPE_VND_SUN_XML_CALC_TEMPLATE_ASCII "application/vnd.sun.xml.calc.template"
51 #define MIMETYPE_VND_SUN_XML_WRITER_TEMPLATE OUString( MIMETYPE_VND_SUN_XML_WRITER_ASCII )
52 #define MIMETYPE_VND_SUN_XML_DRAW_TEMPLATE OUString( MIMETYPE_VND_SUN_XML_DRAW_ASCII )
53 #define MIMETYPE_VND_SUN_XML_IMPRESS_TEMPLATE OUString( MIMETYPE_VND_SUN_XML_IMPRESS_ASCII )
54 #define MIMETYPE_VND_SUN_XML_CALC_TEMPLATE OUString( MIMETYPE_VND_SUN_XML_CALC_ASCII )
57 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII "application/vnd.oasis.opendocument.text"
58 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII "application/vnd.oasis.opendocument.text-web"
59 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII "application/vnd.oasis.opendocument.text-master"
60 #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII "application/vnd.oasis.opendocument.graphics"
61 #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII "application/vnd.oasis.opendocument.presentation"
62 #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII "application/vnd.oasis.opendocument.spreadsheet"
63 #define MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII "application/vnd.oasis.opendocument.chart"
64 #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII "application/vnd.oasis.opendocument.formula"
65 #define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII "application/vnd.oasis.opendocument.base"
66 #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII "application/vnd.sun.xml.report"
67 #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII "application/vnd.sun.xml.report.chart"
69 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT OUString( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII )
70 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB OUString( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII )
71 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL OUString( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII )
72 #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING OUString( MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII )
73 #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION OUString( MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII )
74 #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET OUString( MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII )
75 #define MIMETYPE_OASIS_OPENDOCUMENT_CHART OUString( MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII )
76 #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA OUString( MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII )
77 #define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE OUString( MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII )
78 #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT OUString( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII )
79 #define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART OUString( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII )
81 // template formats of SO8
82 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-template"
83 #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII "application/vnd.oasis.opendocument.graphics-template"
84 #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII "application/vnd.oasis.opendocument.presentation-template"
85 #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII "application/vnd.oasis.opendocument.spreadsheet-template"
86 #define MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII "application/vnd.oasis.opendocument.chart-template"
87 #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII "application/vnd.oasis.opendocument.formula-template"
89 #define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII )
90 #define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII )
91 #define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII )
92 #define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII )
93 #define MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII )
94 #define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE OUString( MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII )
97 #define ODFVER_010_TEXT_ASCII "1.0"
98 #define ODFVER_011_TEXT_ASCII "1.1"
99 #define ODFVER_012_TEXT_ASCII "1.2"
101 #define ODFVER_010_TEXT OUString( ODFVER_010_TEXT_ASCII )
102 #define ODFVER_011_TEXT OUString( ODFVER_011_TEXT_ASCII )
103 #define ODFVER_012_TEXT OUString( ODFVER_012_TEXT_ASCII )
107 // TODO/LATER: The flags should be part of the UNO specification
109 // Note that these flag bits have parallel names in
110 // filter/source/config/cache/constant.hxx. Some of the bits are
111 // missing from there, and some have different names. But the meaning
112 // is presumably the same, and the values are the same.
114 // http://www.mail-archive.com/dev@openoffice.org/msg05047.html says:
116 // I can just sum up what comes into my mind, hope I don't miss one:
118 // Import - should be self explaining
119 // Export - should be self explaining
120 // Template - deprecated
121 // TemplatePath - filter for a documenttemplate
122 // Own - one of the OOo file formats
123 // Alien - no zip container based format
124 // Preferred - preferred filter for a particular type
125 // Asynchron - deprecated, only HTML-filter isn't synchron
126 // 3rdPartyFilter - implemented as a UNO component
127 // Default - default filter for this document type
128 // NotInFileDialog - should be self explaining
129 // NotInChooser - as above
131 // (The 3rdPartyFilter flag is here called StarONE)
133 // At some point (4.0?) we should drop the duplicate set of names over
134 // in filter, and rename the obscure ones to describe their meaning
135 // using terms that are understandable.
137 #define SFX_FILTER_IMPORT 0x00000001L
138 #define SFX_FILTER_EXPORT 0x00000002L
139 #define SFX_FILTER_TEMPLATE 0x00000004L
140 #define SFX_FILTER_INTERNAL 0x00000008L
141 #define SFX_FILTER_TEMPLATEPATH 0x00000010L
142 #define SFX_FILTER_OWN 0x00000020L
143 #define SFX_FILTER_ALIEN 0x00000040L
144 #define SFX_FILTER_USESOPTIONS 0x00000080L
146 #define SFX_FILTER_DEFAULT 0x00000100L
147 #define SFX_FILTER_EXECUTABLE 0x00000200L
148 #define SFX_FILTER_SUPPORTSSELECTION 0x00000400L
149 #define SFX_FILTER_MAPTOAPPPLUG 0x00000800L
150 #define SFX_FILTER_NOTINFILEDLG 0x00001000L
151 #define SFX_FILTER_NOTINCHOOSER 0x00002000L
152 #define SFX_FILTER_ASYNC 0x00004000L
153 #define SFX_FILTER_CREATOR 0x00008000L
154 #define SFX_FILTER_OPENREADONLY 0x00010000L
155 #define SFX_FILTER_MUSTINSTALL 0x00020000L
156 #define SFX_FILTER_CONSULTSERVICE 0x00040000L
158 #define SFX_FILTER_STARONEFILTER 0x00080000L
159 #define SFX_FILTER_PACKED 0x00100000L
161 #define SFX_FILTER_BROWSERPREFERED 0x00400000L
163 #define SFX_FILTER_ENCRYPTION 0x01000000L
164 #define SFX_FILTER_PASSWORDTOMODIFY 0x02000000L
166 #define SFX_FILTER_PREFERED 0x10000000L
168 #define SFX_FILTER_VERSION_NONE 0
169 #define SFX_FILTER_NOTINSTALLED SFX_FILTER_MUSTINSTALL | SFX_FILTER_CONSULTSERVICE
171 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */