Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / cui / source / options / optsave.hxx
blob4314bdda1ddf6fb3223ee71c4cb8316bae1c8ea6
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_CUI_SOURCE_OPTIONS_OPTSAVE_HXX
20 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTSAVE_HXX
22 #include <memory>
23 #include <sfx2/tabdlg.hxx>
25 #define APP_WRITER 0
26 #define APP_WRITER_WEB 1
27 #define APP_WRITER_GLOBAL 2
28 #define APP_CALC 3
29 #define APP_IMPRESS 4
30 #define APP_DRAW 5
31 #define APP_MATH 6
32 #define APP_COUNT 7
34 namespace com { namespace sun { namespace star {
35 namespace beans {
36 struct PropertyValue;
37 }}}}
39 // class SvxSaveTabPage --------------------------------------------------
41 struct SvxSaveTabPage_Impl;
43 class SvxSaveTabPage : public SfxTabPage
45 private:
46 std::unique_ptr<SvxSaveTabPage_Impl> pImpl;
48 std::unique_ptr<weld::CheckButton> m_xLoadUserSettingsCB;
49 std::unique_ptr<weld::CheckButton> m_xLoadDocPrinterCB;
50 std::unique_ptr<weld::CheckButton> m_xDocInfoCB;
51 std::unique_ptr<weld::CheckButton> m_xBackupCB;
52 std::unique_ptr<weld::CheckButton> m_xAutoSaveCB;
53 std::unique_ptr<weld::SpinButton> m_xAutoSaveEdit;
54 std::unique_ptr<weld::Label> m_xMinuteFT;
55 std::unique_ptr<weld::CheckButton> m_xUserAutoSaveCB;
56 std::unique_ptr<weld::CheckButton> m_xRelativeFsysCB;
57 std::unique_ptr<weld::CheckButton> m_xRelativeInetCB;
58 std::unique_ptr<weld::ComboBox> m_xODFVersionLB;
59 std::unique_ptr<weld::CheckButton> m_xWarnAlienFormatCB;
60 std::unique_ptr<weld::ComboBox> m_xDocTypeLB;
61 std::unique_ptr<weld::Label> m_xSaveAsFT;
62 std::unique_ptr<weld::ComboBox> m_xSaveAsLB;
63 std::unique_ptr<weld::Widget> m_xODFWarningFI;
64 std::unique_ptr<weld::Label> m_xODFWarningFT;
66 DECL_LINK( AutoClickHdl_Impl, weld::Button&, void );
67 DECL_LINK( FilterHdl_Impl, weld::ComboBox&, void );
68 DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox&, void );
70 void DetectHiddenControls();
72 public:
73 SvxSaveTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
74 virtual ~SvxSaveTabPage() override;
76 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
78 virtual bool FillItemSet( SfxItemSet* rSet ) override;
79 virtual void Reset( const SfxItemSet* rSet ) override;
82 #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTSAVE_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */