update credits
[LibreOffice.git] / include / svtools / templdlg.hxx
blobd8eeaa884845e02bbba4f72efbcba80342dad5c8
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 _SVTOOLS_TEMPLDLG_HXX
20 #define _SVTOOLS_TEMPLDLG_HXX
22 #include "svtools/svtdllapi.h"
24 #include <vcl/button.hxx>
25 #include <vcl/dialog.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/fixedhyper.hxx>
29 struct SvtTmplDlg_Impl;
31 // class SvtDocumentTemplateDialog ---------------------------------------
33 class SvtTemplateWindow;
35 class SVT_DLLPUBLIC SvtDocumentTemplateDialog : public ModalDialog
37 private:
38 FixedHyperlink aMoreTemplatesLink;
39 FixedLine aLine;
40 PushButton aManageBtn;
41 PushButton aPackageBtn;
42 PushButton aEditBtn;
43 OKButton aOKBtn;
44 CancelButton aCancelBtn;
45 HelpButton aHelpBtn;
47 SvtTmplDlg_Impl* pImpl;
49 DECL_DLLPRIVATE_LINK( SelectHdl_Impl, void* );
50 DECL_DLLPRIVATE_LINK( DoubleClickHdl_Impl, void* );
51 DECL_DLLPRIVATE_LINK( NewFolderHdl_Impl, void* );
52 DECL_DLLPRIVATE_LINK( SendFocusHdl_Impl, void* );
53 DECL_DLLPRIVATE_LINK( OKHdl_Impl, PushButton* );
54 DECL_DLLPRIVATE_LINK( OrganizerHdl_Impl, void* );
55 DECL_DLLPRIVATE_LINK( PackageHdl_Impl, void* );
56 DECL_DLLPRIVATE_LINK( UpdateHdl_Impl, Timer* );
57 DECL_DLLPRIVATE_LINK( OpenLinkHdl_Impl, void* );
59 public:
60 SvtDocumentTemplateDialog( Window* pParent );
62 /** ctor for calling the dialog for <em>selection</em> only, not for <em>opening</em> a document
63 <p>If you use this ctor, the dialog will behave differently in the following areas:
64 <ul><li>The <em>Edit</em> button will be hidden.</li>
65 <li>Upon pressing em>Open</em>, the selected file will not be opened. Instead, it's
66 URL is available (see <method>GetSelectedFileURL</method>).</li>
67 </ul>
70 ~SvtDocumentTemplateDialog();
72 void SelectTemplateFolder();
74 private:
75 SVT_DLLPRIVATE void InitImpl( );
76 SVT_DLLPRIVATE sal_Bool CanEnableEditBtn() const;
79 #endif // _SVTOOLS_TEMPLDLG_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */