diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2016-12-30 00:20:03 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-01-01 16:17:52 +0000 |
commit | 16fa2d72ba0254adc7c1bec97ade5350b4da1a82 (patch) | |
tree | 3767a712b19478cc5298a97d73a20676af4628f8 | |
parent | 6897ba36117197b5ed63cb88f6eaa9d3c5a5665d (diff) |
Add custom HIDs for the Page Style - Footer tabpage
This is necessary because the Header and Footer tabpages
use a shared .ui file and I can't link different help
content to the same ui elements.
Change-Id: I5718dc3bf1dfae5962ebe1f49f5c3d75d958f1c5
Reviewed-on: https://gerrit.libreoffice.org/32499
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | svx/source/dialog/hdft.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx index d2b28df00614..f1ee79437a3b 100644 --- a/svx/source/dialog/hdft.cxx +++ b/svx/source/dialog/hdft.cxx @@ -170,6 +170,19 @@ SvxHFPage::SvxHFPage( vcl::Window* pParent, const SfxItemSet& rSet, sal_uInt16 n { get(m_pPageLbl,"labelFooterFormat"); get(m_pTurnOnBox, "checkFooterOn"); + + /* Set custom HIDs for the Footer help page (shared/01/05040400.xhp) + otherwise it would display the same extended help + on both the Header and Footer tabs */ + m_pCntSharedBox->SetHelpId( "SVX_HID_FOOTER_CHECKSAMELR" ); + m_pCntSharedFirstBox->SetHelpId( "SVX_HID_FOOTER_CHECKSAMEFP" ); + m_pLMEdit->SetHelpId( "SVX_HID_FOOTER_SPINMARGLEFT" ); + m_pRMEdit->SetHelpId( "SVX_HID_FOOTER_SPINMARGRIGHT" ); + m_pDistEdit->SetHelpId( "SVX_HID_FOOTER_SPINSPACING" ); + m_pDynSpacingCB->SetHelpId( "SVX_HID_FOOTER_CHECKDYNSPACING" ); + m_pHeightEdit->SetHelpId( "SVX_HID_FOOTER_SPINHEIGHT" ); + m_pHeightDynBtn->SetHelpId( "SVX_HID_FOOTER_CHECKAUTOFIT" ); + m_pBackgroundBtn->SetHelpId( "SVX_HID_FOOTER_BUTTONMORE" ); } else //Header { |