summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorEfe Gürkan YALAMAN <efeyalaman@gmail.com>2014-08-01 02:59:41 +0300
committerJan Holesovsky <kendy@collabora.com>2014-08-14 22:20:26 +0200
commit8cf2021712b8f3c4b04c60d18cd2d0150e40c26a (patch)
tree177aff4393d85e9617c8ea7365f0c5575090087e /sfx2/source
parentd351591593aada8a55d58068516643eb353a76ec (diff)
All templates option added
Change-Id: I622d5d6fd7fa7be474fa56abf67a1a62fddbcf60
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index e306dd54d2d4..22147f5a357e 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -365,7 +365,7 @@ void BackingWindow::setupButton( MenuButton* pButton )
PopupMenu* pMenu = pButton->GetPopupMenu();
pMenu->SetMenuFlags(pMenu->GetMenuFlags() | MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES);
- pButton->SetClickHdl(LINK(this, BackingWindow, ClickHdl));
+ //pButton->SetClickHdl(LINK(this, BackingWindow, ClickHdl));
pButton->SetSelectHdl(LINK(this, BackingWindow, MenuSelectHdl));
}
@@ -592,21 +592,25 @@ IMPL_LINK( BackingWindow, MenuSelectHdl, MenuButton*, pButton )
{
OString sId = pButton->GetCurItemIdent();
- if( sId == "filter_writer" )
+ if( sId == "filter_none" )
+ {
+ mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_NONE));
+ }
+ else if( sId == "filter_writer" )
{
mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_WRITER));
}
else if( sId == "filter_calc" )
{
- mpLocalView->filterItems(ViewFilter_Application(FILTER_APP_CALC));
+ mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_CALC));
}
else if( sId == "filter_impress" )
{
- mpLocalView->filterItems(ViewFilter_Application(FILTER_APP_IMPRESS));
+ mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_IMPRESS));
}
else if( sId == "filter_draw" )
{
- mpLocalView->filterItems(ViewFilter_Application(FILTER_APP_DRAW));
+ mpCurrentView->filterItems(ViewFilter_Application(FILTER_APP_DRAW));
}
else if( sId == "edit" )
{