LibreOffice Module comphelper (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
comphelper
documentconstants.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
#ifndef INCLUDED_COMPHELPER_DOCUMENTCONSTANTS_HXX
20
#define INCLUDED_COMPHELPER_DOCUMENTCONSTANTS_HXX
21
22
#include <
o3tl/typed_flags_set.hxx
>
23
24
// formats of SO6/7
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"
34
35
// template formats of SO6/7
36
#define MIMETYPE_VND_SUN_XML_WRITER_TEMPLATE_ASCII "application/vnd.sun.xml.writer.template"
37
#define MIMETYPE_VND_SUN_XML_DRAW_TEMPLATE_ASCII "application/vnd.sun.xml.draw.template"
38
#define MIMETYPE_VND_SUN_XML_IMPRESS_TEMPLATE_ASCII "application/vnd.sun.xml.impress.template"
39
#define MIMETYPE_VND_SUN_XML_CALC_TEMPLATE_ASCII "application/vnd.sun.xml.calc.template"
40
41
// formats of SO8
42
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII "application/vnd.oasis.opendocument.text"
43
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII "application/vnd.oasis.opendocument.text-web"
44
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII "application/vnd.oasis.opendocument.text-master"
45
#define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII "application/vnd.oasis.opendocument.graphics"
46
#define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII "application/vnd.oasis.opendocument.presentation"
47
#define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_ASCII "application/vnd.oasis.opendocument.spreadsheet"
48
#define MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII "application/vnd.oasis.opendocument.chart"
49
#define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII "application/vnd.oasis.opendocument.formula"
50
#define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII "application/vnd.oasis.opendocument.base"
51
#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII "application/vnd.sun.xml.report"
52
#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII "application/vnd.sun.xml.report.chart"
53
54
// template formats of SO8
55
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-template"
56
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-master-template"
57
#define MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII "application/vnd.oasis.opendocument.graphics-template"
58
#define MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII "application/vnd.oasis.opendocument.presentation-template"
59
#define MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE_ASCII "application/vnd.oasis.opendocument.spreadsheet-template"
60
#define MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII "application/vnd.oasis.opendocument.chart-template"
61
#define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII "application/vnd.oasis.opendocument.formula-template"
62
63
64
// ODF versions
65
#define ODFVER_010_TEXT "1.0"
66
#define ODFVER_011_TEXT "1.1"
67
#define ODFVER_012_TEXT "1.2"
68
#define ODFVER_013_TEXT "1.3"
69
70
// filter flags
71
// TODO/LATER: The flags should be part of the UNO specification
72
//
73
// http://www.mail-archive.com/dev@openoffice.org/msg05047.html says:
74
//
75
// I can just sum up what comes into my mind, hope I don't miss one:
76
//
77
// Import - should be self explaining
78
// Export - should be self explaining
79
// Template - deprecated
80
// TemplatePath - filter for a documenttemplate
81
// Own - one of the OOo file formats
82
// Alien - no zip container based format
83
// Preferred - preferred filter for a particular type
84
// 3rdPartyFilter - implemented as a UNO component
85
// Default - default filter for this document type
86
// Exotic - an unusual/legacy file-format, we don't normally see
87
//
88
// (The 3rdPartyFilter flag is here called StarONE)
89
//
90
enum class
SfxFilterFlags
91
{
92
NONE
= 0,
93
IMPORT
= 0x00000001,
94
EXPORT
= 0x00000002,
95
TEMPLATE
= 0x00000004,
96
INTERNAL
= 0x00000008,
97
TEMPLATEPATH
= 0x00000010,
98
OWN
= 0x00000020,
99
ALIEN
= 0x00000040,
100
101
DEFAULT
= 0x00000100,
102
SUPPORTSSELECTION
= 0x00000400,
103
NOTINFILEDLG
= 0x00001000,
104
105
OPENREADONLY
= 0x00010000,
106
MUSTINSTALL
= 0x00020000,
107
CONSULTSERVICE
= 0x00040000,
108
STARONEFILTER
= 0x00080000,
109
PACKED
= 0x00100000,
110
EXOTIC
= 0x00200000,
111
COMBINED
= 0x00800000,
112
113
ENCRYPTION
= 0x01000000,
114
PASSWORDTOMODIFY
= 0x02000000,
115
GPGENCRYPTION
= 0x04000000,
116
PREFERED
= 0x10000000,
117
STARTPRESENTATION
= 0x20000000,
118
SUPPORTSSIGNING
= 0x40000000,
119
};
120
121
namespace
o3tl
122
{
123
template
<>
struct
typed_flags
<
SfxFilterFlags
> :
is_typed_flags
<SfxFilterFlags, 0x77bf157f> {};
124
}
125
126
#define SFX_FILTER_NOTINSTALLED (SfxFilterFlags::MUSTINSTALL | SfxFilterFlags::CONSULTSERVICE)
127
128
#endif
129
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxFilterFlags::CONSULTSERVICE
SfxFilterFlags::PACKED
SfxFilterFlags::PASSWORDTOMODIFY
SfxFilterFlags::MUSTINSTALL
SfxFilterFlags::TEMPLATE
SfxFilterFlags::OWN
SfxFilterFlags::SUPPORTSSELECTION
SfxFilterFlags::SUPPORTSSIGNING
SfxFilterFlags::EXOTIC
FontToSubsFontFlags::IMPORT
SfxFilterFlags::DEFAULT
SfxFilterFlags::ALIEN
SfxFilterFlags::COMBINED
typed_flags_set.hxx
SfxFilterFlags::GPGENCRYPTION
SfxFilterFlags::NONE
SfxFilterFlags::OPENREADONLY
o3tl::is_typed_flags
SfxFilterFlags::TEMPLATEPATH
SfxFilterFlags::INTERNAL
SfxFilterFlags::STARTPRESENTATION
o3tl
SfxFilterFlags::STARONEFILTER
EXPORT
#define EXPORT
o3tl::typed_flags
SfxFilterFlags::NOTINFILEDLG
SfxFilterFlags::ENCRYPTION
SfxFilterFlags
SfxFilterFlags
Definition:
documentconstants.hxx:90
SfxFilterFlags::PREFERED
Generated on Sat Feb 27 2021 02:42:37 for LibreOffice Module comphelper (master) by
1.8.10