summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfe Gürkan YALAMAN <efeyalaman@gmail.com>2014-08-01 02:59:41 +0300
committerEfe Gürkan YALAMAN <efeyalaman@gmail.com>2014-08-01 02:59:41 +0300
commit58fc7d25a5904a6747fdb2a3bf4c4a39be547bef (patch)
treedbce0a8aae628aa56aaa4af0cef3ea52cf6d1be6
parentf42ed44b2f612b33998242091a3a762ca3fb4215 (diff)
All templates option added
Change-Id: I622d5d6fd7fa7be474fa56abf67a1a62fddbcf60
-rw-r--r--sfx2/source/dialog/backingwindow.cxx14
-rw-r--r--sfx2/uiconfig/ui/startcenter.ui10
2 files changed, 18 insertions, 6 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index f481f18a72ff..bf17b95e6d2d 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -363,7 +363,7 @@ void BackingWindow::setupButton( MenuButton* pButton )
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 ) );
}
@@ -590,21 +590,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" )
{
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui
index da54f918f821..915028e04487 100644
--- a/sfx2/uiconfig/ui/startcenter.ui
+++ b/sfx2/uiconfig/ui/startcenter.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.16.0 on Sun Jul 27 15:03:37 2014 -->
+<!-- Generated with glade 3.16.0 on Fri Aug 1 02:51:49 2014 -->
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
@@ -435,6 +435,14 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
+ <object class="GtkMenuItem" id="filter_none">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">All Templates</property>
+ <property name="use_underline">True</property>
+ </object>
+ </child>
+ <child>
<object class="GtkMenuItem" id="filter_writer">
<property name="visible">True</property>
<property name="can_focus">False</property>