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/.
10 #ifndef __SFX2_TEMPLATEINFODLG_HXX__
11 #define __SFX2_TEMPLATEINFODLG_HXX__
13 #include <vcl/dialog.hxx>
14 #include <vcl/button.hxx>
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
27 SfxTemplateInfoDlg (Window
*pParent
= NULL
);
29 ~SfxTemplateInfoDlg ();
31 void loadDocument (const OUString
&rURL
);
35 DECL_LINK (CloseHdl
, void*);
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: */