about.hxx (c4eee24d) about.hxx (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

--- 11 unchanged lines hidden (view full) ---

20 *************************************************************/
21
22
23#ifndef _ABOUT_HXX
24#define _ABOUT_HXX
25
26// include ---------------------------------------------------------------
27
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

--- 11 unchanged lines hidden (view full) ---

20 *************************************************************/
21
22
23#ifndef _ABOUT_HXX
24#define _ABOUT_HXX
25
26// include ---------------------------------------------------------------
27
28#include <tools/resary.hxx>
29#include <vcl/button.hxx>
28#include <vcl/button.hxx>
30#include <vcl/accel.hxx>
31#include <svtools/svmedit.hxx>
29#include <svtools/svmedit.hxx>
30#include <svtools/fixedhyper.hxx>
32#include <tools/list.hxx>
33#include <svtools/stdctrl.hxx>
31#include <tools/list.hxx>
32#include <svtools/stdctrl.hxx>
34#include <sfx2/basedlgs.hxx> // SfxModalDialog
33#include <sfx2/basedlgs.hxx> // SfxModalDialog
35
34
36DECLARE_LIST( AccelList, Accelerator* )
37
38// class AboutDialog -----------------------------------------------------
39
40class AboutDialog : public SfxModalDialog
41{
42private:
35// class AboutDialog -----------------------------------------------------
36
37class AboutDialog : public SfxModalDialog
38{
39private:
43 OKButton aOKButton;
44 Image aAppLogo;
40 OKButton maOKButton;
41 FixedInfo maVersionText;
42 MultiLineEdit maBuildInfoEdit;
43 MultiLineEdit maCopyrightEdit;
44 svt::FixedHyperlink maCreditsLink;
45
45
46 FixedInfo aVersionText;
47 MultiLineEdit aCopyrightText;
48 FixedInfo aBuildData;
46 Image maAppLogo;
49
47
50 ResStringArray* pDeveloperAry;
51 String aDevVersionStr;
52 String aAccelStr;
53 String aVersionData;
54 String aCopyrightTextStr;
48 String maCopyrightTextStr;
49 rtl::OUString maVersionData;
55
50
56 AccelList aAccelList;
51 void InitControls();
52 void ApplyStyleSettings();
53 void LayoutControls( Size& aDlgSize );
57
54
58 AutoTimer aTimer;
59 long nOff;
60 long m_nDeltaWidth;
61 int m_nPendingScrolls;
55 const rtl::OUString GetBuildId() const;
56 const rtl::OUString GetBuildVersionString() const;
62
57
63 sal_Bool bNormal;
58 DECL_DLLPRIVATE_LINK(OpenLinkHdl_Impl, svt::FixedHyperlink* );
64
65protected:
59
60protected:
66 virtual sal_Bool Close();
67 virtual void Paint( const Rectangle& );
61 virtual sal_Bool Close();
62 virtual void Paint( const Rectangle& );
68
69public:
63
64public:
70 AboutDialog( Window* pParent, const ResId& nId );
71 ~AboutDialog();
65 AboutDialog( Window* pParent, const ResId& nId );
66 ~AboutDialog();
72
67
73 DECL_LINK( TimerHdl, Timer * );
74 DECL_LINK( AccelSelectHdl, Accelerator * );
75};
76
77#endif // #ifndef _ABOUT_HXX
78
79
68};
69
70#endif // #ifndef _ABOUT_HXX
71
72