bump product version to 4.1.6.2
[LibreOffice.git] / include / sfx2 / templateinfodlg.hxx
blob69d79b20da9ab37bc761ac91b40601692ec00c01
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/.
8 */
10 #ifndef __SFX2_TEMPLATEINFODLG_HXX__
11 #define __SFX2_TEMPLATEINFODLG_HXX__
13 #include <vcl/dialog.hxx>
14 #include <vcl/button.hxx>
16 namespace svtools {
17 class ODocumentInfoPreview;
20 namespace com{ namespace sun { namespace star { namespace awt { class XWindow; } } } }
21 namespace com{ namespace sun { namespace star { namespace frame { class XFrame2; } } } }
23 class SfxTemplateInfoDlg : public ModalDialog
25 public:
27 SfxTemplateInfoDlg (Window *pParent = NULL);
29 ~SfxTemplateInfoDlg ();
31 void loadDocument (const OUString &rURL);
33 protected:
35 DECL_LINK (CloseHdl, void*);
37 private:
39 PushButton maBtnClose;
41 Window *mpPreviewView; // gets released when xWindows get destroyed (dont delete in constructor)
42 svtools::ODocumentInfoPreview *mpInfoView;
44 ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 > m_xFrame;
45 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > xWindow;
48 #endif // __SFX2_TEMPLATEINFODLG_HXX__
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */