Kaydet (Commit) 0c03f794 authored tarafından Rafael Dominguez's avatar Rafael Dominguez

Display template preview and information when clicking properties.

Change-Id: I9a783c39f04a19cd65a292f3ebff923bb845f2c4
üst 4fe7c4f3
......@@ -64,6 +64,7 @@ $(eval $(call gb_SrsTarget_add_files,sfx/res,\
sfx2/source/dialog/securitypage.src \
sfx2/source/dialog/srchdlg.src \
sfx2/source/dialog/taskpane.src \
sfx2/source/dialog/templateinfodlg.src \
sfx2/source/dialog/templdlg.src \
sfx2/source/dialog/titledockwin.src \
sfx2/source/dialog/versdlg.src \
......
......@@ -171,6 +171,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/dialog/styledlg \
sfx2/source/dialog/tabdlg \
sfx2/source/dialog/taskpane \
sfx2/source/dialog/templateinfodlg \
sfx2/source/dialog/templdlg \
sfx2/source/dialog/titledockwin \
sfx2/source/dialog/tplcitem \
......
......@@ -119,6 +119,7 @@ $(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/tbxctrl.hxx,sfx2/tbxctrl.hxx
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templdlg.hxx,sfx2/templdlg.hxx))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocnames.hrc,sfx2/templatelocnames.hrc))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateabstractview.hxx,sfx2/templateabstractview.hxx))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateinfodlg.hxx,sfx2/templateinfodlg.hxx))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templateview.hxx,sfx2/templateview.hxx))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocalview.hxx,sfx2/templatelocalview.hxx))
$(eval $(call gb_Package_add_file,sfx2_inc,inc/sfx2/templatelocalviewitem.hxx,sfx2/templatelocalviewitem.hxx))
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __SFX2_TEMPLATEINFODLG_HXX__
#define __SFX2_TEMPLATEINFODLG_HXX__
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
namespace svtools {
class ODocumentInfoPreview;
}
class SfxTemplateInfoDlg : public ModalDialog
{
public:
SfxTemplateInfoDlg (Window *pParent = NULL);
~SfxTemplateInfoDlg ();
private:
PushButton maBtnClose;
Window *mpPreviewView;
svtools::ODocumentInfoPreview *mpInfoView;
};
#endif // __SFX2_TEMPLATEINFODLG_HXX__
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,6 +17,7 @@
class Edit;
class PopupMenu;
class SfxTemplateInfoDlg;
class TemplateAbstractView;
class TemplateLocalView;
class TemplateOnlineView;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sfx2/templateinfodlg.hxx>
#include <sfx2/sfxresid.hxx>
#include <svtools/DocumentInfoPreview.hxx>
#include "templateinfodlg.hrc"
SfxTemplateInfoDlg::SfxTemplateInfoDlg (Window *pParent)
: ModalDialog(pParent,SfxResId(DLG_TEMPLATE_INFORMATION)),
maBtnClose(this,SfxResId(BTN_TEMPLATE_INFO_CLOSE))
{
}
SfxTemplateInfoDlg::~SfxTemplateInfoDlg()
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/*
* Copyright 2012 LibreOffice contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#define DLG_TEMPLATE_INFORMATION 400
#define BTN_TEMPLATE_INFO_CLOSE 11
/*
* Copyright 2012 LibreOffice contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "templateinfodlg.hrc"
ModalDialog DLG_TEMPLATE_INFORMATION
{
OutputSize = TRUE;
SVLook = TRUE;
Size = MAP_APPFONT( 250, 180 );
Moveable = TRUE;
Closeable = TRUE;
PushButton BTN_TEMPLATE_INFO_CLOSE
{
Pos = MAP_APPFONT( 194, 160 );
Size = MAP_APPFONT( 50, 14 );
Text [ en-US ] = "Close";
};
};
......@@ -20,6 +20,7 @@
#include <sfx2/fcontnr.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfx2/templateinfodlg.hxx>
#include <sfx2/templatelocalview.hxx>
#include <sfx2/templatelocalviewitem.hxx>
#include <sfx2/templateonlineview.hxx>
......@@ -946,6 +947,8 @@ void SfxTemplateManagerDlg::OnTemplateEdit ()
void SfxTemplateManagerDlg::OnTemplateProperties ()
{
SfxTemplateInfoDlg aDlg;
aDlg.Execute();
}
void SfxTemplateManagerDlg::OnTemplateDelete ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment