1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optupdt.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SVX_OPTUPDT_HXX
32 #define _SVX_OPTUPDT_HXX
34 // include ---------------------------------------------------------------
36 #include <sfx2/tabdlg.hxx>
37 #ifndef _FIXED_HXX //autogen
38 #include <vcl/fixed.hxx>
40 #include <com/sun/star/container/XNameReplace.hpp>
42 // class SvxPathTabPage --------------------------------------------------
44 class SvxOnlineUpdateTabPage
: public SfxTabPage
47 FixedLine m_aOptionsLine
;
48 CheckBox m_aAutoCheckCheckBox
;
49 RadioButton m_aEveryDayButton
;
50 RadioButton m_aEveryWeekButton
;
51 RadioButton m_aEveryMonthButton
;
52 PushButton m_aCheckNowButton
;
53 CheckBox m_aAutoDownloadCheckBox
;
54 FixedText m_aDestPathLabel
;
55 FixedText m_aDestPath
;
56 PushButton m_aChangePathButton
;
57 FixedText m_aLastChecked
;
58 rtl::OUString m_aNeverChecked
;
59 rtl::OUString m_aLastCheckedTemplate
;
61 DECL_LINK( FileDialogHdl_Impl
, PushButton
* ) ;
62 DECL_LINK( CheckNowHdl_Impl
, PushButton
* ) ;
63 DECL_LINK( AutoCheckHdl_Impl
, CheckBox
* ) ;
65 void CalcButtonWidth();
67 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameReplace
> m_xUpdateAccess
;
69 void UpdateLastCheckedText();
72 SvxOnlineUpdateTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
73 ~SvxOnlineUpdateTabPage();
75 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rSet
);
77 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
78 virtual void Reset( const SfxItemSet
& rSet
);
79 virtual void FillUserData();