1*b16fc349SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*b16fc349SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*b16fc349SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*b16fc349SAndrew Rist * distributed with this work for additional information 6*b16fc349SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*b16fc349SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*b16fc349SAndrew Rist * "License"); you may not use this file except in compliance 9*b16fc349SAndrew Rist * with the License. You may obtain a copy of the License at 10*b16fc349SAndrew Rist * 11*b16fc349SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*b16fc349SAndrew Rist * 13*b16fc349SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*b16fc349SAndrew Rist * software distributed under the License is distributed on an 15*b16fc349SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b16fc349SAndrew Rist * KIND, either express or implied. See the License for the 17*b16fc349SAndrew Rist * specific language governing permissions and limitations 18*b16fc349SAndrew Rist * under the License. 19*b16fc349SAndrew Rist * 20*b16fc349SAndrew Rist *************************************************************/ 21*b16fc349SAndrew Rist 22*b16fc349SAndrew Rist 23cdf0e10cSrcweir #ifndef _NEWERVERSIONWARNING_HXX 24cdf0e10cSrcweir #define _NEWERVERSIONWARNING_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <vcl/button.hxx> 27cdf0e10cSrcweir #include <vcl/fixed.hxx> 28cdf0e10cSrcweir #include <vcl/dialog.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir #define RET_ASK_LATER short( 100 ) 31cdf0e10cSrcweir 32cdf0e10cSrcweir namespace uui 33cdf0e10cSrcweir { 34cdf0e10cSrcweir class NewerVersionWarningDialog : public ModalDialog 35cdf0e10cSrcweir { 36cdf0e10cSrcweir private: 37cdf0e10cSrcweir FixedImage m_aImage; 38cdf0e10cSrcweir FixedText m_aInfoText; 39cdf0e10cSrcweir FixedLine m_aButtonLine; 40cdf0e10cSrcweir PushButton m_aUpdateBtn; 41cdf0e10cSrcweir CancelButton m_aLaterBtn; 42cdf0e10cSrcweir 43cdf0e10cSrcweir ::rtl::OUString m_sVersion; 44cdf0e10cSrcweir 45cdf0e10cSrcweir DECL_LINK( UpdateHdl, PushButton* ); 46cdf0e10cSrcweir DECL_LINK( LaterHdl, CancelButton* ); 47cdf0e10cSrcweir 48cdf0e10cSrcweir void InitButtonWidth(); 49cdf0e10cSrcweir 50cdf0e10cSrcweir public: 51cdf0e10cSrcweir NewerVersionWarningDialog( Window* pParent, const ::rtl::OUString& rVersion, ResMgr& rResMgr ); 52cdf0e10cSrcweir ~NewerVersionWarningDialog(); 53cdf0e10cSrcweir }; 54cdf0e10cSrcweir } // namespace uui 55cdf0e10cSrcweir 56cdf0e10cSrcweir #endif // #ifndef _NEWERVERSIONWARNING_HXX 57cdf0e10cSrcweir 58