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