summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-09 17:07:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-09 17:08:13 +0100
commitfe421533614cce6819c72c16f19b8de19e0d99da (patch)
tree5c2eb65f737e086d58514c1b2759b7e9c1864bd2 /sfx2/source
parentfab88063281761dbdac7ea550072660fe0f8c863 (diff)
Resolves: fdo#83003 provide a means to return from template view
Change-Id: Ie6d2cfb5ee28fbd9395a49fa074a252c9c6e20ec
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx7
-rw-r--r--sfx2/source/dialog/backingwindow.hxx1
2 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 0d5801d2106f..1e87b42a27a3 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -101,6 +101,7 @@ BackingWindow::BackingWindow( vcl::Window* i_pParent ) :
m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" );
get(mpOpenButton, "open_all");
+ get(mpRecentButton, "open_recent");
get(mpTemplateButton, "templates_all");
get(mpCreateLabel, "create_label");
@@ -274,6 +275,7 @@ void BackingWindow::initControls()
mpLocalView->setOpenTemplateHdl(LINK(this,BackingWindow,OpenTemplateHdl));
setupButton( mpOpenButton );
+ setupButton( mpRecentButton );
setupButton( mpTemplateButton );
setupButton( mpWriterAllButton );
setupButton( mpDrawAllButton );
@@ -545,6 +547,11 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
dispatchURL( OPEN_URL, OUString(), xFrame, aArgs );
}
+ else if( pButton == mpRecentButton )
+ {
+ mpLocalView->Hide();
+ mpAllRecentThumbnails->Show();
+ }
else if( pButton == mpTemplateButton )
{
mpAllRecentThumbnails->Hide();
diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
index 72c8a676d67f..cc1e9e53c20d 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -62,6 +62,7 @@ class BackingWindow
com::sun::star::uno::Reference< com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
PushButton* mpOpenButton;
+ PushButton* mpRecentButton;
MenuButton* mpTemplateButton;
FixedText* mpCreateLabel;