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