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 .
21 #include <rtl/ustring.hxx>
23 /** @short used to identify a some generic item properties against the
24 configuration API and can be used at all name containers
25 (based on this filtercache) too.
27 inline constexpr OUStringLiteral PROPNAME_NAME
= u
"Name";
29 /** @short used to identify a type item property against the
30 configuration API and can be used at all name containers
31 (based on this filtercache) too.
33 inline constexpr OUStringLiteral PROPNAME_UINAME
= u
"UIName";
34 inline constexpr OUStringLiteral PROPNAME_UINAMES
= u
"UINames";
35 inline constexpr OUStringLiteral PROPNAME_PREFERRED
= u
"Preferred";
36 inline constexpr OUStringLiteral PROPNAME_PREFERREDFILTER
= u
"PreferredFilter";
37 inline constexpr OUStringLiteral PROPNAME_DETECTSERVICE
= u
"DetectService";
38 inline constexpr OUStringLiteral PROPNAME_MEDIATYPE
= u
"MediaType";
39 inline constexpr OUStringLiteral PROPNAME_CLIPBOARDFORMAT
= u
"ClipboardFormat";
40 inline constexpr OUStringLiteral PROPNAME_URLPATTERN
= u
"URLPattern";
41 inline constexpr OUStringLiteral PROPNAME_EXTENSIONS
= u
"Extensions";
43 /** @short used to identify a filter item property against the
44 configuration API and can be used at all name containers
45 (based on this filtercache) too.
47 inline constexpr OUStringLiteral PROPNAME_TYPE
= u
"Type";
48 inline constexpr OUStringLiteral PROPNAME_DOCUMENTSERVICE
= u
"DocumentService";
49 inline constexpr OUStringLiteral PROPNAME_FILTERSERVICE
= u
"FilterService";
50 inline constexpr OUStringLiteral PROPNAME_UICOMPONENT
= u
"UIComponent";
51 inline constexpr OUStringLiteral PROPNAME_FLAGS
= u
"Flags";
52 inline constexpr OUStringLiteral PROPNAME_USERDATA
= u
"UserData";
53 inline constexpr OUStringLiteral PROPNAME_TEMPLATENAME
= u
"TemplateName";
54 inline constexpr OUStringLiteral PROPNAME_FILEFORMATVERSION
= u
"FileFormatVersion";
55 inline constexpr OUStringLiteral PROPNAME_EXPORTEXTENSION
= u
"ExportExtension";
56 inline constexpr OUStringLiteral PROPNAME_ENABLED
= u
"Enabled";
58 /** @short used to identify a frame loader or detect service item
59 property against the configuration API and can be used
60 at all name containers (based on this filtercache) too.
62 inline constexpr OUStringLiteral PROPNAME_TYPES
= u
"Types";
64 /** @short used to identify the list of sorted filters for a specific
67 inline constexpr OUStringLiteral PROPNAME_SORTEDFILTERLIST
= u
"SortedFilterList";
69 /** @short implicit properties. which are used at the container interface only.
71 inline constexpr OUStringLiteral PROPNAME_FINALIZED
= u
"Finalized";
72 inline constexpr OUStringLiteral PROPNAME_MANDATORY
= u
"Mandatory";
74 /** @short used to identify a set of items against the configuration API. */
75 inline constexpr OUStringLiteral CFGSET_TYPES
= u
"Types";
76 inline constexpr OUStringLiteral CFGSET_FILTERS
= u
"Filters";
77 inline constexpr OUStringLiteral CFGSET_FRAMELOADERS
= u
"FrameLoaders";
78 inline constexpr OUStringLiteral CFGSET_CONTENTHANDLERS
= u
"ContentHandlers";
80 /** @short used to address some configuration keys directly.
82 @descr Such direct keys should be used with function
83 FilterCache::impl_getDirectCFGValue() only!
85 @TODO define these direct keys ...
87 inline constexpr OUStringLiteral CFGDIRECTKEY_OFFICELOCALE
= u
"/org.openoffice.Setup/L10N/ooLocale";
88 inline constexpr OUStringLiteral CFGDIRECTKEY_DEFAULTFRAMELOADER
= u
"/org.openoffice.TypeDetection.Misc/Defaults/DefaultFrameLoader";
89 #define CFGDIRECTKEY_PRODUCTNAME "/org.openoffice.Setup/Product/ooName"
91 // Note that these flag bits have parallel names in
92 // comphelper/inc/comphelper/documentconstants.hxx . See that file for
93 // documentation on their meaning.
95 /** @short names of filter flags, sorted in alphabetical order */
96 inline constexpr OUStringLiteral FLAGNAME_3RDPARTYFILTER
= u
"3RDPARTYFILTER";
97 inline constexpr OUStringLiteral FLAGNAME_ALIEN
= u
"ALIEN";
98 inline constexpr OUStringLiteral FLAGNAME_CONSULTSERVICE
= u
"CONSULTSERVICE";
99 inline constexpr OUStringLiteral FLAGNAME_DEFAULT
= u
"DEFAULT";
100 inline constexpr OUStringLiteral FLAGNAME_ENCRYPTION
= u
"ENCRYPTION";
101 inline constexpr OUStringLiteral FLAGNAME_EXPORT
= u
"EXPORT";
102 inline constexpr OUStringLiteral FLAGNAME_GPGENCRYPTION
= u
"GPGENCRYPTION";
103 inline constexpr OUStringLiteral FLAGNAME_IMPORT
= u
"IMPORT";
104 inline constexpr OUStringLiteral FLAGNAME_INTERNAL
= u
"INTERNAL";
105 inline constexpr OUStringLiteral FLAGNAME_NOTINFILEDIALOG
= u
"NOTINFILEDIALOG";
106 inline constexpr OUStringLiteral FLAGNAME_NOTINSTALLED
= u
"NOTINSTALLED";
107 inline constexpr OUStringLiteral FLAGNAME_OWN
= u
"OWN";
108 inline constexpr OUStringLiteral FLAGNAME_PACKED
= u
"PACKED";
109 inline constexpr OUStringLiteral FLAGNAME_PASSWORDTOMODIFY
= u
"PASSWORDTOMODIFY";
110 inline constexpr OUStringLiteral FLAGNAME_PREFERRED
= u
"PREFERRED";
111 inline constexpr OUStringLiteral FLAGNAME_STARTPRESENTATION
= u
"STARTPRESENTATION";
112 inline constexpr OUStringLiteral FLAGNAME_READONLY
= u
"READONLY";
113 inline constexpr OUStringLiteral FLAGNAME_SUPPORTSSELECTION
= u
"SUPPORTSSELECTION";
114 inline constexpr OUStringLiteral FLAGNAME_TEMPLATE
= u
"TEMPLATE";
115 inline constexpr OUStringLiteral FLAGNAME_TEMPLATEPATH
= u
"TEMPLATEPATH";
116 inline constexpr OUStringLiteral FLAGNAME_COMBINED
= u
"COMBINED";
117 inline constexpr OUStringLiteral FLAGNAME_SUPPORTSSIGNING
= u
"SUPPORTSSIGNING";
118 inline constexpr OUStringLiteral FLAGNAME_EXOTIC
= u
"EXOTIC";
120 /** @short some uno service names.
122 inline constexpr OUStringLiteral SERVICE_CONFIGURATIONUPDATEACCESS
= u
"com.sun.star.configuration.ConfigurationUpdateAccess";
123 inline constexpr OUStringLiteral SERVICE_CONFIGURATIONACCESS
= u
"com.sun.star.configuration.ConfigurationAccess";
125 /** @short some configuration paths.
127 inline constexpr OUStringLiteral CFGPACKAGE_TD_TYPES
= u
"/org.openoffice.TypeDetection.Types";
128 inline constexpr OUStringLiteral CFGPACKAGE_TD_FILTERS
= u
"/org.openoffice.TypeDetection.Filter";
129 inline constexpr OUStringLiteral CFGPACKAGE_TD_OTHERS
= u
"/org.openoffice.TypeDetection.Misc";
130 inline constexpr OUStringLiteral CFGPACKAGE_TD_OLD
= u
"/org.openoffice.Office.TypeDetection";
132 /** @short some default values.
134 inline constexpr OUStringLiteral DEFAULT_OFFICELOCALE
= u
"en-US";
136 /** @short used for the queries of the FilterFactory service.
138 inline constexpr OUStringLiteral QUERY_IDENTIFIER_MATCHBYDOCUMENTSERVICE
= u
"matchByDocumentService";
139 inline constexpr OUStringLiteral QUERY_IDENTIFIER_GETPREFERREDFILTERFORTYPE
= u
"getDefaultFilterForType";
140 inline constexpr OUStringLiteral QUERY_IDENTIFIER_GET_SORTED_FILTERLIST
= u
"getSortedFilterList()";
142 inline constexpr OUStringLiteral QUERY_PARAM_IFLAGS
= u
"iflags";
143 inline constexpr OUStringLiteral QUERY_PARAM_EFLAGS
= u
"eflags";
144 inline constexpr OUStringLiteral QUERY_PARAM_MODULE
= u
"module";
145 #define QUERY_CONSTVALUE_ALL "all"
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */