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

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

This patch is sponsored by ULAKBIM/Pardus project.

Change-Id: I9f1f5bd0f05b7f92204615b48a1e7be06272a8a3
Signed-off-by: 's avatarGulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/47597Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 027abe22
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <editeng/boxitem.hxx> #include <editeng/boxitem.hxx>
#include <svtools/svtresid.hxx> #include <svtools/svtresid.hxx>
#include <svx/hdft.hxx> #include <svx/hdft.hxx>
#include <sfx2/dispatch.hxx>
#include <drawinglayer/processor2d/processorfromoutputdevice.hxx> #include <drawinglayer/processor2d/processorfromoutputdevice.hxx>
#include <vcl/decoview.hxx> #include <vcl/decoview.hxx>
#include <vcl/gradient.hxx> #include <vcl/gradient.hxx>
...@@ -462,6 +463,11 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent) ...@@ -462,6 +463,11 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
{ {
rSh.ChangeHeaderOrFooter( rStyleName, m_bIsHeader, false, true ); rSh.ChangeHeaderOrFooter( rStyleName, m_bIsHeader, false, true );
} }
else if (rIdent == "insert_pagenumber")
{
SfxViewFrame* pVFrame = rSh.GetView().GetViewFrame();
pVFrame->GetBindings().Execute(FN_INSERT_FLD_PGNUMBER);
}
} }
void SwHeaderFooterWin::SetReadonly( bool bReadonly ) void SwHeaderFooterWin::SetReadonly( bool bReadonly )
......
...@@ -27,5 +27,13 @@ ...@@ -27,5 +27,13 @@
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
</child> </child>
<child>
<object class="GtkMenuItem" id="insert_pagenumber">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="headerfootermenu|insert_pagenumber">Insert Page Number</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