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