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 
33 namespace com::sun::star::beans { struct PropertyValue; }
34 
35 // class SvxSaveTabPage --------------------------------------------------
36 
37 struct SvxSaveTabPage_Impl;
38 
39 class SvxSaveTabPage : public SfxTabPage
40 {
41 private:
42  std::unique_ptr<SvxSaveTabPage_Impl> pImpl;
43 
44  std::unique_ptr<weld::CheckButton> m_xLoadUserSettingsCB;
45  std::unique_ptr<weld::CheckButton> m_xLoadDocPrinterCB;
46  std::unique_ptr<weld::CheckButton> m_xDocInfoCB;
47  std::unique_ptr<weld::CheckButton> m_xBackupCB;
48  std::unique_ptr<weld::CheckButton> m_xAutoSaveCB;
49  std::unique_ptr<weld::SpinButton> m_xAutoSaveEdit;
50  std::unique_ptr<weld::Label> m_xMinuteFT;
51  std::unique_ptr<weld::CheckButton> m_xUserAutoSaveCB;
52  std::unique_ptr<weld::CheckButton> m_xRelativeFsysCB;
53  std::unique_ptr<weld::CheckButton> m_xRelativeInetCB;
54  std::unique_ptr<weld::ComboBox> m_xODFVersionLB;
55  std::unique_ptr<weld::CheckButton> m_xWarnAlienFormatCB;
56  std::unique_ptr<weld::ComboBox> m_xDocTypeLB;
57  std::unique_ptr<weld::Label> m_xSaveAsFT;
58  std::unique_ptr<weld::ComboBox> m_xSaveAsLB;
59  std::unique_ptr<weld::Widget> m_xODFWarningFI;
60  std::unique_ptr<weld::Label> m_xODFWarningFT;
61 
62  DECL_LINK( AutoClickHdl_Impl, weld::Toggleable&, void );
63  DECL_LINK( FilterHdl_Impl, weld::ComboBox&, void );
64  DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox&, void );
65 
66  void DetectHiddenControls();
67 
68 public:
69  SvxSaveTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
70  virtual ~SvxSaveTabPage() override;
71 
72  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
73 
74  virtual bool FillItemSet( SfxItemSet* rSet ) override;
75  virtual void Reset( const SfxItemSet* rSet ) override;
76 };
77 
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xSaveAsFT
Definition: optsave.hxx:57
void DetectHiddenControls()
Definition: optsave.cxx:198
std::unique_ptr< weld::CheckButton > m_xBackupCB
Definition: optsave.hxx:47
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optsave.cxx:192
std::unique_ptr< weld::ComboBox > m_xODFVersionLB
Definition: optsave.hxx:54
std::unique_ptr< weld::ComboBox > m_xDocTypeLB
Definition: optsave.hxx:56
std::unique_ptr< weld::CheckButton > m_xRelativeInetCB
Definition: optsave.hxx:53
std::unique_ptr< weld::SpinButton > m_xAutoSaveEdit
Definition: optsave.hxx:49
std::unique_ptr< SvxSaveTabPage_Impl > pImpl
Definition: optsave.hxx:42
DECL_LINK(AutoClickHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xDocInfoCB
Definition: optsave.hxx:46
std::unique_ptr< weld::CheckButton > m_xLoadDocPrinterCB
Definition: optsave.hxx:45
std::unique_ptr< weld::Label > m_xMinuteFT
Definition: optsave.hxx:50
std::unique_ptr< weld::CheckButton > m_xAutoSaveCB
Definition: optsave.hxx:48
std::unique_ptr< weld::ComboBox > m_xSaveAsLB
Definition: optsave.hxx:58
std::unique_ptr< weld::CheckButton > m_xRelativeFsysCB
Definition: optsave.hxx:52
std::unique_ptr< weld::Widget > m_xODFWarningFI
Definition: optsave.hxx:59
virtual void Reset(const SfxItemSet *rSet) override
Definition: optsave.cxx:362
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optsave.cxx:224
std::unique_ptr< weld::CheckButton > m_xWarnAlienFormatCB
Definition: optsave.hxx:55
std::unique_ptr< weld::CheckButton > m_xLoadUserSettingsCB
Definition: optsave.hxx:44
virtual ~SvxSaveTabPage() override
Definition: optsave.cxx:188
std::unique_ptr< weld::Label > m_xODFWarningFT
Definition: optsave.hxx:60
SvxSaveTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optsave.cxx:75
std::unique_ptr< weld::CheckButton > m_xUserAutoSaveCB
Definition: optsave.hxx:51