From 2a93d2a4af7bb72b155f91e18239cc1b5bc90a4e Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Wed, 23 May 2018 09:53:10 +0300 Subject: [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 Reviewed-on: https://gerrit.libreoffice.org/54687 Tested-by: Jenkins --- sw/source/uibase/docvw/HeaderFooterWin.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw/source/uibase') diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index e8fe4b84bfe3..e1c157ee3afe 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -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 ) -- cgit v1.2.3