LibreOffice Module unotools (master) 1
saveopt.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_UNOTOOLS_SAVEOPT_HXX
20#define INCLUDED_UNOTOOLS_SAVEOPT_HXX
21
23#include <memory>
24
25namespace comphelper { class ConfigurationChanges; }
26
28{
38 {
39 ODFVER_UNKNOWN = 0, // unknown - very dubious, avoid using
40 ODFVER_010 = 1, // ODF 1.0
41 ODFVER_011 = 2, // ODF 1.1
42 DO_NOT_USE = 3, // Do not use this, only here for compatibility with pre OOo 3.2 configuration
43 ODFVER_012 = 4, // ODF 1.2
44 ODFVER_012_EXT_COMPAT = 8, // ODF 1.2 extended, but with compatibility fallbacks
45 ODFVER_012_EXTENDED = 9, // ODF 1.2 extended
46 ODFVER_013 = 10, // ODF 1.3
47
48 ODFVER_LATEST = SAL_MAX_ENUM, // ODF latest version with enhancements
49 };
50
53 {
63
64 // The latest defined standard. Adapt when a new one is published.
67 };
68
69};
70
72UNOTOOLS_DLLPUBLIC void SetODFDefaultVersion( SvtSaveOptions::ODFDefaultVersion eVersion, const std::shared_ptr<comphelper::ConfigurationChanges>& );
73
76
79
80#endif
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ODFDefaultVersion
Keep enum values sorted that a less or greater compare maps to older and newer versions.
Definition: saveopt.hxx:38
@ ODFVER_012_EXTENDED
Definition: saveopt.hxx:45
@ ODFVER_012_EXT_COMPAT
Definition: saveopt.hxx:44
ODFSaneDefaultVersion
Enums that allow a sane comparison of versions, without LATEST.
Definition: saveopt.hxx:53
@ ODFSVER_012
ODF 1.2.
Definition: saveopt.hxx:57
@ ODFSVER_011
ODF 1.1.
Definition: saveopt.hxx:56
@ ODFSVER_EXTENDED
bit designating extensions are allowed
Definition: saveopt.hxx:54
@ ODFSVER_013_EXTENDED
ODF 1.3 extended.
Definition: saveopt.hxx:61
@ ODFSVER_LATEST_EXTENDED
Definition: saveopt.hxx:66
@ ODFSVER_FUTURE_EXTENDED
current extension, unknown future ODF version
Definition: saveopt.hxx:62
@ ODFSVER_013
ODF 1.3.
Definition: saveopt.hxx:60
@ ODFSVER_012_EXTENDED
ODF 1.2 extended.
Definition: saveopt.hxx:59
@ ODFSVER_010
ODF 1.0.
Definition: saveopt.hxx:55
@ ODFSVER_012_EXT_COMPAT
ODF 1.2 extended, but with compatibility fallbacks.
Definition: saveopt.hxx:58
UNOTOOLS_DLLPUBLIC SvtSaveOptions::ODFDefaultVersion GetODFDefaultVersion()
Definition: saveopt.cxx:44
UNOTOOLS_DLLPUBLIC void SetODFDefaultVersion(SvtSaveOptions::ODFDefaultVersion eVersion)
Definition: saveopt.cxx:37
UNOTOOLS_DLLPUBLIC SvtSaveOptions::ODFSaneDefaultVersion GetODFSaneDefaultVersion()
Definition: saveopt.cxx:56
#define SAL_MAX_ENUM
#define UNOTOOLS_DLLPUBLIC