summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/backingwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/backingwindow.cxx')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index e223ee9fa493..81d6b48cec07 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -88,6 +88,8 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
get(mpHelpButton, "help");
get(mpExtensionsButton, "extensions");
+ get(mpViewBar, "action_view");
+
//Containers are invisible to cursor traversal
//So on pressing "right" when in Help the
//extension button is considered as a candidate
@@ -239,6 +241,11 @@ void BackingWindow::initControls()
mpLocalView->Hide();
mpLocalView->filterItems(ViewFilter_Application(FILTER_APP_NONE));
+ mpViewBar->SetButtonType(BUTTON_SYMBOLTEXT);
+ mpViewBar->SetItemBits(mpViewBar->GetItemId("repository"), TIB_DROPDOWNONLY);
+ //mpViewBar->SetClickHdl(LINK(this,BackingWindow,TBXViewHdl));
+ //mpViewBar->SetDropdownClickHdl(LINK(this,BackingWindow,TBXDropdownHdl));
+ mpViewBar->Hide();
/*FIXME: Add other things for Local View
*Filter and the bars*/
@@ -511,10 +518,29 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
*/
mpAllRecentThumbnails->Hide();
mpLocalView->Show();
+ mpViewBar->Show();
}
return 0;
}
+IMPL_LINK_NOARG( BackingWindow, OpenRegionHdl)
+{
+ //maSelFolders.clear();
+ //maSelTemplates.clear();
+
+ //mpViewBar->ShowItem(VIEWBAR_NEW_FOLDER, mpCurView->isNestedRegionAllowed());
+
+ //if (!mbIsSaveMode)
+ //mpViewBar->ShowItem(VIEWBAR_IMPORT, mpCurView->isImportAllowed());
+
+ //mpTemplateBar->Hide();
+ //mpViewBar->Show();
+ //mpActionBar->Show();
+
+ return 0;
+}
+
+
struct ImplDelayedDispatch
{
Reference< XDispatch > xDispatch;