https://bugs.documentfoundation.org/show_bug.cgi?id=92685
Bug ID: 92685
Summary: Add PageNumber Header option ...
Product: LibreOffice
Version: 5.0.0.0.beta1
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
We nowadays have a very nice drop-down menu for adding headers and footers in
writer. The menu contains a few items; I'd like to add:
"Add Page Number" - to make it easy for newbies that don't know that a
page-number is a field (etc.) to trivially add a page number to their documents
=)
The code to add these items is here:
sw/source/uibase/docvw/HeaderFooterWin.cxx
// Create and set the PopupMenu
m_pPopupMenu = new PopupMenu(SW_RES(MN_HEADERFOOTER_BUTTON));
// Rewrite the menu entries' text
if (m_bIsHeader)
{
m_pPopupMenu->SetItemText(FN_HEADERFOOTER_EDIT,
SW_RESSTR(STR_FORMAT_HEADER));
m_pPopupMenu->SetItemText(FN_HEADERFOOTER_DELETE,
SW_RESSTR(STR_DELETE_HEADER));
}
It might be great to add an: "Insert PageNumber" menu there to make this common
case much simpler. Of course, that would also require a new string:
$ git grep STR_FORMAT_HEADER
And a new slot for that (cf. FN_HEADERFOOTER_EDIT) which is perhaps a pain -
and some code to actually create and insert the field - and then we can argue
if a sub-menu with left/right/center is required ;-) and what to do if the
header has something in it already ;-) but ...
An idea to play with.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs