1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <vcl/button.hxx>
23 #include <vcl/accel.hxx>
24 #include <svtools/svmedit.hxx>
25 #include <svtools/stdctrl.hxx>
26 #include <sfx2/basedlgs.hxx> ///< for SfxModalDialog
29 // class AboutDialog -----------------------------------------------------
31 class AboutDialog
: public SfxModalDialog
34 BitmapEx aBackgroundBitmap
;
38 MultiLineEdit aVersionText
;
39 MultiLineEdit aDescriptionText
;
40 MultiLineEdit aCopyrightText
;
41 FixedImage aLogoImage
;
42 MultiLineEdit aLogoReplacement
;
43 PushButton aCreditsButton
;
44 PushButton aWebsiteButton
;
45 CancelButton aCancelButton
;
48 rtl::OUString m_aVersionTextStr
;
49 String m_aVendorTextStr
;
50 String m_aCopyrightTextStr
;
51 String m_aBasedTextStr
;
52 String m_aBasedDerivedTextStr
;
53 String m_aCreditsLinkStr
;
54 rtl::OUString m_sBuildStr
;
55 String m_aDescriptionTextStr
;
58 void LayoutControls();
59 void LayoutButtons(sal_Int32 aContentWidth
, sal_Int32 aDialogBorder
,
60 Point
& aButtonPos
, Size
& aButtonSize
, sal_Int32
& aButtonsWidth
);
61 void MoveControl(Control
& rControl
, sal_Int32 X
, sal_Int32 Y
);
62 rtl::OUString
GetBuildId();
63 rtl::OUString
GetVersionString();
64 rtl::OUString
GetCopyrightString();
67 virtual sal_Bool
Close();
68 virtual void Paint( const Rectangle
& rRect
);
71 AboutDialog( Window
* pParent
, const ResId
& rId
);
73 DECL_LINK( CancelHdl
, void * );
74 DECL_LINK( HandleClick
, PushButton
* );
77 #endif // #ifndef _ABOUT_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */