Kaydet (Commit) 2a93d2a4 authored tarafından Gulsah Kose's avatar Gulsah Kose Kaydeden (comit) Gülşah Köse

[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: 's avatarGulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/54687Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 23d51ad9
...@@ -466,6 +466,11 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent) ...@@ -466,6 +466,11 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
SfxViewFrame* pVFrame = rSh.GetView().GetViewFrame(); SfxViewFrame* pVFrame = rSh.GetView().GetViewFrame();
pVFrame->GetBindings().Execute(FN_INSERT_FLD_PGNUMBER); 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 ) void SwHeaderFooterWin::SetReadonly( bool bReadonly )
......
...@@ -35,5 +35,13 @@ ...@@ -35,5 +35,13 @@
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
</child> </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> </object>
</interface> </interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment