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#pragma once
21
22#include <sfx2/tabdlg.hxx>
23#include <com/sun/star/container/XNameReplace.hpp>
24#include <com/sun/star/configuration/XReadWriteAccess.hpp>
25
26// class SvxPathTabPage --------------------------------------------------
27
29{
30private:
33
34 css::uno::Reference< css::container::XNameReplace > m_xUpdateAccess;
35 css::uno::Reference<css::configuration::XReadWriteAccess> m_xReadWriteAccess;
36
37 std::unique_ptr<weld::Label> m_xNeverChecked;
38 std::unique_ptr<weld::CheckButton> m_xAutoCheckCheckBox;
39 std::unique_ptr<weld::RadioButton> m_xEveryDayButton;
40 std::unique_ptr<weld::RadioButton> m_xEveryWeekButton;
41 std::unique_ptr<weld::RadioButton> m_xEveryMonthButton;
42 std::unique_ptr<weld::Button> m_xCheckNowButton;
43 std::unique_ptr<weld::CheckButton> m_xAutoDownloadCheckBox;
44 std::unique_ptr<weld::Label> m_xDestPathLabel;
45 std::unique_ptr<weld::Label> m_xDestPath;
46 std::unique_ptr<weld::Button> m_xChangePathButton;
47 std::unique_ptr<weld::Label> m_xLastChecked;
48 std::unique_ptr<weld::CheckButton> m_xExtrasCheckBox;
49 std::unique_ptr<weld::Label> m_xUserAgentLabel;
50 std::unique_ptr<weld::LinkButton> m_xPrivacyPolicyButton;
51
52 DECL_LINK(FileDialogHdl_Impl, weld::Button&, void);
53 DECL_LINK(CheckNowHdl_Impl, weld::Button&, void);
54 DECL_LINK(AutoCheckHdl_Impl, weld::Toggleable&, void);
55 DECL_LINK(ExtrasCheckHdl_Impl, weld::Toggleable&, void);
56
58 void UpdateUserAgent();
59
60public:
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/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xAutoCheckCheckBox
Definition: optupdt.hxx:38
std::unique_ptr< weld::Label > m_xUserAgentLabel
Definition: optupdt.hxx:49
SvxOnlineUpdateTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optupdt.cxx:50
virtual void Reset(const SfxItemSet *rSet) override
Definition: optupdt.cxx:261
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: optupdt.cxx:188
DECL_LINK(AutoCheckHdl_Impl, weld::Toggleable &, void)
OUString m_aNeverChecked
Definition: optupdt.hxx:31
std::unique_ptr< weld::LinkButton > m_xPrivacyPolicyButton
Definition: optupdt.hxx:50
virtual ~SvxOnlineUpdateTabPage() override
Definition: optupdt.cxx:98
OUString m_aLastCheckedTemplate
Definition: optupdt.hxx:32
DECL_LINK(CheckNowHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xAutoDownloadCheckBox
Definition: optupdt.hxx:43
std::unique_ptr< weld::CheckButton > m_xExtrasCheckBox
Definition: optupdt.hxx:48
std::unique_ptr< weld::Label > m_xNeverChecked
Definition: optupdt.hxx:37
DECL_LINK(FileDialogHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xCheckNowButton
Definition: optupdt.hxx:42
void UpdateLastCheckedText()
Definition: optupdt.cxx:102
virtual void FillUserData() override
Definition: optupdt.cxx:319
css::uno::Reference< css::container::XNameReplace > m_xUpdateAccess
Definition: optupdt.hxx:34
std::unique_ptr< weld::Label > m_xDestPath
Definition: optupdt.hxx:45
std::unique_ptr< weld::Button > m_xChangePathButton
Definition: optupdt.hxx:46
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optupdt.cxx:193
std::unique_ptr< weld::RadioButton > m_xEveryMonthButton
Definition: optupdt.hxx:41
std::unique_ptr< weld::RadioButton > m_xEveryDayButton
Definition: optupdt.hxx:39
css::uno::Reference< css::configuration::XReadWriteAccess > m_xReadWriteAccess
Definition: optupdt.hxx:35
std::unique_ptr< weld::RadioButton > m_xEveryWeekButton
Definition: optupdt.hxx:40
std::unique_ptr< weld::Label > m_xLastChecked
Definition: optupdt.hxx:47
DECL_LINK(ExtrasCheckHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::Label > m_xDestPathLabel
Definition: optupdt.hxx:44