update credits
[LibreOffice.git] / framework / inc / services / licensedlg.hxx
bloba60acee76359c1698695708d6db19622dcc3b002
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #ifndef __LICENSEDLG_HXX__
20 #define __LICENSEDLG_HXX__
22 #include <sal/types.h>
23 #include <rtl/string.hxx>
24 #include <rtl/ustring.hxx>
25 #include <rtl/ustrbuf.hxx>
26 #include <tools/string.hxx>
27 #include <tools/resmgr.hxx>
28 #include <vcl/button.hxx>
29 #include <vcl/edit.hxx>
30 #include <vcl/fixed.hxx>
31 #include <vcl/dialog.hxx>
32 #include <vcl/scrbar.hxx>
33 #include <svtools/svmedit.hxx>
34 #include <svl/lstner.hxx>
36 namespace framework {
38 class LicenseView : public MultiLineEdit, public SfxListener
40 sal_Bool mbEndReached;
41 Link maEndReachedHdl;
42 Link maScrolledHdl;
44 public:
45 LicenseView( Window* pParent, const ResId& rResId );
46 ~LicenseView();
48 void ScrollDown( ScrollType eScroll );
50 sal_Bool IsEndReached() const;
51 sal_Bool EndReached() const { return mbEndReached; }
52 void SetEndReached( sal_Bool bEnd ) { mbEndReached = bEnd; }
54 void SetEndReachedHdl( const Link& rHdl ) { maEndReachedHdl = rHdl; }
55 const Link& GetAutocompleteHdl() const { return maEndReachedHdl; }
57 void SetScrolledHdl( const Link& rHdl ) { maScrolledHdl = rHdl; }
58 const Link& GetScrolledHdl() const { return maScrolledHdl; }
60 using MultiLineEdit::Notify;
61 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
64 class LicenseDialog : public ModalDialog
66 LicenseView aLicenseML;
67 FixedText aInfo1FT;
68 FixedText aInfo2FT;
69 FixedText aInfo3FT;
70 FixedText aInfo2_1FT;
71 FixedText aInfo3_1FT;
72 FixedLine aFixedLine;
73 PushButton aPBPageDown;
74 PushButton aPBDecline;
75 PushButton aPBAccept;
76 FixedImage aArrow;
77 String aStrAccept;
78 String aStrNotAccept;
79 String aOldCancelText;
80 sal_Bool bEndReached;
82 void EnableControls();
84 DECL_LINK(PageDownHdl, void *);
85 DECL_LINK(EndReachedHdl, void *);
86 DECL_LINK(ScrolledHdl, void *);
87 DECL_LINK(AcceptBtnHdl, void *);
88 DECL_LINK(DeclineBtnHdl, void *);
90 public:
91 LicenseDialog(const OUString& aLicense, ResMgr *pResMgr);
92 virtual ~LicenseDialog();
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */