xref: /aoo4110/main/cui/source/options/optupdt.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVX_OPTUPDT_HXX
25 #define _SVX_OPTUPDT_HXX
26 
27 // include ---------------------------------------------------------------
28 
29 #include <sfx2/tabdlg.hxx>
30 #ifndef _FIXED_HXX //autogen
31 #include <vcl/fixed.hxx>
32 #endif
33 #include <com/sun/star/container/XNameReplace.hpp>
34 
35 // class SvxPathTabPage --------------------------------------------------
36 
37 class SvxOnlineUpdateTabPage : public SfxTabPage
38 {
39 private:
40     FixedLine           m_aOptionsLine;
41     CheckBox            m_aAutoCheckCheckBox;
42     RadioButton         m_aEveryDayButton;
43     RadioButton         m_aEveryWeekButton;
44     RadioButton         m_aEveryMonthButton;
45     PushButton          m_aCheckNowButton;
46     CheckBox            m_aAutoDownloadCheckBox;
47     FixedText           m_aDestPathLabel;
48     FixedText           m_aDestPath;
49     PushButton          m_aChangePathButton;
50     FixedText           m_aLastChecked;
51     rtl::OUString       m_aNeverChecked;
52     rtl::OUString       m_aLastCheckedTemplate;
53 
54     DECL_LINK(  FileDialogHdl_Impl, PushButton* ) ;
55     DECL_LINK(  CheckNowHdl_Impl, PushButton* ) ;
56     DECL_LINK(  AutoCheckHdl_Impl, CheckBox* ) ;
57 
58     void        CalcButtonWidth();
59 
60     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > m_xUpdateAccess;
61 
62     void                    UpdateLastCheckedText();
63 
64 public:
65     SvxOnlineUpdateTabPage( Window* pParent, const SfxItemSet& rSet );
66     ~SvxOnlineUpdateTabPage();
67 
68     static SfxTabPage*      Create( Window* pParent, const SfxItemSet& rSet );
69 
70     virtual sal_Bool            FillItemSet( SfxItemSet& rSet );
71     virtual void            Reset( const SfxItemSet& rSet );
72     virtual void            FillUserData();
73 };
74 
75 
76 #endif
77 
78