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 #ifndef _ABOUT_HXX 24cdf0e10cSrcweir #define _ABOUT_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir // include --------------------------------------------------------------- 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <tools/resary.hxx> 29cdf0e10cSrcweir #include <vcl/button.hxx> 30cdf0e10cSrcweir #include <vcl/accel.hxx> 31cdf0e10cSrcweir #include <svtools/svmedit.hxx> 32cdf0e10cSrcweir #include <tools/list.hxx> 33cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 34cdf0e10cSrcweir #include <sfx2/basedlgs.hxx> // SfxModalDialog 35cdf0e10cSrcweir 36cdf0e10cSrcweir DECLARE_LIST( AccelList, Accelerator* ) 37cdf0e10cSrcweir 38cdf0e10cSrcweir // class AboutDialog ----------------------------------------------------- 39cdf0e10cSrcweir 40cdf0e10cSrcweir class AboutDialog : public SfxModalDialog 41cdf0e10cSrcweir { 42cdf0e10cSrcweir private: 43cdf0e10cSrcweir OKButton aOKButton; 44cdf0e10cSrcweir Image aAppLogo; 45cdf0e10cSrcweir 46cdf0e10cSrcweir FixedInfo aVersionText; 47cdf0e10cSrcweir MultiLineEdit aCopyrightText; 48cdf0e10cSrcweir FixedInfo aBuildData; 49cdf0e10cSrcweir 50cdf0e10cSrcweir ResStringArray* pDeveloperAry; 51cdf0e10cSrcweir String aDevVersionStr; 52cdf0e10cSrcweir String aAccelStr; 53cdf0e10cSrcweir String aVersionData; 54cdf0e10cSrcweir String aCopyrightTextStr; 55cdf0e10cSrcweir 56cdf0e10cSrcweir AccelList aAccelList; 57cdf0e10cSrcweir 58cdf0e10cSrcweir AutoTimer aTimer; 59cdf0e10cSrcweir long nOff; 60cdf0e10cSrcweir long m_nDeltaWidth; 61cdf0e10cSrcweir int m_nPendingScrolls; 62cdf0e10cSrcweir 63cdf0e10cSrcweir sal_Bool bNormal; 64cdf0e10cSrcweir 65cdf0e10cSrcweir protected: 66cdf0e10cSrcweir virtual sal_Bool Close(); 67cdf0e10cSrcweir virtual void Paint( const Rectangle& ); 68cdf0e10cSrcweir 69cdf0e10cSrcweir public: 70cdf0e10cSrcweir AboutDialog( Window* pParent, const ResId& nId ); 71cdf0e10cSrcweir ~AboutDialog(); 72cdf0e10cSrcweir 73cdf0e10cSrcweir DECL_LINK( TimerHdl, Timer * ); 74cdf0e10cSrcweir DECL_LINK( AccelSelectHdl, Accelerator * ); 75cdf0e10cSrcweir }; 76cdf0e10cSrcweir 77cdf0e10cSrcweir #endif // #ifndef _ABOUT_HXX 78cdf0e10cSrcweir 79cdf0e10cSrcweir 80