Use COMReference to handle COM pointers in CreateShortcut
[LibreOffice.git] / cui / source / options / optsave.hxx
blobb5ab12d1ace4c100c56bf2055794f392aa68144c
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 enum AppType
26 APP_WRITER = 0,
27 APP_WRITER_WEB = 1,
28 APP_WRITER_GLOBAL = 2,
29 APP_CALC = 3,
30 APP_IMPRESS = 4,
31 APP_DRAW = 5,
32 APP_MATH = 6,
33 APP_COUNT = 7,
36 namespace com::sun::star::beans { struct PropertyValue; }
38 // class SvxSaveTabPage --------------------------------------------------
40 struct SvxSaveTabPage_Impl;
42 class SvxSaveTabPage : public SfxTabPage
44 private:
45 std::unique_ptr<SvxSaveTabPage_Impl> pImpl;
47 std::unique_ptr<weld::CheckButton> m_xLoadViewPosAnyUserCB;
48 std::unique_ptr<weld::Widget> m_xLoadViewPosAnyUserImg;
49 std::unique_ptr<weld::CheckButton> m_xLoadUserSettingsCB;
50 std::unique_ptr<weld::Widget> m_xLoadUserSettingsImg;
51 std::unique_ptr<weld::CheckButton> m_xLoadDocPrinterCB;
52 std::unique_ptr<weld::Widget> m_xLoadDocPrinterImg;
53 std::unique_ptr<weld::CheckButton> m_xDocInfoCB;
54 std::unique_ptr<weld::Widget> m_xDocInfoImg;
55 std::unique_ptr<weld::CheckButton> m_xBackupCB;
56 std::unique_ptr<weld::Widget> m_xBackupImg;
57 std::unique_ptr<weld::CheckButton> m_xBackupIntoDocumentFolderCB;
58 std::unique_ptr<weld::Widget> m_xBackupIntoDocumentFolderImg;
59 std::unique_ptr<weld::CheckButton> m_xAutoSaveCB;
60 std::unique_ptr<weld::Widget> m_xAutoSaveImg;
61 std::unique_ptr<weld::SpinButton> m_xAutoSaveEdit;
62 std::unique_ptr<weld::Label> m_xMinuteFT;
63 std::unique_ptr<weld::CheckButton> m_xUserAutoSaveCB;
64 std::unique_ptr<weld::Widget> m_xUserAutoSaveImg;
65 std::unique_ptr<weld::CheckButton> m_xRelativeFsysCB;
66 std::unique_ptr<weld::Widget> m_xRelativeFsysImg;
67 std::unique_ptr<weld::CheckButton> m_xRelativeInetCB;
68 std::unique_ptr<weld::Widget> m_xRelativeInetImg;
69 std::unique_ptr<weld::ComboBox> m_xODFVersionLB;
70 std::unique_ptr<weld::Label> m_xODFVersionFT;
71 std::unique_ptr<weld::Widget> m_xODFVersionImg;
72 std::unique_ptr<weld::CheckButton> m_xWarnAlienFormatCB;
73 std::unique_ptr<weld::Widget> m_xWarnAlienFormatImg;
74 std::unique_ptr<weld::ComboBox> m_xDocTypeLB;
75 std::unique_ptr<weld::Label> m_xSaveAsFT;
76 std::unique_ptr<weld::ComboBox> m_xSaveAsLB;
77 std::unique_ptr<weld::Widget> m_xODFWarningFI;
78 std::unique_ptr<weld::Label> m_xODFWarningFT;
80 DECL_LINK( AutoClickHdl_Impl, weld::Toggleable&, void );
81 DECL_LINK(BackupClickHdl_Impl, weld::Toggleable&, void);
82 DECL_LINK( FilterHdl_Impl, weld::ComboBox&, void );
83 DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox&, void );
85 public:
86 SvxSaveTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
87 virtual ~SvxSaveTabPage() override;
89 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
91 virtual OUString GetAllStrings() override;
93 virtual bool FillItemSet( SfxItemSet* rSet ) override;
94 virtual void Reset( const SfxItemSet* rSet ) override;
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */