xref: /aoo42x/main/cui/source/inc/about.hxx (revision 23c0a6f8)
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 <vcl/button.hxx>
29 #include <svtools/svmedit.hxx>
30 #include <svtools/fixedhyper.hxx>
31 #include <tools/list.hxx>
32 #include <svtools/stdctrl.hxx>
33 #include <sfx2/basedlgs.hxx>        // SfxModalDialog
34 
35 // class AboutDialog -----------------------------------------------------
36 
37 class AboutDialog : public SfxModalDialog
38 {
39 private:
40     OKButton            maOKButton;
41     FixedInfo           maVersionText;
42     MultiLineEdit       maBuildInfoEdit;
43     MultiLineEdit       maCopyrightEdit;
44     svt::FixedHyperlink maCreditsLink;
45 
46     Image               maAppLogo;
47 
48     String              maCopyrightTextStr;
49     rtl::OUString       maVersionData;
50 
51     void                InitControls();
52     void                ApplyStyleSettings();
53     void                LayoutControls( Size& aDlgSize );
54 
55     const rtl::OUString GetBuildId() const;
56     const rtl::OUString GetBuildVersionString() const;
57 
58     DECL_DLLPRIVATE_LINK(OpenLinkHdl_Impl, svt::FixedHyperlink* );
59 
60 protected:
61     virtual sal_Bool    Close();
62     virtual void        Paint( const Rectangle& );
63 
64 public:
65     AboutDialog( Window* pParent, const ResId& nId );
66     ~AboutDialog();
67 
68 };
69 
70 #endif // #ifndef _ABOUT_HXX
71 
72 
73