Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _ABOUT_HXX
29 : : #define _ABOUT_HXX
30 : :
31 : : #include <vcl/button.hxx>
32 : : #include <vcl/accel.hxx>
33 : : #include <svtools/svmedit.hxx>
34 : : #include <svtools/stdctrl.hxx>
35 : : #include "svtools/fixedhyper.hxx"
36 : : #include <sfx2/basedlgs.hxx> ///< for SfxModalDialog
37 : : #include <vector>
38 : :
39 : : // class AboutDialog -----------------------------------------------------
40 : :
41 [ # # ][ # # ]: 0 : class AboutDialog : public SfxModalDialog
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
42 : : {
43 : : private:
44 : : BitmapEx aBackgroundBitmap;
45 : : BitmapEx aLogoBitmap;
46 : :
47 : :
48 : : MultiLineEdit aVersionText;
49 : : MultiLineEdit aDescriptionText;
50 : : MultiLineEdit aCopyrightText;
51 : : FixedImage aLogoImage;
52 : : MultiLineEdit aLogoReplacement;
53 : : PushButton aCreditsButton;
54 : : PushButton aWebsiteButton;
55 : : CancelButton aCancelButton;
56 : :
57 : : String aVersionData;
58 : : rtl::OUString m_aVersionTextStr;
59 : : String m_aVendorTextStr;
60 : : String m_aCopyrightTextStr;
61 : : String m_aBasedTextStr;
62 : : String m_aBasedDerivedTextStr;
63 : : String m_aCreditsLinkStr;
64 : : rtl::OUString m_sBuildStr;
65 : : String m_aDescriptionTextStr;
66 : :
67 : : void StyleControls();
68 : : void LayoutControls();
69 : : void LayoutButtons(sal_Int32 aContentWidth, sal_Int32 aDialogBorder,
70 : : Point& aButtonPos, Size& aButtonSize, sal_Int32& aButtonsWidth );
71 : : void MoveControl(Control& rControl, sal_Int32 X, sal_Int32 Y);
72 : : rtl::OUString GetBuildId();
73 : : rtl::OUString GetVersionString();
74 : : rtl::OUString GetCopyrightString();
75 : :
76 : : protected:
77 : : virtual sal_Bool Close();
78 : : virtual void Paint( const Rectangle& rRect );
79 : :
80 : : public:
81 : : AboutDialog( Window* pParent, const ResId& rId);
82 : :
83 : : DECL_LINK( CancelHdl, void * );
84 : : DECL_LINK( HandleClick, PushButton* );
85 : : };
86 : :
87 : : #endif // #ifndef _ABOUT_HXX
88 : :
89 : :
90 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|