LibreOffice Module cui (master) 1
optsave.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#pragma once
20
21#include <memory>
22#include <sfx2/tabdlg.hxx>
23
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
32
33namespace com::sun::star::beans { struct PropertyValue; }
34
35// class SvxSaveTabPage --------------------------------------------------
36
38
40{
41private:
42 std::unique_ptr<SvxSaveTabPage_Impl> pImpl;
43
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_xBackupIntoDocumentFolderCB;
50 std::unique_ptr<weld::CheckButton> m_xAutoSaveCB;
51 std::unique_ptr<weld::SpinButton> m_xAutoSaveEdit;
52 std::unique_ptr<weld::Label> m_xMinuteFT;
53 std::unique_ptr<weld::CheckButton> m_xUserAutoSaveCB;
54 std::unique_ptr<weld::CheckButton> m_xRelativeFsysCB;
55 std::unique_ptr<weld::CheckButton> m_xRelativeInetCB;
56 std::unique_ptr<weld::ComboBox> m_xODFVersionLB;
57 std::unique_ptr<weld::CheckButton> m_xWarnAlienFormatCB;
58 std::unique_ptr<weld::ComboBox> m_xDocTypeLB;
59 std::unique_ptr<weld::Label> m_xSaveAsFT;
60 std::unique_ptr<weld::ComboBox> m_xSaveAsLB;
61 std::unique_ptr<weld::Widget> m_xODFWarningFI;
62 std::unique_ptr<weld::Label> m_xODFWarningFT;
63
64 DECL_LINK( AutoClickHdl_Impl, weld::Toggleable&, void );
65 DECL_LINK(BackupClickHdl_Impl, weld::Toggleable&, void);
66 DECL_LINK( FilterHdl_Impl, weld::ComboBox&, void );
67 DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox&, void );
68
70
71public:
72 SvxSaveTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
73 virtual ~SvxSaveTabPage() override;
74
75 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
76
77 virtual bool FillItemSet( SfxItemSet* rSet ) override;
78 virtual void Reset( const SfxItemSet* rSet ) override;
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void DetectHiddenControls()
Definition: optsave.cxx:214
std::unique_ptr< SvxSaveTabPage_Impl > pImpl
Definition: optsave.hxx:42
DECL_LINK(AutoClickHdl_Impl, weld::Toggleable &, void)
DECL_LINK(BackupClickHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xLoadUserSettingsCB
Definition: optsave.hxx:45
std::unique_ptr< weld::Label > m_xODFWarningFT
Definition: optsave.hxx:62
std::unique_ptr< weld::CheckButton > m_xAutoSaveCB
Definition: optsave.hxx:50
std::unique_ptr< weld::CheckButton > m_xLoadDocPrinterCB
Definition: optsave.hxx:46
std::unique_ptr< weld::ComboBox > m_xSaveAsLB
Definition: optsave.hxx:60
std::unique_ptr< weld::CheckButton > m_xLoadViewPosAnyUserCB
Definition: optsave.hxx:44
std::unique_ptr< weld::SpinButton > m_xAutoSaveEdit
Definition: optsave.hxx:51
std::unique_ptr< weld::ComboBox > m_xDocTypeLB
Definition: optsave.hxx:58
std::unique_ptr< weld::CheckButton > m_xRelativeInetCB
Definition: optsave.hxx:55
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optsave.cxx:241
std::unique_ptr< weld::CheckButton > m_xBackupCB
Definition: optsave.hxx:48
std::unique_ptr< weld::Label > m_xMinuteFT
Definition: optsave.hxx:52
std::unique_ptr< weld::Label > m_xSaveAsFT
Definition: optsave.hxx:59
DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::Widget > m_xODFWarningFI
Definition: optsave.hxx:61
std::unique_ptr< weld::CheckButton > m_xDocInfoCB
Definition: optsave.hxx:47
DECL_LINK(FilterHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xRelativeFsysCB
Definition: optsave.hxx:54
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optsave.cxx:208
virtual ~SvxSaveTabPage() override
Definition: optsave.cxx:204
SvxSaveTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optsave.cxx:80
std::unique_ptr< weld::CheckButton > m_xWarnAlienFormatCB
Definition: optsave.hxx:57
virtual void Reset(const SfxItemSet *rSet) override
Definition: optsave.cxx:390
std::unique_ptr< weld::CheckButton > m_xBackupIntoDocumentFolderCB
Definition: optsave.hxx:49
std::unique_ptr< weld::ComboBox > m_xODFVersionLB
Definition: optsave.hxx:56
std::unique_ptr< weld::CheckButton > m_xUserAutoSaveCB
Definition: optsave.hxx:53