bump product version to 4.2.0.1
[LibreOffice.git] / include / unotools / saveopt.hxx
blob5e7a9c205efc3dc7a14325e3106972a96d9fde24
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_UNOTOOLS_SAVEOPT_HXX
20 #define INCLUDED_UNOTOOLS_SAVEOPT_HXX
22 #include <unotools/unotoolsdllapi.h>
23 #include <unotools/options.hxx>
25 struct SvtLoadSaveOptions_Impl;
26 class UNOTOOLS_DLLPUBLIC SvtSaveOptions: public utl::detail::Options
28 SvtLoadSaveOptions_Impl* pImp;
30 public:
32 enum EOption
34 E_AUTOSAVETIME,
35 E_USEUSERDATA,
36 E_BACKUP,
37 E_AUTOSAVE,
38 E_AUTOSAVEPROMPT,
39 E_DOCINFSAVE,
40 E_SAVEWORKINGSET,
41 E_SAVEDOCVIEW,
42 E_SAVERELINET,
43 E_SAVERELFSYS,
44 E_SAVEUNPACKED,
45 E_DOPRETTYPRINTING,
46 E_WARNALIENFORMAT,
47 E_LOADDOCPRINTER,
48 E_ODFDEFAULTVERSION,
49 E_USESHA1INODF12,
50 E_USEBLOWFISHINODF12,
51 E_USERAUTOSAVE,
54 // keep enum values sorted that a less or greater compare maps to older and newer versions!
55 enum ODFDefaultVersion
57 ODFVER_UNKNOWN = 0, // unknown
58 ODFVER_010 = 1, // ODF 1.0
59 ODFVER_011 = 2, // ODF 1.1
60 DO_NOT_USE = 3, // Do not use this, only here for compatibility with pre OOo 3.2 configuration
61 ODFVER_012 = 4, // ODF 1.2
62 ODFVER_012_EXT_COMPAT = 8, // ODF 1.2 extended, but with compatibility fallbacks
64 ODFVER_LATEST = SAL_MAX_ENUM, // ODF latest version with enhancements
67 SvtSaveOptions();
68 virtual ~SvtSaveOptions();
70 void SetAutoSaveTime( sal_Int32 n );
71 sal_Int32 GetAutoSaveTime() const;
73 void SetUseUserData( sal_Bool b );
74 sal_Bool IsUseUserData() const;
76 void SetBackup( sal_Bool b );
77 sal_Bool IsBackup() const;
79 void SetAutoSave( sal_Bool b );
80 sal_Bool IsAutoSave() const;
82 void SetAutoSavePrompt( sal_Bool b );
83 sal_Bool IsAutoSavePrompt() const;
85 void SetUserAutoSave( sal_Bool b );
86 sal_Bool IsUserAutoSave() const;
88 void SetDocInfoSave(sal_Bool b);
89 sal_Bool IsDocInfoSave() const;
91 void SetSaveWorkingSet( sal_Bool b );
92 sal_Bool IsSaveWorkingSet() const;
94 void SetSaveDocView( sal_Bool b );
95 sal_Bool IsSaveDocView() const;
97 void SetSaveRelINet( sal_Bool b );
98 sal_Bool IsSaveRelINet() const;
100 void SetSaveRelFSys( sal_Bool b );
101 sal_Bool IsSaveRelFSys() const;
103 sal_Bool IsSaveUnpacked() const;
105 void SetLoadUserSettings(sal_Bool b);
106 sal_Bool IsLoadUserSettings() const;
108 void SetPrettyPrinting( sal_Bool _bEnable );
109 sal_Bool IsPrettyPrinting( ) const;
111 void SetWarnAlienFormat( sal_Bool _bEnable );
112 sal_Bool IsWarnAlienFormat( ) const;
114 void SetLoadDocumentPrinter( sal_Bool _bEnable );
115 sal_Bool IsLoadDocumentPrinter( ) const;
117 void SetODFDefaultVersion( ODFDefaultVersion eVersion );
118 ODFDefaultVersion GetODFDefaultVersion() const;
120 sal_Bool IsUseSHA1InODF12() const;
122 sal_Bool IsUseBlowfishInODF12() const;
124 sal_Bool IsReadOnly( EOption eOption ) const;
127 #endif
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */