xref: /aoo4110/main/cui/source/inc/about.hxx (revision b1cdbd2c)
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     PushButton          maReadmeButton;
42     FixedInfo           maVersionText;
43     MultiLineEdit       maBuildInfoEdit;
44     MultiLineEdit       maCopyrightEdit;
45     svt::FixedHyperlink maCreditsLink;
46 
47     String              maCopyrightTextStr;
48     rtl::OUString       maVersionData;
49 
50     Image               maMainLogo;
51     Image               maAppLogo;
52 
53     void                InitControls();
54     void                ApplyStyleSettings();
55     void                LayoutControls( Size& aDlgSize );
56 
57     const rtl::OUString GetBuildId() const;
58     const rtl::OUString GetBuildVersionString() const;
59     Point               maAppLogoPos;
60     Point               maMainLogoPos;
61 
62     DECL_DLLPRIVATE_LINK(OpenLinkHdl_Impl, svt::FixedHyperlink* );
63     DECL_DLLPRIVATE_LINK(ShowReadme_Impl, PushButton* );
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 };
74 
75 #endif // #ifndef _ABOUT_HXX
76 
77 
78