xref: /aoo41x/main/cui/source/inc/about.hxx (revision 7168672c)
1c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5c4eee24dSAndrew Rist  * distributed with this work for additional information
6c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10c4eee24dSAndrew Rist  *
11c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12c4eee24dSAndrew Rist  *
13c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18c4eee24dSAndrew Rist  * under the License.
19c4eee24dSAndrew Rist  *
20c4eee24dSAndrew Rist  *************************************************************/
21c4eee24dSAndrew Rist 
22c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _ABOUT_HXX
24cdf0e10cSrcweir #define _ABOUT_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <vcl/button.hxx>
29cdf0e10cSrcweir #include <svtools/svmedit.hxx>
3023c0a6f8SAriel Constenla-Haile #include <svtools/fixedhyper.hxx>
31cdf0e10cSrcweir #include <tools/list.hxx>
32cdf0e10cSrcweir #include <svtools/stdctrl.hxx>
3323c0a6f8SAriel Constenla-Haile #include <sfx2/basedlgs.hxx>        // SfxModalDialog
34cdf0e10cSrcweir 
35cdf0e10cSrcweir // class AboutDialog -----------------------------------------------------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class AboutDialog : public SfxModalDialog
38cdf0e10cSrcweir {
39cdf0e10cSrcweir private:
4023c0a6f8SAriel Constenla-Haile     OKButton            maOKButton;
41ca04f111SAriel Constenla-Haile     PushButton          maReadmeButton;
4223c0a6f8SAriel Constenla-Haile     FixedInfo           maVersionText;
4323c0a6f8SAriel Constenla-Haile     MultiLineEdit       maBuildInfoEdit;
4423c0a6f8SAriel Constenla-Haile     MultiLineEdit       maCopyrightEdit;
4523c0a6f8SAriel Constenla-Haile     svt::FixedHyperlink maCreditsLink;
46cdf0e10cSrcweir 
4723c0a6f8SAriel Constenla-Haile     String              maCopyrightTextStr;
4823c0a6f8SAriel Constenla-Haile     rtl::OUString       maVersionData;
49cdf0e10cSrcweir 
50*7168672cSAriel Constenla-Haile     Image               maMainLogo;
51*7168672cSAriel Constenla-Haile     Image               maAppLogo;
52*7168672cSAriel Constenla-Haile 
5323c0a6f8SAriel Constenla-Haile     void                InitControls();
5423c0a6f8SAriel Constenla-Haile     void                ApplyStyleSettings();
5523c0a6f8SAriel Constenla-Haile     void                LayoutControls( Size& aDlgSize );
56cdf0e10cSrcweir 
5723c0a6f8SAriel Constenla-Haile     const rtl::OUString GetBuildId() const;
5823c0a6f8SAriel Constenla-Haile     const rtl::OUString GetBuildVersionString() const;
59ca04f111SAriel Constenla-Haile     Point               maAppLogoPos;
60ca04f111SAriel Constenla-Haile     Point               maMainLogoPos;
61cdf0e10cSrcweir 
6223c0a6f8SAriel Constenla-Haile     DECL_DLLPRIVATE_LINK(OpenLinkHdl_Impl, svt::FixedHyperlink* );
63ca04f111SAriel Constenla-Haile     DECL_DLLPRIVATE_LINK(ShowReadme_Impl, PushButton* );
64cdf0e10cSrcweir 
65cdf0e10cSrcweir protected:
6623c0a6f8SAriel Constenla-Haile     virtual sal_Bool    Close();
6723c0a6f8SAriel Constenla-Haile     virtual void        Paint( const Rectangle& );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir public:
7023c0a6f8SAriel Constenla-Haile     AboutDialog( Window* pParent, const ResId& nId );
7123c0a6f8SAriel Constenla-Haile     ~AboutDialog();
72cdf0e10cSrcweir 
73cdf0e10cSrcweir };
74cdf0e10cSrcweir 
75cdf0e10cSrcweir #endif // #ifndef _ABOUT_HXX
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 
78