LibreOffice Module cui (master)  1
optupdt.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 
20 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
21 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
22 
23 #include <sfx2/tabdlg.hxx>
24 #include <com/sun/star/container/XNameReplace.hpp>
25 #include <com/sun/star/configuration/XReadWriteAccess.hpp>
26 
27 // class SvxPathTabPage --------------------------------------------------
28 
30 {
31 private:
32  OUString m_aNeverChecked;
34 
35  css::uno::Reference< css::container::XNameReplace > m_xUpdateAccess;
36  css::uno::Reference<css::configuration::XReadWriteAccess> m_xReadWriteAccess;
37 
38  std::unique_ptr<weld::Label> m_xNeverChecked;
39  std::unique_ptr<weld::CheckButton> m_xAutoCheckCheckBox;
40  std::unique_ptr<weld::RadioButton> m_xEveryDayButton;
41  std::unique_ptr<weld::RadioButton> m_xEveryWeekButton;
42  std::unique_ptr<weld::RadioButton> m_xEveryMonthButton;
43  std::unique_ptr<weld::Button> m_xCheckNowButton;
44  std::unique_ptr<weld::CheckButton> m_xAutoDownloadCheckBox;
45  std::unique_ptr<weld::Label> m_xDestPathLabel;
46  std::unique_ptr<weld::Label> m_xDestPath;
47  std::unique_ptr<weld::Button> m_xChangePathButton;
48  std::unique_ptr<weld::Label> m_xLastChecked;
49  std::unique_ptr<weld::CheckButton> m_xExtrasCheckBox;
50  std::unique_ptr<weld::Label> m_xUserAgentLabel;
51 
52  DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
53  DECL_LINK(CheckNowHdl_Impl, weld::Button&, void);
54  DECL_LINK(AutoCheckHdl_Impl, weld::ToggleButton&, void);
55  DECL_LINK(ExtrasCheckHdl_Impl, weld::Button&, void);
56 
57  void UpdateLastCheckedText();
58  void UpdateUserAgent();
59 
60 public:
62  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
63  virtual ~SvxOnlineUpdateTabPage() override;
64 
65  virtual bool FillItemSet( SfxItemSet* rSet ) override;
66  virtual void Reset( const SfxItemSet* rSet ) override;
67  virtual void FillUserData() override;
68 };
69 
70 #endif
71 
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xAutoCheckCheckBox
Definition: optupdt.hxx:39
SvxOnlineUpdateTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optupdt.cxx:46
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: optupdt.cxx:178
std::unique_ptr< weld::RadioButton > m_xEveryMonthButton
Definition: optupdt.hxx:42
css::uno::Reference< css::container::XNameReplace > m_xUpdateAccess
Definition: optupdt.hxx:35
css::uno::Reference< css::configuration::XReadWriteAccess > m_xReadWriteAccess
Definition: optupdt.hxx:36
std::unique_ptr< weld::Button > m_xChangePathButton
Definition: optupdt.hxx:47
std::unique_ptr< weld::Label > m_xDestPathLabel
Definition: optupdt.hxx:45
OUString m_aLastCheckedTemplate
Definition: optupdt.hxx:33
std::unique_ptr< weld::Label > m_xLastChecked
Definition: optupdt.hxx:48
virtual void Reset(const SfxItemSet *rSet) override
Definition: optupdt.cxx:251
std::unique_ptr< weld::CheckButton > m_xExtrasCheckBox
Definition: optupdt.hxx:49
void UpdateLastCheckedText()
Definition: optupdt.cxx:92
std::unique_ptr< weld::Label > m_xUserAgentLabel
Definition: optupdt.hxx:50
std::unique_ptr< weld::CheckButton > m_xAutoDownloadCheckBox
Definition: optupdt.hxx:44
std::unique_ptr< weld::RadioButton > m_xEveryWeekButton
Definition: optupdt.hxx:41
OUString m_aNeverChecked
Definition: optupdt.hxx:32
virtual void FillUserData() override
Definition: optupdt.cxx:309
std::unique_ptr< weld::Label > m_xNeverChecked
Definition: optupdt.hxx:38
std::unique_ptr< weld::RadioButton > m_xEveryDayButton
Definition: optupdt.hxx:40
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optupdt.cxx:183
DECL_LINK(FileDialogHdl_Impl, weld::Button &, void)
virtual ~SvxOnlineUpdateTabPage() override
Definition: optupdt.cxx:88
std::unique_ptr< weld::Button > m_xCheckNowButton
Definition: optupdt.hxx:43
std::unique_ptr< weld::Label > m_xDestPath
Definition: optupdt.hxx:46