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-08 18:25:52 +0300
commitced638835cf4c106476a1187c5631b98926462e3 (patch)
tree3132dea857c34cd8f3361c76bfaacf2a2382acae
parentfd0fdad09800f32194d02a62c9e0d973df235dea (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 4033c6f8ec32..e05b8d982b1d 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -367,7 +367,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 ) );
}
@@ -594,21 +594,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 eb6fbf26e511..3185bfaa8060 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 -->
@@ -434,6 +434,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>