summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/HeaderFooterWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/HeaderFooterWin.cxx')
-rw-r--r--sw/source/uibase/docvw/HeaderFooterWin.cxx5
1 files changed, 5 insertions, 0 deletions
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 )