1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
21 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTUPDT_HXX
23 #include <sfx2/tabdlg.hxx>
24 #include <com/sun/star/container/XNameReplace.hpp>
25 #include <com/sun/star/configuration/XReadWriteAccess.hpp>
27 // class SvxPathTabPage --------------------------------------------------
29 class SvxOnlineUpdateTabPage
: public SfxTabPage
32 OUString m_aNeverChecked
;
33 OUString m_aLastCheckedTemplate
;
35 css::uno::Reference
< css::container::XNameReplace
> m_xUpdateAccess
;
36 css::uno::Reference
<css::configuration::XReadWriteAccess
> m_xReadWriteAccess
;
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
;
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);
57 void UpdateLastCheckedText();
58 void UpdateUserAgent();
61 SvxOnlineUpdateTabPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rSet
);
62 static std::unique_ptr
<SfxTabPage
> Create( weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rSet
);
63 virtual ~SvxOnlineUpdateTabPage() override
;
65 virtual bool FillItemSet( SfxItemSet
* rSet
) override
;
66 virtual void Reset( const SfxItemSet
* rSet
) override
;
67 virtual void FillUserData() override
;
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */