[Pardus] tdf#92685 Add insert page count option to header menu

This patch is sponsored by ULAKBIM/Pardus project.

Change-Id: I5ecca4f58ec0ecf6a639153b52a4424af1966820
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/54687
Tested-by: Jenkins <ci@libreoffice.org>
This commit is contained in:
Gulsah Kose
2018-05-23 09:53:10 +03:00
committed by Gülşah Köse
parent 23d51ad934
commit 2a93d2a4af
2 changed files with 13 additions and 0 deletions

View File

@@ -466,6 +466,11 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
SfxViewFrame* pVFrame = rSh.GetView().GetViewFrame();
pVFrame->GetBindings().Execute(FN_INSERT_FLD_PGNUMBER);
}
else if (rIdent == "insert_pagecount")
{
SfxViewFrame* pVFrame = rSh.GetView().GetViewFrame();
pVFrame->GetBindings().Execute(FN_INSERT_FLD_PGCOUNT);
}
}
void SwHeaderFooterWin::SetReadonly( bool bReadonly )

View File

@@ -35,5 +35,13 @@
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="insert_pagecount">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="headerfootermenu|insert_pagecount">Insert Page Count</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</interface>