[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:
@@ -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 @@
|
|||||||
<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>
|
||||||
|
Reference in New Issue
Block a user